/* ==========================================================================
   FATTO · Inicio — capa de interfaz
   Se carga DESPUÉS de estilos-fatto-final.css y del <style> de la página.
   Solo estilos: no toca el JS, los datos estructurados ni el SEO.
   El JS de la página sigue manejando: .bg-black/95 .backdrop-blur-xl .py-3
   .shadow-2xl (header), .hidden .opacity-100 (menú móvil), .active (popup
   de mudanza) y .badge-abierto/.badge-cerrado (estado del local).

   Índice
     1. Utilidades que el HTML usa pero faltaban en el CSS compilado
     2. Base: tokens, foco, movimiento, contraste
     3. Header y menú móvil
     4. Hero: estado del local, horarios y botones
     5. Cinta de horarios
     6. Texto "¿Dónde comer en Carlos Paz?"
     7. Menú: tarjetas de productos
     8. Novedades (blog)
     9. Preguntas frecuentes
    10. Contacto
    11. Footer
    12. Popup "Nos mudamos"
    13. Ritmo vertical en pantallas chicas
   ========================================================================== */


/* ==========================================================================
   1. UTILIDADES FALTANTES
   ========================================================================== */

.border-yellow-400\/30 { border-color: rgb(250 204 21 / .3); }
.leading-tight { line-height: 1.25; }
.shrink-0 { flex-shrink: 0; }
.pb-0\.5 { padding-bottom: .125rem; }
.shadow-\[0_0_20px_rgba\(250\,204\,21\,0\.3\)\] { box-shadow: 0 0 20px rgba(250, 204, 21, .3); }
.shadow-\[0_0_20px_rgba\(250\,204\,21\,0\.4\)\] { box-shadow: 0 0 20px rgba(250, 204, 21, .4); }
.group:hover .group-hover\:-translate-y-1 { transform: translateY(-.25rem); }

/* Sin esta regla los dos botones del hero nunca quedaban lado a lado */
@media (min-width: 640px) { .sm\:flex-row { flex-direction: row; } }
/* Sin esta regla el separador "|" del footer nunca aparecía en desktop */
@media (min-width: 768px) { .md\:inline { display: inline; } }


/* ==========================================================================
   2. BASE
   ========================================================================== */

:root {
  --y: #FACC15;
  --y-soft: rgba(250, 204, 21, .12);
  --y-line: rgba(250, 204, 21, .5);
  --bg: #0f0f0f;
  --s1: #171614;
  --s2: #201e1b;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --tx-2: #d6d3d1;
  --mut: #b4aea8;
  --dim: #8a837d;
  --r-card: 28px;
  --r-ctl: 16px;
}

html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-tap-highlight-color: transparent; }

:focus-visible { outline: 2px solid var(--y); outline-offset: 3px; }

/* Texto secundario con contraste suficiente */
.text-stone-500 { color: #9a948f; }
.text-stone-700 { color: #6b645e; }

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


/* ==========================================================================
   3. HEADER Y MENÚ MÓVIL
   ========================================================================== */

/* Antes de scrollear el header es transparente: le damos un velo para que
   el logo y los links se lean sobre cualquier foto. Al scrollear, el JS le
   agrega .shadow-2xl y toma el fondo oscuro de siempre. */
#main-header:not(.shadow-2xl) {
  background: linear-gradient(to bottom, rgba(0, 0, 0, .72), rgba(0, 0, 0, 0));
}

#main-header nav[aria-label="Menú principal"] {
  gap: 1.4rem;
  font-size: 11px;
  letter-spacing: .16em;
}
#main-header nav[aria-label="Menú principal"] a {
  position: relative;
  padding: 10px 0;
}
#main-header nav[aria-label="Menú principal"] a::after {
  content: "";
  position: absolute;
  left: 0; right: .16em; bottom: 2px;
  height: 2px;
  background: var(--y);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
#main-header nav[aria-label="Menú principal"] a:hover::after { transform: scaleX(1); }

#main-header a[href="/pedidos"] { min-height: 44px; padding-left: 1.5rem; padding-right: 1.5rem; }

#main-header button[aria-label="Abrir menú móvil"] {
  width: 44px; height: 44px;
  place-items: center;
  border-radius: 14px;
}
@media (min-width: 1100px) {
  #main-header button[aria-label="Abrir menú móvil"] { display: none; }
}

/* BUG: entre 768px y ~1100px el menú de 8 links empujaba el botón PEDIR fuera
   de pantalla y además ocultaba la hamburguesa. Hasta 1099px se usa el menú
   móvil, que ya existe y funciona en cualquier ancho. */
@media (max-width: 1099px) {
  #main-header nav[aria-label="Menú principal"] { display: none; }
  #main-header button[aria-label="Abrir menú móvil"] { display: grid; }
}

/* Menú móvil: entra completo en pantallas bajas y cierra con un botón claro de pedir */
#mobile-menu nav { font-size: 2.25rem; gap: .5rem; }
#mobile-menu nav a { display: block; padding: 6px 0; }
#mobile-menu .menu-cta {
  display: block;
  margin-top: 24px;
  padding: 18px 24px;
  font-size: 1.5rem;
  text-align: center;
  color: #000;
  background: var(--y);
  border-radius: var(--r-ctl);
  box-shadow: 0 0 24px rgba(250, 204, 21, .3);
}
#mobile-menu .menu-cta:active { transform: scale(.98); }
#mobile-menu button[aria-label="Cerrar menú"] { width: 48px; height: 48px; display: grid; place-items: center; }


/* ==========================================================================
   4. HERO
   ========================================================================== */

/* Antes era height fijo + overflow hidden: en pantallas bajas o apaisadas, al
   abrir "Ver todos los horarios" el contenido quedaba cortado. */
#inicio {
  height: auto;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 88px 0 40px;
}

/* Estado del local: antes un cartel pastel (verde/rosa) que desentonaba */
.badge-estado {
  max-width: min(92vw, 30rem);
  padding: 10px 18px;
  font-size: 14px;
  line-height: 1.35;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.badge-estado:empty { display: none; }
.badge-abierto {
  color: #86efac;
  background: rgba(34, 197, 94, .16);
  border: 1px solid rgba(34, 197, 94, .45);
}
.badge-cerrado {
  color: #fca5a5;
  background: rgba(239, 68, 68, .14);
  border: 1px solid rgba(239, 68, 68, .4);
}

.detalle-horarios { text-align: center; }
.detalle-horarios summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  font-size: 13px;
  color: var(--mut);
  border-radius: 999px;
  transition: color .15s, background-color .15s;
}
.detalle-horarios summary:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.detalle-horarios summary::after {
  content: "";
  width: 7px; height: 7px;
  margin-top: -3px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s;
}
.detalle-horarios[open] summary::after { margin-top: 3px; transform: rotate(-135deg); }
.detalle-horarios ul {
  margin: 6px auto 0;
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--tx-2);
  background: rgba(0, 0, 0, .55);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  backdrop-filter: blur(8px);
}

/* Botones: pedir es la acción principal, la carta es la secundaria */
.hero-ctas { width: 100%; max-width: 23rem; margin-left: auto; margin-right: auto; }
.hero-ctas a {
  width: 100%;
  min-height: 64px;
  padding: 0 24px;
  font-size: 1.5rem;
  border-radius: 18px;
}
.cta-primary { box-shadow: 0 0 28px rgba(250, 204, 21, .35), 0 12px 30px rgba(0, 0, 0, .4); }
.cta-secondary,
.cta-secondary:hover {
  color: #fff;
  background: rgba(0, 0, 0, .35);
  border: 2px solid rgba(255, 255, 255, .4);
  box-shadow: none;
  backdrop-filter: blur(6px);
}
.cta-secondary:hover { background: #fff; color: #000; border-color: #fff; }

@media (min-width: 640px) {
  .hero-ctas { width: auto; max-width: none; }
  .hero-ctas a { width: auto; padding: 0 40px; }
}


/* ==========================================================================
   5. CINTA DE HORARIOS
   ========================================================================== */

.animate-marquee:hover { animation-play-state: paused; }


/* ==========================================================================
   6. TEXTO "¿DÓNDE COMER EN CARLOS PAZ?"
   Mismo contenido; mejor lectura (antes: párrafos largos en cursiva y centrados)
   ========================================================================== */

.seo-section .italic { font-style: normal; }
.seo-section > div { max-width: 46rem; }
.seo-section h2 { margin-bottom: 1.75rem; }
.seo-section p {
  text-align: left;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #bdb7b1;
}
.seo-section b { color: #fff; font-weight: 700; }


/* ==========================================================================
   7. MENÚ: TARJETAS DE PRODUCTOS
   ========================================================================== */

#menu > .text-center { margin-bottom: 4rem; }

#menu article {
  position: relative;
  padding: 14px;
  border-radius: var(--r-card);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
  transition: border-color .25s, transform .25s;
}
@media (hover: hover) { #menu article:hover { transform: translateY(-4px); } }

#menu article > div:first-child {
  height: 15rem;
  margin-bottom: 1.25rem;
  border-radius: 20px;
}
#menu article > div:first-child > div.absolute { top: 12px; right: 12px; padding: 6px 14px; font-size: 12px; }
#menu article > div:last-child { padding: 0 10px 10px; }
#menu article h4 { margin-bottom: .6rem; font-size: 2rem; }
#menu article p {
  margin-bottom: 1.4rem;
  font-size: 15px;
  font-style: normal;
  line-height: 1.55;
  color: var(--mut);
}
#menu article p strong { color: var(--y); font-weight: 700; }
#menu article a {
  min-height: 60px;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
  font-size: 1.5rem;
  border-radius: var(--r-ctl);
}
/* Toda la tarjeta es tocable, no solo el botón */
#menu article a::after { content: ""; position: absolute; inset: 0; }

#menu > .text-center.mt-16 { margin-top: 3rem; }


/* ==========================================================================
   8. NOVEDADES (BLOG)
   ========================================================================== */

.blog-card { height: 340px; border-radius: var(--r-card); }
.blog-card .bg-gradient-to-t {
  background: linear-gradient(to top, rgba(0, 0, 0, .94), rgba(0, 0, 0, .4) 55%, rgba(0, 0, 0, 0));
}
.blog-card > .absolute.bottom-10 { left: 24px; right: 24px; bottom: 24px; }
.blog-card h4 { font-size: 1.75rem; }
/* En celulares no hay hover: la foto quedaba gris para siempre */
@media (hover: none) { .blog-card img { filter: none; } }
@media (min-width: 768px) { .blog-card { height: 400px; } .blog-card h4 { font-size: 1.875rem; } }


/* ==========================================================================
   9. PREGUNTAS FRECUENTES
   ========================================================================== */

.faq-list > div { padding: 26px 0; border-top: 1px solid var(--line-2); }
.faq-list > div:last-child { border-bottom: 1px solid var(--line-2); }
.faq-list h4 { margin: 0 0 12px; font-size: 1.5rem; line-height: 1.15; color: #fff; }
.faq-list p { font-size: 1rem; font-style: normal; line-height: 1.75; color: #c4bfba; }
.faq-list b { color: #fff; }


/* ==========================================================================
   10. CONTACTO
   ========================================================================== */

.contact-actions { display: grid; gap: 12px; margin-bottom: 2.5rem; }
.contact-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 60px;
  padding: 0 24px;
  font-size: 1.375rem;
  color: #fff;
  background: rgba(255, 255, 255, .06);
  border: 2px solid var(--line-2);
  border-radius: var(--r-ctl);
  transition: background-color .2s, color .2s, border-color .2s;
}
.contact-btn:hover { color: #000; background: #fff; border-color: #fff; }
.contact-btn--primary { color: #000; background: var(--y); border-color: var(--y); box-shadow: 0 0 24px rgba(250, 204, 21, .25); }
.contact-btn--primary:hover { background: #fff; border-color: #fff; }
@media (min-width: 640px) { .contact-actions { grid-template-columns: 1fr 1fr; } }

.review-card { padding: 2rem; border-radius: var(--r-card); }
.review-card h4 { margin-bottom: 1rem; font-size: 2.5rem; line-height: 1; }
.review-card p { margin-bottom: 1.75rem; font-style: normal; }
.review-card a { min-height: 60px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 24px; border-radius: var(--r-ctl); }
@media (min-width: 768px) { .review-card { padding: 2.5rem; } }

.map-box { height: 380px; border-width: 4px; border-radius: var(--r-card); }
@media (min-width: 1024px) { .map-box { height: 550px; } }


/* ==========================================================================
   11. FOOTER
   ========================================================================== */

footer { padding-top: 5rem; padding-bottom: 3rem; }
footer > img { height: 4.5rem; margin-bottom: 2rem; }
footer a[aria-label="Instagram FATTO"],
footer a[aria-label="WhatsApp FATTO"] {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
}
footer a[aria-label="Instagram FATTO"]:hover,
footer a[aria-label="WhatsApp FATTO"]:hover { border-color: var(--y); }
footer > .flex.justify-center { margin-bottom: 2rem; }


/* ==========================================================================
   12. POPUP "NOS MUDAMOS"
   ========================================================================== */

.mudanza-close { width: 44px; height: 44px; }
#mudanza-card:focus { outline: none; }
@media (max-width: 480px) {
  #mudanza-card { padding: 44px 20px 24px; border-radius: 2rem; }
}


/* ==========================================================================
   13. RITMO VERTICAL EN PANTALLAS CHICAS
   ========================================================================== */

@media (max-width: 767px) {
  section.py-32 { padding-top: 4.5rem; padding-bottom: 4.5rem; }
  section.py-24 { padding-top: 3.75rem; padding-bottom: 3.75rem; }
  h3.tracking-\[0\.5em\] { font-size: 1rem; letter-spacing: .3em; }
  #menu > .text-center { margin-bottom: 2.5rem; }
}
