/* El Taco Ranchero — estilos del sitio público.
   Paleta e identidad tomadas del logo y las fotos reales del negocio (ver DECISIONES.md). */

@import url('https://fonts.googleapis.com/css2?family=Paytone+One&family=Mulish:ital,wght@0,400;0,600;0,700;0,800;1,600&family=Caveat:wght@600;700&display=swap');

:root {
  --verde: #2F5D3A;
  --verde-oscuro: #1F4028;
  --verde-claro: #E8F0E6;
  --terracota: #C1552C;
  --terracota-oscuro: #9C4322;
  --masa: #F6E9C6;
  --papel: #FFFCF5;
  --carbon: #211C15;
  --carbon-2: #2C241C;
  --oro: #E3A62F;
  --borde: #E8DCB8;
  --blanco: #FFFFFF;

  --display: 'Paytone One', 'Arial Rounded MT Bold', sans-serif;
  --cuerpo: 'Mulish', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --script: 'Caveat', cursive;

  --radio: 14px;
  --sombra: 0 10px 30px -12px rgba(33, 28, 21, 0.35);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--papel);
  color: var(--carbon);
  font-family: var(--cuerpo);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; }
.contenedor { max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }
:focus-visible { outline: 3px solid var(--oro); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ── Forma firma: "envoltura de penca" ─────────────────────────────────── */
.penca {
  clip-path: polygon(5% 2%, 40% 0%, 96% 3%, 100% 32%, 97% 68%, 100% 100%, 62% 97%, 28% 100%, 2% 88%, 0% 45%);
}

/* ── Nav ──────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--carbon);
  border-bottom: 3px solid var(--verde);
}
.nav-fila {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 1.25rem;
  max-width: 1180px; margin: 0 auto;
}
.nav-marca { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--papel); }
.nav-marca img { width: 42px; height: 42px; border-radius: 50%; }
.nav-marca span { font-family: var(--display); font-size: 1.05rem; color: var(--papel); }
.nav-links { display: none; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--masa); font-weight: 700; font-size: 0.95rem; }
.nav-links a:hover { color: var(--oro); }
.nav-cta.boton {
  display: none;
  padding: 0.55rem 1.1rem; font-size: 0.9rem;
}
.nav-toggle-lbl {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; cursor: pointer;
}
.nav-toggle-lbl span, .nav-toggle-lbl::before, .nav-toggle-lbl::after {
  content: ''; display: block; width: 24px; height: 3px; background: var(--papel); border-radius: 2px;
  position: relative;
}
.nav-toggle-lbl::before { position: absolute; transform: translateY(-8px); }
.nav-toggle-lbl::after { position: absolute; transform: translateY(8px); }
#nav-toggle { display: none; }
.nav-movil {
  display: none; flex-direction: column; gap: 0; list-style: none; margin: 0; padding: 0.5rem 1.25rem 1rem;
  background: var(--carbon); border-top: 1px solid var(--carbon-2);
}
.nav-movil a {
  display: block; padding: 0.75rem 0; color: var(--masa); text-decoration: none;
  font-weight: 700; border-bottom: 1px solid var(--carbon-2);
}
#nav-toggle:checked ~ .nav-movil { display: flex; }

@media (min-width: 880px) {
  .nav-links { display: flex; }
  .nav-cta.boton { display: inline-flex; align-items: center; }
  .nav-toggle-lbl, .nav-movil { display: none !important; }
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
  background: var(--carbon);
  color: var(--papel);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 15%, rgba(47,93,58,0.35), transparent 55%);
  pointer-events: none;
}
.hero-grid {
  display: grid; gap: 2.2rem;
  padding: 2.6rem 0 2.8rem;
  position: relative; z-index: 1;
}
.hero-ojo {
  font-family: var(--script);
  color: var(--oro);
  font-size: 1.7rem;
  margin: 0 0 0.2rem;
}
.hero-titulo {
  font-size: 2.15rem;
  color: var(--papel);
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
  margin-bottom: 0.9rem;
}
.hero-texto { color: var(--masa); font-size: 1.05rem; max-width: 42ch; margin-bottom: 1.4rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.4rem; }
.badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--carbon-2); border: 1px solid rgba(246,233,198,0.25);
  color: var(--masa); font-size: 0.85rem; font-weight: 700;
  padding: 0.45rem 0.85rem; border-radius: 999px;
}
.badge strong { color: var(--oro); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.hero-figura { position: relative; }
.hero-figura .penca {
  background: var(--verde);
  padding: 10px;
}
.hero-figura img { width: 100%; height: auto; aspect-ratio: 16/11; object-fit: cover; }
.hero-figura::before {
  content: '';
  position: absolute; inset: -14px -14px auto auto;
  width: 90px; height: 90px;
  background: var(--terracota);
  border-radius: 50%;
  z-index: -1;
  opacity: 0.9;
}

@media (min-width: 880px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; align-items: center; padding: 4.5rem 0; }
  .hero-titulo { font-size: 3rem; }
}

/* ── Botones ──────────────────────────────────────────────────────────── */
.boton {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--cuerpo); font-weight: 800; text-decoration: none;
  padding: 0.85rem 1.5rem; border-radius: 999px; font-size: 1rem;
  border: 2px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.boton:hover { transform: translateY(-2px); }
.boton-verde { background: var(--verde); color: var(--papel); box-shadow: 0 8px 20px -8px rgba(47,93,58,0.6); }
.boton-verde:hover { background: var(--verde-oscuro); }
.boton-fantasma { background: transparent; border-color: var(--masa); color: var(--papel); }
.boton-fantasma:hover { background: rgba(246,233,198,0.12); }
.boton-terracota { background: var(--terracota); color: var(--papel); box-shadow: 0 8px 20px -8px rgba(193,85,44,0.6); }
.boton-terracota:hover { background: var(--terracota-oscuro); }
.boton-oscuro { background: var(--carbon); color: var(--papel); }
.boton-bloque { width: 100%; justify-content: center; }

/* ── Secciones genéricas ──────────────────────────────────────────────── */
.seccion { padding: 3.2rem 0; }
.seccion-masa { background: var(--masa); }
.seccion-carbon { background: var(--carbon); color: var(--papel); }
.eyebrow {
  font-family: var(--script); color: var(--terracota-oscuro); font-size: 1.4rem; margin-bottom: 0.2rem;
}
.seccion-carbon .eyebrow { color: var(--oro); }
.titulo-seccion { font-size: 1.7rem; margin-bottom: 1.6rem; color: var(--carbon); }
.seccion-carbon .titulo-seccion, .seccion-carbon h2 { color: var(--papel); }
@media (min-width: 880px) { .titulo-seccion { font-size: 2.1rem; } }

/* ── Sobre nosotros ───────────────────────────────────────────────────── */
.sobre-grid { display: grid; gap: 2rem; align-items: center; }
.sobre-figura .penca { background: var(--terracota); padding: 10px; }
.sobre-figura img { width: 100%; height: auto; aspect-ratio: 3/4; object-fit: cover; }
.sobre-texto-cuerpo { white-space: pre-line; color: #3a3226; }
@media (min-width: 880px) { .sobre-grid { grid-template-columns: 0.9fr 1.1fr; } }

/* ── Galería ──────────────────────────────────────────────────────────── */
.galeria-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
}
.galeria-item { position: relative; }
.galeria-item .penca { background: var(--verde); padding: 6px; }
.galeria-item img { aspect-ratio: 1/1; object-fit: cover; }
.galeria-item:nth-child(3n+1) { grid-column: span 2; }
.galeria-item:nth-child(3n+1) img { aspect-ratio: 16/10; }
@media (min-width: 720px) {
  .galeria-grid { grid-template-columns: repeat(3, 1fr); }
  .galeria-item:nth-child(3n+1) { grid-column: span 1; }
  /* Especificidad reforzada (.galeria-grid .galeria-item:nth-child) a propósito:
     un elemento puede cumplir tanto 3n+1 como 5n+2 (p.ej. el ítem 7). Sin este
     refuerzo, cuál gana dependería del orden de las reglas en el archivo, no de
     una jerarquía explícita — frágil si alguien reordena el CSS más adelante. */
  .galeria-grid .galeria-item:nth-child(5n+2) { grid-column: span 2; }
  .galeria-grid .galeria-item:nth-child(5n+2) img { aspect-ratio: 16/9; }
}

/* ── Menú ─────────────────────────────────────────────────────────────── */
.menu-nota {
  background: var(--verde-claro); border: 1px solid var(--borde);
  border-radius: var(--radio); padding: 1rem 1.2rem; margin-bottom: 2rem;
  color: #33422f; font-size: 0.95rem;
}
.menu-categorias { display: grid; gap: 1.8rem; }
.menu-cat-titulo {
  font-family: var(--display); color: var(--terracota-oscuro); font-size: 1.15rem;
  margin-bottom: 0.7rem; padding-bottom: 0.4rem; border-bottom: 2px dashed var(--borde);
}
.menu-item { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; }
.menu-item-nombre { font-weight: 800; }
.menu-item-desc { color: #6b6152; font-size: 0.9rem; margin-top: 0.15rem; }
.menu-item-precio { font-family: var(--display); color: var(--verde); white-space: nowrap; }
@media (min-width: 720px) { .menu-categorias { grid-template-columns: 1fr 1fr; } }

/* ── Reseñas ──────────────────────────────────────────────────────────── */
.resenas-grid { display: grid; gap: 1.4rem; }
.resena {
  background: var(--carbon-2); border-radius: var(--radio);
  padding: 1.5rem; position: relative;
  border-left: 4px solid var(--oro);
}
.resena-estrellas { color: var(--oro); letter-spacing: 2px; margin-bottom: 0.6rem; font-size: 1.05rem; }
.resena-texto { font-family: var(--script); font-size: 1.35rem; line-height: 1.35; color: var(--papel); }
.resenas-liga { margin-top: 1.6rem; }
.resenas-liga a { color: var(--oro); font-weight: 800; text-decoration: none; }
@media (min-width: 720px) { .resenas-grid { grid-template-columns: 1fr 1fr; } }

/* ── Contacto ─────────────────────────────────────────────────────────── */
.contacto-grid { display: grid; gap: 2rem; }
.contacto-tarjeta {
  background: var(--papel); border: 1px solid var(--borde); border-radius: var(--radio);
  padding: 1.4rem;
}
.contacto-fila { display: flex; gap: 0.8rem; align-items: flex-start; padding: 0.6rem 0; border-bottom: 1px solid var(--borde); }
.contacto-fila:last-child { border-bottom: none; }
.contacto-fila .ico { width: 22px; height: 22px; flex: none; color: var(--verde); }
.contacto-fila a { color: var(--verde-oscuro); text-decoration: none; font-weight: 700; }
.contacto-fila a:hover { text-decoration: underline; }
.horario-tabla { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.horario-tabla td { padding: 0.35rem 0; }
.horario-tabla td:last-child { text-align: right; color: #6b6152; }
.horario-tabla tr.abierto td { color: var(--verde-oscuro); font-weight: 800; }
.mapa-wrap { border-radius: var(--radio); overflow: hidden; border: 1px solid var(--borde); }
.mapa-wrap iframe { display: block; width: 100%; height: 280px; border: 0; }
.aviso-efectivo {
  background: #FBEFE3; border: 1px solid #E8CBA8; color: #6b4321;
  border-radius: var(--radio); padding: 0.85rem 1.1rem; font-size: 0.9rem; margin-top: 1rem;
}
@media (min-width: 880px) { .contacto-grid { grid-template-columns: 1fr 1fr; } }

/* ── Redes sociales ───────────────────────────────────────────────────── */
.redes { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.redes a {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--carbon-2); color: var(--papel);
  transition: background 0.15s ease;
}
.redes a:hover { background: var(--verde); }
.redes svg { width: 20px; height: 20px; fill: currentColor; }
.seccion:not(.seccion-carbon) .redes a { background: var(--verde-claro); color: var(--verde-oscuro); }
.seccion:not(.seccion-carbon) .redes a:hover { background: var(--verde); color: var(--papel); }

/* ── Footer ───────────────────────────────────────────────────────────── */
.pie {
  background: var(--carbon); color: var(--masa);
  padding: 1.6rem 0; text-align: center; font-size: 0.85rem;
  border-top: 3px solid var(--verde);
}
.pie a { color: var(--oro); text-decoration: none; font-weight: 700; }
.pie a:hover { text-decoration: underline; }
.pie p { margin: 0.3rem 0; }
.pie-tel { color: var(--masa); }
.pie-sep { opacity: 0.5; margin: 0 0.4rem; }

/* ── WhatsApp flotante ────────────────────────────────────────────────── */
.wa-flotante {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--verde); color: var(--papel);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px -8px rgba(0,0,0,0.5);
  text-decoration: none;
}
.wa-flotante svg { width: 30px; height: 30px; fill: currentColor; }

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