/* =========================================================
   Soda Toya — estilos
   Paleta tomada del logotipo
   ========================================================= */
:root {
  --cream: #FCF4EC;
  --cream-2: #F5E6D6;
  --terracotta: #C44C24;
  --terracotta-dark: #A33D1B;
  --terracotta-text: #B0401C; /* terracota para texto: contraste AA sobre crema */
  --orange: #E88828;
  --brown: #5C3A1C;
  --brown-dark: #3A2410;
  --ink: #3A2A1E;
  --muted: #6E5845;
  --line: #E8D6C3;
  --white: #FFFDFA;

  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Young Serif", Georgia, serif;
  --font-script: "Courgette", cursive;

  --radius: 18px;
  --shadow: 0 14px 34px -14px rgba(58, 36, 16, .32);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  caret-color: var(--terracotta);
}

/* Superficies del navegador con la paleta */
::selection { background: var(--orange); color: var(--brown-dark); }
html { scrollbar-color: var(--brown) var(--cream-2); }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--cream-2); }
::-webkit-scrollbar-thumb { background: var(--brown); border-radius: 8px; border: 3px solid var(--cream-2); }

img, svg { display: block; max-width: 100%; }
a { color: var(--terracotta-text); text-underline-offset: .2em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--terracotta-dark); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--font-display); color: var(--brown-dark); line-height: 1.12; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); font-weight: 400; letter-spacing: -.02em; line-height: 1.1; }
h2 { font-size: clamp(2rem, 3.8vw, 2.9rem); font-weight: 400; letter-spacing: -.015em; }
h3 { font-size: 1.25rem; font-weight: 400; }
p { margin: 0 0 1em; text-wrap: pretty; }

.script { font-family: var(--font-script); font-weight: 400; color: var(--terracotta-text); letter-spacing: 0; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brown); color: var(--white); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.center { text-align: center; margin-top: 2.5rem; }

/* Íconos dibujados (trazo único) */
.i, .i-lg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i { width: 1.15em; height: 1.15em; }
.i-lg { width: 34px; height: 34px; color: var(--terracotta-text); margin-bottom: .9rem; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5em; padding: .85em 1.5em; min-height: 48px;
  font-weight: 800; font-size: 1rem; text-decoration: none;
  color: var(--white); background: var(--terracotta);
  border: 2px solid var(--terracotta); border-radius: 999px;
  transition: background .2s, transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
  box-shadow: 0 8px 18px -10px rgba(196, 76, 36, .9);
}
.btn:hover { background: var(--terracotta-dark); border-color: var(--terracotta-dark); color: var(--white); transform: translateY(-2px); box-shadow: 0 12px 22px -10px rgba(196, 76, 36, .9); }
.btn:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--brown); border-color: var(--brown); box-shadow: none; }
.btn-ghost:hover { background: var(--brown); border-color: var(--brown); color: var(--white); box-shadow: none; }
.btn-ghost-light { background: transparent; color: var(--cream); border-color: var(--cream); box-shadow: none; }
.btn-ghost-light:hover { background: var(--cream); border-color: var(--cream); color: var(--brown-dark); box-shadow: none; }
.btn-small { padding: .45em 1.1em; min-height: 40px; font-size: .95rem; }

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(252, 244, 236, .94);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 18px -14px rgba(58, 36, 16, .45); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand span { font-family: var(--font-script); font-size: 1.6rem; color: var(--brown); }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a:not(.btn) { color: var(--brown); font-weight: 700; text-decoration: none; position: relative; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out);
}
.nav a:not(.btn):hover::after { transform: scaleX(1); }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle .bar { display: block; width: 24px; height: 2.5px; margin: 5px 0; background: var(--brown); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(4) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Portada ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 9vw, 7.5rem);
  background:
    radial-gradient(55% 65% at 82% 42%, rgba(232, 136, 40, .24), transparent 70%),
    radial-gradient(40% 50% at 8% 100%, rgba(196, 76, 36, .12), transparent 70%),
    var(--cream);
}
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hero h1 em {
  font-family: var(--font-script); font-style: normal; font-weight: 400; letter-spacing: 0; color: var(--terracotta-text);
  /* trazo de brocha bajo "cocina de leña" */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 16' preserveAspectRatio='none'%3E%3Cpath d='M3 11 C 60 4, 140 3, 297 8' fill='none' stroke='%23E88828' stroke-width='5' stroke-linecap='round' opacity='.75'/%3E%3C/svg%3E") no-repeat 0 100% / 100% .28em;
  padding-bottom: .08em;
}
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }

.status {
  display: inline-flex; align-items: center; gap: .55rem;
  margin: 0 0 1.4rem; padding: .4em 1em; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line);
  font-weight: 700; font-size: .92rem; color: var(--brown);
}
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.status.is-open::before { background: #2F8A3E; box-shadow: 0 0 0 4px rgba(47, 138, 62, .18); animation: pulse 2.4s var(--ease-out) infinite; }
.status.is-closed::before { background: var(--terracotta); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(47, 138, 62, .45); } 100% { box-shadow: 0 0 0 9px rgba(47, 138, 62, 0); } }

.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 0; }

.rating {
  display: inline-flex; align-items: center; gap: .7rem;
  margin-top: 2rem; color: var(--muted); text-decoration: none; font-size: .98rem;
}
.rating strong { color: var(--brown-dark); font-weight: 800; }
.rating:hover span:last-child { text-decoration: underline; }
.rating-stars svg { width: 100px; height: 20px; }

.hero-art { display: flex; justify-content: center; }
.logo-big {
  width: min(100%, 420px); height: auto;
  filter: drop-shadow(0 26px 40px rgba(92, 58, 28, .26));
}
.smoke { animation: smoke 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: bottom; }
.smoke.s2 { animation-delay: 1.2s; }
@keyframes smoke {
  0% { opacity: 0; transform: translateY(8px) scaleY(.8); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-14px) scaleY(1.1); }
}

/* Entrada de la portada: un solo momento */
.hero-text > *, .logo-big { animation: rise .9s var(--ease-out) both; }
.hero-text > :nth-child(2) { animation-delay: .06s; }
.hero-text > :nth-child(3) { animation-delay: .12s; }
.hero-text > :nth-child(4) { animation-delay: .18s; }
.hero-text > :nth-child(5) { animation-delay: .24s; }
.logo-big { animation-duration: 1.2s; animation-delay: .1s; }
@keyframes rise { from { opacity: .6; transform: translateY(12px); } }

/* ---------- Secciones ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-head { max-width: 680px; margin: 0 0 3rem; }
.section-head p { color: var(--muted); font-size: 1.12rem; margin: 0; }

.section-warm { background: var(--cream-2); }
.section-dark { background: var(--brown-dark); color: var(--cream); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark a:not(.btn) { color: var(--orange); }
.section-dark a:not(.btn):hover, .site-footer a:hover { color: var(--white); }
.section-dark .btn { box-shadow: none; }
.section-dark .btn:hover { box-shadow: 0 12px 22px -12px rgba(0, 0, 0, .8); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }

/* ---------- Menú ---------- */
.menu-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }

.featured {
  position: sticky; top: 96px;
  background:
    radial-gradient(70% 60% at 100% 0%, rgba(232, 136, 40, .26), transparent 70%),
    linear-gradient(160deg, var(--brown) 0%, var(--brown-dark) 100%);
  color: var(--cream);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  box-shadow: var(--shadow);
}
.featured h3 { color: var(--white); font-size: clamp(2rem, 3.6vw, 2.7rem); letter-spacing: -.02em; }
.featured > p { font-size: 1.08rem; color: var(--cream-2); }
.featured-badge {
  display: inline-block; margin: 0 0 1.1rem !important;
  background: var(--orange); color: var(--brown-dark) !important;
  font-weight: 800; font-size: .8rem !important; text-transform: uppercase; letter-spacing: .08em;
  padding: .35em 1em; border-radius: 999px;
}
.featured blockquote { margin: 1.6rem 0 0; padding-top: 1.3rem; border-top: 1px solid rgba(252, 244, 236, .2); }
.featured blockquote p { font-family: var(--font-display); font-size: 1.15rem; color: var(--white); margin: 0; }
.featured cite { display: block; font-style: normal; font-size: .9rem; margin-top: .5rem; color: var(--orange); }

.menu-group + .menu-group { margin-top: 2.6rem; }
.menu-group h3 {
  display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap;
  font-size: 1.5rem; color: var(--terracotta-text);
  padding-bottom: .7rem; margin-bottom: .4rem; border-bottom: 2px solid var(--brown);
}
.menu-group h3 span { font-family: var(--font-script); font-weight: 400; font-size: 1.05rem; color: var(--muted); }
.menu-group dl { margin: 0; }
.menu-group dl > div { padding: 1rem 0; border-bottom: 1px dashed var(--line); }
.menu-group dt { font-family: var(--font-display); font-size: 1.25rem; color: var(--brown-dark); }
.menu-group dd { margin: .2rem 0 0; color: var(--muted); max-width: 46ch; }

.note { margin: 3rem 0 0; color: var(--muted); font-size: 1rem; }

/* ---------- Nosotros ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.about h2 { margin: 0; }
.about-text p { font-size: 1.12rem; }
.about-text p:last-child { margin: 0; }

.reasons {
  list-style: none; padding: 0; margin: clamp(3rem, 6vw, 4.5rem) 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid var(--brown);
}
.reasons li { padding: 2rem 1.6rem 0 0; }
.reasons li + li { padding-left: 1.6rem; border-left: 1px solid var(--line); }
.reasons h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.reasons p { margin: 0; color: var(--muted); font-size: .98rem; }

/* ---------- Opiniones ---------- */
.quote-main { margin: 0; max-width: 900px; }
.quote-main blockquote {
  margin: 0; font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: 1.3; letter-spacing: -.01em; color: var(--brown-dark);
  text-wrap: balance;
}
.quote-main figcaption, .quote figcaption { margin-top: 1.1rem; font-weight: 800; color: var(--terracotta-text); }
.quote-main figcaption span, .quote figcaption span { color: var(--muted); font-weight: 600; }

.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.quote { margin: 0; }
.quote blockquote { margin: 0; font-size: 1.15rem; color: var(--ink); }

/* ---------- Ubicación ---------- */
.info { margin: 1.5rem 0 0; display: grid; gap: 1.2rem; }
.info dt { font-family: var(--font-script); color: var(--orange); font-size: 1.15rem; }
.info dd { margin: 0; font-size: 1.08rem; color: var(--cream-2); }
.map {
  border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--brown);
  box-shadow: 0 24px 44px -22px rgba(0, 0, 0, .7);
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Pie ---------- */
.site-footer { background: var(--brown-dark); color: var(--cream-2); border-top: 1px solid rgba(255, 255, 255, .08); padding: 2.5rem 0 3rem; }
.footer-inner { text-align: center; display: grid; justify-items: center; gap: .3rem; }
.site-footer .brand span { color: var(--cream); }
.site-footer a { color: var(--orange); }
.site-footer p { margin: 0; }
.small { font-size: .85rem; opacity: .75; margin-top: .6rem !important; }

/* ---------- Barra fija en celular ---------- */
.mobile-bar { display: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 960px) {
  .reasons { grid-template-columns: 1fr 1fr; }
  .reasons li:nth-child(3) { padding-left: 0; border-left: 0; }
  .reasons li:nth-child(n+3) { padding-top: 2rem; }
}

@media (max-width: 900px) {
  .hero-inner, .two-col, .menu-layout, .about { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .logo-big { width: min(68vw, 300px); }
  .featured { position: static; }
  .quotes { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: .5rem 16px 1rem;
    box-shadow: 0 12px 24px -16px rgba(58, 36, 16, .4);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 1rem; }

  .reasons { grid-template-columns: 1fr; }
  .reasons li, .reasons li + li { padding: 1.6rem 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .reasons li:last-child { border-bottom: 0; }

  body { padding-bottom: 64px; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--brown-dark);
    box-shadow: 0 -8px 20px -10px rgba(0, 0, 0, .5);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-bar a {
    display: flex; align-items: center; justify-content: center;
    gap: .4em; height: 60px; font-size: .95rem; font-weight: 800; text-decoration: none; color: var(--cream);
  }
  .mobile-bar a.wa { background: var(--brown); border-inline: 1px solid rgba(252, 244, 236, .12); }
  .mobile-bar a:last-child { background: var(--terracotta); color: var(--white); }
}
