/* ============================================================
   DIETY — Sistema visual "tienda"
   Tipografía: Plus Jakarta Sans (títulos) + Inter (texto)
   ============================================================ */
:root {
    --blue:    #2B6FAE;
    --blue-d:  #1A4E80;
    --blue-l:  #EAF2FA;
    --red:     #D3372F;
    --cream:   #FAF6EF;
    --sand:    #F3EEE4;
    --ink:     #141B2D;
    --text:    #2A3140;
    --muted:   #6B7280;
    --line:    #E6E8EE;
    --white:   #FFFFFF;
    --wa:      #25D366;
    --wa-d:    #1DA851;
    --radius:  16px;
    --radius-s: 10px;
    --shadow:  0 10px 30px rgba(20, 27, 45, .08);
    --shadow-l: 0 24px 60px rgba(20, 27, 45, .14);
    --font-h:  'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    --font-b:  'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --header-h: 92px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-b);
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
ul, ol { list-style-position: inside; }

.container { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 24px; }
.desktop-only { display: flex; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Tipografía ---------- */
h1, h2, h3, h4 { text-wrap: balance; font-family: var(--font-h); color: var(--ink); line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.2rem; }
p  { color: var(--text); }
.kicker { display: inline-block; font-family: var(--font-h); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: .8rem; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 2.8rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin-top: .6rem; }
.section-head.left { text-align: left; margin-left: 0; }
.section-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.section-row .section-head { margin: 0; text-align: left; }
.link-arrow { font-weight: 600; color: var(--blue-d); display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; }
.link-arrow svg { transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    padding: .9rem 1.7rem; border-radius: 999px;
    font-family: var(--font-h); font-weight: 700; font-size: .95rem; line-height: 1;
    border: 1.5px solid transparent; cursor: pointer;
    transition: background .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s;
    white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-d); border-color: var(--blue-d); box-shadow: 0 8px 20px rgba(43,111,174,.3); }
.btn-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-dark:hover { background: #000; }
.btn-outline { background: transparent; color: var(--ink); border-color: rgba(20,27,45,.25); }
.btn-outline:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--blue-d); border-color: #fff; }
.btn-light:hover { background: var(--cream); }
.btn-wa { background: var(--wa); color: #fff; border-color: var(--wa); }
.btn-wa:hover { background: var(--wa-d); border-color: var(--wa-d); }
.btn-lg { padding: 1.05rem 2.1rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------- Announcement + Header ---------- */
.site-header-wrap { position: sticky; top: 0; z-index: 100; }
.announcement-bar { background: var(--blue-d); color: #fff; font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.announcement-bar .container { display: flex; align-items: center; justify-content: center; gap: .5rem; padding-top: 8px; padding-bottom: 8px; }
.announcement-bar svg { opacity: .8; }

.header { background: var(--blue); color: #fff; box-shadow: 0 2px 0 rgba(0,0,0,.06); }
.header-inner { display: flex; align-items: center; gap: 2rem; height: var(--header-h); }
.logo img { height: 74px; width: auto; }
.nav-main { align-items: center; gap: .25rem; margin-left: .5rem; position: relative; flex: 1; }
.nav-link { white-space: nowrap; display: inline-flex; align-items: center; gap: .3rem; padding: .55rem .85rem; border-radius: 999px; font-family: var(--font-h); font-weight: 600; font-size: .92rem; color: rgba(255,255,255,.92); transition: background .2s, color .2s; }
.nav-link:hover, .nav-link.active { background: rgba(255,255,255,.14); color: #fff; }
.nav-link.has-menu svg { transition: transform .2s; }
.nav-link.has-menu:hover svg { transform: rotate(180deg); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: .3rem; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; color: #fff; background: transparent; border: 0; cursor: pointer; transition: background .2s; position: relative; }
.icon-btn:hover { background: rgba(255,255,255,.14); }
.cart-count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--red); color: #fff; font-size: .68rem; font-weight: 700; display: none; align-items: center; justify-content: center; line-height: 1; border: 2px solid var(--blue); }
.cart-count.visible { display: inline-flex; }
.lang-switch { display: flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 700; color: rgba(255,255,255,.6); margin-right: .4rem; }
.lang-switch a { color: rgba(255,255,255,.8); padding: .25rem .3rem; font-weight: 400; transition: color .2s; }
.lang-switch a:hover, .lang-switch a.active { color: #fff; }
.lang-switch a.active { color: #fff; font-weight: 800; }

/* Mega menu */
.mega { position: absolute; top: calc(100% + 14px); left: 0; background: #fff; color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-l); padding: 1.1rem; min-width: 640px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s; z-index: 50; }
.mega::before { content: ''; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
.nav-link.has-menu:hover + .mega, .mega:hover { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .6rem; }
.mega-item { display: flex; flex-direction: column; gap: .35rem; padding: .5rem; border-radius: 12px; transition: background .2s; }
.mega-item:hover { background: var(--cream); }
.mega-item img { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--sand); border-radius: 10px; }
.mega-item span { font-family: var(--font-h); font-weight: 700; font-size: .9rem; }
.mega-item small { color: var(--muted); font-size: .75rem; }

/* Hamburger + mobile menu */
.hamburger-btn { display: none; background: none; border: 0; color: #fff; width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; margin-left: -8px; }
.mobile-menu { position: fixed; inset: 0; z-index: 1000; background: #fff; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transform: translateX(-12px); transition: opacity .22s, transform .22s, visibility .22s; overflow-y: auto; }
.mobile-menu.open { opacity: 1; visibility: visible; transform: none; }
.mobile-menu-bar { display: flex; align-items: center; justify-content: space-between; background: var(--blue); padding: .8rem 1.25rem; }
.mobile-logo { height: 54px; width: auto; }
.mobile-menu-close { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.7); background: transparent; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.mobile-nav { display: flex; flex-direction: column; padding: .5rem 1.25rem; }
.mobile-nav > a { font-family: var(--font-h); font-weight: 700; font-size: 1.35rem; padding: 1rem 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.mobile-cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; padding: .2rem 0 1rem; border-bottom: 1px solid var(--line); }
.mobile-cats a { display: flex; align-items: center; gap: .6rem; background: var(--cream); border-radius: 12px; padding: .5rem; font-weight: 600; font-size: .9rem; }
.mobile-cats img { width: 44px; height: 44px; border-radius: 8px; object-fit: contain; background: #fff; }
.mobile-menu-foot { margin-top: auto; padding: 1.25rem; display: flex; flex-direction: column; gap: 1rem; }
.mobile-menu-foot .lang-switch { color: var(--muted); justify-content: center; font-size: 1rem; }
.mobile-menu-foot .lang-switch a { color: var(--muted); font-weight: 400; }
.mobile-menu-foot .lang-switch a.active { color: var(--blue); font-weight: 800; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--cream); overflow: hidden; display: flex; align-items: center;
    /* Altura ligada al ALTO de la pantalla (no al ancho) para que el hero entre completo bajo la cabecera */
    height: clamp(460px, calc(100vh - 128px), 780px);
    height: clamp(460px, calc(100svh - 128px), 780px); }
.hero-bg { position: absolute; inset: 0; z-index: 0; background: var(--cream); }
.hero-bg img { position: absolute; right: 0; top: 0; height: 100%; width: auto; max-width: none; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, rgba(250,246,239,1) 0%, rgba(250,246,239,.92) 34%, rgba(250,246,239,.4) 46%, rgba(250,246,239,0) 56%); }
.hero .container { position: relative; z-index: 1; width: 100%; }
.hero-copy { padding: 3.5rem 0; max-width: 560px; }
.hero-copy h1 { margin: .6rem 0 1.2rem; }
.hero-copy p { font-size: 1.15rem; color: var(--text); max-width: 460px; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 2rem; }
.hero-pill { position: absolute; z-index: 2; right: 24px; bottom: 28px; background: #fff; border-radius: 999px; padding: .6rem 1rem .6rem .6rem; display: flex; align-items: center; gap: .7rem; box-shadow: var(--shadow); font-size: .85rem; font-weight: 600; color: var(--ink); }
.hero-pill .dot { width: 34px; height: 34px; border-radius: 50%; background: var(--blue-l); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; }
.hero-img-mobile { display: none; }

/* Trust strip */
.trust { background: #fff; border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { display: flex; align-items: center; gap: .8rem; padding: 1.1rem 1rem; font-family: var(--font-h); font-weight: 700; font-size: .92rem; color: var(--ink); justify-content: center; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: 0; }
.trust-item svg { width: 22px; height: 22px; color: var(--blue); flex-shrink: 0; }

/* ---------- Secciones genéricas ---------- */
section { padding: 5.5rem 0; }
.bg-cream { background: var(--cream); }
.bg-sand { background: var(--sand); }
.bg-white { background: #fff; }

/* ---------- Productos ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.product-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s, border-color .25s; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.product-media { position: relative; display: block; aspect-ratio: 1; background: var(--sand); overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .product-media img { transform: scale(1.05); }
.badge { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--ink); color: #fff; font-family: var(--font-h); font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .35rem .6rem; border-radius: 999px; }
.badge-new { background: var(--red); }
.badge-top { background: var(--blue); }
.badge-kids { background: #F2A900; color: var(--ink); }
.product-body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; flex: 1; }
.product-cat { font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .25rem; }
.product-title { font-size: 1.02rem; font-weight: 700; margin-bottom: .2rem; }
.product-title a:hover { color: var(--blue-d); }
.product-desc { font-size: .86rem; color: var(--muted); margin-bottom: .9rem; }
.product-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.product-price { font-family: var(--font-h); font-weight: 800; font-size: 1.05rem; color: var(--ink); }
.btn-add { display: inline-flex; align-items: center; gap: .45rem; padding: .6rem 1rem; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--ink); color: #fff; font-family: var(--font-h); font-weight: 700; font-size: .84rem; cursor: pointer; transition: background .2s, border-color .2s, transform .15s; margin-left: auto; }
.btn-add:hover { background: var(--blue); border-color: var(--blue); }
.btn-add:active { transform: scale(.97); }
.btn-add.added { background: var(--wa); border-color: var(--wa); }

/* Categorías (colecciones) */
.collection-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.2rem; }
.collection-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s, border-color .25s; }
.collection-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.collection-card .media { aspect-ratio: 10 / 9; overflow: hidden; background: var(--sand); }
.collection-card .media img { width: 100%; height: 100%; object-fit: contain; object-position: center; transition: transform .6s ease; }
.collection-card:hover .media img { transform: scale(1.05); }
.collection-card .label { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .85rem 1rem; }
.collection-card .label strong { font-family: var(--font-h); font-size: 1rem; font-weight: 700; color: var(--ink); }
.collection-card .label small { font-size: .78rem; color: var(--muted); display: inline-flex; align-items: center; gap: .25rem; white-space: nowrap; }
.collection-card.active { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue); }

/* ---------- Puntos de venta ---------- */
.stores { padding-top: 4.5rem; padding-bottom: 4.5rem; }
.stores-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.store-logo { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); height: 120px; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 1.2rem 1.4rem; transition: transform .25s, box-shadow .25s, background .25s; }
.store-logo:hover { transform: translateY(-3px); box-shadow: var(--shadow); background: #fff; }
.store-logo img { max-width: 100%; max-height: 70px; width: auto; height: auto; object-fit: contain; }
.stores-note { text-align: center; color: var(--muted); margin-top: 1.8rem; font-size: .95rem; }
.stores-note a { color: var(--blue-d); font-weight: 600; }

/* Ciudades / tiendas */
.store-logo.active { outline: 2px solid var(--blue); }
.city-pills { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.city-pills-label { font-size: .85rem; color: var(--muted); font-weight: 600; margin-right: .3rem; }
.city-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.chip.static { cursor: default; }
.chip.static:hover { background: #fff; color: var(--ink); border-color: var(--line); }
.store-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.store-card { display: grid; grid-template-columns: 120px 1fr; gap: 1rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; transition: transform .25s, box-shadow .25s; }
.store-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.store-card-logo { background: var(--cream); border-radius: 12px; height: 84px; display: flex; align-items: center; justify-content: center; padding: .7rem; }
.store-card-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; }
.store-card-body strong { display: block; font-family: var(--font-h); color: var(--ink); }
.store-card-body span { font-size: .82rem; color: var(--muted); display: block; }
.store-card-body em { font-size: .78rem; color: var(--wa-d); font-style: normal; font-weight: 600; }
.city-cta { margin-top: 2rem; background: var(--blue-d); color: #fff; border-radius: var(--radius); padding: 1.6rem 2rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.city-cta strong { font-family: var(--font-h); font-size: 1.15rem; display: block; margin-bottom: .3rem; }
.city-cta p { color: rgba(255,255,255,.85); font-size: .92rem; max-width: 640px; }
.store-hero-logo { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); width: 260px; height: 160px; display: flex; align-items: center; justify-content: center; padding: 1.4rem; box-shadow: var(--shadow); }
.store-hero-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; }
.retailer-link { display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; font-weight: 700; color: var(--blue-d); margin-bottom: .6rem; }
.retailer-link:hover { text-decoration: underline; }
.retailers { margin: 1.4rem 0 0; padding: 1.1rem 1.2rem; border: 1px dashed var(--line); border-radius: var(--radius); }
.retailers-label { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .7rem; }
.retailers-list { display: flex; flex-wrap: wrap; gap: .6rem; }
.retailer-btn { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .9rem; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.retailer-btn:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.retailer-btn img { height: 22px; width: auto; max-width: 110px; }
.retailer-btn span { font-size: .8rem; color: var(--muted); }
.container.narrow { max-width: 860px; }
.seo-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.seo-media img { width: 100%; height: auto; border-radius: var(--radius); }
.seo-text h2 { font-size: 1.5rem; margin-bottom: .8rem; }
.seo-text p { color: var(--text); margin-bottom: .9rem; }
.seo-text a { color: var(--blue-d); font-weight: 600; }

/* Carrito: validación */
.cart-required { font-size: .82rem; color: var(--red); background: #FBEAEA; border-radius: 10px; padding: .55rem .75rem; margin-bottom: .6rem; }
.cart-form .invalid { border-color: var(--red) !important; box-shadow: 0 0 0 3px rgba(211,55,47,.15); }
.cart-panel .btn-wa.is-disabled { opacity: .55; cursor: not-allowed; }
.cart-panel .btn-wa.is-disabled::after { display: none; }
.retailers-note { font-size: .88rem; color: var(--muted); margin-bottom: .7rem; }
.retailers .chip small { background: transparent; color: var(--muted); padding: 0; font-weight: 500; }
.retailers .chip:hover small { color: rgba(255,255,255,.75); }

/* Buscador de punto de venta */
.find-form { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.find-form select { width: 100%; padding: .7rem .9rem; border: 1.5px solid var(--line); border-radius: 10px; font-family: var(--font-b); font-size: .9rem; color: var(--ink); background: #fff; }
.find-form select:disabled { color: var(--muted); background: var(--cream); }
.find-form select:focus { outline: 0; border-color: var(--blue); }
.find-result { margin-top: 1rem; }
.find-msg { font-size: .9rem; color: var(--text); margin-bottom: .6rem; }
.find-msg.ok { color: var(--ink); font-weight: 600; }
.find-msg.small { font-size: .82rem; color: var(--muted); margin-top: .8rem; }
.find-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.find-chip { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .8rem .4rem .5rem; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-size: .82rem; font-weight: 600; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.find-chip:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.find-chip img { height: 20px; width: auto; max-width: 70px; }
@media (max-width: 640px) { .find-form { grid-template-columns: 1fr; } }

/* Ficha de producto */
.spec-table { width: 100%; border-collapse: collapse; margin: 1.4rem 0 0; font-size: .9rem; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec-table th, .spec-table td { text-align: left; padding: .6rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table th { width: 34%; background: var(--cream); font-family: var(--font-h); font-weight: 700; color: var(--ink); font-size: .8rem; }
.spec-table td { color: var(--text); }
.spec-table a { color: var(--blue-d); font-weight: 600; }

/* Nosotros */
.about-hero .media img { object-position: center 30%; }
.lead-text { font-size: 1.12rem; color: var(--text); margin: .6rem 0 2.2rem; }
.timeline { display: grid; gap: 1.2rem; position: relative; padding-left: .2rem; }
.timeline-item { display: grid; grid-template-columns: 44px 1fr; gap: 1rem; align-items: start; }
.timeline-item .num { width: 44px; height: 44px; border-radius: 50%; background: var(--blue); color: #fff; font-family: var(--font-h); font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.timeline-item h3 { font-size: 1.05rem; margin: .5rem 0 .2rem; }
.timeline-item p { color: var(--muted); font-size: .95rem; }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.value-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.value-num { font-family: var(--font-h); font-weight: 800; color: var(--blue); font-size: .85rem; letter-spacing: .1em; }
.value-card h3 { font-size: 1.05rem; margin: .5rem 0 .4rem; }
.value-card p { color: var(--muted); font-size: .92rem; }
.bg-blue { background: var(--blue); color: #fff; }
.stats { padding: 3.5rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stats-grid strong { display: block; font-family: var(--font-h); font-size: 2.4rem; font-weight: 800; line-height: 1.1; }
.stats-grid span { color: rgba(255,255,255,.85); font-size: .92rem; }

/* FAQ */
.faq-list { display: grid; gap: .7rem; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.05rem 1.3rem; font-family: var(--font-h); font-weight: 700; color: var(--ink); font-size: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { flex-shrink: 0; color: var(--blue); transition: transform .25s; }
.faq-item[open] summary svg { transform: rotate(180deg); }
.faq-item[open] summary { border-bottom: 1px solid var(--line); }
.faq-a { padding: 1rem 1.3rem 1.2rem; }
.faq-a p { color: var(--text); font-size: .97rem; }
.faq .section-head { margin-bottom: 1.8rem; }

/* Legal */
.legal h2 { font-size: 1.25rem; margin: 1.8rem 0 .5rem; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--text); font-size: .98rem; margin-bottom: .6rem; }
.legal ul { padding-left: 1.2rem; list-style-position: outside; }
.legal a { color: var(--blue-d); font-weight: 600; }
.footer-bottom a { font-weight: 500; color: var(--muted); }
.footer-bottom a:hover { color: var(--ink); }

/* ---------- Distribuidores ---------- */
.dist-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.dist-copy .lead { font-size: 1.1rem; color: var(--text); max-width: 560px; margin-top: .4rem; }
.dist-benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.dist-benefit { display: flex; gap: .8rem; align-items: flex-start; }
.dist-benefit .ico { width: 42px; height: 42px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dist-benefit .ico svg { width: 20px; height: 20px; }
.dist-benefit strong { display: block; font-family: var(--font-h); font-size: .95rem; color: var(--ink); }
.dist-benefit span { font-size: .88rem; color: var(--muted); }
.dist-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); display: grid; gap: .7rem; }
.dist-form h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.dist-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.dist-form input, .dist-form select, .dist-form textarea { width: 100%; padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: 12px; font-family: var(--font-b); font-size: .95rem; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s; }
.dist-form input:focus, .dist-form select:focus, .dist-form textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-l); }
.dist-form select:invalid { color: var(--muted); }
.dist-form textarea { resize: vertical; }
.dist-form .btn { margin-top: .4rem; }
.dist-alt { text-align: center; font-size: .85rem; color: var(--muted); }
.dist-alt a { color: var(--blue-d); font-weight: 600; }

/* ---------- Historia ---------- */
.story { padding: 0; }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 620px; }
.story-media { position: relative; min-height: 420px; }
.story-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story-copy { display: flex; flex-direction: column; justify-content: center; padding: 5rem 6vw; background: var(--cream); }
.story-copy h2 { margin-bottom: 1.2rem; }
.story-copy p { font-size: 1.08rem; color: var(--text); margin-bottom: 1.8rem; max-width: 540px; }
.story-quote { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.6rem; font-family: var(--font-h); font-weight: 700; color: var(--blue-d); }
.story-quote span { width: 44px; height: 3px; background: var(--blue); border-radius: 3px; }

/* ---------- Manifiesto ---------- */
.manifesto { background: var(--blue); color: #fff; text-align: center; position: relative; overflow: hidden; }
.manifesto::before { content: ''; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: rgba(255,255,255,.06); top: -260px; right: -120px; }
.manifesto::after { content: ''; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: rgba(255,255,255,.05); bottom: -220px; left: -80px; }
.manifesto .container { position: relative; z-index: 1; }
.manifesto .kicker { color: rgba(255,255,255,.8); }
.manifesto h2 { color: #fff; max-width: 760px; margin: 0 auto 1.2rem; font-size: clamp(2rem, 4vw, 3.1rem); }
.manifesto p { color: rgba(255,255,255,.9); max-width: 640px; margin: 0 auto 2.2rem; font-size: 1.1rem; }

/* ---------- Beneficios ---------- */
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.benefit { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 1.6rem; transition: box-shadow .25s, transform .25s; }
.benefit:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.benefit-icon { width: 60px; height: 60px; border-radius: 18px; background: var(--blue-l); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1.1rem; }
.benefit-icon svg { width: 34px; height: 34px; }
.benefit h3 { font-size: 1.08rem; margin-bottom: .4rem; }
.benefit p { color: var(--muted); font-size: .95rem; }

/* ---------- Recetas ---------- */
.recipes-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: 1.5rem; align-items: stretch; }
.recipes-cover { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 480px; background: var(--sand); }
.recipes-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.recipes-cover .cover-cta { position: absolute; left: 1.2rem; right: 1.2rem; bottom: 1.2rem; }
.recipes-mini { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.recipe-mini { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.recipe-mini:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.recipe-mini img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.recipe-mini .body { padding: 1rem 1.1rem 1.2rem; }
.recipe-mini .tag { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.recipe-mini h3 { font-size: 1rem; margin: .3rem 0 .4rem; }
.recipe-mini p { font-size: .85rem; color: var(--muted); }

/* Página de recetas */
.split-hero { background: var(--cream); }
.split-hero .container { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2rem; align-items: center; min-height: 520px; }
.split-hero .copy { padding: 3rem 0; }
.split-hero h1 { margin: .4rem 0 .8rem; }
.split-hero p { color: var(--muted); font-size: 1.1rem; max-width: 520px; }
.split-hero .media { height: 100%; min-height: 520px; position: relative; }
.split-hero .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 28%; border-radius: 0 0 var(--radius) var(--radius); }

.page-hero { position: relative; min-height: 380px; display: flex; align-items: flex-end; background: var(--ink); overflow: hidden; }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; opacity: .9; }
.page-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,27,45,.8) 0%, rgba(20,27,45,.25) 55%, rgba(20,27,45,.05) 100%); }
.page-hero .container { position: relative; z-index: 1; padding-top: 3rem; padding-bottom: 3rem; color: #fff; }
.page-hero h1 { color: #fff; margin: .4rem 0 .6rem; }
.page-hero p { color: rgba(255,255,255,.88); max-width: 560px; font-size: 1.08rem; }
.page-hero .kicker { color: rgba(255,255,255,.85); }
.breadcrumb { display: flex; align-items: center; gap: .4rem; font-size: .82rem; color: rgba(255,255,255,.75); margin-bottom: .6rem; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb.dark { color: var(--muted); }
.breadcrumb.dark a:hover { color: var(--ink); }

.recipe-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.recipe-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.recipe-card > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.recipe-card .body { padding: 1.6rem 1.7rem 1.8rem; }
.recipe-card .tag { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.recipe-card h3 { font-size: 1.35rem; margin: .35rem 0 1rem; }
.recipe-card h4 { font-family: var(--font-h); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-d); margin: 1.1rem 0 .5rem; }
.recipe-card ul, .recipe-card ol { padding-left: 1.2rem; list-style-position: outside; }
.recipe-card li { font-size: .95rem; color: var(--text); margin-bottom: .3rem; }
.recipe-meta { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .82rem; color: var(--muted); margin-bottom: .2rem; }
.recipe-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.recipe-meta svg { width: 15px; height: 15px; color: var(--blue); }

.recom-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.recom-item { background: #fff; border-radius: var(--radius); padding: 1.8rem 1.6rem; border: 1px solid var(--line); }
.recom-item .num { width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: #fff; font-family: var(--font-h); font-weight: 800; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.recom-item h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.recom-item p { color: var(--muted); font-size: .95rem; }
.recom-close { margin-top: 1.5rem; background: var(--blue-d); color: #fff; border-radius: var(--radius); padding: 2rem 2.4rem; text-align: center; font-size: 1.05rem; }
.recom-close p { color: rgba(255,255,255,.92); max-width: 780px; margin: 0 auto; }

/* ---------- Página de categoría ---------- */
.cat-hero { background: var(--cream); padding: 3rem 0 2.5rem; }
.cat-hero-grid { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; }
.cat-hero h1 { margin: .3rem 0 .6rem; }
.cat-hero p { color: var(--muted); max-width: 620px; font-size: 1.05rem; }
.cat-hero-img { width: 220px; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.subcat-nav { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.4rem; }
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .95rem; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-family: var(--font-h); font-weight: 700; font-size: .84rem; color: var(--ink); transition: all .2s; }
.chip:hover, .chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip small { background: var(--sand); color: var(--muted); border-radius: 999px; padding: .1rem .45rem; font-size: .72rem; font-weight: 600; }
.chip:hover small, .chip.active small { background: rgba(255,255,255,.2); color: #fff; }
.subcat { padding: 3rem 0 0; }
.subcat:last-child { padding-bottom: 3rem; }
.subcat-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.subcat-head h2 { font-size: 1.5rem; }
.subcat-head p { color: var(--muted); font-size: .95rem; max-width: 640px; margin-top: .2rem; }
.subcat-head .count { font-size: .85rem; color: var(--muted); white-space: nowrap; }
.empty-state { background: var(--cream); border-radius: var(--radius); padding: 2.5rem; text-align: center; color: var(--muted); }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr .9fr; gap: 1.2rem; align-items: stretch; }
.contact-card { background: var(--blue-d); color: #fff; border-radius: var(--radius); padding: 1.8rem; display: flex; flex-direction: column; gap: 1rem; }
.contact-card h2 { font-size: 1.8rem; }
.contact-card > div:first-child p { font-size: .95rem; }
.contact-card h2 { color: #fff; }
.contact-card p { color: rgba(255,255,255,.85); }
.contact-row { display: flex; gap: 1rem; align-items: flex-start; }
.contact-row .ico { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.12); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-row .ico svg { width: 20px; height: 20px; }
.contact-row strong { display: block; font-family: var(--font-h); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; opacity: .7; margin-bottom: .15rem; }
.contact-row a:hover { text-decoration: underline; }
.contact-card .btn { align-self: flex-start; }
.contact-aside { display: contents; }
.contact-map { border-radius: var(--radius); overflow: hidden; background: var(--sand); min-height: 260px; border: 1px solid var(--line); }
.contact-map iframe { width: 100%; height: 100%; min-height: 260px; border: 0; display: block; }
.contact-hours { background: var(--cream); border-radius: var(--radius); padding: 1.5rem 1.7rem; }
.contact-hours h3 { font-size: 1rem; margin-bottom: .5rem; }
.contact-hours p { color: var(--muted); font-size: .95rem; }

/* Mapa de puntos de venta */
.ec-map { display: contents; }
.ec-map-svg { display: flex; justify-content: center; align-items: center; min-height: 0; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem; }
.ec-map-svg svg { width: 100%; height: 100%; max-height: 520px; display: block; }
.ec-provinces path { fill: #fff; stroke: #D9DCE3; stroke-width: 1.2; stroke-linejoin: round; }
.ec-dot { cursor: pointer; outline: 0; }
.ec-dot .halo { fill: var(--blue); opacity: .16; transition: opacity .2s, r .2s; }
.ec-dot .core { fill: var(--blue); stroke: #fff; stroke-width: 2; transition: fill .2s; }
.ec-dot text { font-family: var(--font-h); font-size: 13px; font-weight: 700; fill: var(--ink); pointer-events: none; }
.ec-dot:hover .halo, .ec-dot.active .halo { opacity: .35; }
.ec-dot.active .core { fill: var(--red); }
.ec-dot:focus-visible .core { stroke: var(--ink); }
.ec-map-panel { display: flex; flex-direction: column; gap: .5rem; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.ec-map-panel .kicker { display: inline-block; margin-bottom: 0; }
.ec-map-panel h3 { font-size: 1.4rem; }
.ec-map-hint { font-size: .8rem; color: var(--muted); }
.ec-map-logos { display: grid; grid-template-columns: repeat(2, 1fr); gap: .45rem; margin: .3rem 0; }
.ec-logo { background: #fff; border: 1px solid var(--line); border-radius: 10px; height: 46px; width: auto; display: flex; align-items: center; justify-content: center; padding: .5rem .8rem; transition: box-shadow .2s, border-color .2s; }
.ec-logo:hover { box-shadow: var(--shadow); border-color: transparent; }
.ec-logo img { max-height: 100%; max-width: 100%; width: auto; height: auto; }
.ec-map-foot { font-size: .78rem; color: var(--muted); margin-top: auto; padding-top: .6rem; border-top: 1px solid var(--line); }
.ec-map-panel .link-arrow { font-size: .88rem; }


/* ---------- Footer ---------- */
.footer { background: #fff; border-top: 1px solid var(--line); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.3fr; gap: 2.2rem; }
.footer-brand img { height: 84px; width: auto; margin-bottom: 1.1rem; background: var(--blue); border-radius: 14px; padding: .5rem .9rem; }
.footer-brand p { color: var(--muted); font-size: .95rem; max-width: 340px; }
.footer h4 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; color: var(--ink); }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.footer li a { color: var(--text); font-size: .95rem; }
.footer li a:hover { color: var(--blue-d); }
.footer .small { color: var(--muted); font-size: .9rem; margin-bottom: 1rem; }
.social-links { display: flex; gap: .6rem; }
.social-links a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: var(--ink); transition: all .2s; }
.social-links a:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.social-links svg { width: 17px; height: 17px; }
.footer-bottom { margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .82rem; color: var(--muted); }
.footer-bottom a { font-weight: 600; color: var(--ink); }

/* ---------- Carrito ---------- */
.cart-overlay { position: fixed; inset: 0; background: rgba(20,27,45,.5); z-index: 1200; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; backdrop-filter: blur(2px); }
.cart-overlay.open { opacity: 1; visibility: visible; }
.cart-panel { position: fixed; top: 0; right: 0; bottom: 0; width: 440px; max-width: 100vw; background: #fff; z-index: 1300; display: flex; flex-direction: column; transform: translateX(105%); transition: transform .38s cubic-bezier(.32,.72,0,1); box-shadow: var(--shadow-l); }
.cart-panel.open { transform: none; }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 1.5rem; border-bottom: 1px solid var(--line); }
.cart-head h3 { font-size: 1.2rem; display: flex; align-items: center; gap: .6rem; }
.cart-head h3 span { font-size: .8rem; font-weight: 600; color: var(--muted); }
.cart-close { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); }
.cart-close:hover { background: var(--cream); }
.cart-body { flex: 1; overflow-y: auto; padding: .5rem 1.5rem; }
.cart-empty { text-align: center; padding: 3.5rem 1rem; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.cart-empty svg { width: 56px; height: 56px; color: var(--line); }
.cart-item { display: grid; grid-template-columns: 72px 1fr auto; gap: .9rem; padding: 1rem 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-item img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; background: var(--sand); }
.cart-item-name { font-family: var(--font-h); font-weight: 700; font-size: .95rem; color: var(--ink); }
.cart-item-desc { font-size: .8rem; color: var(--muted); margin: .1rem 0 .5rem; }
.cart-item-price { font-size: .85rem; font-weight: 700; color: var(--ink); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { width: 30px; height: 30px; border: 0; background: #fff; cursor: pointer; font-size: 1rem; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; }
.qty button:hover { background: var(--cream); }
.qty span { min-width: 28px; text-align: center; font-weight: 700; font-size: .9rem; }
.cart-remove { border: 0; background: none; color: #B0B6C2; cursor: pointer; width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.cart-remove:hover { color: var(--red); background: #FBEAEA; }
.cart-foot { border-top: 1px solid var(--line); padding: 1.1rem 1.5rem 1.4rem; background: #fff; }
.cart-subtotal { display: flex; justify-content: space-between; font-family: var(--font-h); font-weight: 800; font-size: 1.05rem; margin-bottom: .3rem; }
.cart-note { font-size: .78rem; color: var(--muted); margin-bottom: .9rem; }
.cart-form { display: grid; gap: .55rem; margin-bottom: .9rem; }
.cart-form input, .cart-form textarea { width: 100%; padding: .7rem .9rem; border: 1.5px solid var(--line); border-radius: 10px; font-family: var(--font-b); font-size: .9rem; color: var(--ink); background: #fff; transition: border-color .2s; }
.cart-form input:focus, .cart-form textarea:focus { outline: 0; border-color: var(--blue); }
.cart-form textarea { resize: vertical; min-height: 54px; }
.cart-actions { display: flex; gap: .6rem; margin-top: .6rem; }
.cart-actions .btn-link { background: none; border: 0; color: var(--muted); font-size: .82rem; cursor: pointer; font-weight: 600; padding: .4rem .2rem; }
.cart-actions .btn-link:hover { color: var(--red); }
.cart-wa-note { text-align: center; font-size: .78rem; color: var(--muted); margin-top: .6rem; }

/* Animación carrito: al agregar, el icono se sacude */
@keyframes cartBump { 0% { transform: scale(1) rotate(0); } 20% { transform: scale(1.2) rotate(-12deg); } 40% { transform: scale(1.2) rotate(10deg); } 60% { transform: scale(1.1) rotate(-6deg); } 80% { transform: scale(1.05) rotate(4deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes badgePop { 0% { transform: scale(.4); } 60% { transform: scale(1.35); } 100% { transform: scale(1); } }
/* Con productos: cada pocos segundos el icono "avisa" con un pequeño balanceo */
@keyframes cartNudge { 0%, 86%, 100% { transform: rotate(0); } 88% { transform: rotate(-10deg); } 90% { transform: rotate(9deg); } 92% { transform: rotate(-7deg); } 94% { transform: rotate(5deg); } 96% { transform: rotate(-3deg); } }
@keyframes badgeBreath { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
@keyframes waShine { 0% { left: -60%; } 100% { left: 130%; } }
.cart-btn svg { transform-origin: 50% 40%; }
.cart-btn.bump svg { animation: cartBump .6s cubic-bezier(.36,.07,.19,.97); }
.cart-count.pop { animation: badgePop .45s ease-out; }
.cart-btn.has-items { background: transparent; }
.cart-btn.has-items svg { animation: cartNudge 5s ease-in-out infinite; }
.cart-btn.has-items.bump svg { animation: cartBump .6s cubic-bezier(.36,.07,.19,.97); }
.cart-btn.has-items .cart-count { animation: badgeBreath 2.8s ease-in-out infinite; }
.cart-panel .btn-wa { position: relative; overflow: hidden; }
.cart-panel .btn-wa::after { content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.35) 50%, rgba(255,255,255,0) 100%); transform: skewX(-20deg); animation: waShine 3.2s ease-in-out infinite; }
.cart-item { animation: fadeUp .35s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.cart-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
.cart-form select { width: 100%; padding: .7rem .9rem; border: 1.5px solid var(--line); border-radius: 10px; font-family: var(--font-b); font-size: .9rem; color: var(--ink); background: #fff; }
.cart-form select:disabled { color: var(--muted); background: var(--cream); }
.cart-form select:focus { outline: 0; border-color: var(--blue); }
.cart-ship-note { display: flex; gap: .45rem; align-items: flex-start; font-size: .78rem; color: var(--muted); line-height: 1.45; background: var(--cream); border-radius: 10px; padding: .6rem .75rem; }
.cart-ship-note svg { flex-shrink: 0; margin-top: 2px; color: var(--blue); }

/* ---------- Página de producto ---------- */
.product-page { padding: 2.5rem 0 4rem; }
.product-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: start; }
.product-gallery { position: sticky; top: 140px; background: var(--sand); border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; }
.product-gallery img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery .badge { top: 16px; left: 16px; }
.product-info h1 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); margin: .4rem 0 .6rem; }
.product-info .product-cat { font-size: .78rem; }
.product-info .lead { color: var(--muted); font-size: 1.05rem; }
.product-price-row { display: flex; align-items: baseline; gap: .8rem; margin: 1.4rem 0 .2rem; }
.product-price-row .price { font-family: var(--font-h); font-size: 2rem; font-weight: 800; color: var(--ink); }
.product-price-row small { color: var(--muted); font-size: .82rem; }
.product-buy { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; margin: 1.4rem 0; }
.product-buy .qty { background: #fff; }
.product-buy .qty button { width: 40px; height: 44px; font-size: 1.2rem; }
.product-buy .qty span { min-width: 36px; font-size: 1rem; }
.product-buy .btn-add { padding: .85rem 1.5rem; font-size: .95rem; margin-left: 0; }
.product-trust { display: grid; gap: .6rem; margin: 1.5rem 0; padding: 1.2rem 1.3rem; background: var(--cream); border-radius: var(--radius); }
.product-trust div { display: flex; gap: .6rem; align-items: center; font-size: .92rem; color: var(--text); }
.product-trust svg { width: 18px; height: 18px; color: var(--blue); flex-shrink: 0; }
.product-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.product-tags span { font-size: .75rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .25rem .6rem; color: var(--muted); }
.product-share { display: flex; gap: .5rem; align-items: center; margin-top: 1.2rem; font-size: .85rem; color: var(--muted); }
.product-share a { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); }
.product-share a:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.product-share svg { width: 15px; height: 15px; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: .8rem 1.2rem; border-radius: 999px; font-size: .9rem; font-weight: 600; display: flex; align-items: center; gap: .6rem; z-index: 1400; opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s; box-shadow: var(--shadow-l); }
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast button { background: var(--blue); color: #fff; border: 0; border-radius: 999px; padding: .4rem .8rem; font-weight: 700; font-size: .8rem; cursor: pointer; }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 900; display: flex; align-items: center; gap: .6rem; background: var(--wa); color: #fff; padding: .7rem 1.1rem .7rem .8rem; border-radius: 999px; font-family: var(--font-h); font-weight: 700; font-size: .88rem; box-shadow: 0 10px 28px rgba(37,211,102,.4); transition: transform .2s, background .2s; }
.wa-float:hover { transform: translateY(-2px); background: var(--wa-d); }
.wa-float svg { width: 24px; height: 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
    .header-inner { gap: 1rem; }
    .nav-link { padding: .5rem .6rem; font-size: .85rem; }
    .logo img { height: 62px; }
    .hero-copy { max-width: 470px; }
    .hero-copy p { max-width: 400px; font-size: 1.05rem; }
    .hero-bg::after { background: linear-gradient(to right, rgba(250,246,239,1) 0%, rgba(250,246,239,.94) 38%, rgba(250,246,239,.5) 52%, rgba(250,246,239,0) 64%); }
}
@media (max-width: 1100px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .collection-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .mega { min-width: 560px; }
}
@media (max-width: 900px) {
    .desktop-only { display: none !important; }
    .hamburger-btn { display: inline-flex; }
    .header-inner { gap: .6rem; height: 74px; }
    .logo { margin-right: auto; }
    .logo img { height: 54px; }
    .hero { height: auto; display: block; }
    .hero-bg { display: none; }
    .hero-img-mobile { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 70% center; }
    .hero-pill { display: none; }
    .hero-copy { padding: 1.6rem 0 2.6rem; max-width: 100%; }
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .trust-item { border-right: 0; border-bottom: 1px solid var(--line); justify-content: flex-start; padding: .9rem .5rem; font-size: .85rem; }
    .trust-item:nth-child(odd) { border-right: 1px solid var(--line); }
    .trust-item:nth-last-child(-n+2) { border-bottom: 0; }
    section { padding: 4rem 0; }
    .story-grid { grid-template-columns: 1fr; }
    .story-copy { padding: 3rem 24px; }
    .benefits-grid { grid-template-columns: repeat(2, 1fr); }
    .stores-grid { grid-template-columns: repeat(3, 1fr); }
    .dist-grid { grid-template-columns: 1fr; gap: 2rem; }
    .store-cards { grid-template-columns: 1fr; }
    .seo-split { grid-template-columns: 1fr; gap: 1.5rem; }
    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .store-hero-logo { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .product-layout { grid-template-columns: 1fr; gap: 1.6rem; }
    .product-gallery { position: static; }
    .recipes-layout { grid-template-columns: 1fr; }
    .recipes-cover { min-height: 380px; }
    .recipe-grid { grid-template-columns: 1fr; }
    .split-hero .container { grid-template-columns: 1fr; min-height: 0; }
    .split-hero .media { min-height: 360px; order: -1; margin: 0 -24px; }
    .split-hero .media img { border-radius: 0; object-position: center 22%; }
    .split-hero .copy { padding: 1.6rem 0 2.4rem; }
    .recom-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .ec-map-svg svg { max-height: 460px; }
    .ec-map-logos { grid-template-columns: repeat(3, 1fr); }
    .cat-hero-grid { grid-template-columns: 1fr; }
    .cat-hero-img { display: none; }
}
@media (max-width: 640px) {
    .container { padding: 0 18px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
    .product-body { padding: .8rem .85rem 1rem; }
    .product-title { font-size: .95rem; }
    .btn-add span { display: none; }
    .btn-add { padding: .55rem .7rem; }
    .collection-grid { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
    .collection-card .label { flex-direction: column; align-items: flex-start; gap: .1rem; padding: .7rem .8rem; }
    .collection-card .label strong { font-size: .95rem; }
    .recipes-mini { grid-template-columns: 1fr; }
    .benefits-grid { grid-template-columns: 1fr; }
    .stores-grid { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
    .dist-benefits { grid-template-columns: 1fr; }
    .dist-form { padding: 1.4rem; }
    .dist-form .row { grid-template-columns: 1fr; }
    .store-logo { padding: .8rem .9rem; height: 92px; }
    .store-logo img { max-height: 56px; }
    .stores-note { padding: 0 .5rem; }
    .city-pills-label { width: 100%; text-align: center; margin: 0 0 .2rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .values-grid { grid-template-columns: 1fr; }
    .store-card { grid-template-columns: 90px 1fr; }
    .cart-panel { width: 100vw; }
    .announcement-bar { font-size: .7rem; }
    .wa-float span { display: none; }
    .wa-float { padding: .8rem; }
    .hero-actions .btn { width: 100%; }
}

/* ---------- Fallback: navegadores sin aspect-ratio ---------- */
@supports not (aspect-ratio: 1 / 1) {
    .product-media, .collection-card .media, .mega-item img, .recipes-cover, .product-gallery { position: relative; height: 0; padding-bottom: 100%; overflow: hidden; }
    .collection-card .media { padding-bottom: 90%; }
    .recipes-cover { padding-bottom: 120%; }
    .product-media img, .collection-card .media img, .product-gallery img { position: absolute; inset: 0; width: 100%; height: 100%; }
    .recipe-mini img, .recipe-card > img, .hero-img-mobile { height: 220px; }
}
