/* =========================
   Café Aurora — CSS (Warm Boutique)
   Sin clases extra: apunta a tu HTML actual.
   ========================= */

/* Reset suave */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: #1a1410;
  background: radial-gradient(1200px 700px at 20% 0%, #fff7ec 0%, #fbf2e6 35%, #f6efe7 60%, #f4ece3 100%);
  font-family: 'Outfit', sans-serif;
  line-height: 1.5;
}

/* Enlaces */
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }

/* Imágenes */
img { max-width: 100%; height: auto; display: block; }

/* Contenedor global por sección */
header > nav,
main > section,
footer {
  width: min(1100px, calc(100% - 2rem));
  margin-inline: auto;
}

h1, h2, h3 {
  font-weight: 800; /* Más peso para encabezados */
  letter-spacing: -0.03em; /* Tight tracking moderno */
}

/* =========================
   Accesibilidad
   ========================= */
.skip-link {
  position: absolute;
  left: 1rem;
  top: 0.75rem;
  transform: translateY(-200%);
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  background: #1a1410;
  color: #fff7ec;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(26, 20, 16, 0.25);
}
.skip-link:focus { transform: translateY(0); outline: 3px solid rgba(184, 110, 54, 0.35); }

/* =========================
   Header / Navbar
   ========================= */
header {
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
  background: rgba(246, 239, 231, 0);
  border-bottom: 1px solid transparent;
  padding: 1.5rem 0;
  position: sticky;
  top: 0; /* Importante para que z-index funcione */
  z-index: 100; /* Menor que el FAB (9999) */
}

header.scrolled {
  background: rgba(255, 247, 236, 0.85);
  backdrop-filter: blur(12px);
  padding: 0.8rem 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  border-bottom: 1px solid rgba(26, 20, 16, 0.06);
  z-index: 100; /* Aseguramos que sea menor que el FAB */
}

header > nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0;
}

header > nav > a:first-child {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.2px;
}

header > nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.1rem;
  padding: 0;
  margin: 0;
  color: rgba(26, 20, 16, 0.75);
  font-weight: 650;
  font-size: 0.95rem;
}

header > nav ul a {
  padding: 0.5rem 0.65rem;
  border-radius: 999px;
}
header > nav ul a:hover {
  background: rgba(26, 20, 16, 0.05);
  color: rgba(26, 20, 16, 0.95);
}

/* CTA del nav (Pedir ahora) */
header > nav > a.cta-desktop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  font-weight: 800;
  color: #fff7ec;
  background: linear-gradient(135deg, #a15322 0%, #c1783f 40%, #8b3f1b 100%);
  box-shadow: 0 12px 30px rgba(139, 63, 27, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
header > nav > a.cta-desktop:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(139, 63, 27, 0.30);
}

/* Responsive nav */
@media (max-width: 860px) {
  header > nav {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand cta"
      "menu  menu";
  }
  header > nav > a:first-child { grid-area: brand; }
  header > nav > a.cta-desktop { grid-area: cta; }
  header > nav ul {
    grid-area: menu;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  header > nav ul::-webkit-scrollbar { display: none; }
}

@media (max-width: 600px) {
  header {
    padding: 0.8rem 0;
  }

  header > nav {
    padding: 0.4rem 0;
  }
}


/* =========================
   Secciones base
   ========================= */
main { padding: 2.2rem 0 2.5rem; }

main > section {
  padding: 3.2rem 0;
}

main > section header {
  position: static;
  backdrop-filter: none;
  background: transparent;
  border: 0;
  width: 100%;
  margin: 0 0 1.35rem 0;
}

main > section header h2 {
  margin: 0 0 0.4rem 0;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.15rem);
  letter-spacing: -0.02em;
}

main > section header p {
  margin: 0;
  color: rgba(26, 20, 16, 0.72);
  max-width: 70ch;
}

/* =========================
   HERO (primera sección)
   ========================= */
main > section:first-of-type {
  padding-top: clamp(1.2rem, 2vh, 2.6rem);
}

main {
  padding-top: clamp(0.8rem, 2vh, 2.2rem);
}

main > section:first-of-type {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.2rem;
  align-items: center;
}

main > section:first-of-type > div > p:first-child {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  margin: 0 0 0.9rem 0;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-weight: 750;
  font-size: 0.9rem;
  color: rgba(26, 20, 16, 0.78);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(26, 20, 16, 0.08);
}

main > section:first-of-type h1 {
  margin: 0 0 0.75rem 0;
  font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.4rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

main > section:first-of-type > div > p:nth-of-type(2) {
  margin: 0 0 1.35rem 0;
  color: rgba(26, 20, 16, 0.78);
  font-size: 1.05rem;
  max-width: 62ch;
}

/* Botones hero */
main > section:first-of-type > div > div {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 1.35rem;
}

main > section:first-of-type > div > div a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.05rem;
  border-radius: 999px;
  font-weight: 850;
  border: 1px solid rgba(26, 20, 16, 0.10);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

main > section:first-of-type > div > div a:first-child {
  color: #fff7ec;
  background: linear-gradient(135deg, #a15322 0%, #c1783f 45%, #8b3f1b 100%);
  box-shadow: 0 12px 30px rgba(139, 63, 27, 0.22);
  border-color: rgba(255, 255, 255, 0.18);
}

main > section:first-of-type > div > div a:last-child {
  background: rgba(255, 255, 255, 0.55);
  color: rgba(26, 20, 16, 0.88);
}

main > section:first-of-type > div > div a:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(26, 20, 16, 0.12);
}

/* Badges rápidos */
main > section:first-of-type > div > ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

main > section:first-of-type > div > ul li {
  padding: 0.6rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(26, 20, 16, 0.08);
  color: rgba(26, 20, 16, 0.82);
  font-weight: 700;
  font-size: 0.92rem;
}

/* Imagen hero */
main > section:first-of-type figure {
  margin: 0;
  border-radius: 1.25rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(26, 20, 16, 0.08);
  box-shadow: 0 26px 60px rgba(26, 20, 16, 0.12);
}

main > section:first-of-type figure img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

main > section:first-of-type figcaption {
  padding: 0.85rem 1rem;
  color: rgba(26, 20, 16, 0.70);
  font-weight: 650;
  font-size: 0.95rem;
}

/* Hero responsive */
@media (max-width: 900px) {
  main > section:first-of-type {
    grid-template-columns: 1fr;
  }
  main > section:first-of-type figure img {
    aspect-ratio: 16 / 10;
  }
}

/* =========================
   Destacados (cards)
   ========================= */
#destacados > div {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

#destacados article {
  padding: 1.2rem 1.1rem;
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(26, 20, 16, 0.08);
  box-shadow: 0 18px 45px rgba(26, 20, 16, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

#destacados article:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 65px rgba(26, 20, 16, 0.14);
}

#destacados h3 {
  margin: 0 0 0.4rem 0;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  min-height: 2.4em;
}

#destacados article p {
  margin: 0.4rem 0;
  color: rgba(26, 20, 16, 0.74);
}

#destacados article p strong {
  color: rgba(26, 20, 16, 0.92);
}

#destacados article p:first-of-type {
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#destacados article p:last-of-type {
  display: inline-block;
  padding: .35rem .6rem;
  border-radius: 999px;
  background: rgba(161, 83, 34, 0.10);
  color: #8b3f1b;
  font-weight: 800;
}

#destacados article img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 1rem;
  margin-bottom: 0.6rem;
}

@media (max-width: 980px) {
  #destacados > div { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  #destacados > div { grid-template-columns: 1fr; }
}

@media (max-width: 520px){
  #destacados article{padding: 1rem;}
  #destacados > div{ gap: 0.85rem;}
}

/* =========================
   Sección Plus / News Pill
   ========================= */
#plus {
  padding: 2rem 1rem;
  display: flex;
  justify-content: center; /* Centramos la píldora */
  width: 100%;
}

.news-pill {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  padding: 0.65rem 0.75rem;
  border-radius: 99px; /* Forma de píldora completa */
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.05), 
    0 2px 4px -1px rgba(0, 0, 0, 0.03),
    0 0 0 1px rgba(0,0,0,0.05); /* Borde sutil */
  max-width: 720px;
  width: 100%;
}

/* La etiqueta de "Novedades" */
.pill-badge {
  background: rgba(26, 20, 16, 0.9);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.4rem 0.8rem;
  border-radius: 99px;
  letter-spacing: 0.5px;
  flex-shrink: 0; /* Evita que se aplaste */
}

/* La "Ventana" que recorta el texto */
.rotator-window {
  height: 28px; /* Altura fija = altura de una línea de texto */
  overflow: hidden; /* Esconde lo que está fuera de la altura */
  flex-grow: 1;
  position: relative;
}

/* El contenedor que se mueve */
.rotator-text {
  /* Animación: nombre | duración | curva | delay | iteración */
  animation: slide-up 9s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.rotator-text p {
  height: 28px; /* Debe ser igual a la altura de .rotator-window */
  line-height: 28px; /* Centrado vertical perfecto */
  margin: 0;
  white-space: nowrap; /* Evita que el texto salte de línea */
  overflow: hidden;
  text-overflow: ellipsis; /* Puntos suspensivos si es muy largo */
  font-size: 0.95rem;
  color: #444;
}

.rotator-text strong {
  color: #000;
  font-weight: 700;
  margin-right: 0.4rem;
}

/* =========================
   Animación Keyframes
   ========================= 
   Cálculo para 3 mensajes + 1 clon:
   0%  -> Muestra 1
   33% -> Muestra 2
   66% -> Muestra 3
   100% -> Muestra 1 (Clon) y salta al inicio
*/
@keyframes slide-up {
  0%, 25% { transform: translateY(0); }       /* Mensaje 1 */
  33%, 58% { transform: translateY(-24px); }  /* Mensaje 2 */
  66%, 91% { transform: translateY(-48px); }  /* Mensaje 3 */
  100% { transform: translateY(-72px); }      /* Mensaje 1 (Clon) */
}

/* Ajuste Mobile: Permitir scroll horizontal si el texto es muy largo */
@media (max-width: 480px) {
  .news-pill {
    font-size: 0.85rem;
    padding: 0.4rem;
  }
  .pill-badge {
    padding: 0.3rem 0.6rem;
    font-size: 0.65rem;
  }
}

/* =========================
   Menú rápido
   ========================= */
#menu > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

#menu > div > section {
  padding: 1.15rem 1.1rem;
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(26, 20, 16, 0.08);
}

#menu h3 { margin: 0 0 0.6rem 0; }

#menu ul {
  padding: 0;
  list-style: none;
}

#menu li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  font-weight: 500;
  font-size: 1.05rem;
}

#menu li::after {
  content: "";
  flex-grow: 1;
  order: 2;
  border-bottom: 2px dotted rgba(26, 20, 16, 0.2);
  margin: 0 10px;
  position: relative;
  top: -4px;
}

#menu li strong {
  order: 3; /* El precio va al final */
  color: #a15322; /* Color acento */
  font-weight: 700;
}

#menu li span { /* Envuelve el nombre del platillo en un span en tu HTML si quieres */
  order: 1;
}

@media (max-width: 780px) {
  #menu > div { grid-template-columns: 1fr; }
}

/* =========================
   Redes (Diseño Moderno)
   ========================= */

/* Colores de marca localizados */
.instagram { --brand-color: #E1306C; } /* O el gradiente */
.tiktok    { --brand-color: #000000; }
.whatsapp  { --brand-color: #25D366; }
.google    { --brand-color: #4285F4; }

#redes .cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); /* Responsivo automático */
  gap: 1.5rem;
  padding: 1rem 0;
}

#redes article.card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: hidden;
}

/* Efecto Hover en la tarjeta completa */
#redes article.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.08);
  border-color: var(--brand-color); /* Borde sutil del color de la marca */
}

/* --- ÍCONOS --- */
#redes .icon-box {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: var(--brand-color);
  transition: transform 0.3s ease;
  
  /* Sombra suave detrás del icono */
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.12));
}

/* Caso especial: Gradiente de Instagram */
.instagram .icon-box i {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

#redes article.card:hover .icon-box {
  transform: scale(1.1) rotate(5deg);
}

/* --- TEXTOS --- */
#redes h3 {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
  font-weight: 700;
}

#redes p {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.4;
  flex-grow: 1; /* Esto empuja el botón siempre al fondo alineado */
}

/* --- BOTONES --- */
.btn-card {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  
  /* Estilo inicial: Outline con el color de la marca */
  border: 2px solid var(--brand-color);
  color: var(--brand-color);
  background: transparent;
}

/* Hover del botón: Se rellena de color */
.btn-card:hover {
  background: var(--brand-color);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Ajuste especial para botón de Instagram con gradiente */
.instagram .btn-card {
    border-color: #d6249f;
    color: #d6249f;
}
.instagram .btn-card:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border-color: transparent;
    color: white;
}

/* =========================
   Ubicación (datos + mapa)
   ========================= */
#ubicacion > div {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1rem;
  align-items: start;
}

#ubicacion > div > div {
  padding: 1.15rem 1.1rem;
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(26, 20, 16, 0.08);
  box-shadow: 0 18px 55px rgba(26, 20, 16, 0.08);
}

#ubicacion h3 {
  margin: 0.2rem 0 0.35rem 0;
  letter-spacing: -0.01em;
}

#ubicacion ul {
  margin: 0.4rem 0 0.9rem;
  padding-left: 1.05rem;
  color: rgba(26, 20, 16, 0.78);
}

#ubicacion iframe {
  border: 0;
  width: 100%;
  height: 340px;
  border-radius: 1rem;
}

@media (max-width: 900px) {
  #ubicacion > div { grid-template-columns: 1fr; }
  #ubicacion iframe { height: 300px; }
}

/* =========================
   Reseñas
   ========================= */
#resenas > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

#resenas figure {
  margin: 0;
  padding: 1.2rem 1.1rem;
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(26, 20, 16, 0.08);
  box-shadow: 0 18px 55px rgba(26, 20, 16, 0.08);
}

#resenas blockquote {
  margin: 0 0 0.8rem 0;
  color: rgba(26, 20, 16, 0.78);
  font-size: 1.02rem;
}

#resenas figcaption {
  color: rgba(26, 20, 16, 0.70);
  font-weight: 650;
}

@media (max-width: 980px) {
  #resenas > div { grid-template-columns: 1fr; }
}

/* =========================
   CTA final (AH Studio)
   ========================= */
#contacto {
  padding: 3rem 0 2rem;
}

#contacto > header p {
  max-width: 70ch;
}

#contacto > div {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}

#contacto > div a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.1rem;
  border-radius: 999px;
  font-weight: 900;
  border: 1px solid rgba(26, 20, 16, 0.10);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

#contacto > div a:first-child {
  color: #fff7ec;
  background: linear-gradient(135deg, #a15322 0%, #c1783f 45%, #8b3f1b 100%);
  box-shadow: 0 12px 30px rgba(139, 63, 27, 0.22);
  border-color: rgba(255, 255, 255, 0.18);
}

#contacto > div a:last-child {
  background: rgba(255, 255, 255, 0.55);
  color: rgba(26, 20, 16, 0.86);
}

#contacto > div a:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(26, 20, 16, 0.12);
}

#contacto small {
  display: block;
  margin-top: 1rem;
  color: rgba(26, 20, 16, 0.62);
}

/* =========================
   Footer
   ========================= */
footer {
  padding: 2.2rem 0 3rem;
  color: rgba(26, 20, 16, 0.72);
}

footer p { margin: 0.35rem 0; }
footer a {
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: rgba(26, 20, 16, 0.05);
  border: 1px solid rgba(26, 20, 16, 0.07);
}
footer a:hover { background: rgba(26, 20, 16, 0.08); }

/* =========================
   WhatsApp Floating Button (FAB)
   ========================= */
.wa-fab {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom));
  
  width: 60px;
  height: 60px;
  border-radius: 50%;
  
  display: flex;
  align-items: center;
  justify-content: center;
  
  color: #fff;
  background: #25D366;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  
  z-index: 9999; /* ✅ Siempre por encima de todo */
  
  will-change: transform, opacity;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-decoration: none;
}

.wa-fab i { 
  font-size: 2rem; 
}

.wa-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.22);
}

/* Estado oculto (lo aplicará JS con una clase) */
.wa-fab.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.8); 
}
.wa-fab {
  position: fixed; /* Debe ser hijo directo de body preferiblemente */
  right: 20px;
  /* Usamos bottom con un fallback seguro y env() para iPhone */
  bottom: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom));
  
  width: 60px;
  height: 60px;
  border-radius: 50%; /* 50% es más estándar para círculos */
  
  display: flex; /* Flex es mejor que inline-flex para centrar iconos */
  align-items: center;
  justify-content: center;
  
  color: #fff;
  background: #25D366;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3); /* Sombra más natural */
  
  z-index: 9999; /* Asegúrate que sea el rey de las capas */
  
  /* Optimizaciones para móvil */
  will-change: transform, opacity;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-decoration: none; /* Por si hereda subrayados */
}

.wa-fab i { 
    font-size: 2rem; 
}

/* Estado oculto */
.wa-fab.is-hidden {
  opacity: 0;
  pointer-events: none;
  /* Bajamos el botón y lo hacemos pequeño para una salida elegante */
  transform: translateY(20px) scale(0.8); 
}

@media (min-width: 861px){
  .wa-fab{ display: none; }
}

/* =========================================
   MENÚ MÓVIL (Hamburguesa)
   ========================================= */

/* 1. Estilos base del botón (Oculto en escritorio) */
.nav-toggle {
  display: none; /* Por defecto no se ve */
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 100; /* Siempre encima */
}

/* Las rayitas de la hamburguesa */
.nav-toggle .bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: #1a1410;
  border-radius: 3px;
  transition: all 0.3s ease-in-out;
}

/* 2. Responsive: Cuando la pantalla es menor a 860px */
@media (max-width: 860px) {
  
  /* Mostrar el botón hamburguesa */
  .nav-toggle {
    display: block;
    grid-area: cta; /* Lo ponemos donde estaba el botón de pedir */
    justify-self: end;
  }

  /* Ocultar el botón "Pedir ahora" de escritorio */
  .cta-desktop {
    display: none !important;
  }

  /* Transformar la lista <ul> en un panel lateral */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%; /* Escondido a la derecha */
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: rgba(255, 247, 236, 0.95); /* Color crema sólido */
    backdrop-filter: blur(15px); /* Efecto glass */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1); /* Animación suave */
    z-index: 90;
    padding: 2rem;
  }

  /* Cuando JS agrega la clase 'active', el menú entra */
  .nav-menu.active {
    right: 0;
  }

  .nav-menu li {
    font-size: 1.2rem;
  }

  /* Estilo especial para el botón "Pedir" dentro del menú móvil */
  .mobile-cta .btn-pedir {
    background: #a15322;
    color: white !important;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 10px 20px rgba(161, 83, 34, 0.3);
  }
}

/* 3. Animación de la Hamburguesa a "X" */
.nav-toggle.active .bar:nth-child(2) {
  opacity: 0; /* Desaparece la del medio */
}

.nav-toggle.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 600px){
  header{ padding: 0.6rem 0; }
  header > nav{ padding: 0.3rem 0; }

  main{ padding: 0.8rem 0 2rem; }

  main > section{ padding: 2.4rem 0; } /* antes 3.2rem */
  main > section:first-of-type{ padding-top: 1.2rem !important; }
}

/* =========================
   Toques finos
   ========================= */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger (retraso en cascada) para las cards de destacados */
#destacados article {
  /* Esto asegura que si animamos el contenedor, las cards fluyan bien */
  transition: transform 0.3s ease, box-shadow 0.3s ease; 
}

::selection {
  background: rgba(193, 120, 63, 0.25);
}

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