/* =====================================================
   LA LUPE - STYLES V2
   Mobile-first · Tap targets ≥44px · Brand-compliant
   ===================================================== */

/* === DESIGN TOKENS ============================ */
:root {
    /* Brand palette */
    --c-primary: #753F1B;
    --c-primary-dark: #2B0302;
    --c-gold: #EFAC52;
    --c-red: #C0272D;
    --c-cream: #FFF8DC;
    --c-cream-light: #FFFEF7;
    --c-white: #FFFFFF;
    --c-text: #2B0302;
    --c-text-soft: #5C3517;
    --c-border: rgba(117, 63, 27, 0.18);
    --c-whatsapp: #25D366;
    --c-success: #2D7D5F;

    /* Typography - Fraunces (serif editorial con opsz) + Inter Tight (sans modern) */
    --font-sans:    'Inter Tight', system-ui, -apple-system, sans-serif;
    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-script:  'Fraunces', Georgia, serif; /* deprecated alias - usa font-display + italic */

    /* Fluid type scale */
    --t-display: clamp(2.5rem, 5vw + 1rem, 4.5rem);
    --t-h1: clamp(2rem, 3.5vw + 1rem, 3rem);
    --t-h2: clamp(1.5rem, 2.5vw + 0.8rem, 2.25rem);
    --t-h3: clamp(1.15rem, 1.2vw + 0.7rem, 1.5rem);
    --t-body: 1rem;
    --t-small: 0.875rem;
    --t-micro: 0.75rem;
    --t-script-pull: clamp(2rem, 3.5vw + 1rem, 3.25rem);
    --t-script-label: 1.125rem;

    /* Spacing scale (4-px based) */
    --sp-1: 4px;
    --sp-2: 8px;
    --sp-3: 12px;
    --sp-4: 16px;
    --sp-5: 24px;
    --sp-6: 32px;
    --sp-7: 48px;
    --sp-8: 64px;
    --sp-9: 96px;

    /* Radii */
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 20px;
    --r-pill: 999px;

    /* Shadows */
    --sh-sm: 0 2px 8px rgba(43, 3, 2, 0.06);
    --sh-md: 0 8px 24px rgba(43, 3, 2, 0.1);
    --sh-lg: 0 20px 60px rgba(43, 3, 2, 0.16);

    /* Motion */
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --t-fast: 150ms;
    --t-base: 250ms;
    --t-slow: 600ms;

    /* Layout */
    --max-w: 1200px;
}

/* === RESET ===================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-sans);
    font-size: var(--t-body);
    line-height: 1.6;
    color: var(--c-text);
    background: var(--c-cream-light);
    overflow-x: hidden;
}
img, picture, svg { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
input, select, textarea { font: inherit; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }

/* === ACCESSIBILITY ============================= */
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0;
    margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* === CONTAINER ================================= */
.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--sp-4);
}
@media (min-width: 768px) {
    .container { padding: 0 var(--sp-5); }
}

/* === SECTION HEADER ============================ */
.section-header {
    margin-bottom: var(--sp-7);
    max-width: 720px;
}
.section-header.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
/* Kicker editorial - uppercase con tracking + barra roja a la izquierda */
.kicker {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--c-red);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: var(--sp-3);
}
.kicker::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 1px;
    background: var(--c-red);
}
.kicker-light { color: var(--c-gold); }
.kicker-light::before { background: var(--c-gold); }
.section-header.center .kicker { /* sin rotación */ }
.section-title {
    font-family: var(--font-display);
    font-size: var(--t-h1);
    font-weight: 400;
    font-variation-settings: 'opsz' 144, 'wght' 500;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--c-text);
    margin-bottom: var(--sp-3);
}
.section-sub {
    color: var(--c-text-soft);
    font-size: var(--t-body);
}

/* === SCRIPT ACCENT - ahora serif italic editorial (no cursiva) ====== */
.script-accent {
    font-family: var(--font-display);
    font-weight: 400;
    font-style: italic;
    color: var(--c-gold);
    font-variation-settings: 'opsz' 144;
    letter-spacing: -0.01em;
}

/* === BUTTONS =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    min-height: 48px;
    padding: 14px 28px;
    border-radius: var(--r-pill);
    font-weight: 600;
    font-size: var(--t-body);
    letter-spacing: 0.02em;
    transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
    text-align: center;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--c-primary-dark); color: var(--c-cream); }
.btn-primary:hover { background: #4a1410; }
.btn-secondary { background: var(--c-gold); color: var(--c-primary-dark); }
.btn-secondary:hover { background: #d99a3f; }
.btn-whatsapp { background: var(--c-whatsapp); color: var(--c-white); }
.btn-whatsapp:hover { background: #1ebd5a; }
.btn-block { width: 100%; }
.btn-link {
    color: var(--c-text);
    font-size: var(--t-small);
    text-decoration: underline;
    text-underline-offset: 4px;
    padding: 12px 4px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}
.btn-link:hover { color: var(--c-primary); }

/* === NAVBAR ==================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 248, 220, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--c-border);
}
.nav-container {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--sp-3) var(--sp-4);
    gap: var(--sp-4);
}
.logo-img { height: 48px; width: auto; }
.nav-links {
    display: none;
    gap: var(--sp-5);
}
@media (min-width: 1024px) {
    .nav-links { display: flex; align-items: center; }
}
.nav-links a {
    font-size: var(--t-small);
    font-weight: 500;
    padding: 10px 4px;
    transition: color var(--t-fast) var(--ease);
}
.nav-links a:hover { color: var(--c-primary); }
.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
}
.cart-icon-btn {
    position: relative;
    width: 44px; height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-md);
    color: var(--c-text);
    transition: background var(--t-fast) var(--ease);
}
.cart-icon-btn:hover { background: rgba(117, 63, 27, 0.08); }
.cart-badge {
    position: absolute;
    top: 4px; right: 4px;
    min-width: 18px; height: 18px;
    padding: 0 4px;
    border-radius: var(--r-pill);
    background: var(--c-red);
    color: white;
    font-size: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.cart-badge[hidden] { display: none !important; }

/* Body lock - solo bloquear scroll en móvil cuando el cart drawer está abierto.
   En desktop, el drawer es lateral y la página debe seguir scrolleable. */
@media (max-width: 767px) {
    body.cart-open { overflow: hidden; }
}
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px; height: 44px;
    border-radius: var(--r-md);
}
.mobile-menu-btn span {
    display: block;
    width: 22px; height: 2px;
    background: var(--c-text);
    transition: all var(--t-fast) var(--ease);
}
@media (min-width: 1024px) {
    .mobile-menu-btn { display: none; }
}
.nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    padding: var(--sp-4);
    background: var(--c-cream);
    border-bottom: 1px solid var(--c-border);
    box-shadow: var(--sh-md);
    gap: 0;
}
.nav-links.active a {
    padding: 14px 0;
    border-bottom: 1px solid var(--c-border);
    width: 100%;
}

/* === HERO ====================================== */
.hero {
    padding: var(--sp-7) 0 var(--sp-8);
    background: linear-gradient(180deg, var(--c-cream) 0%, var(--c-cream-light) 100%);
}
.hero-grid {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--sp-4);
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-6);
    align-items: center;
}
@media (min-width: 900px) {
    .hero { padding: var(--sp-8) 0 var(--sp-9); }
    .hero-grid {
        grid-template-columns: 1.2fr 1fr;
        gap: var(--sp-8);
        padding: 0 var(--sp-5);
    }
}
.hero-kicker {
    display: inline-block;
    font-size: var(--t-micro);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--c-primary);
    margin-bottom: var(--sp-4);
}
.hero-title {
    font-family: var(--font-display);
    font-size: var(--t-display);
    font-weight: 400;
    font-variation-settings: 'opsz' 144, 'wght' 500;
    line-height: 1.02;
    letter-spacing: -0.022em;
    color: var(--c-primary-dark);
    margin-bottom: var(--sp-4);
}
.hero-title .script-accent {
    font-size: 1.05em;
    line-height: 0.95;
    display: inline-block;
    /* sin rotación - la italic ya da el carácter */
}
.hero-subtitle {
    font-size: clamp(1rem, 1vw + 0.6rem, 1.2rem);
    color: var(--c-text-soft);
    margin-bottom: var(--sp-6);
    max-width: 480px;
    line-height: 1.55;
}
.hero-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sp-4);
}
.hero-image {
    position: relative;
    aspect-ratio: 4/5;
    background: linear-gradient(145deg, #f5e6c8, #e8c896);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--sh-lg);
}

/* Slideshow */
.hero-slideshow {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    will-change: opacity;
}
.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide { transition: none; }
}

/* Imagen única legacy (compat) */
.hero-img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform var(--t-slow) var(--ease);
}
.hero-image:hover .hero-img { transform: scale(1.04); }
.hero-stamp {
    position: absolute;
    bottom: var(--sp-5);
    left: var(--sp-5);
    background: rgba(43, 3, 2, 0.92);
    backdrop-filter: blur(8px);
    color: var(--c-cream);
    padding: var(--sp-2) var(--sp-4);
    border-radius: var(--r-pill);
    font-size: 1.25rem;
    transform: rotate(-3deg);
}

/* === TRUST STRIP =============================== */
.trust-strip {
    background: var(--c-cream);
    border-top: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
    padding: var(--sp-5) 0;
}
.trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-4);
}
@media (min-width: 768px) {
    .trust-grid { grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }
}
.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--sp-2);
    font-size: var(--t-small);
    color: var(--c-text-soft);
}
@media (min-width: 768px) {
    .trust-item { flex-direction: row; text-align: left; }
}
.trust-icon { font-size: 1.5rem; }

/* Trust strip con logos de pago en lugar de texto */
.trust-item--logos {
    flex-direction: row;
    gap: var(--sp-2);
    flex-wrap: wrap;
    justify-content: center;
}
@media (min-width: 768px) {
    .trust-item--logos { justify-content: flex-start; }
}
.trust-logo {
    height: 26px;
    width: auto;
    object-fit: contain;
    background: var(--c-white);
    padding: 4px 8px;
    border-radius: var(--r-sm);
    box-shadow: 0 1px 3px rgba(43, 3, 2, 0.08);
}
.trust-logo--cards {
    background: transparent;
    box-shadow: none;
    padding: 0;
    height: 22px;
}

/* === PRODUCTS ================================== */
.products {
    padding: var(--sp-9) 0 var(--sp-8);
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
@media (min-width: 600px) { .products-grid { gap: var(--sp-4); } }
@media (min-width: 1024px) { .products-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); } }
@media (min-width: 1200px) { .products-grid { grid-template-columns: repeat(4, 1fr); } }

/* Product card mobile rules MOVED to end of file (cascade fix) */

/* Product card */
.product-card {
    background: var(--c-white);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--sh-sm);
    border: 1px solid var(--c-border);
    transition: box-shadow var(--t-base) var(--ease), transform var(--t-base) var(--ease);
    display: flex;
    flex-direction: column;
}
.product-card:hover { box-shadow: var(--sh-md); transform: translateY(-4px); }

.product-image {
    aspect-ratio: 1/1;
    background: linear-gradient(145deg, var(--c-cream), #FFF5E6);
    overflow: hidden;
    position: relative;
}
.product-img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform var(--t-base) var(--ease);
}
.product-card:hover .product-img { transform: scale(1.05); }
.product-badge {
    position: absolute;
    top: var(--sp-3); left: var(--sp-3);
    padding: 4px 10px;
    background: var(--c-red);
    color: white;
    border-radius: var(--r-pill);
    font-size: var(--t-micro);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.product-badge.healthy { background: var(--c-success); }
.product-badge.fresh { background: var(--c-primary); }

.product-info {
    padding: var(--sp-5);
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: var(--sp-3);
}
.product-pretitle {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--c-primary);
    line-height: 1;
}
.product-name {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 400;
    font-variation-settings: 'opsz' 36, 'wght' 500;
    line-height: 1.1;
    letter-spacing: -0.015em;
    color: var(--c-primary-dark);
}
.product-desc {
    font-size: var(--t-small);
    color: var(--c-text-soft);
    line-height: 1.5;
}

/* Variant selector */
.variant-group { margin-top: var(--sp-2); }
.variant-label {
    font-size: var(--t-micro);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--c-text-soft);
    margin-bottom: var(--sp-2);
}
.variant-pills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
    border: 0;
    padding: 0;
    margin: 0;
}
.variant-pill {
    min-height: 44px;
    padding: 8px 16px;
    border: 1.5px solid var(--c-border);
    border-radius: var(--r-pill);
    background: transparent;
    font-size: var(--t-small);
    font-weight: 600;
    color: var(--c-text);
    transition: all var(--t-fast) var(--ease);
    line-height: 1.2;
    text-align: center;
}
.variant-pill:hover { border-color: var(--c-primary); }
.variant-pill[aria-pressed="true"] {
    background: var(--c-primary-dark);
    border-color: var(--c-primary-dark);
    color: var(--c-cream);
}

/* Product footer */
.product-footer {
    margin-top: auto;
    padding-top: var(--sp-4);
    border-top: 1px solid var(--c-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
}
.product-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--c-primary-dark);
    letter-spacing: -0.01em;
}
.add-to-cart-btn {
    min-width: 48px;
    min-height: 48px;
    padding: 0 var(--sp-4);
    border-radius: var(--r-pill);
    background: var(--c-primary-dark);
    color: var(--c-cream);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    font-weight: 600;
    font-size: var(--t-small);
    transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.add-to-cart-btn:hover { background: #4a1410; transform: translateY(-2px); }

/* Promo banner */
.promo-banner {
    margin-top: var(--sp-7);
    background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark));
    color: var(--c-cream);
    border-radius: var(--r-lg);
    padding: var(--sp-6);
    text-align: center;
}
.promo-tag {
    display: inline-block;
    font-size: var(--t-micro);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 4px 12px;
    border: 1px solid var(--c-gold);
    color: var(--c-gold);
    border-radius: var(--r-pill);
    margin-bottom: var(--sp-3);
}
.promo-title { font-size: var(--t-h3); font-weight: 800; margin-bottom: var(--sp-2); }
.promo-sub { color: rgba(255, 248, 220, 0.85); font-size: var(--t-small); }

/* === CLIENTS (CORPORATE) - LOGO WALL ============ */
.clients {
    padding: var(--sp-9) 0;
    background: var(--c-cream-light);
    border-top: 1px solid var(--c-border);
    overflow: hidden;
}

/* Marquee con logos auto-scroll */
.clients-marquee {
    overflow: hidden;
    position: relative;
    margin: var(--sp-6) calc(var(--sp-4) * -1);
    padding: var(--sp-4) 0;
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.clients-track {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: var(--sp-3);
    padding: 0 var(--sp-4);
}
@media (min-width: 600px) {
    .clients-track {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: var(--sp-4);
    }
}
@media (min-width: 1024px) {
    .clients-track {
        grid-template-columns: repeat(6, 1fr);
        gap: var(--sp-4);
    }
}

.client-card {
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--sp-4);
    transition: all var(--t-base) var(--ease);
    position: relative;
    overflow: hidden;
}
.client-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--sh-md);
    border-color: var(--c-primary);
}
.client-card img {
    max-width: 90%;
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    transition: filter var(--t-base) var(--ease), opacity var(--t-base) var(--ease);
    /* mix-blend-mode: multiply oculta fondos blancos de logos JPEG.
       Funciona bien con logos sobre fondo blanco/crema y los integra al card. */
    mix-blend-mode: multiply;
    filter: grayscale(20%);
    opacity: 0.92;
}
.client-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Variantes para logos que NO funcionan bien con mix-blend-mode multiply
   (porque tienen fondo de color en la imagen, no fondo blanco) */
.client-card--dark,
.client-card--colored {
    /* Fondo neutral que respeta el color del logo */
    background: var(--c-cream);
    padding: var(--sp-3);
}
.client-card--dark img,
.client-card--colored img {
    /* Quitar mix-blend-mode para logos con fondo de color en la imagen */
    mix-blend-mode: normal;
    border-radius: var(--r-sm);
    max-height: 80px;
    max-width: 95%;
    filter: none;
    opacity: 1;
}

/* Logo invertido a negro (para logos con color que queremos uniformes) */
.client-card--invert img {
    filter: brightness(0) saturate(100%) opacity(0.85);
    mix-blend-mode: normal;
}
.client-card--invert:hover img {
    filter: brightness(0) saturate(100%) opacity(1);
}

/* Card final: "Y muchos más" - CTA a WhatsApp */
.client-card--more {
    background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
    color: var(--c-cream);
    border: 0;
    flex-direction: column;
    gap: 4px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}
.client-card--more:hover {
    background: linear-gradient(135deg, var(--c-primary-dark) 0%, #1a0201 100%);
    border-color: var(--c-gold);
    box-shadow: 0 8px 24px rgba(43, 3, 2, 0.3);
}
.more-plus {
    font-family: var(--font-script);
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 0.9;
    color: var(--c-gold);
    transform: rotate(-5deg);
    transition: transform var(--t-base) var(--ease);
}
.client-card--more:hover .more-plus {
    transform: rotate(5deg) scale(1.1);
}
.more-text {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
    color: rgba(255, 248, 220, 0.9);
    line-height: 1.2;
}

/* Wordmarks (fallback cuando no hay logo PNG/SVG) */
.client-wordmark {
    font-weight: 800;
    text-align: center;
    line-height: 1.05;
    letter-spacing: -0.02em;
    font-size: clamp(0.95rem, 2.2vw, 1.2rem);
    width: 100%;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    transition: all var(--t-base) var(--ease);
}

/* Wordmarks con colores de cada marca (apariencia editorial - no son logos oficiales) */
.wm-bcp {
    font-family: Arial, sans-serif;
    color: white;
    background: linear-gradient(90deg, #FF6B00 0%, #FF6B00 38%, #00498F 38%, #00498F 100%);
    width: 100%;
    height: 100%;
    border-radius: 6px;
    font-size: 1.6rem;
    letter-spacing: 0.04em;
    padding: 0;
}
.wm-bbva {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: #004481;
    font-size: 1.4rem;
    letter-spacing: 0.05em;
    font-weight: 700;
}
.wm-cineplanet {
    font-family: 'Josefin Sans', sans-serif;
    color: #E40915;
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.wm-cristal {
    font-family: 'Josefin Sans', sans-serif;
    color: #00B5E2;
    font-weight: 700;
    font-size: 0.95rem;
}
.wm-viena {
    font-family: 'Dancing Script', cursive;
    color: #6B3410;
    font-size: 1.4rem;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 700;
}
.wm-rosetta {
    font-family: 'Dancing Script', cursive;
    color: #C0272D;
    font-size: 1.4rem;
    text-transform: none;
    font-weight: 700;
}
.wm-dmasa {
    font-family: 'Josefin Sans', sans-serif;
    color: #2B0302;
    letter-spacing: 0.1em;
    font-size: 1.1rem;
}
.wm-chavalla {
    font-family: 'Josefin Sans', sans-serif;
    color: #753F1B;
    font-size: 1rem;
    font-weight: 700;
}
.wm-coffee {
    font-family: 'Josefin Sans', sans-serif;
    color: #2B0302;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.02em;
}
.wm-lima141 {
    font-family: 'Josefin Sans', sans-serif;
    color: #2B0302;
    font-size: 1.1rem;
    font-weight: 800;
}
.wm-cafezinho {
    font-family: 'Dancing Script', cursive;
    color: #4a2c1e;
    font-size: 1.3rem;
    text-transform: none;
    font-weight: 700;
}
.wm-rollcafe {
    font-family: 'Josefin Sans', sans-serif;
    color: #753F1B;
    font-size: 1rem;
    font-weight: 700;
}
.wm-ventus {
    font-family: 'Josefin Sans', sans-serif;
    color: #2B0302;
    letter-spacing: 0.15em;
    font-size: 1rem;
    font-weight: 600;
}
.wm-markham {
    font-family: 'Josefin Sans', sans-serif;
    color: #1A472A;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
}
.wm-pecafit {
    font-family: 'Josefin Sans', sans-serif;
    color: #00A859;
    font-size: 1.05rem;
    font-weight: 800;
}
.wm-jugueria {
    font-family: 'Josefin Sans', sans-serif;
    color: #FF6B35;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: none;
}
.wm-sergio {
    font-family: 'Dancing Script', cursive;
    color: #C0272D;
    font-size: 1.05rem;
    text-transform: none;
    font-weight: 700;
}
.wm-ricardo {
    font-family: 'Josefin Sans', sans-serif;
    color: #2B0302;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: none;
}

.clients-cta {
    text-align: center;
    font-size: var(--t-body);
    color: var(--c-text-soft);
    margin-top: var(--sp-5);
}
.clients-cta a {
    color: var(--c-primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
}
.clients-cta a:hover { color: var(--c-primary-dark); }

/* === SOCIAL ICONS =============================== */
.contact-social {
    display: flex;
    gap: var(--sp-3);
    align-items: center;
}
@media (min-width: 768px) { .contact-social { justify-content: flex-end; } }
.social-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--c-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--t-base) var(--ease);
    box-shadow: var(--sh-sm);
    border: 1.5px solid var(--c-border);
    padding: 0;
}
.social-icon:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--sh-md);
}
.social-icon svg {
    width: 28px;
    height: 28px;
}
.social-tiktok {
    background: #2B0302;
    border-color: #2B0302;
    color: white;
}
.social-tiktok:hover { background: #000; }
.social-instagram:hover { border-color: #FF0069; }
.social-facebook:hover { border-color: #1877F2; }

/* === STORY (DARK SECTION) ====================== */
.story {
    background: var(--c-primary-dark);
    color: var(--c-cream);
    padding: var(--sp-9) 0;
    overflow: hidden;
}
.story-grid {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--sp-4);
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-7);
    align-items: center;
}
@media (min-width: 900px) {
    .story-grid { grid-template-columns: 1fr 1.3fr; gap: var(--sp-8); padding: 0 var(--sp-5); }
}
.story-image {
    aspect-ratio: 3/4;
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--sh-lg);
    background: #1a0201;
}
.story-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: contrast(1.05) saturate(0.95);
}
.story-content .section-title {
    color: var(--c-cream);
    margin-bottom: var(--sp-5);
}
.story-content p {
    margin-bottom: var(--sp-4);
    color: rgba(255, 248, 220, 0.85);
    line-height: 1.7;
}
.story-content strong { color: var(--c-gold); font-weight: 700; }
/* Pull quote editorial - Fraunces italic, sin border-left, sin rotación */
.pull-quote {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.5vw + 0.5rem, 2.75rem);
    font-weight: 300;
    font-style: italic;
    font-variation-settings: 'opsz' 144;
    color: var(--c-cream);
    line-height: 1.18;
    letter-spacing: -0.015em;
    margin: var(--sp-7) 0;
    padding: 0;
    border: 0;
}
.pull-quote::before {
    content: '«';
    color: var(--c-gold);
    font-size: 1em;
    margin-right: 0.1em;
    opacity: 0.7;
}
.pull-quote::after {
    content: '»';
    color: var(--c-gold);
    font-size: 1em;
    margin-left: 0.1em;
    opacity: 0.7;
}

/* === TESTIMONIALS ============================== */
.testimonials {
    padding: var(--sp-9) 0;
    background: var(--c-cream);
}
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-5);
}
@media (min-width: 768px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }
.testimonial-card {
    background: var(--c-white);
    border-radius: var(--r-lg);
    padding: var(--sp-6);
    box-shadow: var(--sh-sm);
    border: 1px solid var(--c-border);
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}
.stars {
    color: var(--c-gold);
    font-size: 1.1rem;
    letter-spacing: 0.1em;
}
.testimonial-text {
    font-size: var(--t-body);
    color: var(--c-text);
    line-height: 1.55;
    flex: 1;
}
.testimonial-author {
    border-top: 1px solid var(--c-border);
    padding-top: var(--sp-3);
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.testimonial-author strong { color: var(--c-primary-dark); font-weight: 700; }
.testimonial-author span { font-size: var(--t-small); color: var(--c-text-soft); }

/* === PROCESS =================================== */
.process {
    padding: var(--sp-9) 0;
    background: var(--c-cream-light);
}
.process-timeline {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-5);
}
@media (min-width: 768px) {
    .process-timeline { grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }
}
.process-step {
    background: var(--c-white);
    padding: var(--sp-5);
    border-radius: var(--r-lg);
    border: 1px solid var(--c-border);
    text-align: center;
}
.process-num {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 300;
    font-style: italic;
    font-variation-settings: 'opsz' 144;
    color: var(--c-gold);
    line-height: 1;
    display: block;
    margin-bottom: var(--sp-2);
}
.process-step h3 {
    font-size: var(--t-h3);
    font-weight: 700;
    color: var(--c-primary-dark);
    margin-bottom: var(--sp-2);
}
.process-step p {
    font-size: var(--t-small);
    color: var(--c-text-soft);
    line-height: 1.55;
}

/* === FAQ ======================================= */
.faq {
    padding: var(--sp-9) 0;
    background: var(--c-cream);
}
.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}
.faq-item {
    background: var(--c-white);
    border-radius: var(--r-md);
    border: 1px solid var(--c-border);
    overflow: hidden;
    transition: box-shadow var(--t-fast) var(--ease);
}
.faq-item[open] { box-shadow: var(--sh-sm); }
.faq-item summary {
    padding: var(--sp-4) var(--sp-5);
    font-weight: 600;
    color: var(--c-text);
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: var(--sp-7);
    min-height: 56px;
    display: flex;
    align-items: center;
    user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    position: absolute;
    right: var(--sp-5);
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--c-primary);
    transition: transform var(--t-base) var(--ease);
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item summary:hover { background: rgba(117, 63, 27, 0.04); }
.faq-item p {
    padding: 0 var(--sp-5) var(--sp-4);
    color: var(--c-text-soft);
    line-height: 1.6;
}
.faq-link {
    color: var(--c-primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--t-fast) var(--ease);
}
.faq-link:hover {
    color: var(--c-primary-dark);
    text-decoration-thickness: 2px;
}

/* === CTA FINAL ================================= */
.cta-final {
    padding: var(--sp-9) 0;
    background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark));
    color: var(--c-cream);
    text-align: center;
}
.cta-title {
    font-size: var(--t-h1);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--sp-3);
    color: var(--c-cream);
}
.cta-title .script-accent { font-size: 1.15em; }
.cta-sub {
    font-size: var(--t-body);
    color: rgba(255, 248, 220, 0.85);
    margin-bottom: var(--sp-6);
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    max-width: 460px;
    margin: 0 auto var(--sp-4);
}
@media (min-width: 600px) {
    .newsletter-form { flex-direction: row; }
}
.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border: 0;
    border-radius: var(--r-pill);
    font-size: var(--t-body);
    min-height: 48px;
    background: var(--c-cream);
    color: var(--c-text);
}
.newsletter-form input:focus {
    outline: 3px solid var(--c-gold);
    outline-offset: 2px;
}
.cta-fineprint {
    font-size: var(--t-micro);
    color: rgba(255, 248, 220, 0.6);
}

/* === CONTACT COMPACT =========================== */
.contact-compact {
    padding: var(--sp-8) 0;
    background: var(--c-cream-light);
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-6);
    align-items: center;
}
@media (min-width: 768px) {
    .contact-grid { grid-template-columns: 2fr 1fr; }
}
.contact-grid .section-title { margin-bottom: var(--sp-3); }
.contact-grid p { margin-bottom: var(--sp-4); color: var(--c-text-soft); }
.contact-social {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-3);
    justify-content: flex-start;
}
@media (min-width: 768px) { .contact-social { justify-content: flex-end; } }
.contact-social a {
    padding: 12px 20px;
    border: 1.5px solid var(--c-border);
    border-radius: var(--r-pill);
    font-size: var(--t-small);
    font-weight: 600;
    transition: all var(--t-fast) var(--ease);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}
.contact-social a:hover { border-color: var(--c-primary); background: var(--c-cream); }

/* === FOOTER ==================================== */
.footer {
    background: var(--c-primary-dark);
    color: rgba(255, 248, 220, 0.85);
    padding: var(--sp-8) 0 var(--sp-5);
    font-size: var(--t-small);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-6);
    margin-bottom: var(--sp-7);
}
@media (min-width: 600px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-logo { height: 64px; width: auto; margin-bottom: var(--sp-3); filter: brightness(0) invert(1); }
.footer-tagline { line-height: 1.5; }
.footer-col h3,
.footer-col h4 {
    font-size: var(--t-small);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--c-gold);
    margin-bottom: var(--sp-3);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--sp-2); }
.footer-col a {
    transition: color var(--t-fast) var(--ease);
    padding: 4px 0;
    display: inline-block;
}
.footer-col a:hover { color: var(--c-gold); }
.footer-payment {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-4) 0;
    border-top: 1px solid rgba(255, 248, 220, 0.1);
    border-bottom: 1px solid rgba(255, 248, 220, 0.1);
    margin-bottom: var(--sp-4);
}
.footer-payment-label {
    font-size: var(--t-micro);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--c-gold);
}
.footer-payment-by {
    font-size: var(--t-micro);
    color: rgba(255, 248, 220, 0.6);
    margin-left: var(--sp-3);
}
.payment-cards {
    height: 22px;
    filter: brightness(0) invert(1);
    opacity: 0.85;
}
.payment-logo {
    height: 26px;
    width: auto;
    background: var(--c-cream);
    padding: 4px 10px;
    border-radius: var(--r-sm);
    object-fit: contain;
}
.payment-logo--izipay {
    background: var(--c-cream);
    padding: 4px 10px;
}
.footer-bottom {
    text-align: center;
    font-size: var(--t-micro);
    color: rgba(255, 248, 220, 0.6);
}
.footer-bottom p { margin-bottom: var(--sp-2); }
.footer-bottom a { color: var(--c-gold); text-decoration: underline; }

/* === WHATSAPP FLOAT ============================ */
.whatsapp-float {
    position: fixed;
    bottom: var(--sp-5);
    right: var(--sp-5);
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--c-whatsapp);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    z-index: 50;
    transition: transform var(--t-fast) var(--ease);
}
.whatsapp-float::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--c-whatsapp);
    opacity: 0;
    animation: pulse 2.5s ease-out infinite;
}
.whatsapp-float:hover { transform: scale(1.1); }
@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.4); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .whatsapp-float::before { animation: none; }
}

/* === CART DRAWER (responsive) ================== */
.cart-drawer {
    position: fixed;
    z-index: 200;
    background: var(--c-white);
    box-shadow: var(--sh-lg);
    transition: transform var(--t-base) var(--ease);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Mobile: bottom sheet (slide desde abajo, deja ver el contenido arriba) */
@media (max-width: 767px) {
    .cart-drawer {
        bottom: 0; left: 0; right: 0;
        max-height: 88vh;
        height: auto;
        border-radius: 20px 20px 0 0;
        transform: translateY(100%);
    }
    .cart-drawer.open { transform: translateY(0); }
    .cart-drawer::before {
        content: '';
        display: block;
        width: 40px; height: 4px;
        background: var(--c-border);
        border-radius: 2px;
        margin: 8px auto 0;
    }
}

/* Desktop: side drawer */
@media (min-width: 768px) {
    .cart-drawer {
        top: 0; right: 0;
        height: 100vh;
        width: 420px;
        transform: translateX(100%);
    }
    .cart-drawer.open { transform: translateX(0); }
}

.cart-drawer-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.cart-drawer-header {
    padding: var(--sp-3) var(--sp-4);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--c-border);
    flex-shrink: 0;
}
@media (min-width: 768px) { .cart-drawer-header { padding: var(--sp-4) var(--sp-5); } }
.cart-drawer-header h2,
.cart-drawer-header h3 { font-size: 1.15rem; font-weight: 700; }
.cart-close-btn {
    width: 40px; height: 40px;
    border-radius: var(--r-md);
    font-size: 1.25rem;
    transition: background var(--t-fast) var(--ease);
}
.cart-close-btn:hover { background: rgba(43, 3, 2, 0.05); }

.cart-items {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: var(--sp-3) var(--sp-4);
    -webkit-overflow-scrolling: touch;
    min-height: 80px;
}
@media (min-width: 768px) { .cart-items { padding: var(--sp-4) var(--sp-5); } }
.cart-empty { color: var(--c-text-soft); text-align: center; padding: var(--sp-7) 0; font-size: var(--t-small); }
.cart-item {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: var(--sp-2);
    padding: var(--sp-2) 0;
    border-bottom: 1px solid var(--c-border);
    align-items: center;
}
@media (min-width: 768px) {
    .cart-item { grid-template-columns: 56px 1fr auto; gap: var(--sp-3); padding: var(--sp-3) 0; }
}
.cart-item img {
    width: 48px; height: 48px;
    border-radius: var(--r-sm);
    object-fit: cover;
}
@media (min-width: 768px) { .cart-item img { width: 56px; height: 56px; } }
.cart-item-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cart-item-name {
    font-weight: 600;
    font-size: 0.85rem;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.cart-item-meta { font-size: 0.7rem; color: var(--c-text-soft); }
.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}
.qty-btn {
    width: 26px; height: 26px;
    border: 1px solid var(--c-border);
    border-radius: 6px;
    font-size: 0.95rem;
    line-height: 1;
    flex-shrink: 0;
}
.qty-btn:hover { border-color: var(--c-primary); }
.cart-item-qty span { min-width: 18px; text-align: center; font-weight: 600; font-size: 0.85rem; }
.cart-item-remove {
    color: var(--c-red);
    font-size: 0.7rem;
    padding: 2px 6px;
    margin-left: 4px;
    text-decoration: underline;
}

.cart-drawer-footer {
    padding: var(--sp-3) var(--sp-4) calc(var(--sp-3) + env(safe-area-inset-bottom));
    border-top: 1px solid var(--c-border);
    background: var(--c-cream-light);
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    flex-shrink: 0;
}
@media (min-width: 768px) { .cart-drawer-footer { padding: var(--sp-4) var(--sp-5); gap: var(--sp-3); } }

.cart-zone { display: flex; flex-direction: column; gap: 4px; }
.cart-zone label { font-size: 0.75rem; font-weight: 600; color: var(--c-text-soft); text-transform: uppercase; letter-spacing: 0.05em; }
.cart-zone select {
    padding: 10px 12px;
    border: 1.5px solid var(--c-border);
    border-radius: var(--r-md);
    background: var(--c-white);
    min-height: 42px;
    font-size: 0.9rem;
}

/* === CART COUPON INPUT ========================== */
.cart-coupon {
    border-top: 1px solid var(--c-border);
    padding-top: var(--sp-2);
    margin-top: 4px;
}
.cart-coupon-summary {
    list-style: none;
    cursor: pointer;
    padding: 6px 0;
    font-size: 0.78rem;
    color: var(--c-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}
.cart-coupon-summary::-webkit-details-marker { display: none; }
.cart-coupon-summary:hover { color: var(--c-primary-dark); }
.cart-coupon-arrow {
    transition: transform var(--t-fast) var(--ease);
    font-size: 0.8rem;
}
.cart-coupon[open] .cart-coupon-arrow { transform: rotate(180deg); }
.cart-coupon-inner {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}
.cart-coupon-inner input {
    flex: 1;
    min-width: 0;
    padding: 9px 12px;
    border: 1.5px solid var(--c-border);
    border-radius: var(--r-md);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: var(--c-white);
    font-family: monospace, var(--font-sans);
}
.cart-coupon-inner input:focus {
    outline: none;
    border-color: var(--c-primary);
}
.cart-coupon-inner input:disabled {
    background: rgba(45, 125, 95, 0.06);
    border-color: var(--c-success);
    color: var(--c-success);
    font-weight: 700;
}
.cart-coupon-inner button {
    min-width: 80px;
    padding: 9px 14px;
    background: var(--c-primary-dark);
    color: var(--c-cream);
    border-radius: var(--r-md);
    font-size: 0.8rem;
    font-weight: 600;
    transition: background var(--t-fast) var(--ease);
    flex-shrink: 0;
}
.cart-coupon-inner button:hover:not(:disabled) { background: #4a1410; }
.cart-coupon-inner button:disabled { opacity: 0.6; cursor: not-allowed; }
.cart-coupon-msg {
    margin-top: 6px;
    font-size: 0.75rem;
    line-height: 1.4;
}
.cart-coupon-msg.success { color: var(--c-success); font-weight: 600; }
.cart-coupon-msg.error { color: var(--c-red); }

.cart-row { display: flex; justify-content: space-between; font-size: 0.85rem; }
.cart-row--discount {
    color: var(--c-success);
    font-weight: 700;
    background: rgba(45, 125, 95, 0.08);
    padding: 6px 10px;
    border-radius: var(--r-sm);
    margin: 4px 0;
    border: 1px dashed var(--c-success);
}
.cart-row--discount[hidden] { display: none; }
.cart-discount-val { font-weight: 800; }
.cart-total {
    font-size: 1.05rem;
    font-weight: 800;
    padding-top: var(--sp-2);
    border-top: 1px solid var(--c-border);
}
.cart-actions { display: flex; flex-direction: column; gap: var(--sp-2); }
.cart-actions .btn { min-height: 44px; padding: 10px 20px; font-size: 0.9rem; }

/* === PAYMENT MODAL ============================= */
.payment-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--sp-4);
    backdrop-filter: blur(4px);
}
.payment-modal[hidden] { display: none; }
.payment-modal-inner {
    background: var(--c-white);
    border-radius: var(--r-lg);
    width: 100%;
    max-width: 480px;
    max-height: 92vh;
    overflow-y: auto;
    position: relative;
    padding: var(--sp-7) var(--sp-5);
}
.payment-close {
    position: absolute;
    top: var(--sp-3); right: var(--sp-3);
    width: 40px; height: 40px;
    border-radius: var(--r-md);
    font-size: 1.25rem;
    color: var(--c-text-soft);
}
.payment-close:hover { background: rgba(43, 3, 2, 0.05); }
.payment-step h3 { font-size: var(--t-h3); margin-bottom: var(--sp-1); color: var(--c-primary-dark); }
.payment-sub { font-size: var(--t-small); color: var(--c-text-soft); margin-bottom: var(--sp-5); }
.payment-summary {
    background: var(--c-cream);
    border-radius: var(--r-md);
    padding: var(--sp-3) var(--sp-4);
    font-size: var(--t-small);
    color: var(--c-text-soft);
    margin-bottom: var(--sp-4);
    line-height: 1.5;
}
.payment-fields {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}
.payment-fields input {
    padding: 14px 16px;
    border: 1.5px solid var(--c-border);
    border-radius: var(--r-md);
    font-size: var(--t-body);
    background: var(--c-white);
    min-height: 48px;
    transition: border-color var(--t-fast) var(--ease);
}
.payment-fields input:focus {
    outline: none;
    border-color: var(--c-primary);
}
.payment-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: var(--sp-5) 0 var(--sp-4);
    padding: var(--sp-3) 0;
    border-top: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
    font-weight: 600;
}
.payment-total-row strong {
    font-size: 1.25rem;
    color: var(--c-primary-dark);
}
.payment-trust-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--sp-4);
    flex-wrap: wrap;
    gap: var(--sp-2);
}
.payment-trust-cards { height: 28px; }
.payment-trust-by {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    font-size: var(--t-micro);
    color: var(--c-text-soft);
}
.payment-trust-by img { height: 22px; }
.payment-secure {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    margin-bottom: var(--sp-4);
    font-size: var(--t-micro);
    color: var(--c-text-soft);
}
.payment-success { text-align: center; padding: var(--sp-5) 0; }
.payment-success-icon { font-size: 4rem; margin-bottom: var(--sp-4); }

/* Krypton form overrides (mantener compatibilidad) */
.kr-embedded {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
}
.kr-card-holder-name { order: 1; width: 100% !important; }
.kr-pan { order: 2; width: 100% !important; }
.kr-expiry { order: 3; width: 100% !important; }
.kr-security-code { order: 4; width: 100% !important; }
.kr-installment { order: 5; width: 100% !important; }
.kr-form-error { order: 6; width: 100% !important; }
.kr-payment-button { order: 7; width: 100% !important; }
.kr-field, .kr-field-wrapper, .kr-installment select, .kr-payment-button button {
    width: 100% !important;
    box-sizing: border-box !important;
}
.kr-payment-button button {
    background-color: var(--c-primary-dark) !important;
    border-color: var(--c-primary-dark) !important;
    border-radius: var(--r-pill) !important;
    font-family: var(--font-sans) !important;
    font-size: var(--t-body) !important;
    letter-spacing: 0.02em !important;
    min-height: 48px !important;
}
.kr-payment-button button:hover { background-color: #4a1410 !important; }

/* === NEWSLETTER POPUP ========================== */
.nl-popup {
    position: fixed;
    inset: 0;
    z-index: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--sp-4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 280ms var(--ease);
}
.nl-popup[hidden] { display: none; }
.nl-popup.open {
    opacity: 1;
    pointer-events: auto;
}

.nl-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(43, 3, 2, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    cursor: pointer;
}

.nl-popup-card {
    position: relative;
    width: 100%;
    max-width: 720px;
    max-height: 92vh;
    background: var(--c-cream-light);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: grid;
    grid-template-columns: 1fr;
    transform: translateY(8px);
    transition: transform 280ms var(--ease);
}
.nl-popup.open .nl-popup-card {
    transform: translateY(0);
}

@media (min-width: 768px) {
    .nl-popup-card { grid-template-columns: 5fr 6fr; }
}

/* Popup compacto en móvil */
@media (max-width: 599px) {
    .nl-popup { padding: var(--sp-3); }
    .nl-popup-card { max-width: 360px; max-height: auto; }
    .nl-popup-image { aspect-ratio: 16 / 7; }
    .nl-popup-image img { object-position: center 40%; }
    .nl-popup-content { padding: var(--sp-4) var(--sp-4) var(--sp-3); gap: 10px; }
    .nl-popup-eyebrow { font-size: 0.6rem; gap: 8px; }
    .nl-popup-eyebrow::before { width: 16px; }
    .nl-popup-title { font-size: 1.4rem; line-height: 1.08; }
    .nl-popup-sub { font-size: 0.82rem; line-height: 1.42; }
    .nl-popup-form { gap: 8px; margin-top: 0; }
    .nl-popup-form input { padding: 11px 14px; font-size: 0.88rem; min-height: 42px; }
    .nl-popup-submit { padding: 11px 16px; font-size: 0.88rem; min-height: 42px; }
    .nl-popup-fineprint { font-size: 0.62rem; }
    .nl-popup-close { width: 32px; height: 32px; font-size: 0.85rem; top: 8px; right: 8px; }
}

.nl-popup-close {
    position: absolute;
    top: 12px; right: 12px;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(43, 3, 2, 0.4);
    color: white;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background 150ms;
    backdrop-filter: blur(4px);
}
.nl-popup-close:hover { background: rgba(43, 3, 2, 0.7); }

.nl-popup-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}
@media (min-width: 768px) {
    .nl-popup-image { aspect-ratio: auto; height: 100%; min-height: 380px; }
}
.nl-popup-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
}
.nl-popup-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(43,3,2,0.15), transparent 50%);
}

.nl-popup-content {
    padding: var(--sp-5) var(--sp-5) var(--sp-5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--sp-3);
}
@media (min-width: 768px) {
    .nl-popup-content { padding: var(--sp-7) var(--sp-6); }
}

.nl-popup-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--c-red);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.nl-popup-eyebrow::before {
    content: '';
    width: 20px; height: 1px;
    background: var(--c-red);
}

.nl-popup-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-variation-settings: 'opsz' 144, 'wght' 500;
    font-size: clamp(1.6rem, 3vw + 0.5rem, 2.4rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--c-primary-dark);
    margin: 0;
}

.nl-popup-sub {
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--c-text-soft);
    margin: 0;
}

.nl-popup-form {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    margin-top: var(--sp-2);
}
.nl-popup-form input {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid var(--c-border);
    border-radius: var(--r-pill);
    font-size: 0.95rem;
    background: var(--c-white);
    min-height: 48px;
    transition: border-color 150ms;
    font-family: var(--font-sans);
}
.nl-popup-form input:focus {
    outline: none;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(117, 63, 27, 0.12);
}
.nl-popup-submit {
    background: var(--c-primary-dark);
    color: var(--c-cream);
    padding: 14px 24px;
    border-radius: var(--r-pill);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: background 150ms, transform 150ms;
    min-height: 48px;
}
.nl-popup-submit:hover { background: #4a1410; transform: translateY(-1px); }
.nl-popup-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.nl-popup-fineprint {
    font-size: 0.7rem;
    color: var(--c-text-soft);
    opacity: 0.7;
    text-align: center;
    margin-top: var(--sp-1);
}

.nl-popup-error {
    color: var(--c-red);
    font-size: 0.82rem;
    margin-top: 4px;
    text-align: center;
}

/* Estado de éxito */
.nl-popup-card.success { grid-template-columns: 1fr; }
.nl-popup-success {
    text-align: center;
    padding: var(--sp-7) var(--sp-5);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-3);
}
.nl-popup-success-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--c-success);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--sp-2);
}
.nl-popup-success h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 500;
    font-variation-settings: 'opsz' 144;
    color: var(--c-primary-dark);
    margin: 0;
}
.nl-popup-success-msg {
    font-size: 1rem;
    color: var(--c-text);
    margin: 0;
}
.nl-popup-success-msg strong {
    background: var(--c-cream);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace, var(--font-sans);
    color: var(--c-primary-dark);
    border: 1px dashed var(--c-success);
}
.nl-popup-success-sub {
    font-size: 0.85rem;
    color: var(--c-text-soft);
    margin: 0;
}
.nl-popup-success-cta {
    margin-top: var(--sp-3);
    background: var(--c-primary-dark);
    color: var(--c-cream);
    padding: 12px 28px;
    border-radius: var(--r-pill);
    font-weight: 600;
    transition: background 150ms;
}
.nl-popup-success-cta:hover { background: #4a1410; }

/* Bloquear scroll en móvil cuando el popup está abierto */
@media (max-width: 767px) {
    body.nl-popup-open { overflow: hidden; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    .nl-popup, .nl-popup-card { transition: none; }
}

/* === ANIMATIONS ================================ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; transform: translateY(20px); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Cart bounce - al agregar al carrito, el ícono "salta" */
@keyframes cartBounce {
    0%   { transform: scale(1) rotate(0); }
    20%  { transform: scale(1.15) rotate(-8deg); }
    40%  { transform: scale(0.92) rotate(6deg); }
    60%  { transform: scale(1.08) rotate(-3deg); }
    80%  { transform: scale(0.97) rotate(2deg); }
    100% { transform: scale(1) rotate(0); }
}
.cart-bounce { animation: cartBounce 0.6s cubic-bezier(0.36, 0, 0.66, -0.56); }

/* Badge pop - el número del badge "explota" al actualizar */
@keyframes badgePop {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.5); background: var(--c-gold); color: var(--c-primary-dark); }
    100% { transform: scale(1); }
}
.badge-pop { animation: badgePop 0.45s ease; }

/* === CART TOAST ================================ */
.cart-toast {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--c-primary-dark);
    color: var(--c-cream);
    padding: 10px 14px 10px 16px;
    border-radius: var(--r-pill);
    font-size: 0.85rem;
    box-shadow: 0 8px 24px rgba(43, 3, 2, 0.3);
    opacity: 0;
    transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease);
    z-index: 60;
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    max-width: calc(100vw - 32px);
}
.cart-toast[hidden] { display: none; }
.cart-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.cart-toast-icon {
    background: var(--c-gold);
    color: var(--c-primary-dark);
    width: 22px; height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.75rem;
    flex-shrink: 0;
}
.cart-toast-msg {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}
.cart-toast-action {
    background: var(--c-gold);
    color: var(--c-primary-dark);
    padding: 4px 12px;
    border-radius: var(--r-pill);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: background var(--t-fast) var(--ease);
    flex-shrink: 0;
}
.cart-toast-action:hover { background: #d99a3f; }

@media (max-width: 480px) {
    .cart-toast {
        bottom: 80px;
        left: 12px; right: 12px;
        transform: translateY(20px);
        max-width: calc(100vw - 24px);
    }
    .cart-toast.show { transform: translateY(0); }
}

/* === WHATSAPP CHAT BUBBLE ====================== */
.wa-attention-pulse {
    position: absolute;
    top: 4px; right: 4px;
    width: 10px; height: 10px;
    background: var(--c-red);
    border: 2px solid white;
    border-radius: 50%;
    animation: waPulse 1.6s ease-out infinite;
}
@keyframes waPulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.15); }
}
.wa-active .wa-attention-pulse { display: none; }

.wa-chat {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: min(340px, calc(100vw - 32px));
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease);
    z-index: 51;
    overflow: hidden;
    transform-origin: bottom right;
}
.wa-chat[hidden] { display: none; }
.wa-chat.open {
    transform: translateY(0) scale(1);
    opacity: 1;
}

@media (max-width: 480px) {
    .wa-chat {
        bottom: 84px;
        right: 12px;
        left: 12px;
        width: auto;
    }
}

.wa-chat-header {
    background: linear-gradient(135deg, #075E54 0%, #128C7E 100%);
    color: white;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.wa-chat-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.wa-chat-avatar img { width: 28px; height: 28px; object-fit: contain; }
.wa-chat-id {
    flex: 1;
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    min-width: 0;
}
.wa-chat-id strong { font-size: 0.95rem; }
.wa-chat-status {
    font-size: 0.72rem;
    opacity: 0.85;
    display: flex;
    align-items: center;
    gap: 4px;
}
.wa-online-dot {
    width: 8px; height: 8px;
    background: #4FC85B;
    border-radius: 50%;
    display: inline-block;
}
.wa-chat-close {
    margin-left: auto;
    color: white;
    font-size: 1.05rem;
    width: 30px; height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--t-fast) var(--ease);
    flex-shrink: 0;
}
.wa-chat-close:hover { background: rgba(255, 255, 255, 0.15); }

.wa-chat-body {
    padding: 16px 14px;
    background: #ECE5DD;
    background-image:
      radial-gradient(circle at 10% 20%, rgba(0,0,0,0.02) 0px, transparent 40px),
      radial-gradient(circle at 80% 70%, rgba(0,0,0,0.02) 0px, transparent 40px);
    min-height: 140px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wa-chat-bubble {
    max-width: 85%;
    padding: 8px 12px 18px;
    border-radius: 8px;
    font-size: 0.88rem;
    color: #303030;
    line-height: 1.4;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2px;
    animation: waBubbleIn 0.4s ease;
}
@keyframes waBubbleIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.wa-chat-bubble--in {
    background: white;
    border-top-left-radius: 0;
    align-self: flex-start;
}
.wa-chat-msg { display: block; }
.wa-chat-time {
    position: absolute;
    bottom: 4px;
    right: 8px;
    font-size: 0.65rem;
    color: #999;
}

.wa-chat-cta {
    width: 100%;
    background: var(--c-whatsapp);
    color: white;
    padding: 11px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
    margin-top: auto;
    cursor: pointer;
    animation: waBubbleIn 0.5s ease 0.2s both;
}
.wa-chat-cta:hover {
    background: #1ebd5a;
    transform: translateY(-1px);
}

/* ============================================================
   === PRODUCT CARD MOBILE OVERRIDES (al final por cascada) ===
   ============================================================
   Estas reglas están al FINAL del archivo y usan selectores con
   especificidad superior (.product-card > .X) para garantizar
   que ganen sobre cualquier estilo base anterior. */

@media (max-width: 599px) {

    .products-grid {
        gap: 10px;
    }

    .product-card {
        border-radius: 14px;
        box-shadow: 0 1px 2px rgba(43, 3, 2, 0.06), 0 4px 12px rgba(43, 3, 2, 0.04);
    }

    .product-card .product-image {
        aspect-ratio: 1 / 1;
    }

    .product-card .product-badge {
        font-size: 0.6rem;
        padding: 3px 8px;
        top: 8px;
        left: 8px;
        letter-spacing: 0.06em;
        font-weight: 700;
    }

    .product-card .product-info {
        padding: 12px;
        gap: 10px;
        display: flex;
        flex-direction: column;
    }

    .product-card .product-pretitle {
        display: none;
    }

    .product-card .product-name {
        font-family: var(--font-display);
        font-size: 1.05rem;
        line-height: 1.15;
        letter-spacing: -0.01em;
        font-variation-settings: 'opsz' 14, 'wght' 600;
        margin: 0;
        color: var(--c-primary-dark);
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .product-card .product-desc {
        display: none;
    }

    .product-card .variant-group {
        margin: 0;
    }

    .product-card .variant-label {
        display: none;
    }

    .product-card .variant-group + .variant-group {
        margin-top: 6px;
    }

    .product-card .variant-pills {
        gap: 6px;
        flex-wrap: nowrap;
        display: flex;
        width: 100%;
    }

    /* Café (variantsType simple, 3 pills): grid 2 columnas para alinear con los otros productos
       Resultado: fila 1 = [1kg Grano][250g Grano], fila 2 = [250g Molido][hueco vacío] */
    .product-card .variant-pills[data-variant-type="single"] {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        flex-wrap: unset;
    }
    .product-card .variant-pills[data-variant-type="single"] .variant-pill {
        flex: unset;
        width: auto;
    }

    .product-card .variant-pill {
        flex: 1 1 0;
        min-width: 0;
        min-height: 32px;
        padding: 6px 8px;
        font-family: var(--font-sans);
        font-size: 0.72rem;
        font-weight: 600;
        line-height: 1.1;
        letter-spacing: 0.01em;
        font-variant-numeric: tabular-nums;
        border-width: 1px;
        border-radius: 999px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: center;
    }

    .product-card .variant-pill[aria-pressed="true"] {
        font-weight: 700;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }

    .product-card .product-footer {
        margin-top: 4px;
        padding-top: 10px;
        border-top: 1px solid rgba(117, 63, 27, 0.12);
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .product-card .product-price {
        font-family: var(--font-sans);
        font-size: 1.05rem;
        font-weight: 800;
        line-height: 1;
        letter-spacing: -0.02em;
        color: var(--c-primary-dark);
        font-variant-numeric: tabular-nums;
        flex: 1 1 auto;
        min-width: 0;
    }

    .product-card .add-to-cart-btn {
        flex: 0 0 auto;
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        padding: 0;
        border-radius: 10px;
        font-size: 0;
        gap: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .product-card .add-to-cart-btn svg {
        width: 18px;
        height: 18px;
        stroke-width: 2.5;
    }

    .product-card .add-to-cart-btn span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }
}

/* Pantallas XS (≤380px: iPhone SE, Galaxy A) */
@media (max-width: 380px) {
    .products-grid { gap: 8px; }
    .product-card .product-info { padding: 10px; gap: 8px; }
    .product-card .product-name { font-size: 0.98rem; }
    .product-card .variant-pill {
        padding: 5px 6px;
        font-size: 0.68rem;
        min-height: 30px;
    }
    .product-card .product-price { font-size: 0.98rem; }
    .product-card .add-to-cart-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
    }
    .product-card .add-to-cart-btn svg { width: 16px; height: 16px; }
}
