/* ============================================================
   BullTokShop · estilos de la tienda, el checkout y el pedido
   Depende de main.css (variables y componentes base).
   ============================================================ */

.shop-wrap { padding: 140px 0 90px; }
.shop-head { text-align: center; max-width: 660px; margin: 0 auto 2.6rem; }
.shop-head h1 { font-family: var(--fd); font-size: clamp(1.9rem, 4.5vw, 2.8rem); line-height: 1.15; margin-bottom: .7rem; }
.shop-head p { color: var(--muted); }

/* --- rejilla de productos --- */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; max-width: 1000px; margin: 0 auto; }
.shop-card {
    position: relative; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r); padding: 2rem 1.7rem 1.7rem; display: flex; flex-direction: column;
}
.shop-card.featured { border-color: rgba(254,44,85,.5); background: linear-gradient(170deg, rgba(254,44,85,.08), var(--surface) 45%); }
.shop-card h2 { font-family: var(--fd); font-size: 1.15rem; margin-bottom: .3rem; }
.shop-card .tagline { color: var(--muted); font-size: .85rem; margin-bottom: 1.2rem; }
.shop-icon { width: 58px; height: 58px; border-radius: 15px; background: var(--surface-2); border: 1px solid var(--line);
             display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin-bottom: 1.1rem; }

/* --- selector de variante --- */
.variant-list { display: grid; gap: .6rem; margin-bottom: 1.3rem; }
.variant {
    display: flex; align-items: center; gap: .85rem; cursor: pointer;
    background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: .8rem .95rem;
    transition: border-color .2s ease, background .2s ease;
}
.variant:hover { border-color: rgba(255,255,255,.22); }
.variant input { accent-color: var(--red); width: 18px; height: 18px; flex-shrink: 0; }
.variant.is-out { opacity: .5; cursor: not-allowed; }
.variant:has(input:checked) { border-color: var(--cyan); background: linear-gradient(120deg, rgba(37,244,238,.09), var(--surface-2)); }
.variant-flag { font-size: 1.4rem; line-height: 1; }
.variant-text { display: flex; flex-direction: column; min-width: 0; }
.variant-name { font-weight: 600; font-size: .9rem; }
.variant-note { color: var(--muted); font-size: .75rem; }
.variant-price { margin-left: auto; font-family: var(--fd); font-weight: 700; font-size: 1.15rem; color: var(--cyan); }
.variant-price small { font-family: var(--fb); font-size: .6rem; color: var(--muted); font-weight: 600; }
.stock-tag { align-self: flex-start; width: fit-content; margin-top: .2rem; font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; padding: .18rem .5rem; border-radius: 999px; }
.stock-ok { background: rgba(37,244,238,.12); color: var(--cyan); }
.stock-low { background: rgba(255,194,75,.14); color: var(--gold); }
.stock-out { background: rgba(255,255,255,.07); color: var(--muted); }
.stock-order { background: color-mix(in srgb, var(--cyan) 13%, transparent); color: var(--cyan); }

/* --- checkout --- */
.checkout-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 1.6rem; max-width: 940px; margin: 0 auto; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.8rem 1.7rem; }
.panel h2 { font-family: var(--fd); font-size: 1.05rem; margin-bottom: 1.1rem; }
.field { display: grid; gap: .35rem; margin-bottom: 1rem; }
.field label { font-size: .82rem; font-weight: 600; }
.field input, .field select, .field textarea {
    font-family: var(--fb); font-size: .95rem; color: var(--text);
    background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: .8rem .9rem; width: 100%;
}
.field input:focus, .field select:focus { outline: 2px solid var(--cyan); outline-offset: 1px; }
.field .hint { color: var(--muted); font-size: .75rem; }
.field.error input { border-color: var(--red); }
.summary-row { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; padding: .5rem 0; color: var(--muted); }
.summary-row b { color: var(--text); }
.summary-total { border-top: 1px solid var(--line); margin-top: .6rem; padding-top: .9rem; font-size: 1.05rem; }
.summary-total .amount { font-family: var(--fd); font-size: 1.6rem; color: var(--text); }
.pay-methods { display: grid; gap: .7rem; margin-top: 1.2rem; }
.pay-btn {
    display: flex; align-items: center; gap: .8rem; width: 100%; cursor: pointer;
    font-family: var(--fb); font-size: .95rem; font-weight: 600; color: var(--text); text-align: left;
    background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: .95rem 1.1rem;
    transition: border-color .2s ease, transform .2s ease;
}
.pay-btn:hover:not(:disabled) { border-color: rgba(255,255,255,.28); transform: translateY(-1px); }
.pay-btn:disabled { opacity: .5; cursor: not-allowed; }
.pay-btn .logo { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.pay-paypal .logo { background: #ffc439; color: #003087; font-weight: 800; }
.pay-mp .logo { background: #009ee3; color: #fff; }
.pay-wa .logo { background: #25d366; color: #fff; }
.pay-btn small { display: block; font-weight: 400; font-size: .76rem; color: var(--muted); }
#paypalBox { margin-top: .9rem; }
.alert { border-radius: 12px; padding: .85rem 1rem; font-size: .87rem; margin-bottom: 1.2rem; }
.alert-error { background: rgba(254,44,85,.1); border: 1px solid rgba(254,44,85,.4); color: #ffc4d0; }
.alert-info  { background: rgba(37,244,238,.08); border: 1px solid rgba(37,244,238,.3); color: #bff6f4; }
.alert-warn  { background: rgba(255,194,75,.09); border: 1px solid rgba(255,194,75,.35); color: #ffe0a8; }

/* --- página del pedido --- */
.order-box { max-width: 700px; margin: 0 auto; }
.order-status { display: inline-flex; align-items: center; gap: .5rem; font-size: .75rem; font-weight: 700;
                text-transform: uppercase; letter-spacing: .08em; padding: .35rem .8rem; border-radius: 999px; }
.st-delivered { background: rgba(37,244,238,.14); color: var(--cyan); }
.st-paid { background: rgba(255,194,75,.14); color: var(--gold); }
.st-pending { background: rgba(255,255,255,.07); color: var(--muted); }
.st-failed, .st-refunded, .st-cancelled { background: rgba(254,44,85,.14); color: #ff8ba3; }
.cred-card { background: var(--surface-2); border: 1px solid rgba(37,244,238,.3); border-radius: 14px; padding: 1.1rem 1.2rem; margin: .9rem 0; }
.cred-card h3 { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .6rem; }
.cred-card pre { white-space: pre-wrap; word-break: break-word; font-family: Consolas, "SF Mono", monospace; font-size: .92rem; color: var(--text); margin: 0; }
.copy-btn { margin-top: .8rem; font-family: var(--fb); font-size: .8rem; font-weight: 600; cursor: pointer;
            background: rgba(255,255,255,.06); border: 1px solid var(--line); color: var(--text); border-radius: 999px; padding: .45rem 1rem; }
.copy-btn:hover { background: rgba(255,255,255,.11); }

@media (max-width: 860px) {
    .checkout-grid { grid-template-columns: 1fr; }
    .shop-wrap { padding: 120px 0 70px; }
}

/* --- cupón de descuento --- */
.summary-discount b { color: var(--cyan); }
.summary-discount code { background: var(--surface-2); border-radius: 5px; padding: .1rem .4rem; font-size: .78rem; }
.summary-total s { color: var(--muted); font-size: .95rem; font-weight: 400; margin-right: .35rem; }
.coupon-form { margin-top: 1.2rem; border-top: 1px solid var(--line); padding-top: 1.1rem; }
.coupon-form > label { display: block; font-size: .8rem; font-weight: 600; margin-bottom: .5rem; }
.coupon-row { display: flex; gap: .5rem; }
.coupon-row input {
    flex: 1; min-width: 0; font-family: var(--fb); font-size: .9rem; letter-spacing: .06em;
    text-transform: uppercase; color: var(--text); background: var(--surface-2);
    border: 1px solid var(--line); border-radius: 11px; padding: .65rem .8rem;
}
.coupon-row input:focus { outline: 2px solid var(--cyan); outline-offset: 1px; }
.btn-coupon {
    flex-shrink: 0; font-family: var(--fb); font-size: .85rem; font-weight: 600; cursor: pointer;
    color: var(--text); background: var(--elev-1); border: 1px solid var(--line);
    border-radius: 11px; padding: .65rem 1.1rem; transition: background .2s ease, border-color .2s ease;
}
.btn-coupon:hover { background: var(--elev-2); border-color: var(--border-2); }
.coupon-msg { font-size: .78rem; margin-top: .55rem; }
.coupon-msg.is-ok { color: var(--cyan); }
.coupon-msg.is-err { color: #ff8ba3; }

/* --- Avisos legibles también en modo claro --- */
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) .alert-error { background: rgba(216,19,72,.07); border-color: rgba(216,19,72,.28); color: #9A0733; }
    :root:not([data-theme="dark"]) .alert-info  { background: rgba(6,139,133,.07); border-color: rgba(6,139,133,.26); color: #04635F; }
    :root:not([data-theme="dark"]) .alert-warn  { background: rgba(169,114,10,.09); border-color: rgba(169,114,10,.28); color: #7A5207; }
    :root:not([data-theme="dark"]) .coupon-msg.is-err { color: #9A0733; }
}
:root[data-theme="light"] .alert-error { background: rgba(216,19,72,.07); border-color: rgba(216,19,72,.28); color: #9A0733; }
:root[data-theme="light"] .alert-info  { background: rgba(6,139,133,.07); border-color: rgba(6,139,133,.26); color: #04635F; }
:root[data-theme="light"] .alert-warn  { background: rgba(169,114,10,.09); border-color: rgba(169,114,10,.28); color: #7A5207; }
:root[data-theme="light"] .coupon-msg.is-err { color: #9A0733; }

/* ============================================================
   TIENDA · rejilla de productos con foto
   Preparada para crecer: se adapta sola a 1, 2, 3 o más productos.
   ============================================================ */
.catalog-grid {
    display: grid; gap: 1.6rem; max-width: 1140px; margin: 0 auto;
    /* Se centran solas y no se estiran: sirve igual para 1 producto que para 10 */
    grid-template-columns: repeat(auto-fit, minmax(288px, 352px));
    justify-content: center;
}

.catalog-card {
    display: flex; flex-direction: column; overflow: hidden;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
    transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.catalog-card:hover { border-color: var(--border-2); transform: translateY(-5px); box-shadow: 0 24px 60px var(--shadow-md); }

.catalog-media {
    position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden;
    background: linear-gradient(150deg, var(--surface-2), var(--surface));
    border-bottom: 1px solid var(--line);
}
.catalog-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.catalog-card:hover .catalog-media img { transform: scale(1.04); }
.catalog-placeholder { position: absolute; inset: 0; display: grid; place-items: center; font-size: 3.4rem; opacity: .55; }

.catalog-badge {
    position: absolute; top: .8rem; left: .8rem;
    font-size: .66rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
    background: var(--red); color: #fff; padding: .3rem .75rem; border-radius: 999px;
    box-shadow: 0 4px 16px rgba(254,44,85,.4);
}
.catalog-stock {
    position: absolute; bottom: .8rem; left: .8rem;
    font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    background: rgba(8,10,16,.72); color: #7fe0a4; border: 1px solid rgba(127,224,164,.3);
    padding: .28rem .7rem; border-radius: 999px; backdrop-filter: blur(6px);
}
.catalog-stock.is-low { color: var(--gold); border-color: rgba(255,194,75,.35); }
.catalog-stock.is-out { color: #ff9db1; border-color: rgba(254,44,85,.4); }
/* Sin inventario pero comprable: se prepara bajo pedido */
.catalog-stock.is-order { color: var(--cyan); border-color: color-mix(in srgb, var(--cyan) 40%, transparent); }

.catalog-body { display: flex; flex-direction: column; flex: 1; padding: 1.4rem 1.5rem 1.5rem; }
.catalog-title { font-family: var(--fd); font-size: 1.08rem; line-height: 1.3; margin-bottom: .3rem; }
.catalog-title a { text-decoration: none; }
.catalog-title a:hover { color: var(--cyan); }
.catalog-tag { color: var(--muted); font-size: .85rem; margin-bottom: 1rem; }
.catalog-features { list-style: none; display: grid; gap: .4rem; margin-bottom: 1.3rem; flex: 1; }
.catalog-features li { position: relative; padding-left: 1.35rem; font-size: .84rem; color: var(--muted); }
.catalog-features li::before { content: '✓'; position: absolute; left: 0; color: var(--cyan); font-weight: 700; }

.catalog-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.catalog-price { display: flex; align-items: baseline; gap: .35rem; font-family: var(--fd); }
.catalog-price small { font-family: var(--fb); font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.catalog-price b { font-size: 1.5rem; }
.catalog-price em { font-style: normal; font-family: var(--fb); font-size: .7rem; font-weight: 600; color: var(--muted); }
.catalog-cta { text-decoration: none; text-align: center; padding: .7rem 1.3rem; font-size: .88rem; background: var(--red); border-color: transparent; color: #fff; }
.catalog-cta:hover { background: #ff4368; }

/* ============================================================
   FICHA DE PRODUCTO
   ============================================================ */
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .8rem; color: var(--muted); margin-bottom: 1.6rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs span:last-child { color: var(--text); }

.product-detail { display: grid; grid-template-columns: 1.05fr .95fr; gap: 2.2rem; align-items: start; max-width: 1060px; margin: 0 auto; }

.pd-main {
    position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r);
    background: linear-gradient(150deg, var(--surface-2), var(--surface));
    border: 1px solid var(--line);
}
.pd-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-placeholder { position: absolute; inset: 0; display: grid; place-items: center; font-size: 4.5rem; opacity: .5; }
.pd-thumbs { display: flex; gap: .6rem; margin-top: .75rem; overflow-x: auto; padding-bottom: .3rem; scrollbar-width: none; }
.pd-thumbs::-webkit-scrollbar { display: none; }
.pd-thumb {
    flex: 0 0 74px; height: 60px; padding: 0; cursor: pointer; overflow: hidden;
    background: var(--surface-2); border: 1px solid var(--line); border-radius: 11px;
    transition: border-color .2s ease, opacity .2s ease; opacity: .7;
}
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumb:hover { opacity: 1; }
.pd-thumb.on { border-color: var(--cyan); opacity: 1; }

.pd-buy { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.9rem 1.8rem; }
.pd-badge {
    display: inline-block; font-size: .66rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
    background: var(--red); color: #fff; padding: .3rem .8rem; border-radius: 999px; margin-bottom: .9rem;
}
.pd-buy h1 { font-family: var(--fd); font-size: clamp(1.4rem, 3vw, 1.85rem); line-height: 1.2; margin-bottom: .45rem; }
.pd-tag { color: var(--muted); font-size: .92rem; margin-bottom: 1.2rem; }
.pd-price { display: flex; align-items: baseline; gap: .4rem; font-family: var(--fd); margin-bottom: 1.5rem; }
.pd-price small { font-family: var(--fb); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.pd-price b { font-size: 2.3rem; color: var(--text); }
.pd-price em { font-style: normal; font-family: var(--fb); font-size: .78rem; font-weight: 600; color: var(--muted); }
.pd-label { font-size: .8rem; font-weight: 600; margin-bottom: .7rem; }
.pd-cta { width: 100%; margin-top: .3rem; }
.pd-trust { list-style: none; display: grid; gap: .55rem; margin-top: 1.5rem; border-top: 1px solid var(--line); padding-top: 1.3rem; }
.pd-trust li { display: flex; align-items: center; gap: .6rem; font-size: .84rem; color: var(--muted); }

.pd-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; max-width: 1060px; margin: 2.4rem auto 0; }
.pd-desc { color: var(--muted); font-size: .92rem; line-height: 1.7; }
.pd-desc a { color: var(--cyan); }

@media (max-width: 900px) {
    .product-detail { grid-template-columns: 1fr; gap: 1.6rem; }
}

/* ============================================================
   PROCESO DEL PEDIDO · barra de pasos numerada
   ============================================================ */
.stepper {
    list-style: none; display: flex; gap: 0; margin: 1.6rem 0 .4rem;
    counter-reset: step; overflow-x: auto; scrollbar-width: none; padding-bottom: .4rem;
}
.stepper::-webkit-scrollbar { display: none; }
.step {
    position: relative; flex: 1 1 0; min-width: 116px; text-align: center;
    padding-top: 2.9rem;
}
/* La línea que une los pasos */
.step::before, .step::after {
    content: ''; position: absolute; top: 1.15rem; height: 4px; background: var(--elev-3); border-radius: 2px;
}
.step::before { left: 0;  width: 50%; }
.step::after  { left: 50%; width: 50%; }
.step:first-child::before, .step:last-child::after { display: none; }
.step.is-done::before, .step.is-done::after, .step.is-now::before { background: var(--ok, #27b667); }

.step-dot {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 34px; height: 34px; display: grid; place-items: center; z-index: 2;
    border-radius: 50%; font-family: var(--fd); font-weight: 700; font-size: .92rem;
    background: var(--surface-2); color: var(--muted);
    box-shadow: 0 0 0 4px var(--bg);
    transition: background .3s ease, color .3s ease;
}
.step-dot svg { width: 16px; height: 16px; }
.step.is-done .step-dot { background: var(--ok, #27b667); color: #fff; }
.step.is-now  .step-dot { background: var(--ok, #27b667); color: #fff; box-shadow: 0 0 0 4px var(--bg), 0 0 0 8px rgba(39,182,103,.22); }
.step.is-now  .step-dot::after {
    content: ''; position: absolute; inset: -4px; border-radius: 50%;
    border: 2px solid rgba(39,182,103,.5); animation: stepPulse 1.9s ease-out infinite;
}
@keyframes stepPulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.55); opacity: 0; } }

.step-label { display: block; font-size: .82rem; font-weight: 600; padding: 0 .35rem; }
.step.is-todo .step-label { color: var(--muted); }
.step-help { display: block; font-size: .7rem; color: var(--muted); margin-top: .25rem; padding: 0 .35rem; line-height: 1.4; }

@media (max-width: 560px) {
    .step { min-width: 104px; }
    .step-help { display: none; }
}

/* Aviso de tiempo estimado */
.eta-note {
    display: flex; align-items: center; gap: .6rem; margin-top: 1.2rem;
    background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px;
    padding: .8rem 1rem; font-size: .85rem; color: var(--muted);
}
.eta-note b { color: var(--text); }

/* Historial del proceso */
.timeline { list-style: none; display: grid; gap: .8rem; margin-top: 1.2rem; }
.timeline li { display: flex; gap: .8rem; font-size: .85rem; color: var(--muted); }
.timeline time { flex-shrink: 0; color: var(--text); font-variant-numeric: tabular-nums; font-size: .8rem; }

/* ============================================================
   ENTRAR / CREAR CUENTA
   ============================================================ */
.auth-card { max-width: 420px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 2rem 1.9rem; }
.auth-tabs { display: flex; gap: .3rem; background: var(--surface-2); border-radius: 999px; padding: .3rem; margin-bottom: 1.4rem; }
.auth-tabs a {
    flex: 1; text-align: center; text-decoration: none; color: var(--muted);
    font-size: .87rem; font-weight: 600; padding: .55rem; border-radius: 999px;
    transition: background .2s ease, color .2s ease;
}
.auth-tabs a.on { background: var(--surface); color: var(--text); box-shadow: 0 2px 10px var(--shadow-sm); }
.auth-lead { color: var(--muted); font-size: .87rem; line-height: 1.6; margin-bottom: 1.4rem; }
.auth-foot { color: var(--muted); font-size: .77rem; line-height: 1.6; margin-top: 1.3rem; border-top: 1px solid var(--line); padding-top: 1.1rem; }
.btn-google {
    display: flex; align-items: center; justify-content: center; gap: .7rem; width: 100%;
    text-decoration: none; font-family: var(--fb); font-size: .92rem; font-weight: 600;
    color: var(--text); background: var(--surface-2); border: 1px solid var(--line);
    border-radius: 999px; padding: .8rem; transition: background .2s ease, border-color .2s ease;
}
.btn-google:hover { background: var(--elev-1); border-color: var(--border-2); }
.auth-or { display: flex; align-items: center; gap: .8rem; margin: 1.1rem 0; color: var(--muted); font-size: .76rem; }
.auth-or::before, .auth-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ============================================================
   PANEL DEL CLIENTE
   ============================================================ */
.acc-head { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.acc-id { display: flex; align-items: center; gap: 1rem; }
.acc-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid var(--line); }
.acc-initial { display: grid; place-items: center; background: var(--red); color: #fff; font-family: var(--fd); font-size: 1.3rem; border: 0; }
.acc-id h1 { font-family: var(--fd); font-size: clamp(1.3rem, 3vw, 1.7rem); line-height: 1.2; }
.acc-id p { color: var(--muted); font-size: .85rem; }
.acc-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.btn-ghost-sm {
    display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; cursor: pointer;
    font-family: var(--fb); font-size: .82rem; font-weight: 600; color: var(--text);
    background: var(--elev-1); border: 1px solid var(--line); border-radius: 999px; padding: .55rem 1.1rem;
    transition: background .2s ease, border-color .2s ease;
}
.btn-ghost-sm:hover { background: var(--elev-2); border-color: var(--border-2); }

.acc-section { font-family: var(--fd); font-size: 1.05rem; margin: 2rem 0 1rem; display: flex; align-items: center; gap: .6rem; }
.acc-section span { font-family: var(--fb); font-size: .7rem; font-weight: 700; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: .12rem .55rem; }

.acc-order { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem 1.6rem; margin-bottom: 1.2rem; }
.acc-order-head { display: flex; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.acc-order-media { width: 64px; height: 64px; flex-shrink: 0; border-radius: 13px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; font-size: 1.6rem; }
.acc-order-media img { width: 100%; height: 100%; object-fit: cover; }
.acc-order-id { flex: 1; min-width: 180px; }
.acc-order-id h2 { font-family: var(--fd); font-size: 1rem; margin-bottom: .2rem; }
.acc-order-id p { font-size: .84rem; color: var(--muted); display: flex; align-items: center; gap: .4rem; }
.acc-ref { font-size: .76rem !important; margin-top: .25rem; }
.acc-ref code { background: var(--surface-2); border-radius: 5px; padding: .1rem .4rem; }
.acc-order-amount { text-align: right; display: grid; gap: .45rem; justify-items: end; }
.acc-order-amount b { font-family: var(--fd); font-size: 1.15rem; }

.acc-creds { margin-top: 1.2rem; }
.acc-creds-title { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .3rem; }
.acc-timeline { margin-top: 1rem; }
.acc-timeline summary { cursor: pointer; font-size: .82rem; color: var(--muted); }
.acc-timeline summary:hover { color: var(--text); }
.acc-order-foot { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.3rem; border-top: 1px solid var(--line); padding-top: 1.1rem; }

.acc-empty { text-align: center; max-width: 460px; margin: 0 auto; }
.acc-empty-icon { font-size: 2.6rem; display: block; margin-bottom: .6rem; }
.acc-empty h2 { font-family: var(--fd); font-size: 1.15rem; margin-bottom: .5rem; }
.acc-empty p { color: var(--muted); font-size: .9rem; margin-bottom: 1.4rem; }
.acc-profile { margin-top: 2.4rem; }
.acc-profile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.pay-stripe .logo { background: #635bff; color: #fff; }

/* =====================================================================
   PÁGINA DE CONTACTO
   ===================================================================== */
.contact-head { max-width: 720px; margin: 0 auto 2.4rem; text-align: center; }
.contact-head h1 { font-family: var(--fd); font-weight: 700; font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.15; margin-bottom: .9rem; }
.contact-lead { color: var(--muted); font-size: .98rem; line-height: 1.65; }
.contact-lead b { color: var(--text); font-weight: 600; }

.contact-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 1.6rem; max-width: 1000px; margin: 0 auto; align-items: start; }
.contact-form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.9rem 1.8rem; }

.contact-form .field { display: grid; gap: .4rem; margin-bottom: 1.05rem; font-size: .82rem; font-weight: 600; }
.contact-form .field input,
.contact-form .field select,
.contact-form .field textarea {
    font-family: var(--fb); font-size: .95rem; font-weight: 400; color: var(--text);
    background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px;
    padding: .8rem .9rem; width: 100%;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.contact-form .field textarea { resize: vertical; min-height: 130px; line-height: 1.6; }
.contact-form .field input:focus,
.contact-form .field select:focus,
.contact-form .field textarea:focus {
    outline: none; border-color: var(--cyan);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--cyan) 18%, transparent);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.contact-form .cta-button { width: 100%; justify-content: center; margin-top: .3rem; }
.contact-legal { color: var(--muted); font-size: .76rem; line-height: 1.55; margin-top: 1rem; text-align: center; }
.contact-legal a { color: var(--cyan); }
.alert-list { list-style: none; display: grid; gap: .35rem; }
/* Trampa antirrobots: invisible para las personas, presente para los bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-ok { display: flex; gap: 1rem; align-items: flex-start; }
.contact-ok-icon {
    width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
    font-size: 1.2rem; font-weight: 700; color: var(--cyan);
    background: color-mix(in srgb, var(--cyan) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--cyan) 40%, transparent);
}
.contact-ok h2 { font-family: var(--fd); font-size: 1.05rem; margin-bottom: .5rem; }
.contact-ok p { color: var(--muted); font-size: .9rem; line-height: 1.6; margin-bottom: 1.1rem; }

/* --- columna derecha --- */
.contact-side { display: grid; gap: .7rem; }
.contact-side-title { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .2rem; }
.contact-chan {
    display: flex; align-items: center; gap: .85rem; text-decoration: none; color: inherit;
    background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: .95rem 1.1rem;
    transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.contact-chan:hover { border-color: var(--border-2); transform: translateX(3px); }
.chan-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 1.1rem; flex-shrink: 0; background: var(--surface-2); border: 1px solid var(--line); }
.chan-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.chan-text b { font-size: .9rem; font-weight: 600; }
.chan-text span { font-size: .77rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.chan-go { margin-left: auto; color: var(--muted); flex-shrink: 0; transition: transform .2s ease, color .2s ease; }
.contact-chan:hover .chan-go { color: var(--cyan); transform: translateX(3px); }

.contact-note { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem 1.2rem 1.3rem; margin-top: .5rem; }
.contact-note h3 { font-family: var(--fd); font-size: .92rem; margin-bottom: .5rem; }
.contact-note p { color: var(--muted); font-size: .84rem; line-height: 1.6; margin-bottom: 1rem; }
.contact-note .cta-button, .contact-note .cta-ghost { font-size: .87rem; padding: .7rem 1.2rem; }

@media (max-width: 880px) {
    .contact-grid { grid-template-columns: 1fr; max-width: 560px; }
    .contact-form-card { padding: 1.5rem 1.3rem; }
}
@media (max-width: 520px) {
    .field-row { grid-template-columns: 1fr; }
}

/* --- Ficha de producto: contacto antes de pagar --- */
.pd-ask {
    margin-top: 1.2rem; padding: 1.1rem 1.2rem;
    background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px;
}
.pd-ask-title { font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.pd-ask-text { color: var(--muted); font-size: .82rem; line-height: 1.55; margin-bottom: .9rem; }
.pd-ask-actions { display: flex; gap: .55rem; flex-wrap: wrap; }
.pd-ask-btn {
    display: inline-flex; align-items: center; gap: .45rem; flex: 1 1 auto; justify-content: center;
    font-size: .84rem; font-weight: 600; color: var(--text); text-decoration: none;
    background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .6rem 1rem;
    transition: border-color .2s ease, transform .2s ease;
}
.pd-ask-btn:hover { border-color: var(--border-2); transform: translateY(-1px); }
.pd-ask-wa { border-color: color-mix(in srgb, var(--cyan) 35%, transparent); }
