/* ═══════════════════════════════════════════════════
   VOLVER A VERTE CAFÉ — styles.css
   Estilo retro inspirado en Johnny Rockets.

   ESTRUCTURA DE SECCIONES:
     1. Variables globales y reset base
     2. Tipografía y botones
     3. Navbar (sticky, hamburger móvil)
     4. Hero (portada con foto y texto)
     5. Tab Bar (barra de categorías del menú)
     6. Menú del Día (tarjetas dinámicas)
     7. Menú Completo (grid de platillos)
     8. Nosotros
     9. Encuesta CTA
    10. Instagram
    11. Ubicación (info + mapa)
    12. Footer
    13. Responsive (tablet y móvil)
   ═══════════════════════════════════════════════════ */

/* ── RESET & BASE ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Variables globales de diseño.
   Para cambiar el color rojo de la marca, solo modifica --red aquí. */
:root {
  --red: #D32F2F;          /* color principal de la marca */
  --red-dark: #B71C1C;     /* hover del rojo */
  --white: #FFFFFF;
  --cream: #FFFAF8;        /* fondo general, tono crema cálido */
  --text: #212121;         /* texto principal */
  --text-gray: #555555;    /* texto secundario */
  --text-light: #888888;   /* texto de ayuda, etiquetas pequeñas */
  --shadow: 0 2px 12px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.14);
  --radius: 14px;
  --navbar-h: 72px;        /* altura del navbar — úsala en cálculos de offset */
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--cream);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ── TYPOGRAPHY ── */
.dancing { font-family: 'Dancing Script', cursive; }
.playfair { font-family: 'Playfair Display', serif; font-weight: 700; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
  white-space: nowrap;
}

.btn:active { transform: scale(0.97); }

.btn-red {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-red:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.btn-outline {
  background: transparent;
  color: var(--red);
  border-color: var(--red);
}
.btn-outline:hover {
  background: var(--red);
  color: var(--white);
}

.btn-white-red {
  background: var(--white);
  color: var(--red);
  border-color: var(--white);
  font-weight: 700;
}
.btn-white-red:hover {
  background: #f5f5f5;
}

/* ── TIRA DE CUADROS ROJOS Y BLANCOS (estilo retro) ──
   Usa repeating-conic-gradient para crear el patrón de ajedrez.
   background-size define el tamaño de cada cuadro (20px × 20px). */
.checkered-strip {
  width: 100%;
  height: 20px;
  background-image: repeating-conic-gradient(#D32F2F 0% 25%, #FFFFFF 0% 50%);
  background-size: 20px 20px;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════
   SECTION 1 — NAVBAR
══════════════════════════════════════════════════ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  transition: box-shadow 0.3s;
}

.navbar.scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,0.13);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--navbar-h);
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nav-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
}
.nav-logo-fallback {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-script {
  font-family: 'Dancing Script', cursive;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--red);
}
.logo-sub {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-gray);
  margin-top: -2px;
}

/* Desktop links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--red);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.2s;
}
.nav-link:hover::after { width: 100%; }

.nav-survey {
  margin-left: auto;
  flex-shrink: 0;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid #f0f0f0;
  padding: 8px 0 16px;
}
.mobile-menu.open { display: flex; }

.mobile-link {
  padding: 14px 24px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  border-bottom: 1px solid #f8f8f8;
  transition: background 0.15s;
}
.mobile-link:hover { background: #fafafa; }
.mobile-survey {
  margin: 12px 24px 0;
  background: var(--red);
  color: var(--white);
  border-radius: 50px;
  text-align: center;
  border-bottom: none;
}
.mobile-survey:hover { background: var(--red-dark); }

/* ══════════════════════════════════════════════════
   SECTION 2 — HERO
══════════════════════════════════════════════════ */
.hero {
  background: var(--cream);
  padding: 72px 24px 60px;
}

.hero-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 12px;
}

.hero-title {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  line-height: 1;
}
.hero-script {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: #2C6FA6;
  line-height: 1.1;
}
.hero-bold {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: var(--red);
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: 0.02em;
}

.hero-body {
  font-size: 1rem;
  color: var(--text-gray);
  margin-bottom: 32px;
  max-width: 420px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero image */
.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-frame {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 3px solid var(--red);
  box-shadow: var(--shadow-lg);
  max-width: 460px;
  width: 100%;
  background: #FFF0F0;
  aspect-ratio: 4/3;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  height: 100%;
  min-height: 300px;
  background: radial-gradient(circle at 60% 40%, #FFF4F0 0%, #FFE8E0 100%);
  padding: 32px;
}
.hero-placeholder-logo {
  max-width: 200px;
  width: 70%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(211,47,47,0.15));
}
.hero-placeholder p {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
}

/* ── TAB BAR ── */
.tab-bar-wrapper {
  position: sticky;
  top: var(--navbar-h);
  z-index: 900;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  border-bottom: 2px solid #f0f0f0;
}

.tab-bar {
  max-width: 100%;
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 16px;
  border-radius: 0;
  gap: 0;
}
.tab-bar::-webkit-scrollbar { display: none; }

.tab-btn {
  flex-shrink: 0;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 14px 18px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-gray);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tab-icon {
  width: 16px;
  height: 16px;
  fill: var(--red);
  flex-shrink: 0;
}
.tab-btn:hover { color: var(--red); }
.tab-btn.active {
  color: var(--red);
  border-bottom-color: var(--red);
}

/* ══════════════════════════════════════════════════
   SECTION 3 — MENÚ DEL DÍA
══════════════════════════════════════════════════ */
.menu-del-dia-section {
  background: #FFF0F0;
  padding-bottom: 0;
}

.section-title-wrap {
  text-align: center;
  padding: 40px 24px 32px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.menu-del-dia-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 24px 48px;
}

/* Spinner */
.spinner-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 48px;
  color: var(--text-light);
  font-size: 0.9rem;
}
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3e0e0;
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Daily cards — se adapta a 2 o 3 columnas según las tarjetas visibles */
.daily-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.daily-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 2px solid #f9e0e0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.daily-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFEBEE;
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  align-self: flex-start;
  letter-spacing: 0.04em;
}

.daily-badge--promo {
  background: #FFF8E1;
  color: #E65100;
}

.daily-card-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--red);
}

.daily-card-desc {
  font-size: 0.9rem;
  color: var(--text-gray);
  line-height: 1.6;
}

.comida-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.comida-row {
  font-size: 0.9rem;
  color: var(--text-gray);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}
.comida-icon { flex-shrink: 0; }
.comida-label {
  font-weight: 600;
  color: var(--text);
  flex-shrink: 0;
}

.daily-price {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--red);
  margin-top: auto;
  align-self: flex-end;
}

.daily-fallback {
  text-align: center;
  padding: 48px;
  font-size: 1.1rem;
  color: var(--text-gray);
  font-family: 'Dancing Script', cursive;
  font-size: 1.5rem;
}

/* ══════════════════════════════════════════════════
   SECTION 4 — MENÚ COMPLETO
══════════════════════════════════════════════════ */
.menu-completo {
  background: var(--white);
}

.menu-category {
  background: var(--white);
}

.category-header {
  text-align: center;
  padding: 40px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.category-banner {
  max-height: 260px;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 0 auto 24px;
  max-width: 960px;
  display: block;
}

.category-title {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 2.8rem); /* más grande para que se vea bien */
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  text-align: center;
  width: 100%;
}

.category-info {
  font-size: 0.9rem;
  color: var(--text-gray);
  font-weight: 500;
  margin-bottom: 4px;
}

.category-note {
  font-size: 0.85rem;
  color: var(--text-light);
  font-style: italic;
}

/* Franja de color para categorías que no tienen foto de banner.
   El color se pasa desde el HTML con: style="--band-color: #FFF8E1;"
   El ::before agrega líneas diagonales semitransparentes decorativas. */
.category-color-band {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 24px;
  height: 100px;
  background-color: var(--band-color, #FFF8E1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  position: relative;
  overflow: hidden;
}
.category-color-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,0) 0px,
    rgba(255,255,255,0) 8px,
    rgba(255,255,255,0.4) 8px,
    rgba(255,255,255,0.4) 9px
  );
  pointer-events: none;
}

/* Cards Grid */
.cards-grid {
  max-width: 1140px;
  margin: 0 auto;
  padding: 32px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Food Card */
.food-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  border: 2px solid transparent;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  cursor: default;
}

.food-card:hover {
  border-color: var(--red);
  box-shadow: 0 6px 24px rgba(211,47,47,0.15);
  transform: translateY(-3px);
}

.card-emoji-block {
  width: 100%;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  position: relative;
  overflow: hidden;
}
/* Subtle diagonal stripe texture on emoji blocks */
.card-emoji-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,0) 0px,
    rgba(255,255,255,0) 6px,
    rgba(255,255,255,0.35) 6px,
    rgba(255,255,255,0.35) 7px
  );
  pointer-events: none;
}

.card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.card-name {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--red);
  line-height: 1.3;
}

.card-desc {
  font-size: 0.88rem;
  color: var(--text-gray);
  line-height: 1.55;
  flex: 1;
}

.card-price {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: var(--red);
  align-self: flex-end;
  margin-top: 8px;
}

/* ══════════════════════════════════════════════════
   SECTION 5 — NOSOTROS
══════════════════════════════════════════════════ */
.nosotros {
  background: var(--cream);
  padding: 80px 24px;
}

.nosotros-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.nosotros-image-frame {
  border-radius: 24px;
  overflow: hidden;
  border: 3px solid var(--red);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  background: #FFF0F0;
}

.nosotros-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nosotros-placeholder {
  width: 100%;
  height: 100%;
  min-height: 280px;
  background: linear-gradient(135deg, #FFF0E8 0%, #FFE0D0 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 32px;
}
.nosotros-placeholder img {
  max-width: 180px;
  width: 60%;
  height: auto;
  object-fit: contain;
}
.nosotros-placeholder-text {
  font-family: 'Dancing Script', cursive;
  font-size: 1.6rem;
  color: var(--red);
  text-align: center;
  font-weight: 700;
}

.nosotros-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 12px;
}

.nosotros-title {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 20px;
}

.nosotros-body {
  font-size: 0.95rem;
  color: var(--text-gray);
  line-height: 1.75;
  margin-bottom: 32px;
}

.nosotros-stats {
  display: flex;
  gap: 16px;
}

.stat-box {
  flex: 1;
  background: var(--white);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border: 1px solid #f0e8e8;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--red);
}

.stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ══════════════════════════════════════════════════
   SECTION 6 — ENCUESTA CTA
══════════════════════════════════════════════════ */
.encuesta-cta {
  background: var(--red);
  background-image:
    repeating-conic-gradient(rgba(255,255,255,0.06) 0% 25%, transparent 0% 50%);
  background-size: 24px 24px;
  padding: 72px 24px;
  text-align: center;
}

.encuesta-content {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.encuesta-title {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--white);
  line-height: 1.1;
}

.encuesta-subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.6;
  max-width: 480px;
}

/* ══════════════════════════════════════════════════
   SECTION 7/8 — UBICACIÓN (old rules removed — new ones at bottom)
══════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════
   SECTION 8 — FOOTER
══════════════════════════════════════════════════ */
.footer {
  background: #111111;
  padding: 48px 24px 0;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 180px;
}

/* Texto del logo en el footer (siempre visible — el JPEG tiene fondo blanco
   y no puede usarse con filtros en el footer oscuro) */
.footer-logo-fallback {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-logo-script {
  font-family: 'Dancing Script', cursive;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
}

.footer-logo-sub {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.08em;
}

.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
  flex: 1;
}

.footer-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.footer-link:hover { color: var(--white); }

.footer-social {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  min-width: 80px;
}

.social-link {
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}
.social-link:hover { color: var(--white); }

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}

/* ══════════════════════════════════════════════════
   RESPONSIVE — TABLET (≤ 1024px)
══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ══════════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 768px)
══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  :root { --navbar-h: 64px; }

  /* Navbar */
  .nav-links { display: none; }
  .nav-survey { display: none; }
  .hamburger { display: flex; margin-left: auto; }

  /* Hero */
  .hero { padding: 48px 20px 40px; }
  .hero-container {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }
  .hero-body { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero-right { order: -1; }
  .hero-image-frame { max-width: 320px; margin: 0 auto; }

  /* Tab bar */
  .tab-btn { padding: 12px 14px; font-size: 0.84rem; }

  /* Menu del dia */
  .daily-cards { grid-template-columns: 1fr; }

  /* Cards */
  .cards-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }

  /* Nosotros */
  .nosotros { padding: 60px 20px; }
  .nosotros-container {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .nosotros-stats { gap: 10px; }
  .stat-box { padding: 12px 10px; }
  .stat-number { font-size: 0.9rem; }

  /* Ubicación */
  .ubicacion-top { padding: 40px 20px 24px; }

  /* Footer */
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
  }
  .footer-brand { align-items: center; }
  .footer-social { justify-content: center; }
}

/* ══════════════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE (≤ 480px)
══════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .cards-grid { grid-template-columns: 1fr; }
  .hero-image-frame { max-width: 260px; }
  .nosotros-stats { flex-direction: column; }
  .btn { padding: 11px 22px; font-size: 0.8rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
}

/* ══════════════════════════════════════════════════
   CATEGORY CONTEXT BAR
   Changes as you scroll through menu sections
══════════════════════════════════════════════════ */
.category-context-bar {
  background: var(--cream);
  border-bottom: 2px solid #f0ebe8;
  padding: 10px 24px;
  /* Usamos visibility+opacity en lugar de display:none para mantener
     el elemento en el flujo del documento (evita saltos de layout) */
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  position: sticky;
  top: calc(var(--navbar-h) + 48px); /* debajo del navbar + barra de tabs */
  z-index: 850;
  transition: opacity 0.3s, visibility 0.3s, background 0.4s;
}
.category-context-bar.visible {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.context-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.context-icon {
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 0.3s;
}
.context-name {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.15rem; /* más grande para ser legible */
  color: var(--red);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: opacity 0.25s;
}
/* Fade animation when category changes */
.category-context-bar.changing .context-icon,
.category-context-bar.changing .context-name {
  opacity: 0;
  transform: translateY(-4px);
}

/* ══════════════════════════════════════════════════
   FOTO DE TARJETA DE PLATILLO
   JavaScript intenta cargar img/Menu/[nombre-platillo].jpg.
   Si existe → muestra esta foto y oculta el .card-emoji-block.
   Si no existe → .card-emoji-block queda visible (placeholder con emoji).
   Guarda tus fotos en img/Menu/ con el nombre exacto del platillo
   (en minúsculas, sin acentos, separado por guiones).
   Ver docs/fotos-necesarias.md para la lista completa de nombres.
══════════════════════════════════════════════════ */
.card-photo {
  width: 100%;
  height: 160px;
  object-fit: cover;  /* recorta para llenar el espacio sin deformar */
  display: block;
  border-radius: 0;
}

/* ── Colores de fondo para el bloque de emoji de cada tarjeta ──
   Estas clases reemplazan los inline style="background:..." del HTML.
   Se usan en .card-emoji-block según el tipo de platillo:
     eb-yellow  → huevos, pollo, cereales
     eb-pink    → picante, chile, carnes rojas
     eb-green   → ensaladas, vegetales, saludable
     eb-orange  → pan, tortillas, antojitos cálidos
     eb-salmon  → antojitos mexicanos, mole
     eb-blue    → sopas, bebidas frías, atún
     eb-rose    → dulces, postres, fresa
     eb-coffee  → café, chocolate, bebidas calientes
     eb-lavender→ especial, diferente */
.eb-yellow   { background: #FFF8E1; }
.eb-pink     { background: #FFEBEE; }
.eb-green    { background: #E8F5E9; }
.eb-orange   { background: #FFF3E0; }
.eb-salmon   { background: #FBE9E7; }
.eb-blue     { background: #E3F2FD; }
.eb-rose     { background: #FCE4EC; }
.eb-coffee   { background: #EFEBE9; }
.eb-lavender { background: #E8EAF6; }

/* ══════════════════════════════════════════════════
   INSTAGRAM SECTION
══════════════════════════════════════════════════ */
.instagram-section {
  background: var(--cream);
}

.insta-title-wrap {
  padding: 48px 24px 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  text-align: center;
}

.insta-heading {
  display: flex;
  flex-direction: column;
  line-height: 1;
  align-items: center;
}
.insta-script {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(2rem, 4vw, 3rem);
  color: #2C6FA6;
  line-height: 1.1;
}
.insta-bold {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.05;
}

.insta-social-icons {
  display: flex;
  gap: 12px;
  align-items: center;
}
.insta-icon-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.15s;
  flex-shrink: 0;
}
.insta-icon-btn:hover {
  background: var(--red-dark);
  transform: scale(1.08);
}

.insta-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 36px 24px 48px;
  text-align: center;
}

.insta-handle {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-light);
  letter-spacing: 0.08em;
  margin-bottom: 28px;
}

.insta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}

/* Each post card */
.insta-post {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  display: block;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  transition: transform 0.2s, box-shadow 0.2s;
}
.insta-post:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 10px 32px rgba(0,0,0,0.18);
}

/* Real photo (on top when loaded) */
.insta-post-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}

/* Gradient placeholder (behind photo).
   Los colores de cada post se definen con clases .insta-bg-N
   en lugar de inline style="background:..." en el HTML. */
.insta-post-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  z-index: 1;
}
.insta-bg-1 { background: linear-gradient(135deg, #FFB347 0%, #D32F2F 100%); } /* café/rojo cálido */
.insta-bg-2 { background: linear-gradient(135deg, #FFECD2 0%, #D4A96A 100%); } /* crema/dorado */
.insta-bg-3 { background: linear-gradient(135deg, #A8D8A8 0%, #52B788 100%); } /* verde fresco */
.insta-bg-4 { background: linear-gradient(135deg, #FFCB77 0%, #D4A96A 100%); } /* dorado/naranja */
.insta-bg-5 { background: linear-gradient(135deg, #8B5E3C 0%, #5D3A2E 100%); } /* café oscuro/chocolate */
.insta-bg-6 { background: linear-gradient(135deg, #FFD1DC 0%, #FFB3BA 100%); } /* rosa suave */

/* Hover overlay */
.insta-post-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.25s;
  z-index: 3;
}
.insta-post:hover .insta-post-overlay { opacity: 1; }
.insta-post-overlay span {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
}

.insta-follow-btn {
  margin: 0 auto;
  display: inline-flex;
}

/* ══════════════════════════════════════════════════
   UBICACIÓN — Stacked layout (info row + full map)
══════════════════════════════════════════════════ */
.ubicacion {
  background: var(--white);
}

.ubicacion-top {
  padding: 56px 24px 32px;
}

.ubicacion-top-inner {
  max-width: 1140px;
  margin: 0 auto;
}

.ubicacion-title {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: 2rem;
  color: #212121;
  margin-bottom: 28px;
  text-align: center;
}

.ubicacion-info-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.info-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 16px 12px;
  background: rgba(0,0,0,0.03);
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.08);
  transition: background 0.2s;
}
.info-card:hover { background: rgba(211,47,47,0.06); }

.info-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.info-card strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 4px;
}

.info-card p {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.55;
}

.info-link {
  color: var(--red);
  text-decoration: underline;
  transition: color 0.2s;
}
.info-link:hover { color: var(--red-dark); }

/* Full-width map */
.ubicacion-map-full {
  width: 100%;
  line-height: 0; /* remove gap below iframe */
}
.ubicacion-map-full iframe {
  display: block;
  width: 100%;
  border: 0; /* quitamos el borde que algunos navegadores agregan por defecto */
}

/* ══════════════════════════════════════════════════
   SCROLL TO TOP BUTTON
══════════════════════════════════════════════════ */
.scroll-top-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(211,47,47,0.35);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  z-index: 2000;
  pointer-events: none;
}
.scroll-top-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.scroll-top-btn:hover { background: var(--red-dark); }

/* ── Responsive overrides for new sections ── */
@media (max-width: 1024px) {
  .ubicacion-info-row { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .category-context-bar { top: calc(64px + 44px); }
  .insta-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .ubicacion-info-row { grid-template-columns: repeat(2, 1fr); }
  .insta-title-wrap { gap: 16px; }
}

@media (max-width: 480px) {
  .insta-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .ubicacion-info-row { grid-template-columns: 1fr; }
  .scroll-top-btn { bottom: 18px; right: 18px; width: 40px; height: 40px; }
}
