/* ==========================================================================
   Cantina Foreing Club — Hoja de estilos
   Réplica 1:1 del diseño original (Tailwind compilado) en CSS plano.
   Breakpoints:  sm ≥ 40rem (640px) · md ≥ 48rem (768px)
                 lg ≥ 64rem (1024px) · xl ≥ 80rem (1280px)
   ========================================================================== */

/* ---------- 1. Variables de diseño ---------- */
:root {
  /* Tipografías */
  --font-body: "Work Sans", system-ui, sans-serif;
  --font-heading: "Alfa Slab One", Georgia, serif;
  --font-script: "Yellowtail", cursive;

  /* Paleta (oklch, igual que el original) */
  --background: oklch(18% .025 45);          /* café muy oscuro */
  --foreground: oklch(95% .03 80);           /* texto claro */
  --card: oklch(23% .035 45);
  --primary: oklch(80% .16 78);              /* dorado */
  --primary-foreground: oklch(20% .03 45);
  --secondary: oklch(45% .16 28);            /* rojo ladrillo */
  --muted-foreground: oklch(78% .04 70);
  --accent: oklch(66% .18 45);               /* naranja */
  --border: oklch(35% .04 50);
  --ring: oklch(80% .16 78);
  --cream: oklch(95% .03 85);
  --gold-light: oklch(86% .11 65);           /* tercer color de la marquesina */
  --green-open: oklch(79.2% .209 151.711);   /* punto "abierto ahora" */

  /* Medidas */
  --content-width: 72rem;
  --radius: .75rem;
  --radius-md: calc(var(--radius) - 2px);
  --radius-xl: calc(var(--radius) + 4px);
  --transition: .15s cubic-bezier(.4, 0, .2, 1);
}

/* ---------- 2. Reset básico ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid var(--border); }
html { -webkit-text-size-adjust: 100%; line-height: 1.5; scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body {
  font-family: var(--font-body);
  background-color: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
a { color: inherit; text-decoration: inherit; }
img, svg, iframe { display: block; vertical-align: middle; }
img { max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: transparent; cursor: pointer; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border-width: 0;
}

/* ---------- 3. Utilidades ---------- */
.container {
  width: 100%;
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: 1rem;
}
.text-primary { color: var(--primary); }
.i-5 { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
.i-6 { width: 1.5rem; height: 1.5rem; flex-shrink: 0; }

/* ---------- 4. Botones ---------- */
.btn {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-weight: 500;
  white-space: nowrap;
  border-radius: var(--radius-md);
  outline: none;
  transition: all var(--transition);
}
.btn svg { pointer-events: none; }
.btn:focus-visible { box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent); }

/* tamaños */
.btn-sm { height: 2rem; gap: .375rem; padding-inline: .75rem; font-size: .875rem; line-height: 1.25rem; }
.btn-md { height: 2.25rem; padding: .5rem 1rem; font-size: .875rem; line-height: 1.25rem; }
.btn-lg { height: 2.5rem; padding-inline: 1.5rem; font-size: 1rem; line-height: 1.5rem; }
.btn-lg.has-icon { padding-inline: 1rem; }
.btn-block { width: 100%; }

/* variantes */
.btn-primary { background-color: var(--primary); color: var(--primary-foreground); }
.btn-outline {
  border: 1px solid color-mix(in oklab, var(--cream) 40%, transparent);
  background-color: transparent;
  color: var(--cream);
  box-shadow: 0 1px 2px 0 #0000000d;
}
@media (hover: hover) {
  .btn-primary:hover { background-color: color-mix(in oklab, var(--primary) 90%, transparent); }
  .btn-outline:hover { background-color: color-mix(in oklab, var(--cream) 10%, transparent); color: var(--cream); }
}

/* ---------- 5. Logo circular (reutilizable) ---------- */
.logo-circle {
  display: block;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 9999px;
  background-color: var(--cream);
}
.logo-circle img { width: 100%; height: 100%; object-fit: cover; scale: 1.18; }
.logo-sm { width: 2.75rem; height: 2.75rem; }
.logo-footer { width: 7rem; height: 7rem; }
.logo-hero {
  display: none;
  width: 20rem; height: 20rem;
  justify-self: center;
  box-shadow:
    0 0 0 4px color-mix(in oklab, var(--primary) 30%, transparent),
    0 20px 60px -15px oklch(0% 0 0 / .7);
}

/* ---------- 6. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
  background-color: color-mix(in oklab, var(--background) 85%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: .75rem;
}
.brand { display: flex; align-items: center; gap: .75rem; line-height: 1; }
.brand-name {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.25rem; line-height: 1.75rem;
  letter-spacing: .025em;
  color: var(--primary);
}
.brand-sub {
  display: block;
  font-size: .65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .3em;
  color: var(--muted-foreground);
}

.nav-desktop { display: none; align-items: center; gap: 1.5rem; }
.nav-link {
  font-size: .875rem; line-height: 1.25rem;
  font-weight: 500;
  color: color-mix(in oklab, var(--foreground) 80%, transparent);
  transition: color var(--transition);
}
@media (hover: hover) { .nav-link:hover { color: var(--primary); } }

.menu-toggle { border-radius: var(--radius-md); padding: .5rem; }
.menu-toggle svg { width: 1.5rem; height: 1.5rem; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-menu { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.nav-mobile {
  border-top: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
  padding: 0 1rem 1rem;
}
.nav-mobile a:not(.btn) {
  display: block;
  padding-block: .75rem;
  font-weight: 500;
  color: color-mix(in oklab, var(--foreground) 90%, transparent);
}
.nav-mobile .btn { margin-top: .5rem; }

/* ---------- 7. Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -20;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 35%;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: -10;
  background-image: linear-gradient(to bottom in oklab,
    color-mix(in oklab, var(--background) 80%, transparent) 0%,
    color-mix(in oklab, var(--background) 75%, transparent) 50%,
    var(--background) 100%);
}
.hero-glow {
  position: absolute; inset: 0; z-index: -10;
  background-image: radial-gradient(at 0 0, oklch(66% .18 45 / .35), transparent 60%);
}
.hero-grid {
  display: grid;
  align-items: center;
  gap: 2.5rem;
  min-height: 88vh;
  padding-block: 5rem;
}
.hero-content { display: flex; flex-direction: column; }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border-radius: 9999px;
  border: 1px solid color-mix(in oklab, var(--primary) 40%, transparent);
  background-color: color-mix(in oklab, var(--background) 70%, transparent);
  padding: .25rem .75rem;
  font-size: .875rem; line-height: 1.25rem;
  font-weight: 600;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.hero .status-badge { margin-bottom: 1.5rem; align-self: flex-start; }
.status-badge--visit { margin-top: 1.5rem; }
.status-dot {
  width: .625rem; height: .625rem;
  border-radius: 9999px;
  background-color: var(--muted-foreground);   /* estado neutro (antes de JS) */
}
.status-badge.is-open .status-dot { background-color: var(--green-open); animation: pulse 2s cubic-bezier(.4, 0, .6, 1) infinite; }
.status-badge.is-closed .status-dot { background-color: var(--secondary); }

.hero-script {
  font-family: var(--font-script);
  font-size: 1.875rem; line-height: 2.25rem;
  color: var(--accent);
}
.hero-title {
  margin-top: .5rem;
  font-family: var(--font-heading);
  color: var(--cream);
  filter: drop-shadow(0 4px 0 oklch(45% .16 28));
}
.hero-title > span { display: block; }
.t-cantina { font-size: 1.875rem; line-height: 2.25rem; letter-spacing: .2em; }
.t-foreing { font-size: 4.5rem; line-height: 1; color: var(--primary); }
.t-club    { font-size: 1.875rem; line-height: 2.25rem; letter-spacing: .3em; }

.hero-lead {
  margin-top: 2rem;
  max-width: 36rem;
  font-size: 1.125rem; line-height: 1.75rem;
  color: color-mix(in oklab, var(--foreground) 90%, transparent);
}
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; }

.hero-facts {
  margin-top: 3rem;
  display: grid;
  gap: 1rem;
  max-width: 42rem;
  font-size: .875rem; line-height: 1.25rem;
}
.fact { display: flex; align-items: center; gap: .75rem; }
.fact dd { font-weight: 600; }

/* ---------- 8. Marquesina ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid color-mix(in oklab, var(--primary) 30%, transparent);
  background-color: var(--secondary);
  padding-block: 1rem;
}
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee-track span {
  white-space: nowrap;
  padding-right: 2.5rem;
  font-family: var(--font-script);
  font-size: 1.5rem; line-height: 2rem;
}
.marquee-track .c1 { color: var(--primary); }
.marquee-track .c2 { color: var(--cream); }
.marquee-track .c3 { color: var(--gold-light); }

/* ---------- 9. Secciones genéricas ---------- */
.section { padding-block: 5rem; scroll-margin-top: 5rem; }
.eyebrow {
  font-family: var(--font-script);
  font-size: 1.5rem; line-height: 2rem;
  color: var(--accent);
}
.section-title {
  font-family: var(--font-heading);
  font-size: 2.25rem; line-height: 2.5rem;
  color: var(--cream);
}

/* ---------- 10. La experiencia ---------- */
.features { margin-top: 3rem; display: grid; gap: 1.5rem; }
.feature-card {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background-color: var(--card);
  padding: 1.75rem;
  transition: border-color var(--transition);
}
@media (hover: hover) {
  .feature-card:hover { border-color: color-mix(in oklab, var(--primary) 60%, transparent); }
}
.feature-icon {
  display: inline-flex;
  width: 3.5rem; height: 3.5rem;
  align-items: center; justify-content: center;
  border-radius: 9999px;
  background-color: var(--primary);
  color: var(--primary-foreground);
}
.feature-icon svg { width: 1.75rem; height: 1.75rem; }
.feature-card h3 {
  margin-top: 1.25rem;
  font-family: var(--font-heading);
  font-size: 1.5rem; line-height: 2rem;
  color: var(--cream);
}
.feature-card p { margin-top: .75rem; color: var(--muted-foreground); }

/* ---------- 11. Promo ---------- */
.promo {
  scroll-margin-top: 5rem;
  padding-block: 5rem;
  background-image: linear-gradient(to bottom right in oklab,
    var(--secondary) 0%, oklch(35% .12 35) 50%, var(--background) 100%);
}
.promo-grid { display: grid; align-items: center; gap: 2.5rem; }
.promo-eyebrow {
  font-family: var(--font-script);
  font-size: 1.875rem; line-height: 2.25rem;
  color: var(--primary);
}
.section-title.promo-title { line-height: 1.25; }
.promo-price {
  margin-top: 1rem;
  display: flex; align-items: baseline; gap: .75rem;
  font-family: var(--font-heading);
  color: var(--primary);
}
.price-label { font-size: 1.5rem; line-height: 2rem; color: var(--cream); }
.price-value {
  font-size: 6rem; line-height: 1;
  filter: drop-shadow(0 4px 0 oklch(20% .03 45));
}
.promo-text {
  margin-top: 1.5rem;
  max-width: 28rem;
  font-size: 1.125rem; line-height: 1.75rem;
  color: color-mix(in oklab, var(--foreground) 90%, transparent);
}
.promo-cta { margin-top: 2rem; }
.promo-flyer {
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 4px solid color-mix(in oklab, var(--primary) 70%, transparent);
  box-shadow: 0 25px 50px -12px color-mix(in oklab, #000 40%, transparent);
  rotate: 1deg;
}
.promo-flyer img { width: 100%; height: auto; }

/* ---------- 12. Galería ---------- */
.gallery { margin-top: 3rem; display: grid; gap: 1.5rem; }
.gallery-item { overflow: hidden; border-radius: var(--radius-xl); background-color: var(--card); }
.gallery-item img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.gallery-item figcaption { padding: 1.25rem; }
.gallery-title {
  font-family: var(--font-heading);
  font-size: 1.25rem; line-height: 1.75rem;
  color: var(--cream);
}
.gallery-text { font-size: .875rem; line-height: 1.25rem; color: var(--muted-foreground); }

/* ---------- 13. Visítanos ---------- */
.visit {
  scroll-margin-top: 5rem;
  padding-block: 5rem;
  border-top: 1px solid var(--border);
  background-color: color-mix(in oklab, var(--card) 50%, transparent);
}
.visit-grid { display: grid; gap: 2.5rem; }
.visit-list { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.5rem; }
.visit-item { display: flex; gap: 1rem; }
.visit-item svg { margin-top: .25rem; }
.visit-item h3 { font-weight: 600; color: var(--cream); }
.visit-item p { color: var(--muted-foreground); }
.visit-cta { margin-top: 2rem; }
.visit-map { overflow: hidden; border-radius: var(--radius-xl); border: 1px solid var(--border); }
.visit-map iframe { width: 100%; height: 380px; }

/* ---------- 14. Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding-block: 2.5rem; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: .75rem; text-align: center; }
.footer-tagline {
  font-family: var(--font-heading);
  font-size: 1.5rem; line-height: 2rem;
  color: var(--primary);
}
.footer-info { font-size: .875rem; line-height: 1.25rem; color: var(--muted-foreground); }
.footer-legal { font-size: .75rem; line-height: 1rem; color: color-mix(in oklab, var(--muted-foreground) 80%, transparent); }

/* ---------- 15. Animaciones ---------- */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes pulse { 50% { opacity: .5; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track, .status-badge.is-open .status-dot { animation: none; }
  .nav-link, .feature-card, .btn { transition: none; }
}

/* ---------- 16. Responsive ---------- */
/* sm ≥ 640px */
@media (min-width: 40rem) {
  .container { padding-inline: 1.5rem; }
  .hero-script { font-size: 2.25rem; line-height: 2.5rem; }
  .t-cantina, .t-club { font-size: 2.25rem; line-height: 2.5rem; }
  .t-foreing { font-size: 6rem; }
  .hero-lead { font-size: 1.25rem; line-height: 1.75rem; }
  .hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .marquee-track span { font-size: 1.875rem; line-height: 2.25rem; }
  .section-title { font-size: 3rem; line-height: 1; }
  .section-title.promo-title { line-height: 1.25; }
}

/* md ≥ 768px */
@media (min-width: 48rem) {
  .nav-desktop { display: flex; }
  .menu-toggle, .nav-mobile { display: none !important; }
  .t-foreing { font-size: 8rem; }
  .features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* lg ≥ 1024px */
@media (min-width: 64rem) {
  .hero-grid { grid-template-columns: 1fr auto; }
  .logo-hero { display: block; }
  .promo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .visit-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .visit-info { grid-column: span 2 / span 2; }
  .visit-map { grid-column: span 3 / span 3; }
  .visit-map iframe { height: 100%; min-height: 420px; }
}

/* xl ≥ 1280px */
@media (min-width: 80rem) {
  .logo-hero { width: 26rem; height: 26rem; }
}
