/* ===== Bienestar al Toque — pop-art comic design system ===== */
:root{
  --olive:#6b6f3a;
  --olive-dark:#4a4d28;
  --mustard:#e3a52b;
  --mustard-light:#f4cd6e;
  --brick:#8a2f23;
  --brick-dark:#6b2118;
  --ink:#2b2a1f;
  --paper:#f6efdd;
  --paper-dark:#ece2c4;
  --white:#fffaf0;
  --success:#3f7a3a;
  --error:#a3321f;
  --radius:14px;
  --shadow-hard:4px 4px 0 var(--ink);
  --shadow-hard-lg:8px 8px 0 var(--ink);
  --font-display:Georgia,"Times New Roman",serif;
  --font-body:"Segoe UI",system-ui,-apple-system,Helvetica,Arial,sans-serif;
  --maxw:1240px;
}
*{box-sizing:border-box}
html,body{overflow-x:clip}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--paper);
  background-image:radial-gradient(circle,rgba(43,42,31,0.07) 1px,transparent 1.3px);
  background-size:14px 14px;
  line-height:1.55;
}
img{max-width:100%;display:block}
a{color:var(--brick);text-decoration:none}
h1,h2,h3,h4{font-family:var(--font-display);line-height:1.1;margin:0 0 .5em}
p{margin:0 0 1em}
ul{margin:0 0 1em;padding-left:1.2em}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.skip-link{position:absolute;left:-999px;top:0;background:var(--mustard);color:var(--ink);padding:.5em 1em;z-index:200}
.skip-link:focus{left:0}
:focus-visible{outline:3px solid var(--brick);outline-offset:2px}
button{font-family:inherit}

/* ===== layout helpers ===== */
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 1.25rem}
.section{padding:clamp(3rem,6vw,5.5rem) 0}
.grid{display:grid;gap:1.5rem}
.grid-2{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}
.grid-3{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
.grid-4{grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}
.stack-sm{display:flex;flex-direction:column;gap:.5rem}
.stack-md{display:flex;flex-direction:column;gap:1.25rem}
.center{text-align:center}
.mt-0{margin-top:0}.mb-0{margin-bottom:0}

/* ===== header / nav ===== */
.site-header{position:sticky;top:0;z-index:100;background:var(--paper);border-bottom:3px solid var(--ink)}
.header-inner{max-width:var(--maxw);margin:0 auto;padding:.7rem 1.25rem;display:flex;align-items:center;gap:1rem}
.logo{display:flex;align-items:center;gap:.6rem}
.logo-mark{flex:none}
.logo-word{width:168px;height:24px}
.burger{display:none;background:none;border:2px solid var(--ink);border-radius:8px;padding:.4rem;min-width:44px;min-height:44px;cursor:pointer}
.main-nav{display:flex;align-items:center;gap:1.4rem;margin-left:auto}
.main-nav a{font-weight:600;color:var(--ink);padding:.3rem 0;position:relative}
.main-nav a::after{content:"";position:absolute;left:0;bottom:-2px;width:0;height:2px;background:var(--brick);transition:width .25s}
.main-nav a:hover::after,.main-nav a.active::after{width:100%}
.main-nav a.active{color:var(--brick)}
.nav-cart{display:flex;align-items:center;gap:.4rem;background:var(--mustard);border:2px solid var(--ink);border-radius:10px;padding:.4rem .7rem!important;box-shadow:var(--shadow-hard)}
.nav-cart::after{display:none}
.cart-count{background:var(--brick);color:var(--white);border-radius:999px;min-width:1.4em;text-align:center;font-size:.8rem;padding:0 .3em}
.nav-cart.bump{animation:bump .4s ease}
@keyframes bump{0%{transform:scale(1)}40%{transform:scale(1.25)}100%{transform:scale(1)}}
.nav-close{display:none}
.nav-overlay{display:none}

@media (max-width:860px){
  .burger{display:inline-flex;align-items:center;justify-content:center;margin-left:auto}
  .main-nav{
    position:fixed;top:0;right:0;height:100vh;width:min(320px,85vw);
    background:var(--paper-dark);border-left:3px solid var(--ink);
    flex-direction:column;align-items:flex-start;gap:1.1rem;padding:4.5rem 1.5rem 2rem;
    transform:translateX(100%);visibility:hidden;transition:transform .3s ease;z-index:150;
  }
  .main-nav.open{transform:translateX(0);visibility:visible}
  .nav-close{display:inline-flex;position:absolute;top:1rem;right:1rem;background:none;border:2px solid var(--ink);border-radius:8px;min-width:44px;min-height:44px;align-items:center;justify-content:center}
  .nav-overlay{position:fixed;inset:0;background:rgba(43,42,31,.5);opacity:0;visibility:hidden;transition:opacity .3s;z-index:140}
  .nav-overlay.open{display:block;opacity:1;visibility:visible}
}

/* ===== buttons ===== */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;font-weight:700;border:2.5px solid var(--ink);border-radius:10px;padding:.75rem 1.4rem;cursor:pointer;position:relative;overflow:hidden;min-height:44px;background:var(--white);color:var(--ink);box-shadow:var(--shadow-hard);transition:transform .15s}
.btn::before{content:"";position:absolute;inset:0;left:-100%;width:100%;background:var(--ink);z-index:0;transition:left .3s ease}
.btn span,.btn svg{position:relative;z-index:1}
.btn:hover::before{left:0}
.btn:hover{color:var(--white);transform:translate(-2px,-2px);box-shadow:var(--shadow-hard-lg)}
.btn:active{transform:translate(0,0);box-shadow:2px 2px 0 var(--ink)}
.btn-mustard{background:var(--mustard)}
.btn-brick{background:var(--brick);color:var(--white)}
.btn-brick:hover{color:var(--white)}
.btn-ghost{background:transparent;color:var(--ink);box-shadow:none}
.cookie-banner .btn-ghost{color:var(--white);border-color:var(--white)}
.btn-ghost:hover{color:var(--ink);background:var(--paper)}
.btn-lg{padding:1rem 2rem;font-size:1.1rem}
.btn-block{width:100%}
.btn[disabled]{opacity:.6;cursor:not-allowed}

/* ===== hero / split ===== */
.hero-split{position:relative;--split:50%;display:grid;min-height:clamp(420px,70vh,640px)}
.hero-split .side{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;padding:clamp(1.5rem,5vw,4rem)}
.hero-split .side-a{background:var(--olive);color:var(--paper);clip-path:polygon(0 0,var(--split) 0,var(--split) 100%,0 100%)}
.hero-split .side-b{background:var(--mustard);clip-path:polygon(var(--split) 0,100% 0,100% 100%,var(--split) 100%)}
.split-handle{position:absolute;top:0;bottom:0;left:var(--split);width:48px;margin-left:-24px;z-index:5;background:none;border:none;cursor:ew-resize;display:flex;align-items:center;justify-content:center}
.split-handle::before{content:"";position:absolute;inset:0 auto 0 50%;width:4px;background:var(--ink);transform:translateX(-50%)}
.split-handle-grip{position:relative;width:44px;height:44px;border-radius:50%;background:var(--ink);color:var(--paper);display:flex;align-items:center;justify-content:center;font-size:1.3rem;box-shadow:var(--shadow-hard)}
.hero-headline{font-size:clamp(2.4rem,6vw,4.6rem);max-width:12ch}
.hero-badge{position:absolute;top:1.5rem;right:1.5rem;width:clamp(90px,14vw,140px);animation:spin-slow 18s linear infinite}
@keyframes spin-slow{to{transform:rotate(360deg)}}

/* ===== reveal animation ===== */
.reveal{opacity:0;transform:translateY(24px);clip-path:inset(0 0 15% 0);transition:opacity .6s ease,transform .6s ease,clip-path .6s ease}
.reveal.in-view{opacity:1;transform:translateY(0);clip-path:inset(0 0 0 0)}
.reveal.r2{transition-delay:.1s}.reveal.r3{transition-delay:.2s}.reveal.r4{transition-delay:.3s}
@media (prefers-reduced-motion:reduce){
  .reveal{transition:none;opacity:1;transform:none;clip-path:none}
  .hero-badge{animation:none}
}

/* ===== comic / halftone decorations ===== */
.panel{background:var(--white);border:3px solid var(--ink);border-radius:var(--radius);box-shadow:var(--shadow-hard-lg);padding:1.6rem}
.halftone-strip{width:100%;height:46px;display:block}
.speech-bubble{position:relative;background:var(--white);border:2.5px solid var(--ink);border-radius:18px;padding:1rem 1.3rem;box-shadow:var(--shadow-hard);font-weight:600}
.speech-bubble::after{content:"";position:absolute;left:28px;bottom:-14px;width:0;height:0;border:14px solid transparent;border-top-color:var(--ink);border-bottom:0}
.speech-bubble::before{content:"";position:absolute;left:30px;bottom:-9px;width:0;height:0;border:11px solid transparent;border-top-color:var(--white);border-bottom:0;z-index:1}

/* ===== product cards ===== */
.product-card{background:var(--white);border:2.5px solid var(--ink);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow-hard);transition:transform .25s,box-shadow .25s;display:flex;flex-direction:column}
.product-card:hover{transform:translate(-4px,-4px);box-shadow:var(--shadow-hard-lg)}
.product-card .thumb{aspect-ratio:4/3;overflow:hidden;background:var(--paper-dark)}
.product-card .thumb img{width:100%;height:100%;object-fit:cover;transition:transform .4s}
.product-card:hover .thumb img{transform:scale(1.08)}
.product-card .body{padding:1.1rem;display:flex;flex-direction:column;gap:.4rem;flex:1}
.product-card .cat{font-size:.75rem;text-transform:uppercase;letter-spacing:.06em;color:var(--olive-dark);font-weight:700}
.product-card h3{font-size:1.15rem;margin:0}
.product-card .price{font-weight:700;color:var(--brick);font-size:1.1rem}
.price-old{text-decoration:line-through;color:#8a8368;font-weight:400;margin-right:.4em;font-size:.9em}
.product-strip{display:flex;gap:1.2rem;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:.5rem}
.product-strip .product-card{min-width:240px;scroll-snap-align:start}

/* ===== relief map feature ===== */
.relief-map-section{background:var(--olive);color:var(--paper);border-radius:var(--radius);padding:clamp(1.5rem,4vw,3rem);border:3px solid var(--ink);box-shadow:var(--shadow-hard-lg)}
.relief-map{display:flex;flex-wrap:wrap;gap:.8rem;margin:1.5rem 0}
.relief-zone{background:var(--mustard);color:var(--ink);border:2.5px solid var(--ink);border-radius:999px;padding:.7rem 1.3rem;font-weight:700;cursor:pointer;min-height:44px}
.relief-zone.active,.relief-zone:hover{background:var(--brick);color:var(--white)}
.relief-result{background:var(--white);color:var(--ink);border-radius:var(--radius);border:2.5px solid var(--ink);padding:1.2rem;margin-top:1rem}
.relief-zone-label{font-family:var(--font-display);font-size:1.2rem;font-weight:700;color:var(--brick)}

/* ===== inner page components ===== */
.page-hero{background:var(--mustard-light);border-bottom:3px solid var(--ink);padding:clamp(2.5rem,6vw,4rem) 0;text-align:center}
.page-hero h1{font-size:clamp(2rem,5vw,3.2rem)}
.breadcrumbs{font-size:.9rem;margin:0 0 1rem;color:var(--olive-dark)}
.breadcrumbs a{color:var(--olive-dark);text-decoration:underline}
.prose{max-width:68ch;margin:0 auto}
.prose h2{margin-top:2rem}
.prose li{margin-bottom:.4em}
.notice{border:2.5px solid var(--ink);border-radius:var(--radius);padding:1rem 1.3rem;background:var(--white);box-shadow:var(--shadow-hard);margin:1.2rem 0}
.notice-info{background:#eef3e2}
.notice-warn{background:#fbe8c9}

/* forms */
.form-grid{display:grid;gap:1.1rem;grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
.field{display:flex;flex-direction:column;gap:.35rem}
.field.full{grid-column:1/-1}
.field label{font-weight:700;font-size:.92rem}
.field input,.field textarea,.field select{border:2px solid var(--ink);border-radius:8px;padding:.65rem .8rem;font-family:inherit;font-size:1rem;background:var(--white);accent-color:var(--brick)}
.field input:focus,.field textarea:focus,.field select:focus{outline:3px solid var(--mustard)}
.field-error{color:var(--error);font-size:.85rem;min-height:1.1em}
.form-msg{min-height:1.4em;font-weight:600}
.form-msg.success{color:var(--success)}
.form-msg.error{color:var(--error)}
.hp-field{position:absolute!important;left:-9999px;width:1px;height:1px;opacity:0}
.newsletter-form{display:flex;flex-wrap:wrap;gap:.5rem}
.newsletter-form input[type=email]{flex:1;min-width:160px;border:2px solid var(--ink);border-radius:8px;padding:.6rem .8rem}

/* faq */
.faq-item{background:var(--white);border:2.5px solid var(--ink);border-radius:var(--radius);margin-bottom:1rem;overflow:hidden}
.faq-item summary{padding:1rem 1.3rem;font-weight:700;cursor:pointer;list-style:none;display:flex;justify-content:space-between;gap:1rem}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary::after{content:"+";font-size:1.4rem;line-height:1}
.faq-item[open] summary::after{content:"−"}
.faq-item .faq-body{padding:0 1.3rem 1.2rem;max-width:68ch}

/* product detail / cart / contact layout */
.product-detail{display:grid;grid-template-columns:1fr 1fr;gap:2.5rem;align-items:start}
.product-detail .gallery{aspect-ratio:4/3;border:3px solid var(--ink);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow-hard-lg)}
.product-detail .gallery img{width:100%;height:100%;object-fit:cover}
.qty-input{display:inline-flex;align-items:center;border:2px solid var(--ink);border-radius:8px;overflow:hidden}
.qty-input button{min-width:40px;min-height:40px;border:none;background:var(--paper-dark);cursor:pointer;font-size:1.1rem}
.qty-input input{width:3em;text-align:center;border:none;min-height:40px}
@media (max-width:760px){.product-detail{grid-template-columns:1fr}}

.cart-table{width:100%;border-collapse:collapse;margin-bottom:1.5rem}
.cart-table th,.cart-table td{border-bottom:2px solid var(--ink);padding:.8rem .5rem;text-align:left;vertical-align:middle}
.cart-table img{width:64px;height:64px;object-fit:cover;border-radius:8px;border:2px solid var(--ink)}
.cart-summary{background:var(--white);border:2.5px solid var(--ink);border-radius:var(--radius);padding:1.4rem;box-shadow:var(--shadow-hard);max-width:380px;margin-left:auto}
.cart-summary .row{display:flex;justify-content:space-between;margin-bottom:.6rem}
.cart-summary .total{font-weight:700;font-size:1.2rem;border-top:2px solid var(--ink);padding-top:.6rem}
.cart-empty{text-align:center;padding:3rem 1rem}

.contact-layout{display:grid;grid-template-columns:1.2fr 1fr;gap:2.5rem}
@media (max-width:760px){.contact-layout{grid-template-columns:1fr}}
.contact-info{display:flex;flex-direction:column;gap:1rem}
.contact-info .item{display:flex;align-items:center;gap:.7rem}

.legal-toc{background:var(--paper-dark);border:2px solid var(--ink);border-radius:var(--radius);padding:1rem 1.4rem;margin-bottom:1.5rem}
.legal-toc a{display:block;padding:.2rem 0;color:var(--ink);font-weight:600}
.legal-toc a:hover{color:var(--brick)}

/* feature image overlay texture */
.grain-overlay{position:fixed;inset:0;width:100vw;height:100vh;pointer-events:none;opacity:.05;z-index:0;mix-blend-mode:multiply}

/* cookie banner */
.cookie-banner{position:fixed;left:1rem;right:1rem;bottom:1rem;z-index:300;background:var(--ink);color:var(--paper);border-radius:var(--radius);padding:1.1rem 1.4rem;display:flex;flex-wrap:wrap;gap:1rem;align-items:center;justify-content:space-between;box-shadow:var(--shadow-hard-lg);max-width:900px;margin:0 auto}
.cookie-banner a{color:var(--mustard-light);text-decoration:underline}
.cookie-actions{display:flex;gap:.6rem;flex-wrap:wrap}

/* toast */
.bt-toast{position:fixed;bottom:1.5rem;left:50%;transform:translate(-50%,20px);background:var(--ink);color:var(--paper);padding:.8rem 1.3rem;border-radius:999px;opacity:0;transition:opacity .3s,transform .3s;z-index:400;font-weight:600}
.bt-toast.show{opacity:1;transform:translate(-50%,0)}

/* footer */
.site-footer{background:var(--olive-dark);color:var(--paper);margin-top:4rem;position:relative}
.footer-wave{display:block;transform:translateY(-100%)}
.footer-inner{max-width:var(--maxw);margin:0 auto;padding:1rem 1.25rem 2rem;display:grid;gap:2rem;grid-template-columns:1.4fr 1fr 1fr 1.3fr}
.footer-col h3{font-size:1rem;margin-bottom:.7rem;color:var(--mustard-light)}
.footer-col a{display:block;color:var(--paper);opacity:.9;padding:.2rem 0}
.footer-col a:hover{color:var(--mustard-light)}
.footer-brand{font-family:var(--font-display);font-weight:700;font-size:1.1rem;margin:.5rem 0}
.footer-mail{display:flex;align-items:center;gap:.5rem;margin-top:.8rem}
.footer-legal{text-align:center;padding:1rem;border-top:1px solid rgba(246,239,221,.2);font-size:.85rem;opacity:.85;margin:0}
@media (max-width:760px){.footer-inner{grid-template-columns:1fr 1fr}}
@media (max-width:480px){.footer-inner{grid-template-columns:1fr}}

/* 404 */
.page-404{text-align:center;padding:4rem 1rem}
.page-404 .big{font-size:clamp(4rem,16vw,9rem);color:var(--brick);margin:0}

/* product detail - info section */
.prod-info{display:flex;flex-direction:column;gap:1.2rem}

/* faq container */
.faq{max-width:700px;margin:1rem auto}

@media (max-width:390px){.wrap{padding:0 .9rem}}

/* COMPONENTS: .class - what it is
.wrap - centered max-width content container
.section - vertical page section padding
.grid / .grid-2 / .grid-3 / .grid-4 - responsive grid helpers
.stack-sm / .stack-md - vertical flex stack with gap
.site-header / .header-inner - sticky site header bar
.logo / .logo-mark / .logo-word - brand logo lockup
.burger / .main-nav / .nav-close / .nav-overlay - mobile nav toggle system
.nav-cart / .cart-count - header cart link with item count badge
.btn / .btn-mustard / .btn-brick / .btn-ghost / .btn-lg / .btn-block - button variants with fill-sweep hover
.hero-split / .side-a / .side-b / .split-handle / .hero-headline / .hero-badge - home split-screen hero with draggable divider and rotating badge
.reveal / .in-view / .r2 .r3 .r4 - scroll reveal animation + stagger
.panel - bordered comic panel surface
.halftone-strip - decorative halftone divider svg
.speech-bubble - comic callout bubble
.product-card / .thumb / .body / .cat / .price / .price-old - catalog product card
.product-strip - horizontal scroll-snap product row (mobile)
.relief-map-section / .relief-map / .relief-zone / .relief-result / .relief-zone-label - Mapa del Alivio signature feature
.page-hero - inner page hero banner
.breadcrumbs - breadcrumb trail
.prose - readable long-form legal/text content
.notice / .notice-info / .notice-warn - callout notice boxes
.form-grid / .field / .field-error / .form-msg / .hp-field - form layout and validation
.newsletter-form - footer newsletter signup
.faq / .faq-item - FAQ accordion (details/summary)
.product-detail / .gallery / .qty-input - product page layout
.cart-table / .cart-summary / .cart-empty - cart/checkout page layout
.contact-layout / .contact-info - contact page layout
.legal-toc - legal page table of contents
.grain-overlay - fixed texture overlay
.cookie-banner / .cookie-actions - cookie consent banner
.bt-toast - transient toast notice
.site-footer / .footer-inner / .footer-col / .footer-brand / .footer-mail / .footer-legal - site footer
.page-404 - 404 page layout
*/
