/* ===========================================================
   ChurriCo — web pública
   Paleta cálida / retro. Nada que ver con la interfaz del TPV.
   =========================================================== */

:root {
  --cream: #fbf3e2;
  --cream-2: #fff9ee;
  --paper: #fffdf7;
  --orange: #e87a2c;
  --orange-2: #f0a500;
  --orange-soft: #fbe4c8;
  --navy: #143a5a;
  --navy-2: #1e4e75;
  --cocoa: #5a3a12;
  --ink: #2c2013;
  --muted: #8a7a63;
  --line: #ecdcc2;
  --shadow: 0 14px 34px rgba(90, 58, 18, .14);
  --shadow-sm: 0 6px 16px rgba(90, 58, 18, .10);
  --r: 20px;
  --maxw: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--cream);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(240,165,0,.10), transparent 42%),
    radial-gradient(circle at 88% 0%, rgba(20,58,90,.07), transparent 40%);
  line-height: 1.6;
  overflow-x: hidden;
}
h1, h2, h3, h4, .logo-word {
  font-family: 'Fredoka', 'Nunito', sans-serif;
  line-height: 1.1;
  margin: 0;
}
a { color: var(--navy); }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 84px 0; position: relative; }

/* ---------- Botones ---------- */
.btn {
  display: inline-block;
  border: none;
  border-radius: 999px;
  padding: 14px 26px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 8px 18px rgba(232, 122, 44, .38);
}
.btn-primary:hover { background: #d76b1f; transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-ghost:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }

/* ---------- Barra superior ---------- */
.topbar-strip {
  background: var(--navy);
  color: #ffe9cf;
  text-align: center;
  font-size: 13.5px;
  letter-spacing: .5px;
  padding: 7px 12px;
  font-weight: 600;
}

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 22px;
  background: rgba(251, 243, 226, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { height: 54px; width: auto; object-fit: contain; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  padding: 9px 15px;
  border-radius: 999px;
  transition: background .15s, color .15s;
}
.nav a:hover { background: var(--orange-soft); color: var(--cocoa); }
.nav .nav-ig {
  background: var(--orange);
  color: #fff;
}
.nav .nav-ig:hover { background: #d76b1f; color: #fff; }

.nav-toggle {
  display: none;
  margin-left: auto;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 26px; height: 3px; border-radius: 3px; background: var(--cocoa);
  transition: transform .2s, opacity .2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: 64px 0 0;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(240,165,0,.22), transparent 45%),
    linear-gradient(180deg, #fff6e6, var(--cream));
  z-index: -1;
}
.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px 30px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 30px;
  align-items: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 800;
  font-size: 13px;
  color: var(--orange);
  margin: 0 0 10px;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 700;
  color: var(--navy);
}
.hero h1 .hl {
  color: var(--orange);
  position: relative;
  white-space: nowrap;
}
.hero h1 .hl::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 4px; height: 10px;
  background: rgba(240,165,0,.30);
  z-index: -1; border-radius: 8px;
}
.hero .lead {
  font-size: 20px;
  max-width: 30em;
  margin: 18px 0 26px;
  color: #4a3a26;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 22px; color: var(--muted); font-weight: 700; }
.hero-art { display: grid; place-items: center; }
.hero-video {
  width: 100%;
  max-width: 270px;
  aspect-ratio: 52 / 85;
  object-fit: cover;
  border-radius: 22px;
  border: 7px solid #fff;
  box-shadow: var(--shadow);
  background: var(--orange-soft);
  transform: rotate(-2deg);
}
.wave {
  height: 60px;
  background: var(--paper);
  -webkit-mask: radial-gradient(28px at 50% 0, transparent 98%, #000) repeat-x;
  mask: radial-gradient(28px at 50% 0, transparent 98%, #000) repeat-x;
  -webkit-mask-size: 56px 60px;
  mask-size: 56px 60px;
}

/* ---------- Encabezados de sección ---------- */
.kicker {
  display: inline-block;
  background: var(--orange-soft);
  color: var(--cocoa);
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  padding: 5px 15px;
  border-radius: 999px;
  font-size: 14px;
  margin-bottom: 12px;
}
.section-head { text-align: center; margin-bottom: 46px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); color: var(--navy); }
.section-head .sub { color: var(--muted); margin-top: 10px; font-weight: 600; }
h2 { font-size: clamp(28px, 3.4vw, 40px); }

/* ---------- La casa ---------- */
.casa { background: var(--paper); }
.casa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 46px;
  align-items: center;
}
.casa-photos { position: relative; min-height: 360px; }
.casa-photos .ph {
  position: absolute;
  border-radius: var(--r);
  box-shadow: var(--shadow);
  object-fit: cover;
  border: 6px solid #fff;
}
.ph-a { width: 74%; top: 0; left: 0; aspect-ratio: 4/3; transform: rotate(-3deg); }
.ph-b { width: 58%; bottom: 0; right: 0; aspect-ratio: 4/3; transform: rotate(3deg); z-index: 2; }
.casa-text h2 { color: var(--navy); margin-bottom: 14px; }
.casa-text p { margin: 0 0 14px; font-size: 17px; }
.feats { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.feats li {
  display: inline-flex; align-items: center; gap: 9px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
  font-weight: 700;
  color: var(--cocoa);
  box-shadow: var(--shadow-sm);
}
.feats li::before {
  content: "✓";
  color: var(--orange);
  font-weight: 900;
  font-size: 15px;
}

/* ---------- Carta ---------- */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.menu-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.menu-card h3 {
  font-size: 27px;
  color: var(--orange);
  margin-bottom: 16px;
}
.menu-card.wide { grid-column: 1 / -1; }
.menu-card.feat { background: linear-gradient(160deg, #fff3df, var(--paper)); }
.menu-card.choco h3 { color: var(--cocoa); }
.card-note { color: var(--muted); font-style: italic; font-weight: 600; margin: -8px 0 14px; }

.plain { list-style: none; padding: 0; margin: 0; }
.plain li {
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-weight: 700;
}
.plain li:last-child { border-bottom: none; }

.items { list-style: none; padding: 0; margin: 0; }
.items li {
  display: flex; align-items: baseline; gap: 8px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
}
.items li:last-child { border-bottom: none; }
.it-name { font-weight: 700; }
.it-name em { font-style: normal; color: var(--muted); font-weight: 600; font-size: .9em; }
.dots { flex: 1; border-bottom: 2px dotted var(--line); transform: translateY(-4px); }
.it-price { font-family: 'Fredoka', sans-serif; font-weight: 600; color: var(--orange); font-size: 19px; white-space: nowrap; }
.sub-item { display: block; color: var(--muted); font-size: 14px; padding: 2px 0 8px; border: none; }

/* Tostadas */
.tostadas-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.tostadas-cols h4 {
  font-size: 19px; color: var(--navy); margin: 16px 0 6px;
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}
.tostadas-cols h4:first-child { margin-top: 0; }
.rango { font-family: 'Nunito'; font-weight: 800; font-size: 14px; color: var(--orange); }
.tostadas-cols p { margin: 0 0 6px; }
.tostadas-cols em { color: var(--muted); }
.especiales { list-style: none; padding: 0; margin: 0; }
.especiales li { padding: 7px 0; border-bottom: 1px dashed var(--line); }
.especiales li:last-child { border-bottom: none; }
.mini-price { color: var(--orange); font-weight: 800; }
.panes {
  margin: 18px 0 0; padding: 12px 16px;
  background: var(--orange-soft); color: var(--cocoa);
  border-radius: 12px; font-weight: 700; text-align: center;
}
.ask {
  text-align: center;
  color: var(--muted);
  font-style: italic;
  margin: 12px 0 0;
}

/* Comidas */
.comidas .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.comidas .chips span {
  background: var(--navy); color: #fff;
  padding: 6px 14px; border-radius: 999px;
  font-family: 'Fredoka', sans-serif; font-weight: 500; font-size: 14px;
}
.menu-card.comidas { grid-column: 1 / -1; }
.comidas-photos {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.comida-shot {
  padding: 0; border: none; cursor: pointer;
  border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: none;
  aspect-ratio: 4 / 3;
}
.comida-shot img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.comida-shot:hover img { transform: scale(1.07); }
.carta-download { text-align: center; margin-top: 34px; }

/* ---------- Galería ---------- */
.galeria { background: var(--paper); }
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 14px;
}
.gal-item {
  padding: 0; border: none; cursor: pointer;
  border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: none;
}
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gal-item:hover img { transform: scale(1.07); }
.gal-item.big { grid-column: span 2; grid-row: span 2; }

/* ---------- Visítanos ---------- */
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.info-block { margin: 18px 0; }
.info-block h3 { font-size: 20px; color: var(--navy); margin-bottom: 4px; }
.info-block p { margin: 0; font-size: 17px; }
.hours { list-style: none; padding: 0; margin: 0; max-width: 340px; }
.hours li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 7px 0; border-bottom: 1px dashed var(--line);
  font-size: 17px;
}
.hours li:last-child { border-bottom: none; }
.hours li span:first-child { font-weight: 700; }
.hours li span:last-child { color: var(--cocoa); font-weight: 700; white-space: nowrap; }
.hours li.closed span:last-child { color: var(--muted); font-weight: 600; }
.todo { color: #b0651c; background: #fff3df; padding: 2px 6px; border-radius: 6px; }
.visit-info .btn { margin-top: 14px; }
.visit-map {
  border-radius: var(--r); overflow: hidden;
  box-shadow: var(--shadow); border: 6px solid #fff;
  min-height: 420px;
}
.visit-map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #f4e4cf; padding: 40px 0; }
.footer-grid {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 18px;
}
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand strong { display: block; font-family: 'Fredoka'; font-size: 20px; color: #fff; }
.foot-brand span { font-size: 14px; opacity: .85; }
.foot-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.foot-nav a { color: #ffd8ad; text-decoration: none; font-weight: 700; }
.foot-nav a:hover { color: #fff; text-decoration: underline; }
.foot-copy { margin: 0; font-size: 13.5px; opacity: .8; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(20, 12, 4, .9);
  display: none; place-items: center; padding: 24px;
}
.lightbox.open { display: grid; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox-close {
  position: absolute; top: 18px; right: 22px;
  background: none; border: none; color: #fff; font-size: 34px; cursor: pointer; line-height: 1;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--cream-2);
    padding: 10px 16px 18px;
    gap: 4px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .nav-toggle { display: flex; }

  .hero { padding-top: 28px; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 18px; padding-bottom: 10px; }
  .hero h1 { font-size: clamp(30px, 8vw, 42px); }
  .hero .lead { font-size: 18px; margin: 12px auto 20px; }
  .hero-cta { justify-content: center; }
  .hero-video { max-width: 200px; }

  .casa-grid { grid-template-columns: 1fr; gap: 30px; }
  .casa-photos { min-height: 300px; max-width: 460px; margin: 0 auto; }

  .menu-grid { grid-template-columns: 1fr; }
  .tostadas-cols { grid-template-columns: 1fr; gap: 8px; }

  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .gal-item.big { grid-column: span 2; grid-row: span 1; }

  .visit-grid { grid-template-columns: 1fr; }
}

@media (max-width: 460px) {
  .section { padding: 60px 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; transition: none !important; }
}
