/* ═══════════════════════════════════════════════════════════════
   CARNITAS EL GÜERO · APATZINGÁN  — Light & Clean Mode
   Misma estructura que la v3 · Paleta completamente clara
   ─────────────────────────────────────────────────────────────
   Fondo base:  #FFFFFF / #F7F2EB (crema muy suave)
   Primario:    #CC2222  (rojo logo)
   Acento:      #E8A800  (dorado/amarillo logo)
   Verde:       #4A7C3F  (verde logo, detalles)
   Texto:       #1E1208  (café oscuro cálido)
   Texto medio: #5C3D2E
   Texto claro: #9C7B6A
═══════════════════════════════════════════════════════════════ */

:root {
  /* ── Fondos ── */
  --bg:           #FFFFFF;
  --bg-alt:       #F7F2EB;
  --bg-alt2:      #EFE8DC;
  --bg-card:      #FFFFFF;
  --border:       #E4D9CC;
  --border-light: #F0E8DE;

  /* ── Colores del logo ── */
  --red:          #CC2222;
  --red-dark:     #A81A1A;
  --red-light:    #E63333;
  --red-bg:       rgba(204,34,34,.07);
  --red-bg2:      rgba(204,34,34,.13);

  --gold:         #E8A800;
  --gold-dark:    #C48E00;
  --gold-light:   #F5BC1A;
  --gold-bg:      rgba(232,168,0,.10);
  --gold-border:  rgba(232,168,0,.30);

  --green:        #4A7C3F;
  --green-bg:     rgba(74,124,63,.08);

  --blue-logo:    #1A4FA0;

  /* ── Texto ── */
  --ink:          #1E1208;
  --ink-mid:      #5C3D2E;
  --ink-light:    #9C7B6A;
  --ink-xlight:   #C4ADA0;

  /* ── Sombras ── */
  --sh-xs:  0 1px 4px rgba(30,18,8,.07);
  --sh-sm:  0 3px 12px rgba(30,18,8,.10);
  --sh-md:  0 8px 28px rgba(30,18,8,.14);
  --sh-lg:  0 20px 60px rgba(30,18,8,.18);
  --sh-red: 0 8px 24px rgba(204,34,34,.28);

  /* ── Radios ── */
  --r:    10px;
  --r-l:  20px;
  --r-xl: 32px;

  /* ── Tipografía ── */
  --display: 'Bebas Neue', Impact, sans-serif;
  --body:    'DM Sans', system-ui, -apple-system, sans-serif;
  --serif:   'Lora', Georgia, serif;
}

/* ── Reset & base ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; }
body { font-family: var(--body); background: var(--bg); color: var(--ink); overflow-x: hidden; line-height: 1.65; }
img  { display: block; max-width: 100%; }
a    { color: inherit; text-decoration: none; }
.container { width: min(1180px, 92vw); margin-inline: auto; }

/* ── Encabezados de sección ─────────────────── */
.s-header { text-align: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.s-tag {
  display: inline-block;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-dark);
  border: 1px solid var(--gold-border);
  background: var(--gold-bg);
  padding: .3rem 1rem;
  border-radius: 100px;
  margin-bottom: .8rem;
}
.s-title {
  font-family: var(--display);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  letter-spacing: .04em; line-height: 1;
  color: var(--ink);
}
.s-rule {
  width: 50px; height: 4px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  border-radius: 2px;
  margin: 1rem auto 0;
}
.s-intro {
  max-width: 560px; margin: 1.2rem auto 0;
  font-size: 1rem; color: var(--ink-light); line-height: 1.7;
}

/* ── Botones ──────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 2.2rem;
  background: var(--red); color: #fff;
  font-family: var(--body); font-weight: 700; font-size: 1rem;
  border-radius: 100px;
  border: 2px solid var(--red);
  transition: all .25s;
}
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-2px); box-shadow: var(--sh-red); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 2rem;
  background: transparent; color: var(--ink);
  font-family: var(--body); font-weight: 700; font-size: 1rem;
  border-radius: 100px;
  border: 2px solid var(--border);
  transition: all .25s;
}
.btn-secondary:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); }

.btn-fb {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .75rem 1.8rem;
  background: #1877F2; color: #fff;
  font-weight: 700; font-size: .9rem;
  border-radius: 100px;
  margin-top: 1rem;
  transition: all .25s;
}
.btn-fb:hover { background: #0e5fc1; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(24,119,242,.3); }

.btn-wa-big {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 2rem; margin-top: 2rem;
  background: #25D366; color: #fff;
  border-radius: 100px;
  font-weight: 700; font-size: 1rem;
  align-self: flex-start;
  transition: all .25s;
}
.btn-wa-big:hover { background: #128C7E; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,211,102,.4); }

/* ═══════════════════════════════════════════════════════════════
   NAVBAR
   • Transparente sobre el hero (muestra la imagen de fondo)
   • Logo oculto mientras está sobre el hero
   • Al salir del hero → fondo blanco sólido + logo visible
═══════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed; inset: 0 0 auto; z-index: 1000;
  /* Transparente por defecto — deja ver la imagen del hero */
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .4s ease, border-color .4s ease, box-shadow .4s ease;
}

/* Estado sólido — se activa con JS al salir del hero */
.navbar.solid {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(16px);
  border-bottom: 2px solid var(--gold-border);
  box-shadow: var(--sh-md);
}

.nav-inner {
  display: flex; align-items: center; gap: 1.5rem;
  width: min(1180px, 96vw);
  margin-inline: auto;
  height: 70px;
}

/* Logo: oculto en hero, visible cuando el navbar es sólido */
.nav-brand {
  display: flex; align-items: center; gap: .75rem; flex-shrink: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-10px);
  transition: opacity .35s ease, transform .35s ease;
}
.navbar.solid .nav-brand {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.nav-logo-img {
  width: 50px; height: 50px; object-fit: contain;
  border-radius: 50%; border: 2px solid var(--gold-border);
  background: var(--bg); padding: 3px;
}
.nav-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.nb-main { font-family: var(--display); font-size: 1.3rem; letter-spacing: .06em; color: var(--red); }
.nb-sub  { font-size: .64rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-light); }

/* Links: blancos sobre imagen, oscuros sobre fondo sólido */
.nav-links { display: flex; gap: 1.8rem; margin-left: auto; }
.nav-links a {
  font-size: .86rem; font-weight: 700;
  color: rgba(255,255,255,.92);
  position: relative; padding-bottom: 3px;
  transition: color .25s;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px; background: var(--gold);
  transition: width .25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold-light); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* Cuando el navbar es sólido los links cambian a oscuro */
.navbar.solid .nav-links a {
  color: var(--ink-mid);
  text-shadow: none;
}
.navbar.solid .nav-links a::after { background: var(--red); }
.navbar.solid .nav-links a:hover,
.navbar.solid .nav-links a.active { color: var(--red); }

.nav-wa-btn {
  display: flex; align-items: center; gap: .45rem;
  padding: .55rem 1.3rem;
  background: #25D366; color: #fff;
  border-radius: 100px;
  font-weight: 700; font-size: .85rem;
  flex-shrink: 0;
  transition: all .25s;
}
.nav-wa-btn:hover { background: #128C7E; transform: translateY(-1px); }

/* Hamburger: blanco sobre imagen, oscuro sobre sólido */
.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px; flex-shrink: 0;
}
.nav-burger span {
  display: block; width: 24px; height: 2.5px;
  background: #fff;
  border-radius: 2px; transition: all .3s;
}
.navbar.solid .nav-burger span { background: var(--ink); }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-drawer {
  display: none; flex-direction: column;
  background: var(--bg);
  border-top: 1px solid var(--border-light);
  padding: 1rem 5%;
}
.nav-drawer.open { display: flex; }
.nav-drawer a { padding: .75rem 0; font-weight: 600; color: var(--ink-mid); border-bottom: 1px solid var(--border-light); transition: color .2s; text-shadow: none; }
.nav-drawer a:hover { color: var(--red); }
.nd-wa { margin-top: .8rem; background: #25D366; color: #fff; text-align: center; padding: .9rem; border-radius: 100px; font-weight: 700; }

/* ═══════════════════════════════════════════════════════════════
   HERO — imagen de fondo real, texto a la DERECHA, logo a la IZQUIERDA
═══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;           /* svh = stable viewport height, funciona mejor en móvil */
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* ── Imagen de fondo ──
   Coloca tu foto en img/hero-bg.jpg
   La imagen cubre todo el hero a cualquier tamaño de pantalla.
   background-attachment: fixed da efecto parallax en desktop;
   en móvil se desactiva (ver media query) para evitar bugs de Safari/iOS.
*/
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/hero-bg.jpg');
  background-color: #7a2e0a;   /* fallback mientras carga la foto */
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* parallax suave en desktop */
  z-index: 0;
}

/* ── Overlay gradiente ──
   Desktop: más oscuro a la derecha (donde va el texto)
   Móvil: oscuro uniforme para que el texto se lea bien
   sobre cualquier parte de la imagen
*/
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      to left,
      rgba(8,3,0,.82) 0%,
      rgba(8,3,0,.60) 38%,
      rgba(8,3,0,.32) 65%,
      rgba(8,3,0,.18) 100%
    ),
    radial-gradient(ellipse at center, transparent 35%, rgba(0,0,0,.40) 100%);
}

/* ── Grid desktop: logo izquierda | texto derecha ── */
.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, 92vw);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 460px 1fr;
  align-items: center;
  gap: 4rem;
  padding-block: 5rem;
  min-height: 100svh;
}

/* ── Texto (columna derecha) — blanco sobre imagen oscura ── */
.hero-copy { /* sin cambios de posición — ya está en col 2 por el orden del HTML */ }

.hero-tag {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.2rem;
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
}

.hero-h1 { font-family: var(--display); line-height: .95; margin-bottom: 1.5rem; }
.h1-line1 {
  display: block;
  font-size: clamp(3.8rem, 8vw, 7rem);
  color: #fff;
  letter-spacing: .04em;
  text-shadow: 0 2px 16px rgba(0,0,0,.5);
}
.h1-line2 {
  display: block;
  font-size: clamp(4.5rem, 10vw, 8.5rem);
  letter-spacing: .02em;
  /* Gradiente rojo → dorado del logo */
  background: linear-gradient(135deg, var(--red-light) 0%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.4));
}

.hero-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,.88);
  line-height: 1.7;
  margin-bottom: 2rem; max-width: 440px;
  text-shadow: 0 1px 6px rgba(0,0,0,.4);
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }

/* Botón secundario sobre imagen: borde blanco */
.btn-hero-sec {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 2rem;
  background: rgba(255,255,255,.15);
  color: #fff;
  font-family: var(--body); font-weight: 700; font-size: 1rem;
  border-radius: 100px;
  border: 2px solid rgba(255,255,255,.55);
  backdrop-filter: blur(6px);
  transition: all .25s;
}
.btn-hero-sec:hover { background: rgba(255,255,255,.28); border-color: #fff; transform: translateY(-2px); }

/* Horario — vidrio sobre imagen */
.hero-hours-row {
  display: inline-flex; align-items: flex-start; gap: .75rem;
  padding: .9rem 1.3rem;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--r);
  backdrop-filter: blur(8px);
  max-width: 400px;
}
.hero-hours-row i { color: var(--gold-light); margin-top: .22rem; }
.hero-hours-row div { display: flex; flex-direction: column; gap: .22rem; }
.hero-hours-row p { font-size: .88rem; font-weight: 600; color: rgba(255,255,255,.88); }

/* ── Logo flotante (columna izquierda) ── */
.hero-logo-col {
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.hero-logo-ring {
  position: relative; z-index: 2;
  width: 360px; height: 360px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,.5);
  box-shadow:
    0 0 0 8px rgba(232,168,0,.25),
    0 0 0 10px rgba(255,255,255,.1),
    0 30px 80px rgba(0,0,0,.5);
  overflow: hidden;
  background: rgba(255,255,255,.95);
  animation: floatLogo 6s ease-in-out infinite;
}
.hero-logo-ring img { width: 100%; height: 100%; object-fit: contain; padding: 20px; }

@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-16px); }
}

/* Chips — vidrio sobre imagen */
.hero-chip {
  position: absolute;
  background: rgba(255,255,255,.18);
  border: 1.5px solid rgba(255,255,255,.45);
  color: #fff;
  font-size: .78rem; font-weight: 700;
  padding: .45rem 1rem;
  border-radius: 100px;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
  animation: floatChip 5s ease-in-out infinite;
}
.chip-1 { top: 8%;  left: -10%; animation-delay: 0s; }
.chip-2 {
  top: 45%; right: -8%; animation-delay: 1.5s;
  color: var(--gold-light);
  border-color: var(--gold-border);
  background: rgba(232,168,0,.22);
}
.chip-3 {
  bottom: 10%; left: -5%; animation-delay: 3s;
  color: #fff;
  background: rgba(204,34,34,.3);
  border-color: rgba(204,34,34,.5);
}

@keyframes floatChip {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* Botón scroll */
.hero-scroll-hint {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  background: rgba(255,255,255,.15);
  border: 2px solid rgba(255,255,255,.45);
  backdrop-filter: blur(6px);
  width: 44px; height: 44px; border-radius: 50%;
  color: rgba(255,255,255,.8); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  animation: bounce 2.5s infinite;
  transition: background .2s, border-color .2s;
  z-index: 3;
}
.hero-scroll-hint:hover { background: rgba(255,255,255,.28); border-color: #fff; color: #fff; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(9px); }
}

/* ═══════════════════════════════════════════════════════════════
   TICKER — rojo sólido igual que v3
═══════════════════════════════════════════════════════════════ */
.ticker {
  overflow: hidden; background: var(--red);
  padding-block: .95rem;
  border-block: 3px solid var(--gold);
}
.ticker-track {
  display: flex; gap: 2.5rem; white-space: nowrap;
  animation: marquee 32s linear infinite;
}
.ticker-track span { font-size: .85rem; font-weight: 700; letter-spacing: .07em; color: rgba(255,255,255,.92); flex-shrink: 0; }
.ticker-track em   { color: var(--gold-light); font-style: normal; margin-right: .4rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-33.333%); } }

/* ═══════════════════════════════════════════════════════════════
   MENÚ — fondo blanco alternado
═══════════════════════════════════════════════════════════════ */
.s-menu { background: var(--bg-alt); padding-block: clamp(4rem, 8vw, 7rem); }

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: var(--r-l);
  overflow: hidden;
  box-shadow: var(--sh-sm);
}
.menu-card {
  display: flex; align-items: center; gap: 1.2rem;
  padding: 1.6rem;
  background: var(--bg);
  border: none;
  position: relative; overflow: hidden;
  transition: background .25s;
}
/* Borde superior de acento que aparece en hover */
.menu-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
.menu-card:hover { background: var(--bg-alt); }
.menu-card:hover::before { transform: scaleX(1); }

.mc-icon  { font-size: 2.4rem; flex-shrink: 0; }
.mc-body  { flex: 1; }
.mc-body h3 { font-family: var(--display); font-size: 1.15rem; letter-spacing: .04em; color: var(--ink); margin-bottom: .25rem; }
.mc-body p  { font-size: .83rem; color: var(--ink-light); line-height: 1.45; }
.mc-price   { font-family: var(--display); font-size: 1.25rem; letter-spacing: .04em; color: var(--red); flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════════
   HISTORIA — fondo crema, misma estructura de la v3
═══════════════════════════════════════════════════════════════ */
.s-historia {
  background: var(--bg);
  padding-block: clamp(4rem, 8vw, 7rem);
  position: relative; overflow: hidden;
}
.s-historia::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 5% 30%, rgba(232,168,0,.08) 0%, transparent 40%),
    radial-gradient(circle at 95% 70%, rgba(204,34,34,.06) 0%, transparent 40%);
}

/* Stats */
.hist-stats {
  display: flex; justify-content: center; gap: clamp(2rem, 6vw, 6rem); flex-wrap: wrap;
  margin-bottom: 5rem;
  padding: 2rem 3rem;
  background: var(--bg-alt);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  box-shadow: var(--sh-sm);
  position: relative;
}
/* Línea de color en la parte superior */
.hist-stats::before {
  content: '';
  position: absolute; top: 0; left: 10%; right: 10%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--red), var(--gold), transparent);
  border-radius: 2px;
}
.hs-item { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hs-num {
  font-family: var(--display);
  font-size: clamp(3rem, 6vw, 4.5rem);
  letter-spacing: .04em; line-height: 1;
  color: var(--red);
}
.hs-suf  { font-family: var(--display); font-size: 2rem; color: var(--gold-dark); margin-top: -.5rem; }
.hs-lbl  { font-size: .73rem; font-weight: 700; text-transform: uppercase; letter-spacing: .13em; color: var(--ink-light); margin-top: .4rem; }

/* ── Timeline ── */
.timeline { position: relative; padding-block: 1rem; }

.tl-spine {
  position: absolute;
  left: 50%; transform: translateX(-50%);
  top: 0; bottom: 0; width: 4px;
  background: var(--bg-alt2);
  border-radius: 2px; overflow: hidden; z-index: 0;
}
.tl-spine-fill {
  position: absolute; top: 0; left: 0; right: 0;
  height: 0;
  background: linear-gradient(to bottom, var(--red), var(--gold), var(--green));
  transition: height .15s linear;
}

.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 72px 1fr;
  align-items: start;
  margin-bottom: 4.5rem;
  opacity: 0;
  transition: opacity .6s ease, transform .6s ease;
}
.tl-item.tl-left  { transform: translateX(-40px); }
.tl-item.tl-right { transform: translateX(40px); }
.tl-item.visible  { opacity: 1; transform: none !important; }

.tl-node {
  grid-column: 2;
  display: flex; flex-direction: column; align-items: center;
  position: relative; z-index: 2;
}
.tl-node-inner {
  width: 56px; height: 56px;
  background: var(--bg);
  border: 3px solid var(--red);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 0 0 5px var(--bg), var(--sh-sm);
}

/* Cards del timeline — fondo blanco sobre fondo blanco: sombra y borde */
.tl-card {
  background: var(--bg);
  border-radius: var(--r-l);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--sh-sm);
  transition: box-shadow .3s, transform .3s;
}
.tl-card:hover { box-shadow: var(--sh-md); transform: translateY(-4px); }

.tl-item.tl-left  .tl-card { grid-column: 1; margin-right: 1.5rem; }
.tl-item.tl-right .tl-card { grid-column: 3; margin-left:  1.5rem; }

.tl-img { width: 100%; aspect-ratio: 16/9; overflow: hidden; }
.tl-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.tl-card:hover .tl-img img { transform: scale(1.05); }

.tl-img-ph {
  background: var(--bg-alt);
  display: flex; align-items: center; gap: 1.2rem;
  padding: 1.2rem 1.5rem; min-height: 110px;
}
.tl-ph-emoji { font-size: 2.8rem; flex-shrink: 0; }
.tl-ph-label {
  display: flex; flex-direction: column; gap: .25rem;
  font-size: .78rem; color: var(--ink-light); font-weight: 600;
}
.tl-ph-label i    { color: var(--red); }
.tl-ph-label span { color: var(--ink-mid); }
.tl-ph-label code {
  font-size: .7rem; background: var(--bg-alt2);
  padding: .15rem .4rem; border-radius: 4px;
  color: var(--blue-logo);
}

.tl-card-body { padding: 1.4rem 1.5rem 1.6rem; }
.tl-year-pill {
  display: inline-block;
  font-family: var(--display);
  font-size: .82rem; letter-spacing: .08em;
  background: var(--red); color: #fff;
  padding: .15rem .75rem; border-radius: 100px;
  margin-bottom: .8rem;
}
.tl-card-body h3 { font-family: var(--display); font-size: 1.3rem; letter-spacing: .03em; color: var(--ink); margin-bottom: .6rem; }
.tl-card-body p  { font-size: .9rem; color: var(--ink-mid); line-height: 1.65; }

/* ═══════════════════════════════════════════════════════════════
   REVIEWS — fondo alternado (bg-alt) para contraste
═══════════════════════════════════════════════════════════════ */
.s-reviews {
  background: var(--bg-alt);
  padding-block: clamp(4rem, 8vw, 7rem);
  position: relative; overflow: hidden;
}
/* Comilla decorativa — ahora muy sutil en claro */
.s-reviews::before {
  content: '"';
  position: absolute; top: -4rem; left: -1rem;
  font-family: var(--display);
  font-size: 30rem; line-height: 1; pointer-events: none;
  color: rgba(204,34,34,.05);
}

.rev-platforms { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; margin-top: 1.2rem; }
.rp-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .32rem .9rem; border-radius: 100px;
  font-size: .75rem; font-weight: 700;
  border: 1px solid var(--border); color: var(--ink-light);
  background: var(--bg);
  transition: all .2s;
}
.rp-badge:hover { color: var(--ink); border-color: var(--ink-xlight); }
.rp-google:hover   { border-color: #4285F4; color: #4285F4; background: rgba(66,133,244,.06); }
.rp-facebook:hover { border-color: #1877F2; color: #1877F2; background: rgba(24,119,242,.06); }
.rp-yelp:hover     { border-color: #D32323; color: #D32323; background: rgba(211,35,35,.06); }
.rp-maps:hover     { border-color: #0F9D58; color: #0F9D58; background: rgba(15,157,88,.06); }

.rev-swiper { padding-bottom: 3.5rem !important; padding-inline: 2px; margin-top: .5rem; }

/* Cards de review — blancas sobre fondo crema */
.review-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-l);
  padding: 2rem;
  box-shadow: var(--sh-xs);
  transition: box-shadow .3s, border-color .3s, transform .3s;
}
.review-card:hover { box-shadow: var(--sh-md); border-color: var(--gold-border); transform: translateY(-3px); }

.rc-top { display: flex; align-items: center; gap: .9rem; margin-bottom: 1rem; }
.rc-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--gold));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 1.3rem; letter-spacing: .02em;
  color: #fff; flex-shrink: 0;
}
.rc-meta    { flex: 1; overflow: hidden; }
.rc-author  { display: block; font-weight: 700; font-size: .95rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-date    { font-size: .75rem; color: var(--ink-light); }
.rc-platform {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .22rem .65rem; border-radius: 100px;
  font-size: .72rem; font-weight: 700; flex-shrink: 0;
}
.rc-stars { display: flex; gap: 3px; margin-bottom: 1rem; color: var(--gold); }
.rc-stars svg { width: 16px; height: 16px; }
.rc-text  { font-family: var(--serif); font-size: .95rem; font-style: italic; color: var(--ink-mid); line-height: 1.7; }

/* Swiper overrides — light */
.rev-swiper .swiper-pagination-bullet        { background: var(--border); }
.rev-swiper .swiper-pagination-bullet-active { background: var(--red); }
.rev-swiper .swiper-button-prev,
.rev-swiper .swiper-button-next {
  color: var(--red); background: var(--bg);
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--border);
  box-shadow: var(--sh-sm);
}
.rev-swiper .swiper-button-prev::after,
.rev-swiper .swiper-button-next::after { font-size: .85rem; font-weight: 900; }

/* ═══════════════════════════════════════════════════════════════
   FACEBOOK POSTS — fondo blanco
═══════════════════════════════════════════════════════════════ */
.s-facebook { background: var(--bg); padding-block: clamp(4rem, 8vw, 7rem); }

.fb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.4rem;
}
.fb-post-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-l);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--sh-xs);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.fb-post-card:hover { transform: translateY(-5px); box-shadow: var(--sh-md); border-color: #1877F2; }

.fbp-header { display: flex; align-items: center; gap: .8rem; padding: 1.1rem 1.2rem .8rem; }
.fbp-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--bg-alt); overflow: hidden;
  position: relative; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.fbp-avatar img      { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fbp-av-fallback     { font-size: 1.3rem; }
.fbp-meta            { flex: 1; }
.fbp-meta strong     { display: block; font-size: .9rem; font-weight: 700; color: var(--ink); }
.fbp-date            { font-size: .73rem; color: var(--ink-light); display: flex; align-items: center; gap: .3rem; }
.fbp-fb-icon         { color: #1877F2; flex-shrink: 0; transition: transform .2s; }
.fbp-fb-icon:hover   { transform: scale(1.15); }

.fbp-img-link        { display: block; overflow: hidden; }
.fbp-img-link img    { width: 100%; height: 200px; object-fit: cover; transition: transform .4s; }
.fbp-img-link:hover img { transform: scale(1.04); }

.fbp-body { padding: .9rem 1.2rem .6rem; flex: 1; }
.fbp-text { font-size: .88rem; color: var(--ink-mid); line-height: 1.58; white-space: pre-line; }

.fbp-footer {
  display: flex; align-items: center; gap: .8rem;
  padding: .75rem 1.2rem;
  border-top: 1px solid var(--border-light);
  font-size: .8rem; color: var(--ink-light);
}
.fbp-react        { display: inline-flex; align-items: center; gap: .3rem; font-weight: 600; }
.fbp-react.like   { color: #1877F2; }
.fbp-ver-mas      { margin-left: auto; color: var(--red); font-weight: 700; font-size: .78rem; transition: opacity .2s; }
.fbp-ver-mas:hover { opacity: .7; }

/* ═══════════════════════════════════════════════════════════════
   GALERÍA — fondo alternado
═══════════════════════════════════════════════════════════════ */
.s-galeria { background: var(--bg-alt); padding-block: clamp(4rem, 8vw, 7rem) 0; }

.gal-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 240px;
  gap: 4px; margin-top: 3rem;
}
.gal-item { position: relative; overflow: hidden; background: var(--bg-alt2); cursor: pointer; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gal-item:hover img { transform: scale(1.08); }
.gal-overlay {
  position: absolute; inset: 0;
  background: rgba(204,34,34,.42);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.4rem;
  opacity: 0; transition: opacity .3s;
}
.gal-item:hover .gal-overlay { opacity: 1; }
.gal-ph { background: linear-gradient(135deg, var(--bg-alt), var(--bg-alt2)); }
.gal-ph-inner { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; font-size: 3rem; }
.gal-ph .gal-ph-inner { display: flex; }

.gal-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gal-item:nth-child(4) { grid-column: span 2; }
.gal-item:nth-child(6) { grid-column: span 2; }

/* ═══════════════════════════════════════════════════════════════
   CONTACTO — info sobre rojo, mapa limpio
═══════════════════════════════════════════════════════════════ */
.s-contacto { padding: 0; }
.ct-split   { display: grid; grid-template-columns: 1fr 1fr; min-height: 580px; }

.ct-info {
  background: linear-gradient(155deg, var(--red-dark) 0%, #7B1111 100%);
  padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 5vw, 5rem);
  display: flex; flex-direction: column;
}
.ct-logo {
  width: 100px; height: 100px;
  object-fit: contain; border-radius: 50%;
  border: 3px solid var(--gold-border);
  background: #fff; padding: 6px;
  box-shadow: 0 4px 16px rgba(232,168,0,.3);
  margin-bottom: 2rem;
}
.ct-title {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: .04em; color: #fff;
  margin-bottom: 2rem;
}
.ct-list { list-style: none; display: flex; flex-direction: column; gap: 1.5rem; }
.ct-list li { display: flex; gap: 1rem; align-items: flex-start; }
.ct-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-light); flex-shrink: 0;
}
.ct-list strong { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); margin-bottom: .25rem; }
.ct-list span   { display: block; font-size: .9rem; color: rgba(255,255,255,.75); }

.ct-social { display: flex; gap: .75rem; margin-top: 2.5rem; }
.ct-social a {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.6);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; transition: all .25s;
}
.ct-social a:hover { border-color: var(--gold-light); color: var(--gold-light); background: rgba(232,168,0,.15); transform: translateY(-2px); }

.ct-map iframe { display: block; width: 100%; height: 100%; border: none; }

/* ═══════════════════════════════════════════════════════════════
   FOOTER — café muy oscuro, coherente y cálido
═══════════════════════════════════════════════════════════════ */
.footer { background: #180E06; padding-block: 4rem 0; }
.ft-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.3fr;
  gap: 3rem;
  padding-bottom: 3rem;
}
.ft-logo    { width: 72px; height: 72px; object-fit: contain; border-radius: 50%; border: 2px solid var(--gold-border); background: #fff; padding: 4px; margin-bottom: .8rem; }
.ft-tagline { font-family: var(--serif); font-size: .95rem; font-style: italic; color: rgba(255,255,255,.38); }

.ft-nav h4, .ft-contact h4 { font-family: var(--display); font-size: 1rem; letter-spacing: .06em; color: rgba(255,255,255,.75); margin-bottom: 1.2rem; }
.ft-nav  { display: flex; flex-direction: column; gap: .6rem; }
.ft-nav a { font-size: .87rem; font-weight: 600; color: rgba(255,255,255,.38); transition: color .2s; }
.ft-nav a:hover { color: var(--gold-light); }

.ft-contact p { display: flex; gap: .6rem; align-items: flex-start; font-size: .87rem; color: rgba(255,255,255,.38); margin-bottom: .65rem; font-weight: 600; }
.ft-contact i  { color: var(--gold-light); margin-top: .2rem; flex-shrink: 0; }

.ft-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding-block: 1.5rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
  font-size: .78rem; font-weight: 600; color: rgba(255,255,255,.22);
}

/* ═══════════════════════════════════════════════════════════════
   FLOTANTES
═══════════════════════════════════════════════════════════════ */
.wa-float {
  position: fixed; bottom: 1.8rem; right: 1.5rem; z-index: 999;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.9rem;
  box-shadow: 0 8px 24px rgba(37,211,102,.45);
  animation: waPulse 3.5s infinite;
  transition: transform .25s;
}
.wa-float:hover { transform: scale(1.1); }
@keyframes waPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(37,211,102,.45); }
  50%       { box-shadow: 0 8px 42px rgba(37,211,102,.75); }
}

.btn-top {
  position: fixed; bottom: 6.5rem; right: 1.5rem; z-index: 999;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  color: var(--ink-light); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; box-shadow: var(--sh-sm);
  opacity: 0; transform: translateY(10px);
  transition: all .3s;
}
.btn-top.show  { opacity: 1; transform: translateY(0); }
.btn-top:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* ═══════════════════════════════════════════════════════════════
   REVEAL
═══════════════════════════════════════════════════════════════ */
.reveal     { opacity: 0; transform: translateY(24px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in  { opacity: 1; transform: none; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════ */

/* ── iOS/Safari fix: background-attachment:fixed no funciona bien
   en navegadores móviles — lo desactivamos en pantallas pequeñas ── */
@media (max-width: 1024px) {
  .hero-bg {
    background-attachment: scroll;  /* evita el bug de Safari iOS */
    background-position: center top; /* muestra la parte superior de la imagen */
  }
}

/* ── Tablet y móvil grande (< 1080px): colapsa el grid a columna única ── */
@media (max-width: 1080px) {
  /* Hero: columna única, logo arriba, texto abajo */
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
    padding-block: 6rem 3.5rem;
    min-height: 100svh;
  }
  .hero-logo-col    { order: -1; }          /* logo sube al top */
  .hero-logo-ring   { width: 200px; height: 200px; }
  .chip-1, .chip-2, .chip-3 { display: none; }
  .hero-copy        { display: flex; flex-direction: column; align-items: center; }
  .hero-desc        { max-width: 480px; }
  .hero-actions     { justify-content: center; }
  .hero-hours-row   { display: inline-flex; max-width: 340px; text-align: left; }
  /* Overlay móvil: más oscuro y uniforme para que el texto se lea */
  .hero-overlay {
    background: rgba(8,3,0,.68);
  }
  /* Galería */
  .gal-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 200px; }
  .gal-item:nth-child(1) { grid-column: span 2; grid-row: span 1; }
  .gal-item:nth-child(6) { grid-column: span 1; }
}

/* ── Móvil (< 900px) ── */
@media (max-width: 900px) {
  .nav-links, .nav-wa-btn { display: none; }
  .nav-burger { display: flex; }
  /* Timeline mobile: columna única */
  .tl-spine { left: 28px; transform: none; }
  .tl-item  { grid-template-columns: 60px 1fr; gap: 0; }
  .tl-node  { grid-column: 1; }
  .tl-item.tl-left  .tl-card,
  .tl-item.tl-right .tl-card { grid-column: 2; margin-left: 1rem !important; margin-right: 0 !important; }
  .tl-item.tl-left, .tl-item.tl-right { transform: none !important; }
  .tl-node-inner { width: 46px; height: 46px; font-size: 1.2rem; }
  .hist-stats { gap: 2rem; padding: 1.5rem; }
  .ct-split { grid-template-columns: 1fr; }
  .ct-map   { min-height: 340px; }
  .ft-grid  { grid-template-columns: 1fr 1fr; }
  .ft-brand { grid-column: span 2; }
}

/* ── Móvil pequeño (< 640px) ── */
@media (max-width: 640px) {
  .menu-grid { grid-template-columns: 1fr; }
  .fb-grid   { grid-template-columns: 1fr; }
  .gal-grid  { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gal-item:nth-child(1) { grid-column: span 2; }
  .gal-item:nth-child(4), .gal-item:nth-child(6) { grid-column: span 1; }

  /* Hero en pantalla muy pequeña */
  .hero-inner       { padding-block: 5rem 3rem; gap: 1.5rem; }
  .hero-logo-ring   { width: 160px; height: 160px; }
  .h1-line1         { font-size: clamp(3rem, 14vw, 3.8rem); }
  .h1-line2         { font-size: clamp(3.5rem, 17vw, 4.5rem); }
  .hero-desc        { font-size: .95rem; }
  .hero-actions     { flex-direction: column; align-items: center; width: 100%; }
  .hero-actions .btn-primary,
  .hero-actions .btn-hero-sec { width: 100%; justify-content: center; }
  .hero-hours-row   { width: 100%; max-width: 100%; }

  .hs-item { width: 45%; }
  .hist-stats { gap: 1rem; }
  .ft-grid  { grid-template-columns: 1fr; }
  .ft-brand { grid-column: span 1; }
  .ft-bottom { flex-direction: column; text-align: center; }
  .ct-info { padding: 2.5rem 5%; }
  .btn-wa-big { align-self: stretch; justify-content: center; }
}

/* ── Móvil muy pequeño (< 390px) ── */
@media (max-width: 390px) {
  .hero-logo-ring { width: 130px; height: 130px; }
  .h1-line1       { font-size: 2.8rem; }
  .h1-line2       { font-size: 3.2rem; }
}
