/* ==========================================================================
   Interfaz de la tienda publica (includes/header.php + footer.php + assets/js/store-ui.js):
   menu con textos claros, carrito lateral, barra inferior en celular y "volver arriba".
   ========================================================================== */

:root {
    --ui-bg: #060d1f;
    --ui-surface: #0c1529;
    --ui-surface-2: #111d36;
    --ui-border: rgba(148, 163, 184, .16);
    --ui-border-strong: rgba(148, 163, 184, .3);
    --ui-text: #e6ecf6;
    --ui-muted: #93a0b8;
    --ui-primary: #1fd8ff;
    --ui-primary-ink: #03121f;
    --ui-ok: #34d399;
    --ui-warn: #fbbf24;
    --ui-danger: #fb7185;
    --ui-ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Accesibilidad: saltar al contenido y foco visible con teclado ---------- */
.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1000;
    padding: 12px 18px;
    border-radius: 12px;
    background: var(--ui-primary);
    color: var(--ui-primary-ink);
    font-family: "Manrope", system-ui, sans-serif;
    font-weight: 800;
    text-decoration: none;
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
    outline: 3px solid #ffffff;
    outline-offset: 2px;
}

/* El contenido recibe el foco al saltar, pero no necesita marco. */
.public-site main#contenido:focus {
    outline: none;
}

/* Un mismo anillo de foco en toda la tienda (solo al navegar con teclado, no al hacer clic).
   !important porque varias reglas antiguas de styles.css quitan el outline al enfocar. */
.public-site :is(a, button, input, select, textarea, summary, [tabindex="0"]):focus-visible {
    outline: 3px solid var(--ui-primary) !important;
    outline-offset: 3px !important;
}

/* ==========================================================================
   Encabezado de la tienda (includes/header.php + assets/js/store-header.js). Prefijo hd-.
   Clases propias: no depende de las ~90 reglas antiguas .topbar/.nav de styles.css.
   - Computadora: marca | menu en "pastilla" | moneda, carrito, saldo y cuenta.
   - Hasta 1100 px (tablet): el menu pasa al boton "Menu" con un panel desplegable.
   - Hasta 760 px (celular): solo marca, moneda, carrito y "Menu"; el panel suma la cuenta y el saldo.
   ========================================================================== */
.hd-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.hd {
    --hd-width: min(1280px, calc(100% - 32px));
    --hd-control: 42px;
    position: sticky;
    top: 0;
    z-index: 60;
    padding-top: 14px;
    font-family: "Manrope", system-ui, sans-serif;
    transition: padding .25s var(--ui-ease);
}

.hd-bar {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    width: var(--hd-width);
    min-height: 72px;
    margin: 0 auto;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 22px;
    /* Borde con degradado de la marca (cian → gris → rosa) y vidrio oscuro por dentro */
    background:
        linear-gradient(rgba(8, 16, 36, .8), rgba(8, 16, 36, .8)) padding-box,
        linear-gradient(115deg, rgba(31, 216, 255, .42), rgba(148, 163, 184, .14) 38%, rgba(148, 163, 184, .14) 62%, rgba(255, 62, 181, .34)) border-box;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .05);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    transition: min-height .25s var(--ui-ease), padding .25s var(--ui-ease), box-shadow .25s ease;
}

/* Al bajar: mas delgado y mas opaco (el contenido no se lee a traves) */
.hd.is-scrolled {
    padding-top: 8px;
}

.hd.is-scrolled .hd-bar {
    min-height: 60px;
    padding-top: 6px;
    padding-bottom: 6px;
    background:
        linear-gradient(rgba(6, 13, 31, .94), rgba(6, 13, 31, .94)) padding-box,
        linear-gradient(115deg, rgba(31, 216, 255, .42), rgba(148, 163, 184, .14) 38%, rgba(148, 163, 184, .14) 62%, rgba(255, 62, 181, .34)) border-box;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .45);
}

/* ---------- Marca ---------- */
.hd-brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding-right: 4px;
    border-radius: 16px;
    color: #ffffff;
    text-decoration: none;
}

.hd-logo {
    display: grid;
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    overflow: hidden;
    place-items: center;
    border: 1px solid rgba(148, 163, 184, .26);
    border-radius: 14px;
    background: var(--ui-surface);
    color: #ffffff;
    font-family: "Poppins", sans-serif;
    font-weight: 900;
    box-shadow: 0 8px 20px rgba(31, 216, 255, .14);
    transition: width .25s var(--ui-ease), height .25s var(--ui-ease), transform .25s var(--ui-ease);
}

.hd-brand:hover .hd-logo {
    transform: rotate(-4deg) scale(1.04);
}

.hd-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hd.is-scrolled .hd-logo {
    width: 40px;
    height: 40px;
}

.hd-brand-text {
    display: grid;
    min-width: 0;
    line-height: 1.2;
}

.hd-brand-text strong {
    overflow: hidden;
    color: #ffffff;
    font-family: "Poppins", sans-serif;
    font-size: 1.06rem;
    font-weight: 800;
    letter-spacing: -.01em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hd-brand-text small {
    max-height: 20px;
    overflow: hidden;
    color: var(--ui-muted);
    font-size: .74rem;
    font-weight: 600;
    white-space: nowrap;
    transition: max-height .25s var(--ui-ease), opacity .2s ease;
}

.hd.is-scrolled .hd-brand-text small {
    max-height: 0;
    opacity: 0;
}

/* ---------- Menu principal (una "pastilla" con las secciones) ---------- */
.hd-nav {
    display: flex;
    flex: 0 1 auto;
    gap: 2px;
    min-width: 0;
    margin: 0 auto;
    padding: 4px;
    border: 1px solid rgba(148, 163, 184, .12);
    border-radius: 999px;
    background: rgba(255, 255, 255, .03);
}

.hd-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 16px;
    border-radius: 999px;
    color: var(--ui-muted);
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.hd-nav a:hover {
    background: rgba(255, 255, 255, .06);
    color: #ffffff;
}

.hd-nav a.active {
    background: linear-gradient(135deg, rgba(31, 216, 255, .2), rgba(255, 62, 181, .14));
    box-shadow: inset 0 0 0 1px rgba(31, 216, 255, .28);
    color: #ffffff;
}

/* ---------- Acciones ---------- */
.hd-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.hd-nav + .hd-actions {
    margin-left: 0;
}

/* Soles / dolares */
.hd-currency {
    display: inline-flex;
    flex: 0 0 auto;
    padding: 4px;
    border: 1px solid rgba(148, 163, 184, .2);
    border-radius: 999px;
    background: rgba(255, 255, 255, .04);
}

.hd-currency button {
    min-width: 40px;
    height: 32px;
    padding: 0 10px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--ui-muted);
    font: inherit;
    font-size: .8rem;
    font-weight: 800;
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease;
}

.hd-currency button:hover {
    color: #ffffff;
}

.hd-currency button.is-active {
    background: linear-gradient(135deg, #1fd8ff, #5eead4);
    color: #03121f;
    box-shadow: 0 6px 14px rgba(31, 216, 255, .28);
}

/* Botones Carrito / Ingresar / cuenta / Menu */
.hd-btn {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: var(--hd-control);
    height: var(--hd-control);
    padding: 0 14px 0 12px;
    border: 1px solid rgba(148, 163, 184, .2);
    border-radius: 999px;
    background: rgba(255, 255, 255, .04);
    color: #ffffff;
    font: inherit;
    font-size: .86rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease, transform .18s var(--ui-ease);
}

.hd-btn:hover,
.hd-btn.active,
.hd-btn.is-current {
    border-color: rgba(31, 216, 255, .55);
    background: rgba(31, 216, 255, .08);
    color: #ffffff;
}

.hd-btn:active {
    transform: scale(.97);
}

.hd-btn-icon {
    position: relative;
    display: inline-grid;
    place-items: center;
    font-size: 1rem;
}

/* Con texto visible, espacio para el numero del carrito (no tapa "Carrito") */
.hd-cart {
    gap: 16px;
}

.hd-login {
    border-color: transparent;
    background: linear-gradient(135deg, #1fd8ff, #5eead4);
    color: #03121f;
    box-shadow: 0 8px 18px rgba(31, 216, 255, .25);
}

.hd-login:hover {
    border-color: transparent;
    background: linear-gradient(135deg, #74e7ff, #99f6e4);
    color: #03121f;
}

/* Numero de productos del carrito */
.hd .cart-count {
    position: absolute;
    top: -10px;
    right: -12px;
    display: none;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    place-items: center;
    border: 2px solid #0a1430;
    border-radius: 999px;
    background: #facc15;
    color: #111827;
    font-size: .68rem;
    font-weight: 900;
    line-height: 1;
}

.hd .cart-count.has-items {
    display: grid;
}

.hd .cart-count.is-bumped {
    animation: hd-bump .45s var(--ui-ease);
}

@keyframes hd-bump {
    40% { transform: scale(1.35); }
}

/* Saldo de la cuenta (cliente con sesion): lleva a Mi saldo */
.hd-balance {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    height: var(--hd-control);
    padding: 0 14px;
    border: 1px solid rgba(52, 211, 153, .38);
    border-radius: 999px;
    background: rgba(52, 211, 153, .1);
    color: #ffffff;
    font-size: .86rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color .18s ease, background-color .18s ease;
}

.hd-balance i {
    color: var(--ui-ok);
}

.hd-balance:hover {
    border-color: var(--ui-ok);
    background: rgba(52, 211, 153, .18);
    color: #ffffff;
}

/* Saldo en dolares (si tiene): junto al de soles cuando hay espacio; siempre esta en el menu de la cuenta */
.hd-balance-usd {
    color: #a7f3d0;
}

/* Cuenta del cliente */
.hd .account-trigger {
    gap: 8px;
    padding: 0 12px 0 4px;
    background: linear-gradient(135deg, rgba(255, 62, 181, .14), rgba(31, 216, 255, .1));
}

.hd .account-trigger .account-avatar {
    width: 34px;
    height: 34px;
}

/* Boton "Menu" (tablet y celular): tres lineas que se vuelven una X */
.hd-menu-btn {
    display: none;
    width: var(--hd-control);
    padding: 0;
}

.hd-menu-icon {
    display: grid;
    gap: 4px;
    width: 18px;
}

.hd-menu-icon i {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .22s var(--ui-ease), opacity .18s ease;
}

.hd-menu-btn.is-open {
    border-color: rgba(31, 216, 255, .55);
    background: rgba(31, 216, 255, .12);
}

.hd-menu-btn.is-open .hd-menu-icon i:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.hd-menu-btn.is-open .hd-menu-icon i:nth-child(2) {
    opacity: 0;
}

.hd-menu-btn.is-open .hd-menu-icon i:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Panel del menu: se abre bajo la barra, alineado a la derecha (en celular ocupa todo el ancho) */
.hd-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: calc((100% - var(--hd-width)) / 2);
    z-index: 5;
    display: grid;
    gap: 6px;
    width: min(340px, var(--hd-width));
    max-height: calc(100vh - 120px);
    padding: 8px;
    overflow-y: auto;
    border: 1px solid rgba(148, 163, 184, .2);
    border-radius: 20px;
    background: rgba(10, 18, 38, .98);
    color: var(--ui-text);
    box-shadow: 0 24px 60px rgba(2, 8, 23, .6), inset 0 1px 0 rgba(255, 255, 255, .06);
    opacity: 0;
    transform: translateY(-6px) scale(.98);
    transform-origin: top right;
    transition: opacity .16s ease, transform .16s ease;
}

.hd-panel.is-open {
    opacity: 1;
    transform: none;
}

.hd-panel[hidden] {
    display: none;
}

.hd-panel-nav,
.hd-panel-account {
    display: grid;
    gap: 2px;
}

.hd-panel-account {
    padding-top: 6px;
    border-top: 1px solid rgba(148, 163, 184, .14);
}

.hd-panel a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 6px 10px;
    border-radius: 14px;
    color: var(--ui-text);
    font-size: .92rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
}

.hd-panel a > i {
    display: grid;
    flex: 0 0 36px;
    height: 36px;
    place-items: center;
    border-radius: 11px;
    background: rgba(255, 255, 255, .06);
    color: #5eead4;
    font-size: .9rem;
}

.hd-panel a > span {
    display: grid;
    flex: 1;
    min-width: 0;
}

.hd-panel a small {
    overflow: hidden;
    color: var(--ui-muted);
    font-size: .76rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hd-panel a:hover,
.hd-panel a.active {
    background: rgba(94, 234, 212, .09);
    color: #ffffff;
}

.hd-panel a.active > i {
    background: linear-gradient(135deg, #1fd8ff, #5eead4);
    color: #03121f;
}

.hd-panel a.is-balance > i {
    color: var(--ui-ok);
}

.hd-panel a.is-logout > i {
    color: var(--ui-danger);
}

.hd-panel a.is-login {
    justify-content: center;
    margin-top: 2px;
    background: linear-gradient(135deg, #1fd8ff, #5eead4);
    color: #03121f;
}

.hd-panel a.is-login > span {
    flex: 0 0 auto;
}

.hd-panel a.is-login > i {
    flex-basis: auto;
    width: auto;
    height: auto;
    background: none;
    color: inherit;
}

.hd-panel .account-badge {
    flex: 0 0 auto;
}

/* ---------- Pantallas medianas: primero se acortan los textos ---------- */
@media (max-width: 1440px) {
    /* Con sesion la barra suma el saldo y la cuenta: la frase bajo el nombre se oculta */
    .hd:has(.hd-balance) .hd-brand-text small {
        display: none;
    }
}

@media (max-width: 1240px) {
    .hd-brand-text small {
        display: none;
    }

    .hd-nav a {
        padding: 0 13px;
    }

    /* El saldo en dolares vuelve a mostrarse en tablet, cuando el menu pasa al boton */
    .hd-balance-usd {
        display: none;
    }
}

@media (max-width: 1180px) {
    .hd-cart .hd-btn-text {
        display: none;
    }

    .hd-cart {
        padding: 0;
    }
}

/* ---------- Tablet: el menu pasa al boton "Menu" ---------- */
@media (max-width: 1100px) {
    .hd-nav {
        display: none;
    }

    .hd-nav + .hd-actions {
        margin-left: auto;
    }

    .hd-menu-btn {
        display: inline-flex;
    }

    .hd-balance-usd {
        display: inline;
    }

    .hd-panel-account {
        display: none;
    }

    .hd .account-caret {
        display: none;
    }

    .hd .account-trigger {
        padding: 0 4px;
    }
}

@media (min-width: 1101px) {
    .hd-panel {
        display: none;
    }
}

/* ---------- Celular: marca, moneda, carrito y "Menu" (la cuenta y el saldo van en el panel) ---------- */
@media (max-width: 760px) {
    .hd {
        --hd-width: calc(100% - 20px);
        --hd-control: 40px;
        position: relative;
        padding-top: 10px;
    }

    .hd-bar {
        gap: 8px;
        min-height: 60px;
        padding: 8px 8px 8px 10px;
        border-radius: 18px;
    }

    .hd-logo {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .hd-brand {
        gap: 10px;
    }

    .hd-brand-text strong {
        font-size: 1rem;
    }

    .hd-login,
    .hd-account,
    .hd-balance {
        display: none;
    }

    .hd-actions {
        gap: 6px;
    }

    .hd-btn {
        width: var(--hd-control);
        padding: 0;
    }

    .hd-btn-text {
        display: none;
    }

    .hd-currency {
        padding: 3px;
    }

    .hd-currency button {
        min-width: 34px;
        height: 30px;
        padding: 0 7px;
    }

    .hd-panel {
        left: 10px;
        right: 10px;
        width: auto;
        border-radius: 18px;
        transform-origin: top center;
    }

    .hd-panel-account {
        display: grid;
    }

    /* En celular la cuenta va en el panel y en la barra inferior: la regla antigua ".public-site .account-menu" la mostraba */
    .public-site .hd .hd-account {
        display: none;
    }
}

/* Con el selector de idioma (ES) la barra ya no alcanza para el nombre: hasta 520 px queda solo el logo
   (antes 380 px; en celulares de 390-430 px el boton del menu salia de la pantalla, 2026-10-10). */
@media (max-width: 520px) {
    .hd-brand-text {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hd-panel,
    .hd-menu-icon i,
    .hd-logo {
        transition: none;
    }
}

/* Teclas del buscador (ventana que se abre con "/" o Ctrl+K) */
.sx kbd {
    display: inline-grid;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    place-items: center;
    border: 1px solid rgba(148, 163, 184, .3);
    border-bottom-width: 2px;
    border-radius: 7px;
    background: rgba(255, 255, 255, .04);
    color: var(--ui-muted);
    font-family: inherit;
    font-size: .74rem;
    font-weight: 800;
}

/* ==========================================================================
   Buscador (ventana con sugerencias). Prefijo sx-.
   ========================================================================== */
html.sx-lock {
    overflow: hidden;
}

.sx {
    width: min(640px, calc(100vw - 32px));
    max-height: min(640px, calc(100dvh - 100px));
    margin: 76px auto auto;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, .3);
    border-radius: 20px;
    background: linear-gradient(180deg, #0e1b37, #0a1328);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
    color: var(--ui-text);
    font-family: "Manrope", system-ui, sans-serif;
}

.sx[open] {
    display: flex;
    flex-direction: column;
    animation: sx-in .18s var(--ui-ease);
}

.sx::backdrop {
    background: rgba(3, 8, 20, .66);
    backdrop-filter: blur(4px);
}

@keyframes sx-in {
    from { opacity: 0; transform: translateY(-8px) scale(.99); }
    to { opacity: 1; transform: none; }
}

.sx h2 {
    margin: 0;
}

.sx-form {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px 12px 18px;
    border-bottom: 1px solid rgba(148, 163, 184, .18);
    transition: box-shadow .18s ease;
}

.sx-form:focus-within {
    box-shadow: inset 0 -2px 0 var(--ui-primary);
}

.sx-form-icon {
    color: var(--ui-primary);
    font-size: 1.05rem;
}

.sx-form input {
    flex: 1;
    min-width: 0;
    height: 46px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: #ffffff;
    font: inherit;
    font-size: 1.08rem;
    font-weight: 600;
}

/* El marco de foco lo da la linea inferior del formulario (arriba) */
.public-site .sx-form input:focus-visible {
    outline: none !important;
}

.sx-form input::placeholder {
    color: #8290a8;
}

.sx-form input::-webkit-search-cancel-button {
    filter: invert(1) opacity(.6);
}

.sx-close {
    display: grid;
    min-width: 44px;
    height: 32px;
    padding: 0 8px;
    place-items: center;
    border: 1px solid rgba(148, 163, 184, .3);
    border-bottom-width: 2px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .04);
    color: var(--ui-muted);
    font: inherit;
    font-size: .76rem;
    font-weight: 800;
    cursor: pointer;
}

.sx-close:hover {
    color: #ffffff;
}

/* En pantallas tactiles no hay tecla Esc: el boton dice "Cerrar" */
.sx-close-text {
    display: none;
}

@media (hover: none), (max-width: 760px) {
    .sx-close-key {
        display: none;
    }

    .sx-close-text {
        display: inline;
    }
}

.sx-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 8px 10px 14px;
    overscroll-behavior: contain;
}

.sx-label {
    margin: 10px 10px 6px;
    color: var(--ui-muted);
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.sx-list {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sx-option {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 8px 10px;
    border-radius: 14px;
    cursor: pointer;
}

.sx-option[aria-selected="true"] {
    background: rgba(31, 216, 255, .1);
    box-shadow: inset 0 0 0 1px rgba(31, 216, 255, .4);
}

.sx-thumb {
    position: relative;
    display: grid;
    width: 46px;
    height: 46px;
    overflow: hidden;
    place-items: center;
    border-radius: 12px;
    background: #172544;
}

.sx-thumb::before {
    content: attr(data-initial);
    color: var(--ui-muted);
    font-family: "Poppins", sans-serif;
    font-weight: 800;
}

.sx-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sx-info {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.sx-info strong {
    overflow: hidden;
    color: #ffffff;
    font-size: .95rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sx-info mark {
    background: none;
    color: var(--ui-primary);
}

.sx-info small {
    color: var(--ui-muted);
    font-size: .8rem;
}

.sx-side {
    display: grid;
    justify-items: end;
    gap: 4px;
}

.sx-side b {
    color: #ffffff;
    font-size: .92rem;
    font-weight: 800;
    white-space: nowrap;
}

.sx-badge {
    padding: 2px 8px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 800;
    white-space: nowrap;
}

.sx-badge.is-ok { background: rgba(52, 211, 153, .14); color: #6ee7b7; }
.sx-badge.is-soon { background: rgba(148, 163, 184, .14); color: var(--ui-muted); }

.sx-option.sx-all {
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 48px;
    margin-top: 4px;
    color: var(--ui-primary);
    font-size: .9rem;
    font-weight: 800;
}

.sx-empty {
    margin: 8px 10px;
    padding: 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .03);
    color: var(--ui-text);
    font-size: .92rem;
}

.sx-cats {
    margin-top: 6px;
}

.sx-cat-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 10px;
}

.sx-cat-list a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 999px;
    color: var(--ui-text);
    font-size: .86rem;
    font-weight: 700;
    text-decoration: none;
}

.sx-cat-list a i {
    color: var(--ui-primary);
}

.sx-cat-list a:hover {
    border-color: var(--ui-primary);
    color: #ffffff;
}

.sx-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    padding: 10px 18px;
    border-top: 1px solid rgba(148, 163, 184, .18);
    color: var(--ui-muted);
    font-size: .76rem;
}

.sx-foot kbd {
    min-width: 22px;
    height: 22px;
    margin-right: 3px;
}

@media (hover: none), (max-width: 760px) {
    .sx-foot { display: none; }
}

@media (max-width: 760px) {
    /* En celular el buscador ocupa la pantalla, como en las apps */
    .sx {
        width: 100%;
        max-width: 100%;
        height: 100dvh;
        max-height: 100dvh;
        margin: 0;
        border: 0;
        border-radius: 0;
    }

    .sx-form input {
        font-size: 16px; /* evita que el iPhone acerque la pantalla al escribir */
    }

    .sx-option {
        grid-template-columns: 44px minmax(0, 1fr) auto;
        gap: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hd,
    .hd-bar,
    .hd-logo,
    .hd-brand-text small {
        transition: none;
    }

    .sx[open],
    .hd .cart-count.is-bumped {
        animation: none;
    }
}

/* ---------- Carrito lateral ---------- */
.mc {
    position: fixed;
    inset: 0;
    z-index: 200;
}

.mc[hidden] {
    display: none !important;
}

.mc-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 18, .62);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity .25s var(--ui-ease);
}

.mc-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    width: min(430px, 100%);
    border-left: 1px solid var(--ui-border-strong);
    background: linear-gradient(180deg, #0b1630, var(--ui-bg));
    color: var(--ui-text);
    box-shadow: -30px 0 60px rgba(0, 0, 0, .45);
    font-family: "Manrope", system-ui, sans-serif;
    transform: translateX(104%);
    transition: transform .28s var(--ui-ease);
    outline: none;
}

.mc.is-open .mc-backdrop { opacity: 1; }
.mc.is-open .mc-panel { transform: translateX(0); }

body.mc-open {
    overflow: hidden;
}

.mc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px 12px;
}

.mc-head h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: #ffffff;
    font-family: "Poppins", sans-serif;
    font-size: 1.15rem;
}

.mc-head h2 i {
    color: var(--ui-primary);
}

.mc-count {
    color: var(--ui-muted);
    font-size: .9rem;
    font-weight: 600;
}

.mc-close {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--ui-border);
    border-radius: 12px;
    background: var(--ui-surface);
    color: var(--ui-text);
    cursor: pointer;
}

.mc-close:hover { border-color: var(--ui-border-strong); }

/* Pasos de la compra: el cliente siempre sabe en que parte esta */
.mc-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin: 0 20px 12px;
    padding: 0;
    list-style: none;
}

.mc-steps li {
    display: grid;
    justify-items: center;
    gap: 4px;
    color: var(--ui-muted);
    font-size: .76rem;
    font-weight: 700;
    text-align: center;
}

.mc-steps li span {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border: 1px solid var(--ui-border-strong);
    border-radius: 50%;
    font-size: .72rem;
}

.mc-steps li.is-current {
    color: #ffffff;
}

.mc-steps li.is-current span {
    border-color: var(--ui-primary);
    background: var(--ui-primary);
    color: var(--ui-primary-ink);
}

.mc-notice {
    margin: 0 20px 10px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: .85rem;
    font-weight: 700;
}

.mc-notice.is-ok { background: rgba(52, 211, 153, .14); color: #6ee7b7; }
.mc-notice.is-warning { background: rgba(251, 191, 36, .14); color: #fcd34d; }
.mc-notice.is-info { background: rgba(148, 163, 184, .12); color: var(--ui-text); }

.mc-body {
    flex: 1;
    overflow-y: auto;
    padding: 0 20px 16px;
    overscroll-behavior: contain;
}

.mc-items {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mc-item {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--ui-border);
    border-radius: 16px;
    background: var(--ui-surface);
}

.mc-item.is-new {
    border-color: rgba(52, 211, 153, .55);
    box-shadow: 0 0 0 3px rgba(52, 211, 153, .12);
    animation: mc-pop .5s var(--ui-ease);
}

.mc-item.is-off {
    opacity: .7;
}

@keyframes mc-pop {
    from { transform: scale(.97); }
    to { transform: scale(1); }
}

.mc-thumb {
    display: grid;
    width: 64px;
    height: 64px;
    overflow: hidden;
    place-items: center;
    border-radius: 12px;
    background: var(--ui-surface-2);
    color: var(--ui-muted);
    font-weight: 800;
}

.mc-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mc-info {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.mc-info strong {
    overflow: hidden;
    color: #ffffff;
    font-size: .92rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mc-info small {
    color: var(--ui-muted);
    font-size: .76rem;
}

.mc-qty {
    display: inline-flex;
    align-items: center;
    width: max-content;
    margin-top: 4px;
    border: 1px solid var(--ui-border-strong);
    border-radius: 999px;
}

.mc-qty button {
    width: 30px;
    height: 28px;
    border: 0;
    background: transparent;
    color: var(--ui-text);
    font-size: 1rem;
    cursor: pointer;
}

.mc-qty button:disabled {
    opacity: .35;
    cursor: not-allowed;
}

.mc-qty output {
    min-width: 22px;
    font-size: .86rem;
    font-weight: 800;
    text-align: center;
}

.mc-side {
    display: grid;
    justify-items: end;
    gap: 8px;
}

.mc-side b {
    color: #ffffff;
    font-size: .92rem;
    white-space: nowrap;
}

.mc-remove {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: var(--ui-muted);
    cursor: pointer;
}

.mc-remove:hover {
    border-color: rgba(251, 113, 133, .4);
    color: var(--ui-danger);
}

.mc-empty {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 40px 10px;
    color: var(--ui-muted);
    text-align: center;
}

.mc-empty strong {
    color: #ffffff;
    font-size: 1.02rem;
}

.mc-empty p {
    margin: 0 0 8px;
    font-size: .88rem;
}

.mc-empty-icon {
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    border-radius: 50%;
    background: rgba(31, 216, 255, .12);
    color: var(--ui-primary);
    font-size: 1.5rem;
}

.mc-loading {
    display: grid;
    gap: 10px;
}

.mc-loading span {
    height: 84px;
    border-radius: 16px;
    background: linear-gradient(90deg, var(--ui-surface), var(--ui-surface-2), var(--ui-surface));
    background-size: 200% 100%;
    animation: mc-shimmer 1.2s linear infinite;
}

@keyframes mc-shimmer {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}

.mc-foot {
    display: grid;
    gap: 10px;
    padding: 16px 20px calc(18px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--ui-border);
    background: rgba(6, 13, 31, .96);
}

.mc-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    color: var(--ui-muted);
    font-weight: 700;
}

.mc-total small {
    font-size: .8rem;
}

.mc-total strong {
    color: #ffffff;
    font-family: "Poppins", sans-serif;
    font-size: 1.4rem;
}

.mc-note {
    display: flex;
    gap: 8px;
    align-items: baseline;
    margin: 0;
    color: var(--ui-muted);
    font-size: .78rem;
}

.mc-note i {
    color: var(--ui-ok);
}

.mc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 14px;
    font: inherit;
    font-size: .95rem;
    font-weight: 800;
    text-decoration: none !important;
    cursor: pointer;
}

.mc-btn-primary {
    background: linear-gradient(135deg, #1fd8ff, #5eead4);
    color: var(--ui-primary-ink) !important;
    box-shadow: 0 14px 30px rgba(31, 216, 255, .25);
}

.mc-btn-primary:hover { filter: brightness(1.06); }

.mc-btn-ghost {
    border-color: var(--ui-border-strong);
    background: transparent;
    color: var(--ui-text);
}

.mc-btn-ghost:hover { background: var(--ui-surface); }

/* ---------- Barra inferior en celular ---------- */
.bn {
    display: none;
}

@media (max-width: 760px) {
    .bn {
        position: fixed;
        right: 10px;
        bottom: calc(10px + env(safe-area-inset-bottom));
        left: 10px;
        z-index: 150;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 2px;
        padding: 6px;
        border: 1px solid var(--ui-border-strong);
        border-radius: 20px;
        background: rgba(6, 13, 31, .94);
        box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
        backdrop-filter: blur(14px);
        font-family: "Manrope", system-ui, sans-serif;
    }

    .bn a {
        position: relative;
        display: grid;
        justify-items: center;
        gap: 3px;
        padding: 7px 2px 6px;
        border-radius: 14px;
        color: var(--ui-muted) !important;
        font-size: .76rem; /* ~12px: legible en la barra inferior */
        font-weight: 800;
        text-decoration: none !important;
    }

    .bn a i {
        font-size: 1.06rem;
    }

    .bn a.is-active {
        background: linear-gradient(135deg, rgba(31, 216, 255, .18), rgba(255, 62, 181, .12));
        color: #ffffff !important;
    }

    .bn-badge {
        position: absolute;
        top: 1px;
        left: calc(50% + 5px);
        display: grid;
        min-width: 18px;
        height: 18px;
        padding: 0 5px;
        place-items: center;
        border: 2px solid #060d1f;
        border-radius: 999px;
        background: #facc15;
        color: #111827;
        font-size: .68rem;
        font-weight: 900;
    }

    .bn-badge[hidden] {
        display: none;
    }

    /* Espacio para la barra: nada queda tapado. Lo da el pie (con su mismo fondo);
       las paginas sin pie conservan el espacio en el body. */
    body.public-site {
        padding-bottom: 88px;
    }

    body.public-site:has(.sf) {
        padding-bottom: 0;
    }

    .sh-float-whatsapp {
        bottom: calc(96px + env(safe-area-inset-bottom)) !important;
    }

    .sh-toast {
        bottom: calc(100px + env(safe-area-inset-bottom)) !important;
    }
}

/* ---------- Volver arriba ---------- */
.to-top {
    position: fixed;
    right: 26px;
    bottom: 96px;
    z-index: 55;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid var(--ui-border-strong);
    border-radius: 50%;
    background: rgba(12, 21, 41, .92);
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .4);
    cursor: pointer;
    transition: transform .2s var(--ui-ease);
}

.to-top:hover {
    transform: translateY(-3px);
}

.to-top[hidden] {
    display: none;
}

@media (max-width: 760px) {
    .to-top {
        right: 16px;
        bottom: calc(160px + env(safe-area-inset-bottom));
        width: 42px;
        height: 42px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mc-panel,
    .mc-backdrop,
    .mc-item.is-new,
    .mc-loading span {
        animation: none;
        transition: none;
    }
}

/* ==========================================================================
   Tienda negra con cian y morado (2026-10-06, pedido del cliente: estilo llamativo
   como la referencia, con los colores del logo). Fondo, encabezado, carrito lateral,
   buscador y barra inferior. El pie de pagina tiene su propio bloque al final (prefijo sf-).
   ========================================================================== */
:root {
    --ui-bg: #07080c;
    --ui-surface: #0e1017;
    --ui-surface-2: #151822;
    --ui-border: rgba(148, 163, 184, .14);
    --ui-border-strong: rgba(148, 163, 184, .28);
    --ui-text: #eef1f7;
    --ui-muted: #9ca5b8;
    --ui-primary: #1fd8ff;
    --ui-primary-ink: #05060a;
    --ui-violet: #a855f7;
    --ui-violet-soft: #c4b5fd;
    --ui-grad: linear-gradient(135deg, #1fd8ff 0%, #a78bfa 100%);
    --ui-grad-hover: linear-gradient(135deg, #74e7ff 0%, #c4b5fd 100%);
}

html {
    background: #07080c;
}

/* Fondo negro con dos luces suaves (cian arriba a la izquierda, morado a la derecha).
   !important: styles.css fija el fondo antiguo con !important. */
body.public-site {
    background-color: #07080c !important;
    background-image:
        radial-gradient(1100px 620px at 8% -6%, rgba(31, 216, 255, .10), transparent 62%),
        radial-gradient(900px 600px at 100% 4%, rgba(168, 85, 247, .12), transparent 60%),
        radial-gradient(1200px 700px at 50% 120%, rgba(168, 85, 247, .06), transparent 60%) !important;
}

/* Lineas decorativas del fondo en cian y morado */
.public-site .page::before {
    background:
        linear-gradient(105deg, transparent 0, transparent 18%, rgba(31, 216, 255, .06) 18%, rgba(31, 216, 255, .06) 18.3%, transparent 18.3%),
        linear-gradient(72deg, transparent 0, transparent 62%, rgba(168, 85, 247, .07) 62%, rgba(168, 85, 247, .07) 62.35%, transparent 62.35%);
}

/* ---------- Encabezado ---------- */
.hd-bar {
    background:
        linear-gradient(rgba(10, 11, 17, .86), rgba(10, 11, 17, .86)) padding-box,
        linear-gradient(115deg, rgba(31, 216, 255, .5), rgba(148, 163, 184, .12) 38%, rgba(148, 163, 184, .12) 62%, rgba(168, 85, 247, .5)) border-box;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .05);
}

.hd.is-scrolled .hd-bar {
    background:
        linear-gradient(rgba(8, 9, 14, .96), rgba(8, 9, 14, .96)) padding-box,
        linear-gradient(115deg, rgba(31, 216, 255, .5), rgba(148, 163, 184, .12) 38%, rgba(148, 163, 184, .12) 62%, rgba(168, 85, 247, .5)) border-box;
}

.hd-logo {
    box-shadow: 0 0 0 1px rgba(168, 85, 247, .25), 0 8px 22px rgba(31, 216, 255, .18);
}

.hd-nav a.active {
    background: linear-gradient(135deg, rgba(31, 216, 255, .2), rgba(168, 85, 247, .2));
    box-shadow: inset 0 0 0 1px rgba(31, 216, 255, .3);
}

.hd-currency button.is-active,
.hd-login,
.hd-panel a.active > i,
.hd-panel a.is-login,
.mc-btn-primary {
    background: var(--ui-grad);
    color: var(--ui-primary-ink);
}

.hd-login:hover,
.mc-btn-primary:hover {
    background: var(--ui-grad-hover);
}

/* Carrito lateral: "Ver carrito y pagar" de un solo color, igual que los botones de compra (2026-10-07) */
.mc .mc-btn-primary {
    background: #1fd8ff;
    box-shadow: none;
    color: #03121f !important;
    font-weight: 700;
    filter: none;
}

.mc .mc-btn-primary:hover {
    background: #6be6ff;
    filter: none;
}

.hd .cart-count,
.bn-badge {
    border-color: #07080c;
}

.hd .account-trigger {
    background: linear-gradient(135deg, rgba(168, 85, 247, .16), rgba(31, 216, 255, .1));
}

.hd-panel {
    background: rgba(11, 12, 18, .98);
}

.hd-panel a:hover,
.hd-panel a.active {
    background: rgba(31, 216, 255, .08);
}

/* Buscador y carrito lateral */
.sx {
    background: linear-gradient(180deg, #12141d, #0b0c12);
}

.sx-thumb {
    background: #1b1e2a;
}

.mc-panel {
    background: linear-gradient(180deg, #11131b, #07080c);
}

.mc-foot {
    background: rgba(9, 10, 15, .97);
}

/* Barra inferior (celular) y "volver arriba" */
@media (max-width: 760px) {
    .bn {
        background: rgba(9, 10, 15, .95);
    }

    .bn a.is-active {
        background: linear-gradient(135deg, rgba(31, 216, 255, .18), rgba(168, 85, 247, .18));
    }
}

.to-top {
    background: rgba(14, 16, 23, .94);
}

/* ==========================================================================
   Pie de pagina de la tienda (includes/footer.php). Prefijo sf-.
   2026-10-06: marca, enlaces, preguntas frecuentes en panel con acordeon y barra legal.
   El cliente pidio quitar la fila de beneficios, la de medios de pago y el WhatsApp bajo la marca.
   2026-10-07: mismo estilo profesional que la tarjeta de producto: superficie plana, sin filete de
   colores, titulos grises sin barra celeste, enlaces sin movimiento y logo sin resplandor.
   ========================================================================== */
/* La pagina no deja espacio propio al final: la separacion con el pie la da solo su margen de arriba */
.public-site main.page:has(~ .sf) {
    padding-bottom: 0;
}

/* Mismo ancho que el resto de la pagina (pedido del cliente 2026-10-07): un bloque con borde gris fino y
   esquinas suaves, como el banner principal y las tarjetas, en lugar de un fondo de borde a borde. */
.sf {
    position: relative;
    z-index: 2; /* por encima de las lineas decorativas fijas de main.page::before */
    width: min(1280px, calc(100% - 32px));
    /* Cerca de la ultima seccion (pedido del cliente 2026-10-07): antes quedaban unos 150 px de separacion */
    margin: 28px auto 24px;
    border: 1px solid rgba(148, 163, 184, .14);
    border-radius: 16px;
    background: #0b0c10;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .45);
    color: #a3acbf;
    font-family: "Manrope", system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
}

.sf-inner {
    padding: 0 clamp(20px, 3vw, 40px);
}

.sf-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.sf a {
    color: inherit;
    text-decoration: none;
}

.sf ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sf h2 {
    margin: 0 0 14px;
    padding: 0;
    border: 0;
    background: none;
    color: #e6ecf6;
    font-family: "Manrope", system-ui, sans-serif;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* ---------- Marca, enlaces y preguntas ---------- */
.sf-main {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 2fr) minmax(0, 1.35fr);
    gap: clamp(28px, 4vw, 52px);
    padding: clamp(44px, 5.5vw, 60px) 0 clamp(32px, 4vw, 44px);
}

.sf-brand {
    display: grid;
    align-content: start;
    gap: 16px;
}

.sf-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: max-content;
    max-width: 100%;
}

.sf-logo-mark {
    display: grid;
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    overflow: hidden;
    place-items: center;
    border: 1px solid rgba(148, 163, 184, .2);
    border-radius: 13px;
    background: #12141c;
    color: #ffffff;
    font-weight: 800;
}

.sf-logo-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sf-logo-text strong,
.sf-logo-text small {
    display: block;
}

.sf-logo-text strong {
    color: #ffffff;
    font-family: "Poppins", sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
}

.sf-logo-text small {
    color: #9ca5b8;
    font-size: .78rem;
}

.sf-about {
    margin: 0;
    color: #a3acbf;
    font-size: .9rem;
    line-height: 1.65;
    text-align: justify;
    hyphens: auto; /* con el texto justificado, evita espacios muy grandes entre palabras */
}

/* La primera frase (el beneficio para el cliente) resalta en blanco */
.sf-about strong {
    display: block;
    margin-bottom: 4px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.45;
}

/* Tienda, Mi cuenta, Categorías y Legal (2026-10-28) */
.sf-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px 24px;
}

.sf-col a {
    display: inline-block;
    padding: 4px 0;
    color: #a3acbf;
    font-size: .9rem;
    transition: color .15s ease;
}

.sf-col a:hover {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Preguntas frecuentes en un panel, con el mismo borde y esquinas que la tarjeta de producto */
.sf-faq {
    align-self: start;
    padding: 18px 18px 14px;
    border: 1px solid rgba(148, 163, 184, .14);
    border-radius: 14px;
    background: #0f1117;
}

.sf-faq h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.sf-faq h2 i {
    color: #9ca5b8;
    font-size: .9rem;
}

.sf-faq details + details {
    border-top: 1px solid rgba(148, 163, 184, .1);
}

.sf-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    color: #e6eaf2;
    font-size: .87rem;
    font-weight: 600;
    list-style: none;
    cursor: pointer;
}

.sf-faq summary::-webkit-details-marker {
    display: none;
}

.sf-faq summary i {
    flex: 0 0 auto;
    color: #9ca5b8;
    font-size: .7rem;
    transition: transform .2s ease, color .2s ease;
}

.sf-faq summary:hover,
.sf-faq details[open] summary {
    color: #ffffff;
}

.sf-faq details[open] summary i {
    color: #ffffff;
    transform: rotate(180deg);
}

.sf-faq details p {
    margin: 0;
    padding: 0 0 12px;
    color: #a3acbf;
    font-size: .83rem;
    line-height: 1.6;
}

.sf-faq-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    color: #e6ecf6 !important;
    font-size: .82rem;
    font-weight: 700;
}

.sf-faq-more:hover {
    color: #ffffff !important;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------- Legal ---------- */
/* Credito del software a la izquierda y derechos reservados a la derecha */
.sf-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 24px;
    padding: 18px 0 26px;
    border-top: 1px solid rgba(148, 163, 184, .12);
}

.sf-credit,
.sf-copy {
    margin: 0;
    color: #8f99ad;
    font-size: .82rem;
}

.sf-credit strong {
    color: #e6eaf2;
    font-weight: 700;
}

/* Libro de Reclamaciones: visible en todas las páginas de la tienda */
.sf-book {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    padding: 8px 14px 8px 10px;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 12px;
    background: #0f1117;
    color: #e6eaf2;
    text-decoration: none;
}

.sf-book:hover {
    border-color: rgba(148, 163, 184, .55);
    color: #ffffff;
}

.sf-book svg {
    flex: none;
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sf-book span {
    display: grid;
    line-height: 1.25;
    text-align: left;
}

.sf-book strong {
    font-size: .86rem;
}

.sf-book small {
    color: #8f99ad;
    font-size: .74rem;
}

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
    .sf-main {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .sf-nav {
        grid-column: 1 / -1;
        grid-row: 2;
    }
}

/* ---------- Celular ---------- */
@media (max-width: 760px) {
    .sf-main {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .sf-nav {
        grid-row: auto;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 26px 16px;
    }

    /* Categorias como etiquetas a todo lo ancho */
    .sf-col-cats {
        grid-column: 1 / -1;
    }

    .sf-col-cats ul {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .sf-col-cats a {
        padding: 6px 12px;
        border: 1px solid rgba(148, 163, 184, .2);
        border-radius: 8px;
        font-size: .84rem;
    }

    .sf-col-cats a:hover {
        border-color: rgba(148, 163, 184, .45);
        text-decoration: none;
    }

    .sf-col a {
        min-height: 36px;
    }

    /* Deja sitio para la barra inferior fija del celular (fuera del bloque del pie) */
    .sf {
        margin-bottom: calc(96px + env(safe-area-inset-bottom));
        border-radius: 14px;
    }

    /* En celular, una linea debajo de la otra y centradas */
    .sf-legal {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sf-col a,
    .sf-faq summary i {
        transition: none;
    }
}

/* Logo redondo (MetStrim): en el encabezado y el pie se ve solo el circulo, sin recuadro */
.hd-logo,
.sf-logo-mark {
    border: 0;
    border-radius: 50%;
    background: transparent;
    box-shadow: 0 0 18px rgba(31, 216, 255, .22);
}

.hd-logo img,
.sf-logo-mark img {
    border-radius: 50%;
    object-fit: contain;
}

/* En el pie, el logo sin resplandor (estilo plano, 2026-10-07) */
.sf .sf-logo-mark {
    box-shadow: none;
}

/* ==========================================================================
   Encabezado con el mismo estilo profesional que la tarjeta de producto y el pie (pedido del cliente
   2026-10-07): barra plana con borde gris fino (sin el borde degradado cian/morado), sin resplandores,
   esquinas de 10-14 px en lugar de pildoras, seleccion en gris y botones de un solo color.
   La distribucion (marca, menu, moneda, carrito y cuenta) no cambia.
   ========================================================================== */
.hd .hd-bar,
.hd.is-scrolled .hd-bar {
    border: 1px solid rgba(148, 163, 184, .14);
    border-radius: 14px;
    background: rgba(11, 12, 16, .92);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .4);
}

.hd.is-scrolled .hd-bar {
    background: rgba(11, 12, 16, .97);
}

/* Marca: logo sin resplandor ni giro */
.hd .hd-logo {
    box-shadow: none;
}

.hd .hd-brand:hover .hd-logo {
    transform: none;
}

.hd .hd-brand-text strong {
    font-weight: 700;
}

/* Menu principal */
.hd .hd-nav {
    border-color: rgba(148, 163, 184, .14);
    border-radius: 10px;
    background: rgba(255, 255, 255, .02);
}

.hd .hd-nav a {
    border-radius: 8px;
    font-weight: 600;
}

.hd .hd-nav a.active {
    background: rgba(255, 255, 255, .08);
    box-shadow: none;
    color: #ffffff;
}

/* Soles / dolares */
.hd .hd-currency {
    border-radius: 10px;
}

.hd .hd-currency button {
    border-radius: 7px;
    font-weight: 700;
}

.hd .hd-currency button.is-active {
    background: rgba(255, 255, 255, .12);
    box-shadow: none;
    color: #ffffff;
}

/* Carrito, cuenta, saldo y menu */
.hd .hd-btn,
.hd .hd-balance {
    border-radius: 10px;
    font-weight: 700;
}

.hd .hd-btn:hover,
.hd .hd-btn.active,
.hd .hd-btn.is-current {
    border-color: rgba(148, 163, 184, .45);
    background: rgba(255, 255, 255, .06);
}

.hd .hd-btn:active {
    transform: none;
}

.hd .account-trigger {
    background: rgba(255, 255, 255, .04);
}

.hd .hd-menu-btn.is-open {
    border-color: rgba(148, 163, 184, .45);
    background: rgba(255, 255, 255, .08);
}

/* "Ingresar": boton de un solo color, igual que "Comprar ahora" */
.hd .hd-login {
    border-color: transparent;
    background: #1fd8ff;
    box-shadow: none;
    color: #03121f;
}

.hd .hd-login:hover {
    border-color: transparent;
    background: #6be6ff;
    color: #03121f;
}

/* Panel del menu (tablet y celular) */
.hd .hd-panel {
    border-color: rgba(148, 163, 184, .16);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .55);
}

.hd .hd-panel a {
    border-radius: 10px;
}

.hd .hd-panel a:hover,
.hd .hd-panel a.active {
    background: rgba(255, 255, 255, .06);
}

.hd .hd-panel a.active > i {
    background: rgba(255, 255, 255, .12);
    color: #ffffff;
}

.hd .hd-panel a.is-login {
    background: #1fd8ff;
    color: #03121f;
}

/* Menu de la cuenta (cliente con sesion): avatar de un solo color y panel como la tarjeta */
.public-site .account-avatar {
    background: #1fd8ff;
    color: #03121f;
}

.public-site .account-dropdown {
    border-color: rgba(148, 163, 184, .16);
    border-radius: 14px;
    background: rgba(15, 17, 23, .98);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .55);
}

/* Barra inferior del celular: seleccion en gris, sin degradado */
@media (max-width: 760px) {
    .bn {
        border-color: rgba(148, 163, 184, .16);
        border-radius: 14px;
        box-shadow: 0 10px 28px rgba(0, 0, 0, .5);
    }

    .bn a.is-active {
        background: rgba(255, 255, 255, .08);
    }
}

/* ==========================================================================
   Botones en azul (pedido del cliente 2026-10-10: el celeste no quedaba). Un solo azul en toda la tienda:
   #2563eb con letra blanca; al pasar el mouse, un azul un poco mas claro (#3b82f6).
   ========================================================================== */
.mc .mc-btn-primary,
.hd .hd-login,
.hd-panel a.is-login {
    border-color: transparent;
    background: #2563eb;
    box-shadow: none;
    color: #ffffff !important;
}

.mc .mc-btn-primary:hover,
.hd .hd-login:hover,
.hd-panel a.is-login:hover {
    border-color: transparent;
    background: #3b82f6;
    color: #ffffff !important;
}

/* Celulares angostos (pedido del cliente 2026-10-10): en la barra inferior "Mi cuenta" se partia en dos lineas. */
@media (max-width: 380px) {
    .bn {
        right: 6px;
        left: 6px;
        padding: 5px;
    }

    .bn a {
        padding-right: 0;
        padding-left: 0;
        font-size: .68rem;
        letter-spacing: -.01em;
        white-space: nowrap;
    }
}
