/* ============================================================
   FACEL SHOP — Estilos extras
   Confirmación, seguimiento, comparador, marca
   ============================================================ */

/* ====== CONFIRMACIÓN DE PEDIDO ============================ */
.confirm-hero {
    text-align: center;
    padding: 48px 16px 32px;
    background:
        radial-gradient(circle at 50% 0%, rgba(22, 163, 74, 0.08), transparent 60%),
        var(--c-bg);
}

.confirm-check {
    width: 88px;
    height: 88px;
    background: var(--c-success);
    border-radius: 100px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 8px 24px rgba(22, 163, 74, 0.25);
    animation: pop-in .4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.confirm-check svg {
    width: 44px;
    height: 44px;
    stroke-width: 3;
}

@keyframes pop-in {
    0%   { transform: scale(0); }
    100% { transform: scale(1); }
}

.confirm-title {
    font-family: var(--f-display);
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 8px;
}

@media (min-width: 768px) {
    .confirm-title { font-size: 44px; }
}

.confirm-subtitle {
    color: var(--c-muted);
    font-size: 16px;
    max-width: 520px;
    margin: 0 auto 24px;
}

.confirm-order-num {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--c-surface);
    border: 1.5px solid var(--c-line);
    border-radius: 100px;
    font-family: var(--f-mono);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
}

.confirm-order-num b {
    color: var(--c-accent);
}

.confirm-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 24px;
}

/* Confirmation grid: pedido + próximos pasos */
.confirm-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 32px 0;
}

@media (min-width: 1024px) {
    .confirm-grid {
        grid-template-columns: 1.2fr 1fr;
        gap: 24px;
    }
}

.confirm-box {
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--r-3);
    padding: 24px;
}

.confirm-box-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--c-line-soft);
}

.confirm-box-head svg {
    width: 22px;
    height: 22px;
    color: var(--c-accent);
}

.confirm-box-title {
    font-family: var(--f-display);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.confirm-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

@media (min-width: 480px) {
    .confirm-info { grid-template-columns: 1fr 1fr; }
}

.confirm-info-block {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--c-line-soft);
}

.confirm-info-lbl {
    font-size: 11px;
    color: var(--c-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 4px;
}

.confirm-info-val {
    font-size: 14px;
    color: var(--c-ink);
    line-height: 1.4;
}

.confirm-info-val b {
    font-weight: 600;
}

/* Next steps timeline (vertical) */
.next-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.next-step {
    display: flex;
    gap: 14px;
    padding-bottom: 16px;
    position: relative;
}

.next-step:last-child { padding-bottom: 0; }

.next-step::after {
    content: "";
    position: absolute;
    left: 15px;
    top: 36px;
    bottom: 0;
    width: 2px;
    background: var(--c-line);
}

.next-step:last-child::after { display: none; }

.next-step-icon {
    width: 32px;
    height: 32px;
    border-radius: 100px;
    background: var(--c-line-soft);
    color: var(--c-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 1;
}

.next-step.is-done .next-step-icon {
    background: var(--c-success);
    color: #fff;
}

.next-step.is-active .next-step-icon {
    background: var(--c-accent);
    color: #fff;
    box-shadow: 0 0 0 4px var(--c-accent-l);
}

.next-step-icon svg {
    width: 16px;
    height: 16px;
}

.next-step-info {
    flex: 1;
    padding-top: 4px;
}

.next-step-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

.next-step-text {
    font-size: 12px;
    color: var(--c-muted);
    line-height: 1.4;
}

.next-step.is-active .next-step-title {
    color: var(--c-accent);
}

/* ====== SEGUIMIENTO ======================================= */
.track-header {
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--r-3);
    padding: 24px;
    margin-bottom: 24px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: center;
}

@media (min-width: 768px) {
    .track-header {
        grid-template-columns: 1fr auto;
    }
}

.track-order-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.track-order-id {
    font-family: var(--f-mono);
    font-size: 13px;
    color: var(--c-muted);
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.track-order-title {
    font-family: var(--f-display);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 4px;
}

@media (min-width: 768px) {
    .track-order-title { font-size: 28px; }
}

.track-order-meta {
    font-size: 13px;
    color: var(--c-muted);
}

.track-status-large {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--c-info-l);
    color: var(--c-info);
    border-radius: var(--r-3);
    font-weight: 600;
    font-size: 14px;
    width: fit-content;
}

.track-status-large svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.track-status-large.is-delivered {
    background: var(--c-success-l);
    color: var(--c-success);
}

.track-status-large.is-delivered svg {
    animation: none;
}

/* Horizontal timeline */
.track-timeline {
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--r-3);
    padding: 28px 20px;
    margin-bottom: 24px;
    overflow-x: auto;
}

.track-timeline-inner {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    position: relative;
    min-width: 600px;
}

@media (max-width: 767px) {
    .track-timeline-inner {
        min-width: 700px;
    }
}

.track-step {
    text-align: center;
    position: relative;
    padding: 0 8px;
}

.track-step-circle {
    width: 36px;
    height: 36px;
    border-radius: 100px;
    background: var(--c-line);
    color: var(--c-muted-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.track-step.is-done .track-step-circle {
    background: var(--c-success);
    color: #fff;
}

.track-step.is-active .track-step-circle {
    background: var(--c-accent);
    color: #fff;
    box-shadow: 0 0 0 5px var(--c-accent-l);
}

.track-step-circle svg {
    width: 18px;
    height: 18px;
}

.track-step-line {
    position: absolute;
    top: 18px;
    left: calc(50% + 18px);
    right: calc(-50% + 18px);
    height: 3px;
    background: var(--c-line);
    z-index: 1;
}

.track-step:last-child .track-step-line { display: none; }

.track-step.is-done .track-step-line {
    background: var(--c-success);
}

.track-step-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--c-ink);
    margin-bottom: 2px;
    line-height: 1.2;
}

.track-step.is-active .track-step-title {
    color: var(--c-accent);
}

.track-step-date {
    font-size: 11px;
    color: var(--c-muted);
}

/* Detalle de envío */
.track-detail {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .track-detail {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

.track-detail-card {
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--r-3);
    padding: 20px;
}

.track-detail-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.track-detail-head svg {
    width: 18px;
    height: 18px;
    color: var(--c-accent);
}

.track-detail-head h3 {
    font-family: var(--f-display);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.track-detail-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.track-detail-list li {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--c-line-soft);
}

.track-detail-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.track-detail-list li span:first-child {
    color: var(--c-muted);
}

.track-detail-list li span:last-child {
    color: var(--c-ink);
    font-weight: 500;
    text-align: right;
}

.track-detail-list b {
    font-family: var(--f-mono);
    font-weight: 600;
    color: var(--c-accent);
    letter-spacing: 0.5px;
}

/* Log de eventos */
.track-events {
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--r-3);
    padding: 24px;
    margin-bottom: 24px;
}

.track-events-head {
    font-family: var(--f-display);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.track-event {
    display: flex;
    gap: 14px;
    padding-bottom: 16px;
    position: relative;
}

.track-event::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 18px;
    bottom: 0;
    width: 2px;
    background: var(--c-line);
}

.track-event:last-child { padding-bottom: 0; }
.track-event:last-child::after { display: none; }

.track-event-dot {
    width: 16px;
    height: 16px;
    border-radius: 100px;
    background: var(--c-line);
    flex-shrink: 0;
    margin-top: 3px;
    z-index: 1;
    border: 3px solid var(--c-surface);
}

.track-event.is-done .track-event-dot {
    background: var(--c-success);
}

.track-event.is-active .track-event-dot {
    background: var(--c-accent);
    box-shadow: 0 0 0 3px var(--c-accent-l);
}

.track-event-info {
    flex: 1;
}

.track-event-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

.track-event-text {
    font-size: 12px;
    color: var(--c-muted);
    line-height: 1.4;
    margin-bottom: 2px;
}

.track-event-time {
    font-size: 11px;
    color: var(--c-muted-2);
    font-family: var(--f-mono);
    letter-spacing: 0.5px;
}

.track-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}

/* ====== COMPARADOR ======================================== */
.compare-head {
    padding: 24px 0 16px;
    border-bottom: 1px solid var(--c-line);
    margin-bottom: 24px;
}

.compare-title {
    font-family: var(--f-display);
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.compare-sub {
    color: var(--c-muted);
    font-size: 14px;
}

.compare-table-wrap {
    overflow-x: auto;
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--r-3);
}

.compare-table {
    width: 100%;
    min-width: 800px;
    border-collapse: collapse;
}

.compare-table th,
.compare-table td {
    padding: 16px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid var(--c-line-soft);
}

.compare-table tr:last-child th,
.compare-table tr:last-child td {
    border-bottom: none;
}

.compare-table thead th {
    background: var(--c-line-soft);
    font-weight: 600;
    font-size: 12px;
    color: var(--c-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--c-line);
    text-align: center;
    vertical-align: top;
    padding: 20px 16px;
}

.compare-table thead th:first-child {
    background: var(--c-surface);
    text-align: left;
}

.compare-table tbody th {
    background: var(--c-line-soft);
    color: var(--c-ink);
    font-size: 13px;
    font-weight: 600;
    width: 180px;
    position: sticky;
    left: 0;
    z-index: 1;
}

.compare-table tbody td {
    text-align: center;
    font-size: 13px;
}

.compare-product {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
}

.compare-product-remove {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-muted);
    cursor: pointer;
    transition: all .15s;
}

.compare-product-remove:hover {
    background: var(--c-danger);
    color: #fff;
    border-color: var(--c-danger);
}

.compare-product-remove svg {
    width: 12px;
    height: 12px;
}

.compare-product-img {
    width: 100px;
    height: 100px;
    background: var(--c-line-soft);
    border-radius: var(--r-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.compare-product-brand {
    font-size: 11px;
    color: var(--c-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.compare-product-name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--c-ink);
    max-width: 200px;
}

.compare-product-name:hover {
    color: var(--c-accent);
}

.compare-price {
    font-family: var(--f-display);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--c-ink);
}

.compare-price-old {
    display: block;
    font-size: 12px;
    color: var(--c-muted);
    text-decoration: line-through;
    margin-top: 2px;
    font-weight: 500;
    font-family: var(--f-body);
    letter-spacing: 0;
}

.compare-check {
    color: var(--c-success);
}

.compare-no {
    color: var(--c-muted-2);
}

.compare-add-slot {
    border: 2px dashed var(--c-line);
    border-radius: var(--r-2);
    padding: 24px 12px;
    text-align: center;
    color: var(--c-muted);
    cursor: pointer;
    transition: all .15s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.compare-add-slot:hover {
    border-color: var(--c-accent);
    color: var(--c-accent);
    background: var(--c-accent-l);
}

.compare-add-slot svg {
    width: 28px;
    height: 28px;
}

.compare-add-slot-text {
    font-size: 13px;
    font-weight: 500;
}

/* ====== MARCA ============================================= */
.brand-hero {
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.75)),
        linear-gradient(45deg, var(--c-accent), #FFB088);
    color: #fff;
    padding: 48px 0 64px;
    position: relative;
    overflow: hidden;
}

.brand-hero::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 92, 40, 0.15), transparent 70%);
    pointer-events: none;
}

.brand-hero-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: center;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .brand-hero-inner {
        grid-template-columns: auto 1fr;
        gap: 40px;
    }
}

.brand-logo {
    width: 140px;
    height: 140px;
    background: #fff;
    border-radius: var(--r-4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--f-display);
    font-size: 36px;
    font-weight: 700;
    color: var(--c-ink);
    letter-spacing: -0.03em;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.brand-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.brand-title {
    font-family: var(--f-display);
    font-size: 36px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

@media (min-width: 768px) {
    .brand-title { font-size: 56px; }
}

.brand-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    max-width: 600px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.brand-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 480px;
}

.brand-stat-val {
    font-family: var(--f-display);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
}

.brand-stat-lbl {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Brand featured strip */
.brand-featured {
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--r-3);
    padding: 20px;
    margin: 24px 0 32px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 640px) {
    .brand-featured {
        grid-template-columns: repeat(3, 1fr);
    }
}

.brand-feat {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-feat-icon {
    width: 36px;
    height: 36px;
    background: var(--c-accent-l);
    color: var(--c-accent);
    border-radius: var(--r-2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.brand-feat-icon svg {
    width: 18px;
    height: 18px;
}

.brand-feat-title {
    font-weight: 600;
    font-size: 13px;
    display: block;
}

.brand-feat-sub {
    font-size: 11px;
    color: var(--c-muted);
}

/* Brand category chips */
.brand-cats {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 24px;
    scrollbar-width: none;
}

.brand-cats::-webkit-scrollbar { display: none; }

.brand-cat-chip {
    padding: 8px 16px;
    border: 1.5px solid var(--c-line);
    border-radius: 100px;
    background: var(--c-surface);
    font-size: 13px;
    font-weight: 500;
    color: var(--c-ink-2);
    white-space: nowrap;
    cursor: pointer;
    transition: all .15s;
}

.brand-cat-chip:hover {
    border-color: var(--c-ink);
}

.brand-cat-chip.is-active {
    background: var(--c-ink);
    color: #fff;
    border-color: var(--c-ink);
}

.brand-cat-chip-count {
    color: inherit;
    opacity: 0.6;
    margin-left: 4px;
}
