/* ===== Tokens ===== */
:root{
  --cacao-950:#241209;
  --cacao-900:#3a2115;
  --cacao-800:#4a2c1c;
  --cream:#f6ede0;
  --paper:#fbf6ee;
  --ink:#2a1a10;
  --olive:#6f8a3d;
  --olive-dark:#556b2e;
  --terracotta:#ad6a3e;
  --terracotta-dark:#8f5530;
  --gold:#c69a4d;
  --line:rgba(42,26,16,.14);
  --line-dark:rgba(246,237,224,.2);
  --shell-radius:2px;
  --header-h:76px;
}

*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth;}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto;}
  *,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important;}
}

body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:"Inter",system-ui,-apple-system,"Segoe UI",sans-serif;
  font-size:16px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}

img{max-width:100%;display:block;}
a{color:inherit;}
button{font:inherit;}

h1,h2,h3,h4{
  font-family:"Fraunces",Georgia,serif;
  font-weight:600;
  line-height:1.08;
  margin:0;
  letter-spacing:-.01em;
}

.eyebrow{
  font-size:.8rem;
  font-weight:500;
  color:var(--terracotta-dark);
  margin:0 0 .9rem;
}
.on-dark .eyebrow{color:var(--gold);}

.section-head{max-width:640px;margin-bottom:2.75rem;}
.section-head h2{font-size:clamp(1.9rem,3.6vw,2.7rem);}
.section-head p{margin:1rem 0 0;color:#5a4838;max-width:52ch;}
.on-dark .section-head p{color:#d9c9b8;}

.wrap{max-width:1180px;margin:0 auto;padding:0 24px;}
section{padding:5.5rem 0;}
@media (max-width:640px){section{padding:3.6rem 0;}}

.btn{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  padding:.85rem 1.5rem;
  border-radius:999px;
  border:1px solid transparent;
  font-weight:600;
  font-size:.95rem;
  cursor:pointer;
  text-decoration:none;
  transition:transform .15s ease, background-color .15s ease, border-color .15s ease;
  white-space:nowrap;
}
.btn:active{transform:scale(.97);}
.btn-primary{background:var(--terracotta);color:var(--paper);}
.btn-primary:hover{background:var(--terracotta-dark);}
.btn-ghost-light{background:transparent;color:var(--cream);border-color:var(--line-dark);}
.btn-ghost-light:hover{border-color:var(--cream);}
.btn-ghost-dark{background:transparent;color:var(--ink);border-color:var(--line);}
.btn-ghost-dark:hover{border-color:var(--ink);}
.btn-outline{background:transparent;color:var(--terracotta-dark);border-color:currentColor;}
.btn-outline:hover{background:var(--terracotta);color:var(--paper);border-color:var(--terracotta);}
.btn:focus-visible,button:focus-visible,a:focus-visible,input:focus-visible{
  outline:2px solid var(--terracotta);
  outline-offset:2px;
}

/* ===== Header ===== */
.site-header{
  position:fixed;top:0;left:0;right:0;z-index:60;
  height:var(--header-h);
  background:var(--cacao-900);
  border-bottom:1px solid var(--line-dark);
}
.site-header .wrap{height:100%;display:flex;align-items:center;justify-content:space-between;gap:1rem;}
.brand{display:flex;align-items:center;gap:.6rem;text-decoration:none;flex-shrink:0;}
.brand img{height:40px;width:auto;border-radius:2px;}

.main-nav{display:flex;align-items:center;gap:2rem;}
.main-nav a{
  color:var(--cream);
  text-decoration:none;
  font-size:.94rem;
  opacity:.88;
}
.main-nav a:hover{opacity:1;}

.header-actions{display:flex;align-items:center;gap:.7rem;}

.cart-btn{
  position:relative;
  display:inline-flex;align-items:center;justify-content:center;
  width:44px;height:44px;
  border-radius:50%;
  background:transparent;
  border:1px solid var(--line-dark);
  color:var(--cream);
  cursor:pointer;
}
.cart-btn:hover{border-color:var(--cream);}
.cart-count{
  position:absolute;top:-4px;right:-4px;
  min-width:19px;height:19px;padding:0 4px;
  border-radius:999px;
  background:var(--terracotta);
  color:var(--paper);
  font-size:.68rem;font-weight:700;
  display:flex;align-items:center;justify-content:center;
  line-height:1;
}
.cart-count[hidden]{display:none;}

.nav-toggle{
  display:none;
  width:44px;height:44px;
  border-radius:50%;
  border:1px solid var(--line-dark);
  background:transparent;
  color:var(--cream);
  cursor:pointer;
  align-items:center;justify-content:center;
}

@media (max-width:640px){
  .header-actions #ctaCotizar{display:none;}
}

@media (max-width:860px){
  .main-nav{
    position:fixed;inset:var(--header-h) 0 0 0;
    background:var(--cacao-900);
    flex-direction:column;
    align-items:flex-start;
    gap:0;
    padding:1rem 24px 2rem;
    transform:translateY(-8px);
    opacity:0;
    pointer-events:none;
    transition:opacity .18s ease, transform .18s ease;
  }
  .main-nav.open{opacity:1;transform:translateY(0);pointer-events:auto;}
  .main-nav a{
    width:100%;
    padding:1rem 0;
    border-bottom:1px solid var(--line-dark);
    font-size:1.05rem;
  }
  .nav-toggle{display:inline-flex;}
}

/* ===== Hero ===== */
.hero{
  position:relative;
  margin-top:var(--header-h);
  min-height:calc(100svh - var(--header-h));
  display:flex;
  align-items:flex-end;
  background:var(--cacao-950);
  color:var(--cream);
  overflow:hidden;
}
.hero-media{position:absolute;inset:0;}
.hero-media img{width:100%;height:100%;object-fit:cover;object-position:50% 0%;}
.hero-media::after{
  content:"";
  position:absolute;inset:0;
  background:linear-gradient(90deg, rgba(24,13,6,.92) 0%, rgba(24,13,6,.72) 38%, rgba(24,13,6,.25) 68%, rgba(24,13,6,.1) 100%),
             linear-gradient(0deg, rgba(24,13,6,.85) 0%, rgba(24,13,6,0) 32%);
}
.hero-content{
  position:relative;
  padding:3.2rem 0 4rem;
  max-width:660px;
  animation:hero-rise .7s cubic-bezier(.2,.7,.2,1) both;
}
@media (max-width:700px){
  .hero-media::after{
    background:linear-gradient(180deg, rgba(20,11,5,.55) 0%, rgba(20,11,5,.88) 42%, rgba(20,11,5,.95) 100%);
  }
  .hero-media img{object-position:70% 8%;}
}
@keyframes hero-rise{
  from{opacity:0;transform:translateY(18px);}
  to{opacity:1;transform:translateY(0);}
}
.hero-tag{
  display:inline-block;
  font-size:.85rem;
  color:#f0dcc4;
  border:1px solid var(--line-dark);
  padding:.4rem .9rem;
  border-radius:999px;
  margin-bottom:1.4rem;
}
.hero h1{
  font-size:clamp(2.6rem,6vw,4.4rem);
  color:var(--cream);
}
.hero h1 em{
  font-style:italic;
  color:var(--gold);
  font-weight:500;
}
.hero p{
  margin:1.3rem 0 2rem;
  font-size:1.1rem;
  color:#e7d8c6;
  max-width:46ch;
}
.hero-ctas{display:flex;flex-wrap:wrap;gap:.9rem;}

/* ===== Filosofia (split) ===== */
.split{display:grid;grid-template-columns:1fr 1fr;gap:0;align-items:stretch;}
.split-text{
  background:var(--cream);
  display:flex;flex-direction:column;justify-content:center;
  padding:4.5rem 6vw;
}
.split-text h2{font-size:clamp(1.9rem,3.4vw,2.6rem);}
.split-text .quote{
  font-family:"Fraunces",serif;
  font-style:italic;
  font-size:1.3rem;
  color:var(--terracotta-dark);
  margin:1.3rem 0 1.1rem;
  line-height:1.4;
}
.split-text p.lead{color:#5a4838;max-width:48ch;}
.pill-row{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:1.6rem;}
.pill{
  border:1px solid var(--line);
  border-radius:999px;
  padding:.4rem .9rem;
  font-size:.82rem;
  color:#5a4838;
}
.split-media{position:relative;min-height:340px;}
.split-media img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0;}
@media (max-width:860px){
  .split{grid-template-columns:1fr;}
  .split-text{padding:3rem 24px;order:2;}
  .split-media{min-height:280px;order:1;}
}

/* ===== Beneficios: editorial divided list ===== */
.benefits-section{background:var(--paper);}
.divided-list{
  display:grid;
  grid-template-columns:1fr 1fr;
  border-top:1px solid var(--line);
}
.divided-list.single{grid-template-columns:1fr;}
.divided-item{
  display:flex;gap:1.1rem;
  padding:1.9rem 1.6rem 1.9rem 0;
  border-bottom:1px solid var(--line);
}
.divided-list.single .divided-item{padding-right:0;}
.divided-list > .divided-item:nth-child(odd){padding-left:0;}
.divided-list > .divided-item:nth-child(even){padding-left:1.6rem;border-left:1px solid var(--line);}
.icon-wrap{
  flex-shrink:0;
  width:42px;height:42px;
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:rgba(173,106,62,.12);
  color:var(--terracotta-dark);
}
.on-dark .icon-wrap{background:rgba(246,237,224,.1);color:var(--gold);}
.icon-wrap svg{width:20px;height:20px;}
.divided-item h3{font-size:1.08rem;font-weight:600;margin-bottom:.35rem;}
.divided-item p{margin:0;color:#5a4838;font-size:.95rem;}
.on-dark .divided-item p{color:#d9c9b8;}
.on-dark .divided-list{border-color:var(--line-dark);}
.on-dark .divided-item{border-color:var(--line-dark);}
.on-dark .divided-list > .divided-item:nth-child(even){border-color:var(--line-dark);}

@media (max-width:700px){
  .divided-list{grid-template-columns:1fr;}
  .divided-list > .divided-item:nth-child(even){padding-left:0;border-left:none;}
  .divided-item{padding-right:0;}
}

/* ===== Catalogo ===== */
.catalog-section{background:var(--cream);}
.filter-row{
  display:flex;gap:.6rem;flex-wrap:wrap;
  margin-bottom:2.4rem;
}
.filter-chip{
  border:1px solid var(--line);
  background:transparent;
  color:#5a4838;
  padding:.55rem 1.1rem;
  border-radius:999px;
  font-size:.86rem;
  cursor:pointer;
}
.filter-chip.active{background:var(--ink);border-color:var(--ink);color:var(--cream);}

.product-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(240px,1fr));
  gap:1.6rem 1.4rem;
}
.product-card{
  background:var(--paper);
  border:1px solid var(--line);
  display:flex;flex-direction:column;
}
.product-media{
  position:relative;
  aspect-ratio:4/5;
  overflow:hidden;
  background:#e7dbc9;
}
.product-media img{width:100%;height:100%;object-fit:cover;}
.product-tag{
  position:absolute;top:.7rem;left:.7rem;
  background:var(--cacao-900);
  color:var(--cream);
  font-size:.68rem;
  padding:.28rem .6rem;
  border-radius:999px;
}
.product-body{padding:1.1rem 1.1rem 1.3rem;display:flex;flex-direction:column;flex:1;}
.product-body h3{font-size:1.05rem;margin-bottom:.4rem;}
.product-body p{margin:0 0 1rem;font-size:.88rem;color:#5a4838;flex:1;}
.product-note{font-size:.76rem;color:var(--terracotta-dark);margin:-.5rem 0 .9rem;}
.product-actions{display:flex;align-items:center;gap:.6rem;}
.qty-stepper{
  display:flex;align-items:center;
  border:1px solid var(--line);
  border-radius:999px;
  overflow:hidden;
}
.qty-stepper button{
  width:32px;height:34px;
  border:none;background:transparent;
  cursor:pointer;font-size:1rem;color:var(--ink);
}
.qty-stepper button:hover{background:var(--cream);}
.qty-stepper input{
  width:32px;border:none;background:transparent;
  text-align:center;font-size:.9rem;color:var(--ink);
  -moz-appearance:textfield;
}
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}
.add-btn{
  flex:1;
  padding:.6rem .8rem;
  border-radius:999px;
  border:1px solid var(--ink);
  background:var(--ink);
  color:var(--cream);
  font-size:.85rem;
  font-weight:600;
  cursor:pointer;
  transition:background-color .15s ease;
}
.add-btn:hover{background:var(--terracotta-dark);border-color:var(--terracotta-dark);}
.add-btn.added{background:var(--olive-dark);border-color:var(--olive-dark);}

/* ===== Feature split (superfood / bleed) ===== */
.feature-bleed{background:var(--cacao-900);color:var(--cream);}
.feature-bleed .split-text{background:transparent;padding-left:max(24px, calc((100vw - 1180px) / 2));}
.feature-bleed .split{align-items:center;}
.feature-list{margin-top:1.6rem;display:flex;flex-direction:column;gap:1.3rem;}
.feature-list li{list-style:none;}
.feature-list h4{font-size:1.05rem;color:var(--cream);margin-bottom:.3rem;}
.feature-list p{margin:0;color:#d9c9b8;font-size:.92rem;}
.feature-bleed .split-media{min-height:420px;}
@media (max-width:860px){.feature-bleed .split-text{padding:3rem 24px 0;}}

/* ===== Calidad ===== */
.quality-section{background:var(--paper);}
.quality-grid{display:grid;grid-template-columns:.85fr 1.15fr;gap:2.4rem;align-items:start;}
.quality-media{position:relative;aspect-ratio:3/4;overflow:hidden;border-radius:2px;}
.quality-media img{width:100%;height:100%;object-fit:cover;}
.quality-badge{
  background:var(--cacao-900);
  color:var(--cream);
  padding:2.4rem 2rem;
  margin-bottom:1.6rem;
  text-align:left;
}
.quality-badge .num{font-family:"Fraunces",serif;font-size:3.4rem;color:var(--gold);display:block;line-height:1;}
.quality-badge .cap{font-size:.95rem;color:#e7d8c6;margin-top:.4rem;display:block;}
@media (max-width:800px){.quality-grid{grid-template-columns:1fr;}.quality-media{aspect-ratio:16/9;}}

/* ===== Toppings ===== */
.toppings-section{background:var(--cream);}

/* ===== Mayoreo ===== */
.wholesale-section{background:var(--cacao-950);color:var(--cream);}
.wholesale-section .section-head p{color:#d9c9b8;}

/* ===== Steps ===== */
.steps-section{background:var(--paper);}
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:2rem;counter-reset:step;}
.step{border-top:2px solid var(--ink);padding-top:1.1rem;}
.step::before{
  counter-increment:step;
  content:counter(step,decimal-leading-zero);
  font-family:"Fraunces",serif;
  font-size:1.4rem;
  color:var(--terracotta-dark);
  display:block;
  margin-bottom:.6rem;
}
.step h3{font-size:1.05rem;margin-bottom:.4rem;}
.step p{margin:0;color:#5a4838;font-size:.92rem;}
@media (max-width:700px){.steps{grid-template-columns:1fr;gap:1.6rem;}}

/* ===== Footer / Contact ===== */
.site-footer{background:var(--cacao-950);color:var(--cream);padding:4.5rem 0 2rem;}
.footer-top{
  display:grid;
  grid-template-columns:1.3fr 1fr 1fr;
  gap:2.5rem;
  padding-bottom:3rem;
  border-bottom:1px solid var(--line-dark);
}
.footer-brand img{height:40px;margin-bottom:1rem;}
.footer-brand p{color:#d9c9b8;max-width:36ch;font-size:.92rem;}
.footer-col h4{font-size:.85rem;color:#f0dcc4;margin-bottom:1rem;font-weight:600;}
.footer-col ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.7rem;}
.footer-col a{color:#d9c9b8;text-decoration:none;font-size:.92rem;}
.footer-col a:hover{color:var(--cream);}
.footer-bottom{
  padding-top:1.6rem;
  display:flex;justify-content:space-between;flex-wrap:wrap;gap:.6rem;
  font-size:.8rem;color:#a3907c;
}
@media (max-width:760px){.footer-top{grid-template-columns:1fr;gap:2rem;}}

/* ===== Floating cart button ===== */
.fab-cart{
  position:fixed;
  right:20px;bottom:20px;
  z-index:55;
  display:inline-flex;align-items:center;gap:.55rem;
  padding:.9rem 1.3rem;
  border-radius:999px;
  background:var(--ink);
  color:var(--cream);
  border:none;
  box-shadow:0 8px 24px rgba(36,18,9,.35);
  cursor:pointer;
  font-weight:600;
  font-size:.9rem;
  opacity:0;
  transform:translateY(12px);
  pointer-events:none;
  transition:opacity .2s ease, transform .2s ease;
}
.fab-cart.visible{opacity:1;transform:translateY(0);pointer-events:auto;}
.fab-cart .cart-count{position:static;}

/* ===== Cart drawer ===== */
.drawer-backdrop{
  position:fixed;inset:0;
  background:rgba(24,13,6,.5);
  opacity:0;pointer-events:none;
  transition:opacity .2s ease;
  z-index:70;
}
.drawer-backdrop.open{opacity:1;pointer-events:auto;}

.cart-drawer{
  position:fixed;top:0;right:0;bottom:0;
  width:min(440px,100%);
  background:var(--paper);
  z-index:71;
  display:flex;flex-direction:column;
  transform:translateX(100%);
  transition:transform .25s cubic-bezier(.2,.7,.2,1);
  box-shadow:-12px 0 40px rgba(24,13,6,.25);
}
.cart-drawer.open{transform:translateX(0);}
.cart-head{
  display:flex;align-items:center;justify-content:space-between;
  padding:1.3rem 1.4rem;
  border-bottom:1px dashed var(--line);
  background:var(--ink);
  color:var(--cream);
}
.cart-head h2{font-size:1.2rem;color:var(--cream);}
.cart-close{
  width:36px;height:36px;border-radius:50%;
  border:1px solid var(--line-dark);
  background:transparent;color:var(--cream);
  cursor:pointer;
  display:flex;align-items:center;justify-content:center;
}
.cart-body{flex:1;overflow-y:auto;padding:1.4rem;}
.cart-empty{color:#7a6752;font-size:.94rem;padding:2rem 0;text-align:center;}
.cart-empty .btn{margin-top:1.2rem;}

.ticket{font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,monospace;}
.cart-line{
  display:flex;align-items:flex-start;justify-content:space-between;gap:.8rem;
  padding:.8rem 0;
  border-bottom:1px dashed var(--line);
  font-size:.86rem;
}
.cart-line:first-child{padding-top:0;}
.cart-line-name{flex:1;}
.cart-line-name .qty{color:var(--terracotta-dark);}
.cart-line-remove{
  background:none;border:none;color:#a3907c;cursor:pointer;
  font-size:.78rem;text-decoration:underline;padding:0;
}
.cart-line-remove:hover{color:var(--ink);}

.cart-clear{
  margin-top:.8rem;
  background:none;border:none;
  color:#a3907c;font-size:.8rem;text-decoration:underline;
  cursor:pointer;padding:0;
}

.cart-form{margin-top:1.8rem;display:flex;flex-direction:column;gap:.9rem;}
.cart-form[hidden]{display:none;}
.cart-form label{font-size:.82rem;color:#5a4838;display:flex;flex-direction:column;gap:.35rem;}
.cart-form input,.cart-form textarea{
  border:1px solid var(--line);
  border-radius:4px;
  padding:.65rem .75rem;
  font:inherit;
  font-size:.92rem;
  background:#fff;
  color:var(--ink);
  resize:vertical;
}
.cart-form textarea{min-height:70px;}
.cart-foot{
  border-top:1px solid var(--line);
  padding:1.2rem 1.4rem 1.5rem;
}
.cart-foot .btn{width:100%;justify-content:center;}
.cart-foot .hint{font-size:.76rem;color:#7a6752;margin-top:.7rem;text-align:center;}

/* util */
.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;
}
