/* -------------------------------------------------------------------------- */
/* 1. Variables, reset e iconos                                               */
/* El reset base de navegadores está en css/normalize.css (se carga primero). */
/* -------------------------------------------------------------------------- */
:root {
    --rojo: #e10600;
    --rojo-footer: #e51c21;
    --blanco: #fff;
    --header-bg: rgba(0, 0, 0, 0.856);
    --fuente: "Poppins", sans-serif;
    --fuente-nav: "Montserrat", sans-serif;
    --gap-cols: 2rem;
    --panel-h: 30vh;
    --buscar-h: min(80vh, 700px);
    --carrito-pad: 1.25rem;
    --carrito-linea: #2a2a2a;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--fuente);
    background: #f0f0f0;
}

.material-symbols-outlined {
    font-family: "Material Symbols Outlined";
    font-size: 22px;
    line-height: 1;
    font-feature-settings: "liga";
    -webkit-font-smoothing: antialiased;
}

/* -------------------------------------------------------------------------- */
/* 2. Header + navegación                                                     */
/* -------------------------------------------------------------------------- */
header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    width: 100%;
    background: var(--header-bg);
    color: var(--blanco);
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(0.5rem, 1.5vw, 1rem);
    min-height: 4.75rem;
    padding: 0.65rem clamp(1rem, 2vw, 1.75rem);
    font-family: var(--fuente-nav);
}

nav ul {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

nav ul li {
    display: flex;
    align-items: center;
    justify-content: center;
}

nav ul li a {
    color: var(--blanco);
    text-decoration: none;
}

.nav-izq,
.logo,
.iconos,
.buscar,
.buscar-grande,
.buscar-movil,
.cuadrado,
.buscar button,
.boton-menu,
.carrito-cerrar,
.carrito-vaciar {
    display: flex;
    align-items: center;
}

.nav-izq {
    min-width: 0;
    flex: 1;
    gap: clamp(0.75rem, 2vw, 2rem);
}

.logo {
    flex-shrink: 0;
    line-height: 0;
}

.logo img {
    display: block;
    height: clamp(3.25rem, 5.5vw, 4.5rem);
    width: auto;
    object-fit: contain;
}

.menu {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: clamp(0.9rem, 2.4vw, 2.5rem);
    margin-left: clamp(0.75rem, 5vw, 6rem);
}

.menu-extra {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: clamp(0.4rem, 0.8vw, 0.65rem);
    margin-left: clamp(0.5rem, 2vw, 2.5rem);
}

.buscar-movil,
.idioma-movil {
    display: none;
}

.menu a,
.panel-col h3,
.panel-col a,
.panel-col span,
.buscar input {
    text-transform: uppercase;
}

.menu a {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0;
    font-size: clamp(10px, 1.15vw, 14px);
    letter-spacing: 0.12em;
    line-height: 1;
    white-space: nowrap;
}

.menu a::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 2px;
    background: var(--rojo);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.menu a:hover::after {
    transform: scaleX(1);
}

.utiles {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: auto;
}

.iconos {
    gap: clamp(0.4rem, 1vw, 0.65rem);
}

.cuadrado {
    position: relative;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: var(--blanco);
    transition: color 0.15s ease;
}

.cuadrado .material-symbols-outlined {
    color: inherit;
}

.bandera-idioma {
    display: block;
    font-size: 1.25rem;
    line-height: 1;
}

.boton-idioma:is(:hover, :active, :focus-visible) {
    color: inherit;
    filter: brightness(1.15);
}

.boton-menu {
    display: none;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--blanco);
    cursor: pointer;
}

.boton-menu .icono-cerrar,
nav.menu-abierto .boton-menu .icono-abrir {
    display: none;
}

nav.menu-abierto .boton-menu .icono-cerrar {
    display: inline-block;
}

/* -------------------------------------------------------------------------- */
/* 3. Paneles mega + búsqueda                                                 */
/* -------------------------------------------------------------------------- */
.mega-panel {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1100;
    width: 100%;
    height: 0;
    overflow: hidden;
    background: var(--header-bg);
    font-family: var(--fuente-nav);
    pointer-events: none;
    transition: height 0.2s ease;
}

.mega-panel.abierto {
    height: var(--panel-h);
    pointer-events: auto;
}

.mega-panel-inner {
    height: var(--panel-h);
    padding: 1.5rem 2.5rem;
}

.mega-panel-cols,
.panel-subcols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap-cols);
    align-content: start;
}

#panel-contact .mega-panel-cols {
    grid-template-columns: repeat(4, 1fr);
}

.cols-tienda {
    grid-template-columns: 1fr 3fr 1fr;
}

.panel-col h3 {
    margin: 0 0 0.75rem;
    color: var(--rojo);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.panel-col ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.panel-col a,
.panel-col span {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-decoration: none;
}

.panel-col a {
    transition: color 0.15s ease;
}

.panel-col a:hover {
    color: var(--rojo);
}

.buscar {
    position: relative;
    justify-content: flex-end;
    width: clamp(6rem, 24vw, 24em);
    min-width: 0;
    min-height: 2em;
    margin: 0;
    padding: 0 0.3em 0 0.7em;
    border: 0.15em solid transparent;
    background: transparent;
}

.buscar::after {
    content: "";
    position: absolute;
    top: -0.15em;
    right: -0.15em;
    bottom: -0.15em;
    width: calc(100% + 0.3em);
    border: 0.15em solid rgba(255, 255, 255, 0.4);
    box-sizing: border-box;
    pointer-events: none;
    transition: width 0.6s ease, opacity 0.45s ease;
}

.buscar.activo::after {
    width: 1.95em;
    opacity: 0;
    transition: width 1.2s ease, opacity 0.9s ease;
}

.buscar input,
.buscar-grande input {
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
    background: transparent;
    color: var(--blanco);
    font-family: var(--fuente);
    font-size: 14px;
    letter-spacing: 0.12em;
    line-height: 1;
}

.buscar input {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    white-space: nowrap;
    overflow: hidden;
    opacity: 1;
    max-width: 100%;
    transition: opacity 0.45s ease, flex-grow 0.6s ease, flex-basis 0.6s ease, max-width 0.6s ease;
}

.buscar input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.buscar button {
    justify-content: center;
    flex-shrink: 0;
    width: 1.5em;
    height: 1.5em;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--blanco);
    cursor: pointer;
}

.buscar.activo input {
    flex-grow: 0;
    flex-basis: 0;
    max-width: 0;
    opacity: 0;
    transition: opacity 0.9s ease, flex-grow 1.2s ease, flex-basis 1.2s ease, max-width 1.2s ease;
}

.buscar button:hover,
.buscar.activo button,
.cuadrado:is(:hover, :active, :focus-visible),
.boton-menu:is(:hover, :active, :focus-visible) {
    color: var(--rojo);
}

.buscar .material-symbols-outlined {
    font-size: 1.1rem;
}

/* Barra de búsqueda del header (escritorio): campo blanco + botón rojo */
@media (min-width: 769px) {
    /* Buscador pegado a la derecha; el idioma va al extremo derecho, después del carrito */
    .menu {
        flex: 1 1 auto;
    }

    .menu-extra {
        margin-left: auto;
    }

    .menu-extra .idioma-wrap {
        display: none;
    }

    .utiles .idioma-movil {
        display: flex;
        position: relative;
        transform: none;
        order: 2;
        margin-left: clamp(0.5rem, 1vw, 0.9rem);
    }

    .utiles .iconos {
        order: 1;
    }

    /* Tamaño completo (32rem) siempre que quepa; solo se encoge si la ventana es muy angosta */
    .menu {
        gap: clamp(0.6rem, 1.8vw, 2.5rem);
        margin-left: clamp(0.5rem, 1.5vw, 3rem);
    }

    .buscar {
        flex: 0 1 32rem;
        width: 32rem;
        min-width: 9rem;
        min-height: 2.6rem;
        padding: 0;
        overflow: hidden;
        justify-content: flex-start;
        border: 0;
        border-radius: 0.3rem;
        background: #fff;
    }

    .buscar::before {
        content: "search";
        flex: 0 0 auto;
        padding: 0 0.55rem 0 0.85rem;
        color: #1a1a1a;
        font-family: "Material Symbols Outlined";
        font-size: 1.3rem;
        font-weight: 400;
        line-height: 1;
        letter-spacing: normal;
        text-transform: none;
        -webkit-font-feature-settings: "liga";
        font-feature-settings: "liga";
    }

    .buscar::after {
        display: none;
    }

    .buscar input,
    .buscar.activo input {
        flex: 1 1 auto;
        max-width: 100%;
        opacity: 1;
        color: #1a1a1a;
        font-size: clamp(0.64rem, 0.95vw, 0.78rem);
        letter-spacing: 0;
        text-transform: none;
    }

    .buscar input::placeholder {
        color: #5c5c5c;
        text-transform: none;
    }

    .buscar button,
    .buscar.activo button {
        align-self: stretch;
        width: 3.1rem;
        height: auto;
        background: var(--rojo);
        color: #fff;
    }

    .buscar button:hover {
        background: #c40500;
        color: #fff;
    }

    .buscar .material-symbols-outlined {
        font-size: 1.35rem;
    }
}

.panel-buscar {
    height: 0;
    background: rgba(0, 0, 0, 0.78);
}

.panel-buscar.abierto {
    position: fixed;
    top: var(--menu-h, 5.8rem);
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    height: auto;
    overflow-y: auto;
}

.panel-buscar .mega-panel-inner {
    width: min(720px, calc(100% - 3rem));
    height: auto;
    margin-inline: auto;
    padding: 1.25rem 0 0;
    background: transparent;
}

.panel-buscar.abierto .mega-panel-inner {
    position: relative;
    z-index: 2;
}

.buscar-grande {
    max-width: 720px;
    margin-inline: auto;
    gap: 0.85rem;
    width: 100%;
    margin-bottom: 0;
    padding: 0.95rem 1.25rem;
    border: 1px solid var(--rojo);
    border-radius: 0.65rem;
    background: #10141d;
}

.buscar-grande .material-symbols-outlined {
    color: rgba(255, 255, 255, 0.45);
    font-size: 1.4rem;
}

.buscar-grande input {
    font-size: 0.95rem;
    font-weight: 700;
}

.buscar-grande input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* -------------------------------------------------------------------------- */
/* 4. Idioma + carrito                                                        */
/* -------------------------------------------------------------------------- */
.idioma-wrap {
    position: relative;
}

.menu-idioma {
    position: absolute;
    top: calc(100% + 0.45rem);
    left: 50%;
    z-index: 1200;
    display: none;
    flex-direction: column;
    min-width: 3.2rem;
    margin: 0;
    padding: 0;
    list-style: none;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateX(-50%);
}

.menu-idioma.abierto {
    display: flex;
}

.menu-idioma li {
    display: block;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.menu-idioma li:last-child {
    border-bottom: none;
}

.menu-idioma button {
    display: block;
    width: 100%;
    padding: 0.55rem 0.7rem;
    border: none;
    background: transparent;
    color: var(--rojo);
    font-family: var(--fuente-nav);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    cursor: pointer;
}

.menu-idioma button:hover,
.menu-idioma button.activo {
    background: rgba(255, 255, 255, 0.08);
}

.carrito-wrap {
    margin-left: clamp(0.5rem, 2.5vw, 3rem);
}

.menu-carrito {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 1300;
    display: flex;
    flex-direction: column;
    width: min(28vw, 22rem);
    min-width: 16rem;
    height: 100vh;
    background: #0a0a0a;
    color: var(--blanco);
    font-family: Arial, Helvetica, sans-serif;
    box-shadow: -8px 0 28px rgba(0, 0, 0, 0.45);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    pointer-events: none;
}

.menu-carrito.abierto {
    transform: none;
    pointer-events: auto;
}

.carrito-cabecera {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1.15rem var(--carrito-pad) 0.95rem;
    border-bottom: 1px solid var(--carrito-linea);
}

.carrito-titulo {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.35;
}

.carrito-cerrar,
.carrito-vaciar {
    justify-content: center;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

.carrito-cerrar {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    margin: -0.15rem -0.25rem 0 0;
    color: var(--blanco);
}

.carrito-cerrar .material-symbols-outlined,
.carrito-vaciar .material-symbols-outlined {
    font-size: 1.35rem;
    color: inherit;
}

.carrito-lista {
    flex: 1 1 auto;
    min-height: 0;
    padding: 1rem var(--carrito-pad);
    overflow: auto;
    border-bottom: 1px solid var(--carrito-linea);
}

.carrito-pie {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    margin-top: auto;
    padding-bottom: 0.6rem;
}

.carrito-resumen {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0.55rem 0;
    list-style: none;
    border-bottom: 1px solid var(--carrito-linea);
}

.carrito-resumen li,
.carrito-total-fila {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.5rem var(--carrito-pad);
    font-size: 0.95rem;
    font-weight: 400;
}

.carrito-valor {
    min-height: 1em;
    text-align: right;
}

.carrito-valor-envio {
    color: #22c55e;
    font-weight: 700;
}

.carrito-valor-total {
    color: var(--rojo);
    font-size: 1.15rem;
    font-weight: 700;
}

.carrito-total {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.65rem 0 0.85rem;
}

.carrito-total small {
    display: block;
    padding: 0 var(--carrito-pad);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.72rem;
}

.carrito-btn {
    display: block;
    margin: 0.35rem var(--carrito-pad) 0.4rem;
    padding: 0.95rem 1rem;
    background: var(--rojo);
    color: var(--blanco) !important;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
}

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

.carrito-vaciar {
    width: 100%;
    margin: 0.1rem 0 0.25rem;
    padding: 0.5rem;
    color: var(--rojo);
}

.carrito .badge {
    position: absolute;
    top: -2px;
    right: -4px;
    min-width: 14px;
    height: 14px;
    padding: 0 3px;
    border-radius: 50%;
    background: var(--rojo);
    color: var(--blanco);
    font-size: 0.55rem;
    line-height: 14px;
    text-align: center;
}

/* -------------------------------------------------------------------------- */
/* WhatsApp flotante (todas las páginas)                                      */
/* -------------------------------------------------------------------------- */
.whatsapp-float {
    position: fixed;
    right: 1.35rem;
    bottom: 1.35rem;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    color: rgba(200, 200, 200, 0.8);
    transition: color 0.2s ease;
    animation: whatsapp-parpadeo 1.6s ease-in-out infinite alternate;
}

.whatsapp-float svg {
    display: block;
    width: 100%;
    height: 100%;
}

.whatsapp-float:hover {
    color: #fff;
}

@keyframes whatsapp-parpadeo {
    from {
        color: rgb(110, 110, 110);
    }

    to {
        color: #fff;
    }
}

@media (prefers-reduced-motion: reduce) {
    .whatsapp-float {
        animation: none;
    }
}

/* -------------------------------------------------------------------------- */

/* -------------------------------------------------------------------------- */
.site-footer {
    background: #000;
    color: #fff;
    padding: 3.25rem clamp(1.25rem, 5vw, 4rem) 1.75rem;
}

.footer-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: clamp(1.35rem, 3.5vw, 2.75rem);
}

.footer-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    justify-self: end;
    box-sizing: border-box;
    width: min(100%, 20rem);
    min-height: 6.75rem;
    padding: 1.15rem 1.35rem;
    border-radius: 1.15rem;
    background: var(--rojo-footer);
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: clamp(1.15rem, 1.8vw, 1.45rem);
    font-weight: 800;
    letter-spacing: 0.12em;
}

.footer-contacto {
    justify-self: start;
}

.footer-pill a {
    display: flex;
    color: inherit;
}

.footer-pill svg {
    width: 1.45em;
    height: 1.45em;
}

.footer-pill .material-symbols-outlined {
    font-size: 1.45em;
    color: inherit;
}

.footer-ico-circulo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.9em;
    height: 1.9em;
    border: 2px solid #fff;
    border-radius: 50%;
}

.footer-ico-circulo .material-symbols-outlined {
    font-size: 1.05em;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
}

.footer-logo img {
    display: block;
    height: clamp(6.5rem, 16vw, 9.5rem);
    width: auto;
    object-fit: contain;
}

.footer-pagos {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.pago-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.2rem;
    height: 1.9rem;
    padding: 0 0.45rem;
    border-radius: 0.25rem;
    background: #fff;
    color: #111;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.pago-visa {
    color: #1a1f71;
}

.pago-amex {
    padding: 0.15rem;
    overflow: hidden;
    color: transparent;
    font-size: 0;
}

.pago-amex img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pago-mc {
    padding: 0.15rem;
    overflow: hidden;
}

.pago-mc img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pago-mp {
    padding: 0.15rem;
    overflow: hidden;
}

.pago-mp img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-linea {
    height: 1px;
    margin: 2.25rem 0 1.25rem;
    background: rgba(255, 255, 255, 0.22);
}

.footer-bottom {
    display: grid;
    gap: 0.85rem;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
}

.footer-legal {
    display: flex;
    justify-content: flex-start;
    gap: 1.5rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.78rem;
    text-decoration: none;
}

.footer-legal a:hover {
    color: #fff;
}

/* -------------------------------------------------------------------------- */

/* -------------------------------------------------------------------------- */
/* Media queries — menú / footer                                         */
/* -------------------------------------------------------------------------- */
@media (max-width: 992px) {
    .menu a {
        letter-spacing: 0.08em;
    }

    .logo img {
        height: clamp(3rem, 5vw, 4rem);
    }

    .footer-pill {
        width: min(100%, 17.5rem);
        min-height: 6rem;
        padding: 1rem 1.1rem;
        font-size: clamp(0.95rem, 1.6vw, 1.15rem);
    }

    .footer-top {
        gap: clamp(1.1rem, 2.5vw, 2rem);
    }

    .footer-logo img {
        height: clamp(5.5rem, 14vw, 7.5rem);
    }

}

@media (max-width: 768px) {
    nav {
        position: relative;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        padding: 0.55rem 0.75rem;
        min-height: 3.4rem;
        gap: 0.45rem;
    }

    .boton-menu {
        display: flex;
        align-items: center;
        justify-content: center;
        grid-area: 1 / 1;
        width: 2.2rem;
        height: 2.2rem;
        z-index: 1200;
    }

    .nav-izq {
        display: contents;
    }

    .logo {
        position: fixed;
        left: 1rem;
        bottom: 1rem;
        z-index: 900;
        display: flex;
        align-items: center;
        line-height: 0;
    }

    .logo img {
        height: 2.35rem;
        width: auto;
    }

    .menu-extra {
        display: none;
    }

    .utiles {
        grid-area: 1 / 2 / 2 / 4;
        display: flex;
        align-items: center;
        gap: 0.4rem;
        min-width: 0;
        margin-left: 0;
        z-index: 1002;
    }

    .carrito-wrap {
        margin-left: 0.35rem;
    }

    .menu-carrito {
        width: min(86vw, 22rem);
        min-width: 0;
    }

    .menu {
        grid-area: 1 / 1;
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 1100;
        width: min(280px, 80vw);
        height: 100vh;
        flex-direction: column;
        gap: 0;
        margin: 0;
        padding: 4.5rem 0 1.5rem;
        background: rgba(0, 0, 0, 0.96);
        border-right: 1px solid rgba(255, 255, 255, 0.08);
        overflow: auto;
        transform: translateX(-100%);
        pointer-events: none;
        transition: transform 0.3s ease;
    }

    nav.menu-abierto .menu {
        transform: none;
        pointer-events: auto;
    }

    .menu li {
        width: 100%;
        justify-content: flex-start;
    }

    .menu a {
        display: block;
        width: 100%;
        padding: 0.95rem 1.5rem;
        font-size: 0.8rem;
        letter-spacing: 0.16em;
        text-align: left;
    }

    .menu a::after {
        left: 1.5rem;
        right: auto;
        bottom: 0.55rem;
        width: 40%;
    }

    .iconos {
        gap: 0.35rem;
    }

    .cuadrado {
        width: 26px;
        height: 26px;
    }

    .material-symbols-outlined {
        font-size: 20px;
    }

    .mega-panel-inner {
        padding: 1rem 1.25rem;
    }

    .mega-panel-cols,
    .cols-tienda,
    #panel-contact .mega-panel-cols,
    .panel-subcols {
        grid-template-columns: 1fr;
        gap: 1rem;
        overflow: auto;
    }

    .mega-panel {
        position: fixed;
        inset: 0;
        top: 0;
        z-index: 1150;
        width: 100%;
        height: 0;
        background: rgba(0, 0, 0, 0.96);
        transition: height 0.25s ease;
    }

    .mega-panel.abierto {
        height: 100dvh;
        height: 100vh;
    }

    .mega-panel.abierto .mega-panel-inner,
    .mega-panel-inner {
        height: 100%;
        max-height: 100dvh;
        max-height: 100vh;
        padding: 4.75rem 1.5rem 2rem;
        overflow: auto;
        box-sizing: border-box;
    }

    .panel-buscar {
        position: absolute;
        inset: auto;
        top: auto;
        left: 0;
        z-index: 1100;
        width: 100%;
        height: 0;
        background: rgba(0, 0, 0, 0.78);
    }

    .panel-buscar.abierto {
        position: fixed;
        top: var(--menu-h, 5.8rem);
        right: 0;
        bottom: 0;
        left: 0;
        width: auto;
        height: auto;
    }

    .panel-buscar.abierto .mega-panel-inner {
        height: auto;
        max-height: none;
        padding: 1.25rem 0 0;
        overflow: visible;
    }

    .whatsapp-float {
        right: 1rem;
        bottom: 1rem;
        width: 2.35rem;
        height: 2.35rem;
    }

    .site-footer {
        padding: 2rem 1.25rem 1.25rem;
    }

    .footer-top {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 1.5rem;
    }

    .footer-pill,
    .footer-contacto {
        justify-self: center;
        width: min(100%, 20rem);
        min-height: 5.75rem;
        padding: 1rem 1.15rem;
        border-radius: 1rem;
        font-size: 1.15rem;
    }

    .footer-logo img {
        height: clamp(5.5rem, 28vw, 7.5rem);
    }

    .footer-legal {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 0.55rem 0.7rem;
    }

    .footer-pill,
    .footer-contacto {
        width: min(100%, 18.5rem);
        min-height: 5.25rem;
        font-size: 1rem;
        gap: 0.55rem;
        padding: 0.9rem 1rem;
    }

    .pago-badge {
        min-width: 2.7rem;
        height: 1.65rem;
        font-size: 0.6rem;
    }
}
.carrito-item {
    display: grid;
    grid-template-columns: 4.75rem 1fr;
    gap: 0.8rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--carrito-linea);
}

.carrito-item:last-child { border-bottom: 0; }

.carrito-item-media {
    display: block;
    width: 4.75rem;
    height: 4.75rem;
    overflow: hidden;
    border: 1px solid #2d2d2d;
    border-radius: 0.45rem;
    background: #fff;
}

.carrito-item-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.carrito-item-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.carrito-item-nombre {
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    line-height: 1.25;
    text-decoration: none;
}

.carrito-item-meta {
    color: rgba(255,255,255,.66);
    font-size: 0.72rem;
}

.carrito-stock-alerta {
    color: #ffb4b4;
    font-weight: 700;
}

.carrito-item-controles {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.carrito-item-controles button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.8rem;
    height: 1.8rem;
    padding: 0 0.4rem;
    border: 1px solid #3a3a3a;
    border-radius: 0.35rem;
    background: #171717;
    color: #fff;
    cursor: pointer;
}

.carrito-item-controles button:hover { border-color: #666; }
.carrito-item-cantidad { min-width: 1.7rem; text-align: center; font-weight: 700; }
.carrito-item-eliminar { margin-left: auto; color: #ff6464 !important; }
.carrito-item-eliminar .material-symbols-outlined { font-size: 1rem; }
.carrito-item-total { font-size: 0.9rem; color: #fff; }
.carrito-vacio { margin: 0; color: rgba(255,255,255,.7); font-size: 0.85rem; }
.carrito-btn.deshabilitado { opacity: .45; pointer-events: none; }

/* Cuenta de cliente */
.cuenta-wrap { position: relative; }
.cuenta-wrap > .cuadrado { overflow: hidden; }
.cuenta-icono-avatar {
    width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block;
}
.menu-cuenta {
    position: absolute;
    top: calc(100% + .75rem);
    right: 0;
    z-index: 1300;
    display: none;
    width: min(22rem, calc(100vw - 2rem));
    overflow: hidden;
    border: 1px solid #303030;
    border-radius: .75rem;
    background: #151515;
    box-shadow: 0 1rem 2.5rem rgba(0,0,0,.55);
    color: #fff;
}
.menu-cuenta.abierto { display: block; }
.menu-cuenta-perfil {
    display: flex; align-items: center; gap: .8rem;
    padding: 1rem;
    border-bottom: 1px solid #2b2b2b;
}
.menu-cuenta-avatar {
    display: grid; place-items: center; flex: 0 0 3rem;
    width: 3rem; height: 3rem; overflow: hidden;
    border: 1px solid #363636; border-radius: 50%; background: #222;
}
.menu-cuenta-avatar img { width: 100%; height: 100%; object-fit: cover; }
.menu-cuenta-perfil strong,
.menu-cuenta-perfil small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-cuenta-perfil strong { max-width: 15rem; font-size: .9rem; }
.menu-cuenta-perfil small { max-width: 15rem; margin-top: .15rem; color: #aaa; font-size: .72rem; }
.menu-cuenta-nav { display: grid; padding: .4rem; }
.menu-cuenta-nav a,
.menu-cuenta-nav button {
    display: flex; align-items: center; gap: .7rem;
    width: 100%; padding: .75rem .8rem;
    border: 0; border-radius: .45rem;
    background: transparent; color: #eee;
    text-align: left; text-decoration: none;
    font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer;
}
.menu-cuenta-nav a:hover,
.menu-cuenta-nav button:hover { background: #252525; color: #fff; text-decoration: none; }
.menu-cuenta-nav button { color: #ff8686; }
.menu-cuenta-nav .material-symbols-outlined { font-size: 1.15rem; }

/* -------------------------------------------------------------------------- */
/* Celular / tablet angosta: barra de búsqueda blanca en el header + idioma   */
/* al extremo derecho (después del carrito)                                   */
/* -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .utiles .buscar-movil,
    .utiles .idioma-movil {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
    }

    .utiles .buscar-movil {
        flex: 1 1 auto;
        display: flex;
        align-items: center;
        min-width: 0;
        width: auto;
        height: 2.2rem;
        margin: 0;
        padding: 0;
        overflow: hidden;
        border: 0;
        border-radius: 0.3rem;
        background: #fff;
        color: #5c5c5c;
        font-family: var(--fuente);
        text-align: left;
    }

    .utiles .buscar-movil::after {
        display: none;
    }

    .utiles .buscar-movil:is(:hover, :active, :focus-visible) {
        color: #5c5c5c;
    }

    .buscar-movil::before {
        content: "search";
        flex: 0 0 auto;
        padding: 0 0.35rem 0 0.55rem;
        color: #1a1a1a;
        font-family: "Material Symbols Outlined";
        font-size: 1.15rem;
        line-height: 1;
        letter-spacing: normal;
        text-transform: none;
        -webkit-font-feature-settings: "liga";
        font-feature-settings: "liga";
    }

    .utiles .buscar-movil input {
        flex: 1 1 auto;
        align-self: stretch;
        min-width: 0;
        height: 100%;
        margin: 0;
        padding: 0 0.45rem 0 0;
        border: 0;
        outline: 0;
        background: transparent;
        color: #1a1a1a;
        font-family: var(--fuente);
        font-size: 16px;
        font-weight: 500;
        letter-spacing: 0;
        line-height: 2.2rem;
        text-transform: none;
        -webkit-appearance: none;
        appearance: none;
    }

    .utiles .buscar-movil input::placeholder {
        color: #5c5c5c;
        text-transform: none;
    }

    .utiles .buscar-movil button {
        flex: 0 0 auto;
        align-self: center;
        width: 2.2rem;
        height: 2.2rem;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: var(--rojo);
        color: #fff;
        cursor: pointer;
    }

    .buscar-movil .material-symbols-outlined {
        flex: 0 0 auto;
        display: grid;
        place-items: center;
        width: 2.2rem;
        height: 2.2rem;
        background: var(--rojo);
        color: #fff;
        font-size: 1.15rem;
        line-height: 1;
    }

    .utiles .iconos,
    .utiles .idioma-movil {
        display: flex;
        align-items: center;
        height: 2.2rem;
        margin: 0;
    }

    .utiles .iconos {
        order: 1;
        gap: 0.2rem;
    }

    .utiles .idioma-movil {
        order: 2;
    }

    .utiles .cuadrado {
        width: 2.2rem;
        height: 2.2rem;
    }

    .carrito-wrap {
        margin-left: 0;
    }
}
