/* ==========================================
   PALETA Y TIPOGRAFÍA — Juana Franco Boutique
   Beige + blanco crema, serif editorial + Montserrat
   ========================================== */
:root {
    --crema: #faf6ee;         /* fondo principal */
    --crema-suave: #f3ecdd;   /* fondos secundarios (beneficios, chips) */
    --beige: #ede3d0;         /* superficies, imágenes placeholder */
    --beige-borde: #e2d5ba;   /* líneas y bordes */
    --marron: #3c3128;        /* texto principal / "negro" de marca */
    --marron-suave: #6b5d4d;  /* texto secundario */
    --marron-tenue: #9c8f7c;  /* texto terciario / labels */
    --acento: #a9764f;        /* detalle cálido puntual (cuotas, focos) */
    --blanco: #ffffff;
    --whatsapp: #25d366;
    --whatsapp-hover: #1ebd59;
    --danger: #c0433f;
    --ff-serif: 'Cormorant Garamond', 'Georgia', serif;
    --ff-sans: 'Montserrat', sans-serif;

    /* Paneles oscuros: menú lateral y carrito */
    --marron-oscuro: #2b2119;
    --marron-oscuro-borde: #453626;
    --crema-texto: #f3ead9;
    --acento-claro: #d19f6d;
}

/* Agregar en el <head>, junto a la fuente Montserrat:
<link href="https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&display=swap" rel="stylesheet">
*/

/* ==========================================
   RESET Y ESTILOS BASE
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--ff-sans);
}

html {
    scroll-behavior: smooth;
    /* FIX: el header queda "sticky" arriba, pero nada compensaba su altura
       al saltar a una sección (menú, filtros de categoría, etc.) — por eso
       el destino quedaba tapado y se veía "cortado a la mitad". */
    scroll-padding-top: 100px;
}

body {
    background-color: var(--crema);
    color: var(--marron);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button, input, select {
    font-family: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid var(--marron);
    outline-offset: 2px;
}

::selection {
    background: var(--acento);
    color: #fff;
}

/* ==========================================
   CABECERA PRINCIPAL (NAVBAR)
   ========================================== */
#main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--crema);
    border-bottom: 1px solid var(--beige-borde);
    width: 100%;
    margin: 0;
    padding: 0;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.navbar-left {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: flex-start;
}

.hamburger-btn {
    background: transparent;
    border: none;
    font-size: 1.3rem;
    color: var(--marron);
    cursor: pointer;
    padding: 5px;
    margin-left: -5px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    transition: transform 0.3s ease, color 0.3s ease, opacity 0.2s;
}

.hamburger-btn:hover {
    opacity: 0.65;
}

.hamburger-btn.desplazado {
    transform: translateX(250px);
    color: var(--marron);
}

.navbar-logo {
    display: flex;
    flex-direction: column;
    text-align: center;
    flex: 1;
}

.brand-title {
    font-family: var(--ff-serif);
    font-size: 1.7rem;
    font-weight: 600;
    letter-spacing: 3px;
    margin: 0;
    line-height: 1.1;
    color: var(--marron);
}

.brand-subtitle {
    font-size: 0.58rem;
    letter-spacing: 4px;
    color: var(--acento);
    font-weight: 600;
    display: block;
    margin-top: 2px;
}

.navbar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 25px;
    flex: 1;
}

.navbar-menu {
    display: flex;
    gap: 25px;
}

.navbar-menu a {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: var(--marron);
    padding-bottom: 3px;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.navbar-menu a:hover {
    color: var(--acento);
    border-color: var(--acento);
}

.cart-btn {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    position: relative;
    color: var(--marron);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -8px;
    background-color: var(--marron);
    color: var(--crema);
    font-size: 0.6rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ==========================================
   MENÚ LATERAL DESPLEGABLE Y SUBMENÚ
   ========================================== */
.menu-lateral-fondo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(60, 49, 40, 0.45);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-lateral-fondo.activo {
    opacity: 1;
    visibility: visible;
}

.menu-lateral-contenedor {
    position: absolute;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100%;
    background: var(--marron-oscuro);
    color: var(--crema-texto);
    padding: 26px 26px 40px;
    transition: left 0.35s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    box-shadow: 12px 0 40px rgba(0, 0, 0, 0.3);
}

.menu-lateral-fondo.activo .menu-lateral-contenedor {
    left: 0;
}

.menu-lateral-cabecera {
    display: flex;
    justify-content: flex-end;
    padding-bottom: 14px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--marron-oscuro-borde);
}

.menu-cerrar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(243, 234, 217, 0.25);
    background: transparent;
    color: var(--crema-texto);
    font-size: 1.3rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.menu-cerrar:hover {
    background: var(--acento-claro);
    border-color: var(--acento-claro);
    color: var(--marron-oscuro);
    transform: rotate(90deg);
}

.menu-lateral-lista {
    margin-top: 16px;
}

.menu-lateral-lista li {
    margin-bottom: 0;
    border-bottom: 1px solid var(--marron-oscuro-borde);
}

.menu-lateral-lista li:last-child {
    border-bottom: none;
}

.menu-lateral-lista a,
.link-menu-item {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    font-weight: 500;
    color: var(--crema-texto);
    display: block;
    padding: 15px 2px;
    transition: color 0.2s ease, transform 0.2s ease, padding-left 0.2s ease;
    cursor: pointer;
}

.menu-lateral-lista a:hover,
.link-menu-item:hover {
    color: var(--acento-claro);
    padding-left: 8px;
}

.menu-item-desplegable {
    margin-bottom: 0;
    border-bottom: 1px solid var(--marron-oscuro-borde);
}

.menu-item-desplegable:last-child {
    border-bottom: none;
}

.menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    cursor: pointer;
    padding: 15px 2px;
    color: var(--crema-texto);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.menu-item-header:hover {
    color: var(--acento-claro);
}

.flecha-subm {
    font-size: 0.7rem;
    transition: transform 0.3s ease, color 0.2s ease;
    color: rgba(243, 234, 217, 0.55);
}

.menu-item-desplegable.activo .flecha-subm {
    transform: rotate(180deg);
    color: var(--acento-claro);
}

.sub-menu-categorias,
.subm-lista {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, margin-bottom 0.3s ease;
    padding-left: 14px;
    margin-top: 0;
    margin-bottom: 0;
    border-left: 1px solid rgba(209, 159, 109, 0.35);
}

.sub-menu-categorias.desplegado,
.subm-lista.desplegado,
.menu-item-desplegable.activo .sub-menu-categorias,
.menu-item-desplegable.activo .subm-lista {
    max-height: 600px;
    margin-bottom: 10px;
}

.sub-menu-categorias li,
.subm-lista li {
    margin-bottom: 0 !important;
    border-bottom: none !important;
}

.link-subcategoria {
    font-size: 0.74rem !important;
    letter-spacing: 1px !important;
    font-weight: 400 !important;
    color: rgba(243, 234, 217, 0.62) !important;
    padding: 9px 2px !important;
    display: block;
    transition: color 0.2s ease, transform 0.2s ease !important;
}

.link-subcategoria:hover {
    color: var(--acento-claro) !important;
    transform: translateX(4px);
}

/* ==========================================
   HERO EDITORIAL
   ========================================== */
.hero-editorial {
    height: 75vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 0 8%;
    color: #fff;
    position: relative;
}

.hero-editorial::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(60,49,40,0.55) 0%, rgba(60,49,40,0.2) 65%);
}

.hero-editorial-contenido {
    position: relative;
    z-index: 1;
    max-width: 520px;
}

.hero-tag {
    font-size: 0.75rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
    color: var(--crema-suave);
}

.hero-editorial-contenido h2 {
    font-family: var(--ff-serif);
    font-size: 3.1rem;
    font-weight: 600;
    margin: 10px 0;
    line-height: 1.15;
}

.hero-editorial-contenido p {
    font-size: 0.9rem;
    margin-bottom: 26px;
    font-weight: 300;
    color: var(--crema-suave);
}

.btn-editorial {
    display: inline-block;
    padding: 13px 32px;
    background-color: var(--crema);
    color: var(--marron);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: background-color 0.2s, color 0.2s;
}

.btn-editorial:hover {
    background-color: var(--marron);
    color: var(--crema);
}

/* ==========================================
   BENEFICIOS
   ========================================== */
.seccion-beneficios {
    background-color: var(--crema-suave);
    padding: 42px 5%;
    border-top: 1px solid var(--beige-borde);
    border-bottom: 1px solid var(--beige-borde);
}

.grilla-beneficios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
    max-width: 1400px;
    margin: 0 auto;
}

.beneficio-icono {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--acento);
}

.beneficio-item h3 {
    font-size: 0.84rem;
    font-weight: 600;
    margin-bottom: 5px;
    letter-spacing: 0.3px;
}

.beneficio-link {
    font-size: 0.75rem;
    color: var(--marron-suave);
}

/* ==========================================
   CATÁLOGO DE PRODUCTOS Y FILTROS TIPO CÁPSULA (CHIPS)
   ========================================== */
.seccion-favoritos {
    padding: 64px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.seccion-titulo {
    text-align: center;
    font-family: var(--ff-serif);
    font-size: 2.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 8px;
    text-transform: none;
}

.seccion-titulo::after {
    content: "";
    display: block;
    width: 46px;
    height: 2px;
    background: var(--acento);
    margin: 18px auto 32px;
}

.contenedor-filtros {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 5px 20px 5px;
    margin-bottom: 30px;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    justify-content: flex-start;
    scrollbar-width: thin;
}

.contenedor-filtros::-webkit-scrollbar {
    height: 4px;
}

.contenedor-filtros::-webkit-scrollbar-track {
    background: var(--crema-suave);
    border-radius: 10px;
}

.contenedor-filtros::-webkit-scrollbar-thumb {
    background: var(--beige-borde);
    border-radius: 10px;
}

.contenedor-filtros::-webkit-scrollbar-thumb:hover {
    background: var(--marron-tenue);
}

.btn-filtro {
    background-color: var(--crema-suave);
    color: var(--marron-suave);
    border: 1px solid var(--beige-borde);
    padding: 10px 22px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    text-transform: uppercase;
    border-radius: 25px;
    flex-shrink: 0;
    transition: all 0.25s ease;
    outline: none;
}

.btn-filtro:hover {
    background-color: var(--beige);
    color: var(--marron);
    border-color: var(--marron-tenue);
}

.btn-filtro.activo {
    background-color: var(--marron);
    color: var(--crema);
    border-color: var(--marron);
    box-shadow: 0 2px 8px rgba(60, 49, 40, 0.18);
}

.catalogo {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 30px;
}

.tarjeta-producto {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background-color: var(--crema);
    overflow: hidden;
    cursor: pointer;
}

.tarjeta-imagen-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background-color: var(--beige);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tarjeta-imagen-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.img-hover {
    opacity: 0;
}

.tarjeta-producto:hover .img-hover,
.tarjeta-producto.tocando .img-hover {
    opacity: 1;
}

.tarjeta-producto:hover .img-principal,
.tarjeta-producto.tocando .img-principal {
    opacity: 0;
}

.cuotas-tag {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: rgba(60, 49, 40, 0.88);
    color: #fff;
    font-size: 0.65rem;
    padding: 4px 8px;
    letter-spacing: 0.5px;
    z-index: 2;
    border-radius: 2px;
}

.badge-stock {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 4px 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 3;
    border-radius: 2px;
}

.badge-sin-stock {
    background-color: var(--marron);
    color: var(--crema);
}

.badge-ultimas-unidades {
    background-color: #b5772f;
    color: #ffffff;
}

.producto-agotado {
    opacity: 0.7;
}

.producto-agotado .tarjeta-imagen-wrapper img {
    filter: grayscale(35%);
}

.tarjeta-info {
    padding: 13px 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tarjeta-categoria-lbl {
    font-size: 0.64rem;
    color: var(--marron-tenue);
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.tarjeta-titulo {
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--marron);
}

.tarjeta-precio-linea {
    display: flex;
    align-items: center;
    gap: 8px;
}

.precio-monto {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--marron);
}

.btn-rapido-modal {
    margin-top: 9px;
    background: none;
    border: 1px solid var(--marron);
    padding: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--marron);
    cursor: pointer;
    width: 100%;
    transition: all 0.2s ease;
}

.tarjeta-producto:hover .btn-rapido-modal,
.tarjeta-producto.tocando .btn-rapido-modal {
    background-color: var(--marron);
    color: var(--crema);
}

/* ==========================================
   FAQ & MEDIOS DE PAGO
   ========================================== */
.seccion-faq {
    padding: 60px 5%;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--beige-borde);
    padding: 18px 0;
}

.faq-cabecera {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.faq-cabecera h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--marron);
}

.faq-icono {
    font-size: 0.8rem;
    color: var(--acento);
    transition: transform 0.3s ease;
}

.faq-contenido {
    display: none;
    padding-top: 12px;
    font-size: 0.8rem;
    color: var(--marron-suave);
    line-height: 1.6;
}

.faq-item.activo .faq-contenido {
    display: block;
}

.faq-item.activo .faq-icono {
    transform: rotate(180deg);
}

/* ==========================================
   SECCIÓN CONTACTO / HABLEMOS
   ========================================== */
.contacto-seccion {
    padding: 64px 20px;
    background-color: var(--marron);
    text-align: center;
    border-top: 1px solid var(--beige-borde);
}

.contacto-info {
    max-width: 650px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.contacto-info h2 {
    font-family: var(--ff-serif);
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--crema);
    text-transform: none;
    margin: 0;
}

.contacto-info p {
    font-size: 0.9rem;
    color: var(--crema-suave);
    line-height: 1.6;
    margin: 0;
    font-weight: 300;
}

.btn-contacto-wpp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: #ffffff;
    background-color: var(--whatsapp);
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    margin-top: 5px;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.25);
}

.btn-contacto-wpp i {
    font-size: 1.2rem;
}

.btn-contacto-wpp:hover {
    background-color: var(--whatsapp-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(37, 211, 102, 0.35);
}

.redes-sociales-iconos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
}

.redes-sociales-iconos a {
    font-size: 1.4rem;
    color: var(--crema-suave);
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.redes-sociales-iconos a:hover {
    color: #fff;
    transform: scale(1.15);
}

/* ==========================================
   FOOTER Y BOTÓN WHATSAPP
   ========================================== */
footer {
    text-align: center;
    padding: 22px;
    border-top: 1px solid var(--beige-borde);
    font-size: 0.75rem;
    color: var(--marron-suave);
    background-color: var(--marron);
    color: var(--crema-suave);
}

.btn-wpp-flotante {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: var(--whatsapp);
    color: #fff;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 15px rgba(60, 49, 40, 0.3);
    z-index: 999;
    transition: transform 0.2s ease;
}

.btn-wpp-flotante:hover {
    transform: scale(1.08);
}

/* ============================================================
   MODALES Y SIDEBAR
   ============================================================ */
.modal-fondo,
.carrito-sidebar-fondo {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(40, 32, 26, 0.55);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-fondo.activo,
.carrito-sidebar-fondo.activo {
    opacity: 1;
    visibility: visible;
}

.modal-contenedor {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.96);
    background: var(--crema);
    width: 92%;
    max-width: 1000px;
    height: 85vh;
    max-height: 680px;
    padding: 36px;
    border-radius: 14px;
    overflow: visible;
    box-sizing: border-box;
    box-shadow: 0 30px 70px rgba(40, 32, 26, 0.28);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.modal-fondo.activo .modal-contenedor {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.modal-estilo-zephyr {
    position: relative;
    height: 100%;
}

.btn-cerrar-modal {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--crema);
    border: 1px solid var(--beige-borde);
    font-size: 1.05rem;
    color: var(--marron);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1100;
    box-shadow: 0 4px 12px rgba(60, 49, 40, 0.14);
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.btn-cerrar-modal:hover {
    background-color: var(--beige);
    transform: rotate(90deg);
}

.btn-cerrar-modal:active {
    transform: scale(0.92);
}

.modal-estilo-zephyr .modal-cuerpo {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 44px;
    height: 100%;
    align-items: start;
    overflow: hidden;
}

.modal-col-izq-zephyr {
    display: flex;
    gap: 16px;
    align-items: start;
    height: 100%;
}

.miniaturas-columna {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 62px;
    flex-shrink: 0;
    overflow-y: auto;
    padding-right: 2px;
}

.thumb-item {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: contain;
    background-color: var(--beige);
    cursor: pointer;
    border: 1px solid var(--beige-borde);
    border-radius: 6px;
    opacity: 0.6;
    transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.thumb-item:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.thumb-item.activa {
    opacity: 1;
    border-color: var(--marron);
    border-width: 2px;
}

.imagen-principal-wrapper {
    flex: 1;
    height: 100%;
    max-height: 100%;
    aspect-ratio: 3 / 4;
    background-color: var(--beige);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.imagen-principal-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.modal-col-der-zephyr {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
    padding-right: 14px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.modal-col-der-zephyr::-webkit-scrollbar {
    width: 5px;
}

.modal-col-der-zephyr::-webkit-scrollbar-track {
    background: var(--crema-suave);
    border-radius: 4px;
}

.modal-col-der-zephyr::-webkit-scrollbar-thumb {
    background: var(--beige-borde);
    border-radius: 4px;
}

.modal-col-der-zephyr::-webkit-scrollbar-thumb:hover {
    background: var(--marron-tenue);
}

.breadcrumb-zephyr {
    font-size: 0.68rem;
    letter-spacing: 0.5px;
    color: var(--marron-tenue);
    margin-bottom: 12px;
    padding-right: 40px;
    text-transform: uppercase;
}

.modal-titulo-zephyr {
    font-family: var(--ff-serif);
    font-size: 1.9rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.2;
    color: var(--marron);
}

.precios-linea-zephyr {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 22px;
}

.precio-actual-zephyr {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--marron);
}

.cuotas-texto-zephyr {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--acento);
    background: var(--crema-suave);
    padding: 5px 10px;
    border-radius: 20px;
}

.opcion-grupo {
    margin-bottom: 18px;
}

.opcion-grupo label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    text-transform: uppercase;
    color: var(--marron-suave);
}

.selector-opciones {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-opcion-chip {
    background: none;
    border: 1px solid var(--beige-borde);
    padding: 8px 16px;
    font-size: 0.72rem;
    color: var(--marron);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.18s ease;
}

.btn-opcion-chip:hover {
    border-color: var(--marron);
}

.btn-opcion-chip.seleccionado {
    border-color: var(--marron);
    background-color: var(--marron);
    color: var(--crema);
}

.btn-agregar-zephyr {
    width: 100%;
    padding: 15px;
    background-color: var(--marron);
    color: var(--crema);
    border: none;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    cursor: pointer;
    margin-top: 14px;
    border-radius: 6px;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-agregar-zephyr:hover {
    background-color: var(--acento);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(60, 49, 40, 0.2);
}

.btn-agregar-zephyr:disabled {
    background-color: var(--beige-borde) !important;
    color: var(--marron-tenue) !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

.status-agregado-linea {
    display: none;
    justify-content: space-between;
    align-items: center;
    background: #eef2ea;
    color: #45633f;
    padding: 12px 14px;
    font-size: 0.75rem;
    margin-top: 12px;
    border-radius: 6px;
}

.link-ver-carrito-inline {
    text-decoration: underline;
    font-weight: 700;
    cursor: pointer;
}

.acordeon-item {
    margin-top: 18px;
    border-top: 1px solid var(--beige-borde);
    padding-top: 14px;
}

.acordeon-cabecera {
    display: flex;
    justify-content: space-between;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--marron);
    cursor: pointer;
}

.acordeon-contenido {
    display: none;
    font-size: 0.76rem;
    color: var(--marron-suave);
    margin-top: 10px;
    line-height: 1.7;
}

.seccion-medidas {
    margin-top: 22px;
}

.medidas-titulo {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    color: var(--marron);
}

.tabla-medidas {
    width: 100%;
    font-size: 0.72rem;
    border-collapse: collapse;
}

.tabla-medidas td {
    padding: 7px 0;
    border-bottom: 1px dashed var(--beige-borde);
    color: var(--marron-suave);
}

.text-right {
    text-align: right;
    font-weight: 600;
    color: var(--marron);
}

.descripcion-producto-zephyr {
    font-size: 0.82rem;
    color: var(--marron-suave);
    margin-top: 22px;
    line-height: 1.7;
}

/* SIDEBAR CARRITO */
.carrito-sidebar-contenedor {
    position: absolute;
    top: 0; right: -400px;
    width: 100%; max-width: 400px;
    height: 100%;
    background: var(--crema);
    color: var(--marron);
    padding: 26px;
    display: flex;
    flex-direction: column;
    transition: right 0.35s ease;
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: -12px 0 40px rgba(60, 49, 40, 0.18);
}

.carrito-sidebar-fondo.activo .carrito-sidebar-contenedor {
    right: 0;
}

.carrito-sidebar-cabecera {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--beige-borde);
    padding-bottom: 16px;
}

.carrito-sidebar-cabecera h3 {
    font-family: var(--ff-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--marron);
}

.carrito-cerrar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--beige-borde);
    background: transparent;
    color: var(--marron);
    font-size: 1.3rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.carrito-cerrar:hover {
    background: var(--acento);
    border-color: var(--acento);
    color: #fff;
    transform: rotate(90deg);
}

.carrito-items-lista {
    flex: 1;
    overflow-y: auto;
    margin: 20px 0;
}

.carrito-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--beige-borde);
    padding-bottom: 15px;
}

.carrito-item-img {
    width: 60px;
    height: 80px;
    object-fit: contain;
    background-color: var(--beige);
    border-radius: 6px;
}

.carrito-item-info {
    flex: 1;
}

.carrito-item-info h4 {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--marron);
}

.carrito-item-variantes {
    font-size: 0.7rem;
    color: var(--marron-tenue);
}

.carrito-item-precio {
    font-size: 0.8rem;
    font-weight: 700;
    display: block;
    margin: 4px 0;
    color: var(--acento);
}

.carrito-item-controles {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
}

.carrito-item-controles button {
    background: var(--beige);
    border: none;
    width: 22px;
    height: 22px;
    cursor: pointer;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--marron);
    transition: background 0.2s ease, color 0.2s ease;
}

.carrito-item-controles button:hover {
    background: var(--acento);
    color: #fff;
}

.btn-eliminar-item {
    color: var(--danger);
    cursor: pointer;
    margin-left: auto;
    transition: color 0.2s ease;
}

.btn-eliminar-item:hover {
    color: #a53632;
}

.carrito-checkout-seccion {
    border-top: 1px solid var(--beige-borde);
    padding-top: 16px;
}

.total-linea,
.total-linea-final {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 10px;
    color: var(--marron);
}

.total-linea-final {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--acento);
}

.modal-select {
    width: 100%;
    padding: 9px;
    font-size: 0.8rem;
    border: 1px solid var(--beige-borde);
    border-radius: 6px;
    background-color: #fff;
    color: var(--marron);
}

.campos-direccion-contenedor {
    display: none;
    margin-top: 10px;
}

.formulario-titulo {
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--marron);
}

.formulario-item-doble {
    display: flex;
    gap: 5px;
    margin-bottom: 5px;
}

.formulario-item-doble input {
    width: 50%;
    padding: 7px;
    font-size: 0.7rem;
    border: 1px solid var(--beige-borde);
    border-radius: 6px;
    background-color: #fff;
    color: var(--marron);
}

.btn-checkout-final {
    width: 100%;
    padding: 13px;
    background-color: var(--whatsapp);
    color: #fff;
    border: none;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    border-radius: 6px;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn-checkout-final:hover {
    background-color: var(--whatsapp-hover);
    transform: translateY(-1px);
}

.btn-checkout-final:disabled {
    background-color: var(--beige-borde) !important;
    cursor: not-allowed !important;
}

/* ==========================================
   POPUP NOTIFICACIÓN
   ========================================== */
.popup-agregado {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--crema);
    border: 1px solid var(--beige-borde);
    box-shadow: 0 5px 20px rgba(60, 49, 40, 0.2);
    padding: 15px;
    width: 320px;
    z-index: 3000;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    border-radius: 8px;
}

.popup-agregado.activo {
    display: block !important;
    opacity: 1;
    transform: translateY(0);
}

.popup-header {
    display: flex;
    gap: 10px;
    position: relative;
}

.popup-thumb {
    width: 50px;
    height: 65px;
    object-fit: contain;
    background-color: var(--beige);
    border-radius: 4px;
}

.popup-info-prod h4 {
    font-size: 0.75rem;
    color: var(--marron);
}

.popup-precio-txt {
    font-size: 0.75rem;
    font-weight: 700;
    display: block;
    color: var(--marron);
}

.popup-badge-exito {
    font-size: 0.65rem;
    color: var(--whatsapp);
    font-weight: 600;
}

.popup-cerrar {
    position: absolute;
    top: 0; right: 0;
    cursor: pointer;
    color: var(--marron-suave);
}

.popup-total-linea {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    margin: 10px 0;
    border-top: 1px solid var(--beige-borde);
    padding-top: 8px;
    color: var(--marron);
}

.btn-ver-carrito-popup {
    width: 100%;
    padding: 8px;
    background: var(--marron);
    color: var(--crema);
    border: none;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 4px;
}

/* ==========================================
   MODALES INFORMATIVOS DE TABLA / GUÍA
   ========================================== */
.modal-info {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(40, 32, 26, 0.5);
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-info.activo {
    opacity: 1;
    visibility: visible;
}

.modal-info-contenido {
    background: var(--crema);
    width: 90%;
    max-width: 550px;
    padding: 25px;
    border-radius: 8px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
    color: var(--marron);
}

.cerrar-modal-info {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--marron);
}

/* ==========================================
   REGLAS ADAPTATIVAS Y MÓVIL
   ========================================== */
@media screen and (max-width: 992px) {
    .navbar-menu {
        display: none !important;
    }
}

@media screen and (max-width: 768px) {
    .modal-contenedor {
        width: 95%;
        height: 90vh;
        max-height: none;
        overflow-y: auto;
        padding: 22px 16px;
        border-radius: 12px;
    }

    .modal-estilo-zephyr .modal-cuerpo {
        grid-template-columns: 1fr;
        gap: 18px;
        height: auto;
        overflow: visible;
    }

    .modal-col-izq-zephyr {
        flex-direction: column-reverse;
        align-items: center;
        width: 100%;
        height: auto;
    }

    .imagen-principal-wrapper {
        width: 100%;
        max-width: 280px;
        aspect-ratio: 3 / 4;
        height: auto;
        margin: 0 auto;
    }

    .modal-col-der-zephyr {
        height: auto;
        overflow-y: visible;
        padding-right: 0;
    }

    .miniaturas-columna {
        flex-direction: row;
        width: 100%;
        justify-content: center;
        gap: 8px;
        overflow-y: visible;
    }

    .thumb-item {
        width: 45px;
        height: 60px;
    }

    .btn-cerrar-modal {
        top: 8px;
        right: 8px;
        width: 32px;
        height: 32px;
        font-size: 0.95rem;
    }

    .btn-filtro {
        padding: 8px 18px;
        font-size: 0.7rem;
    }

    .hamburger-btn.desplazado {
        transform: translateX(0);
    }
}

@media screen and (max-width: 576px) {
    .brand-title {
        font-size: 1.25rem;
        letter-spacing: 2px;
    }

    .brand-subtitle {
        font-size: 0.5rem;
        letter-spacing: 3px;
    }

    .hero-editorial-contenido h2 {
        font-size: 2.2rem;
    }

    .catalogo {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }

    .popup-agregado {
        left: 5%;
        right: 5%;
        width: 90%;
    }
}