/* ============================================================
   FERIA DE COLIMA — Design System
   Premium dark editorial tourism platform
   Palette: deep charcoal / warm gold / cream / amber / burgundy
   ============================================================ */

:root {
  /* Surfaces */
  --bg:            #0E0E11;   /* deep charcoal page */
  --bg-2:          #141418;   /* raised surface */
  --bg-3:          #1B1B21;   /* card surface */
  --bg-glass:      rgba(18,18,22,0.72);

  /* Brand */
  --gold:          #D6A94A;   /* warm gold */
  --gold-bright:   #EAC873;   /* highlight gold */
  --gold-deep:     #A47C2C;
  --amber:         #E2842B;   /* amber accent */
  --burgundy:      #7C2433;   /* burgundy accent */
  --burgundy-soft: #9A3142;

  /* Type */
  --cream:         #F3ECDD;   /* primary text on dark */
  --cream-dim:     #CFC7B6;
  --muted:         #9A9384;   /* secondary text */
  --muted-2:       #6E6A60;
  --ink:           #15140F;   /* text on light/gold */

  /* Lines */
  --border:        rgba(243,236,221,0.10);
  --border-strong: rgba(243,236,221,0.18);

  /* Type families */
  --serif: "Fraunces", "Playfair Display", Georgia, serif;
  --sans:  "Inter", "Helvetica Neue", Arial, sans-serif;

  /* Spacing / radius */
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --maxw: 1240px;
  --gut:  clamp(20px, 5vw, 56px);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --shadow:   0 18px 50px -18px rgba(0,0,0,0.7);
  --shadow-lg: 0 40px 90px -30px rgba(0,0,0,0.85);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: hidden; max-width: 100%; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video, svg { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: 16px; }
::selection { background: var(--gold); color: var(--ink); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.04; letter-spacing: -0.02em; }
.display {
  font-family: var(--serif);
  font-weight: 480;
  font-size: clamp(2.9rem, 9vw, 7.2rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
}
h2.section-title { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 480; }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
p { color: var(--cream-dim); }
.lede { font-size: clamp(1.1rem, 2.2vw, 1.45rem); color: var(--cream-dim); line-height: 1.5; font-weight: 350; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold); opacity: 0.7; }

.text-gold { color: var(--gold); }
.text-amber { color: var(--amber); }
.serif-italic { font-style: italic; font-family: var(--serif); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }
section { position: relative; }
.section-pad { padding: clamp(72px, 11vw, 150px) 0; }
.section-pad-sm { padding: clamp(48px, 7vw, 90px) 0; }
.divider { height: 1px; background: var(--border); border: 0; }

.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 20px; }
.section-head p { margin-top: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; min-height: 52px;
  border-radius: 100px;
  font-family: var(--sans); font-size: 0.96rem; font-weight: 600; letter-spacing: -0.01em;
  transition: transform .35s var(--ease), background .3s, color .3s, border-color .3s, box-shadow .35s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-gold { background: var(--gold); color: var(--ink); box-shadow: 0 10px 30px -10px rgba(214,169,74,0.55); }
.btn-gold:hover { background: var(--gold-bright); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--cream); border: 1px solid var(--border-strong); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.btn-burgundy { background: var(--burgundy); color: var(--cream); }
.btn-burgundy:hover { background: var(--burgundy-soft); transform: translateY(-2px); }
.btn-sm { padding: 10px 18px; min-height: 42px; font-size: 0.85rem; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--gold); font-weight: 600; font-size: 0.95rem;
  transition: gap .3s var(--ease);
}
.link-arrow:hover { gap: 14px; }

/* ---------- Media placeholder (cinematic, no clipart) ---------- */
.media {
  position: relative; overflow: hidden; border-radius: var(--r);
  background:
    radial-gradient(120% 90% at 80% 10%, rgba(226,132,43,0.30), transparent 55%),
    radial-gradient(120% 120% at 10% 90%, rgba(124,36,51,0.45), transparent 55%),
    linear-gradient(160deg, #25201a 0%, #14110d 60%, #0e0c0a 100%);
  isolation: isolate;
}
.media::after {
  content: ""; position: absolute; inset: 0; mix-blend-mode: overlay; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}
.media .media-tag {
  position: absolute; left: 16px; bottom: 14px; z-index: 2;
  font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(243,236,221,0.72); font-weight: 600;
  display: inline-flex; align-items: center; gap: 7px;
}
.media .media-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.media.tall   { aspect-ratio: 3/4; }
.media.square { aspect-ratio: 1/1; }
.media.wide   { aspect-ratio: 16/9; }
.media.hero-fill { position: absolute; inset: 0; border-radius: 0; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .4s, border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--serif); font-size: 1.18rem; letter-spacing: -0.02em; color: var(--cream); }
.brand .mark {
  width: 32px; height: 32px; border-radius: 9px; flex: none;
  background: linear-gradient(150deg, var(--gold-bright), var(--amber) 55%, var(--burgundy));
  display: grid; place-items: center; color: var(--ink); font-weight: 800; font-family: var(--sans); font-size: 0.95rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
}
.brand b { font-weight: 600; }
.brand span.tld { color: var(--gold); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 13px; border-radius: 9px; font-size: 0.9rem; font-weight: 500; color: var(--cream-dim);
  transition: color .25s, background .25s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--cream); background: rgba(243,236,221,0.06); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.lang-toggle {
  display: inline-flex; align-items: center; border: 1px solid var(--border-strong); border-radius: 100px; overflow: hidden;
}
.lang-toggle button { padding: 7px 12px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; color: var(--muted); transition: color .2s, background .2s; }
.lang-toggle button.active { background: var(--gold); color: var(--ink); }

.nav-burger { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--border-strong); place-items: center; }
.nav-burger span { display: block; width: 18px; height: 2px; background: var(--cream); position: relative; transition: .3s; }
.nav-burger span::before, .nav-burger span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--cream); transition: .3s; }
.nav-burger span::before { top: -6px; } .nav-burger span::after { top: 6px; }
body.menu-open .nav-burger span { background: transparent; }
body.menu-open .nav-burger span::before { top: 0; transform: rotate(45deg); }
body.menu-open .nav-burger span::after { top: 0; transform: rotate(-45deg); }

/* Mobile menu sheet */
.mobile-menu {
  position: fixed; inset: 74px 0 0 0; z-index: 99;
  background: var(--bg); padding: 28px var(--gut) 60px;
  display: flex; flex-direction: column; gap: 4px;
  transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .35s var(--ease);
  overflow-y: auto;
}
body.menu-open .mobile-menu { transform: none; opacity: 1; pointer-events: auto; }
.mobile-menu a { padding: 15px 6px; font-family: var(--serif); font-size: 1.45rem; border-bottom: 1px solid var(--border); color: var(--cream); }
.mobile-menu .btn { margin-top: 22px; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding-bottom: clamp(48px, 8vh, 96px); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(80% 60% at 70% 15%, rgba(226,132,43,0.22), transparent 60%),
    radial-gradient(90% 70% at 15% 80%, rgba(124,36,51,0.40), transparent 60%),
    linear-gradient(180deg, #181410 0%, #0f0c0a 70%);
}
.hero-bg::after { /* night-lights flecks */
  content: ""; position: absolute; inset: 0; opacity: .6;
  background-image:
    radial-gradient(2px 2px at 20% 60%, rgba(234,200,115,0.9), transparent),
    radial-gradient(1.5px 1.5px at 65% 75%, rgba(234,200,115,0.7), transparent),
    radial-gradient(2px 2px at 80% 55%, rgba(226,132,43,0.8), transparent),
    radial-gradient(1.5px 1.5px at 40% 80%, rgba(243,236,221,0.6), transparent),
    radial-gradient(1.5px 1.5px at 88% 82%, rgba(234,200,115,0.7), transparent);
}
.hero-scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14,14,17,0.55) 0%, transparent 30%, rgba(14,14,17,0.35) 70%, var(--bg) 100%); }
.hero-content { width: 100%; max-width: 900px; }
.hero .badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px; border-radius: 100px;
  background: rgba(243,236,221,0.07); border: 1px solid var(--border-strong);
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em; color: var(--cream);
  backdrop-filter: blur(8px);
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(226,132,43,0.2); }
.badge .dot.live { background: #4ade80; box-shadow: 0 0 0 4px rgba(74,222,128,0.2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(74,222,128,0); } }
.hero .display { margin-bottom: 22px; }
.hero .lede { max-width: 640px; margin-bottom: 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* Countdown */
.countdown { display: flex; gap: 10px; margin-top: 40px; }
.count-unit { text-align: center; min-width: 70px; padding: 14px 12px; background: rgba(243,236,221,0.05); border: 1px solid var(--border); border-radius: var(--r-sm); backdrop-filter: blur(8px); }
.count-unit b { display: block; font-family: var(--serif); font-size: 2rem; line-height: 1; color: var(--gold-bright); font-weight: 500; font-variant-numeric: tabular-nums; }
.count-unit span { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.countdown-label { font-size: 0.85rem; color: var(--muted); margin-top: 14px; }

.scroll-hint { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-hint .line { width: 1px; height: 38px; background: linear-gradient(var(--gold), transparent); animation: drop 2.2s infinite; }
@keyframes drop { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ============================================================
   CARDS & GRIDS
   ============================================================ */
.grid { display: grid; gap: clamp(16px, 2vw, 26px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden;
  transition: transform .45s var(--ease), border-color .4s, box-shadow .45s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 0.8rem; color: var(--muted); align-items: center; }
.card-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--muted-2); }
.card h3 { color: var(--cream); }
.card p { font-size: 0.95rem; }
.card .card-foot { margin-top: auto; padding-top: 8px; }

.tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 100px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.03em;
  background: rgba(214,169,74,0.12); color: var(--gold); border: 1px solid rgba(214,169,74,0.22);
}
.tag.amber { background: rgba(226,132,43,0.13); color: var(--amber); border-color: rgba(226,132,43,0.25); }
.tag.burgundy { background: rgba(154,49,66,0.16); color: #e79aa6; border-color: rgba(154,49,66,0.3); }
.tag.ghost { background: transparent; color: var(--muted); border-color: var(--border-strong); }

/* Artist card (premium, tall image) */
.artist-card { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 3/4; display: flex; align-items: flex-end; }
.artist-card .media { position: absolute; inset: 0; border-radius: 0; }
.artist-card .overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(10,9,8,0.5) 60%, rgba(8,7,6,0.95) 100%); }
.artist-card .a-body { position: relative; z-index: 2; padding: 24px; width: 100%; }
.artist-card .a-body .date { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.artist-card .a-body h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); margin: 6px 0; color: #fff; }
.artist-card .a-body .meta { font-size: 0.85rem; color: var(--cream-dim); }
.artist-card:hover .media { transform: scale(1.04); transition: transform .8s var(--ease); }

/* Category card */
.cat-card { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/5; display: flex; align-items: flex-end; padding: 24px; }
.cat-card .media { position: absolute; inset: 0; border-radius: 0; }
.cat-card .overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,9,8,0.1) 30%, rgba(8,7,6,0.85) 100%); transition: background .4s; }
.cat-card:hover .overlay { background: linear-gradient(180deg, rgba(124,36,51,0.25) 0%, rgba(8,7,6,0.9) 100%); }
.cat-card .c-body { position: relative; z-index: 2; }
.cat-card .c-body h3 { color: #fff; font-size: 1.5rem; }
.cat-card .c-body span { font-size: 0.85rem; color: var(--cream-dim); display: block; margin-top: 2px; }
.cat-card .c-num { position: absolute; top: 20px; right: 22px; z-index: 2; font-family: var(--serif); color: rgba(243,236,221,0.4); font-size: 1.1rem; }
.cat-card.span-2 { grid-column: span 2; aspect-ratio: auto; }

/* Vendor / food card */
.vendor-card .media { aspect-ratio: 16/10; border-radius: 0; }
.vendor-card .rating { display: inline-flex; align-items: center; gap: 5px; color: var(--gold-bright); font-weight: 700; font-size: 0.85rem; }
.vendor-card .price { color: var(--muted); font-weight: 600; }
.fav-btn { position: absolute; top: 14px; right: 14px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; background: rgba(14,14,17,0.6); backdrop-filter: blur(6px); display: grid; place-items: center; border: 1px solid var(--border-strong); transition: .25s; }
.fav-btn svg { width: 18px; height: 18px; stroke: var(--cream); fill: none; }
.fav-btn:hover { background: var(--burgundy); }
.fav-btn.active svg { fill: var(--amber); stroke: var(--amber); }

/* Filter bar */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 32px; }
.search-field { position: relative; flex: 1; min-width: 240px; }
.search-field input { width: 100%; padding: 14px 18px 14px 46px; background: var(--bg-3); border: 1px solid var(--border-strong); border-radius: 100px; color: var(--cream); transition: border-color .25s; }
.search-field input:focus { outline: none; border-color: var(--gold); }
.search-field svg { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; stroke: var(--muted); }
.chip {
  padding: 10px 17px; border-radius: 100px; font-size: 0.85rem; font-weight: 600; color: var(--cream-dim);
  background: var(--bg-3); border: 1px solid var(--border); transition: .25s; white-space: nowrap;
}
.chip:hover { border-color: var(--border-strong); }
.chip.active { background: var(--gold); color: var(--ink); border-color: var(--gold); }

/* ============================================================
   STORY / SPLIT
   ============================================================ */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.story-stats { display: flex; gap: 34px; flex-wrap: wrap; margin-top: 34px; }
.stat b { display: block; font-family: var(--serif); font-size: clamp(2rem, 4vw, 2.8rem); color: var(--gold-bright); font-weight: 500; line-height: 1; }
.stat span { font-size: 0.85rem; color: var(--muted); letter-spacing: 0.02em; }
.feature-list { list-style: none; display: grid; gap: 14px; margin-top: 26px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--cream-dim); font-size: 0.98rem; }
.feature-list li::before { content: ""; flex: none; margin-top: 8px; width: 7px; height: 7px; border-radius: 2px; background: var(--gold); transform: rotate(45deg); }

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline { position: relative; max-width: 860px; margin: 0 auto; padding-left: 8px; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--gold), var(--burgundy)); opacity: 0.5; }
.tl-item { position: relative; padding: 0 0 44px 50px; }
.tl-item::before { content: ""; position: absolute; left: 4px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--gold); box-shadow: 0 0 0 4px rgba(214,169,74,0.12); }
.tl-item .year { font-family: var(--serif); font-size: 1.7rem; color: var(--gold-bright); font-weight: 500; }
.tl-item h3 { color: var(--cream); margin: 4px 0 8px; font-size: 1.2rem; }
.tl-item p { font-size: 0.96rem; }

/* ============================================================
   MAP placeholder
   ============================================================ */
.map-wrap { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 16/10; background:
  radial-gradient(80% 80% at 30% 20%, rgba(226,132,43,0.12), transparent 60%),
  linear-gradient(160deg, #15130f, #0e0c0a); }
.map-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(243,236,221,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(243,236,221,0.05) 1px, transparent 1px); background-size: 44px 44px; }
.map-pin { position: absolute; width: 34px; height: 34px; transform: translate(-50%,-100%); display: grid; place-items: center; }
.map-pin .dot { width: 14px; height: 14px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--gold); box-shadow: 0 4px 10px rgba(0,0,0,0.5); border: 2px solid rgba(255,255,255,0.5); }
.map-pin.amber .dot { background: var(--amber); } .map-pin.burgundy .dot { background: var(--burgundy-soft); } .map-pin.cream .dot { background: var(--cream); }
.map-legend { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: 22px; }
.map-legend span { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--cream-dim); }
.map-legend i { width: 11px; height: 11px; border-radius: 3px; background: var(--gold); display: inline-block; }
.map-overlay-note { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); text-align: center; z-index: 3; }
.map-overlay-note .tag { margin-bottom: 10px; }

/* ============================================================
   ARCHIVE
   ============================================================ */
.archive-card { position: relative; }
.archive-card .media { aspect-ratio: 3/4; border-radius: 0; }
.archive-card .poster-year { position: absolute; top: 16px; left: 16px; z-index: 3; font-family: var(--serif); font-size: 2rem; color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,0.6); }
.year-switch { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; }
.year-switch a { padding: 10px 18px; border-radius: 100px; border: 1px solid var(--border); font-weight: 600; font-size: 0.9rem; color: var(--cream-dim); }
.year-switch a.active, .year-switch a:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }

/* ============================================================
   MEMORIES (community)
   ============================================================ */
.memory-masonry { columns: 3; column-gap: 22px; }
.memory-card { break-inside: avoid; margin-bottom: 22px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--border); background: var(--bg-3); }
.memory-card .media { border-radius: 0; }
.memory-card .m-body { padding: 16px 18px 18px; }
.memory-card .m-body p { font-size: 0.92rem; font-style: italic; font-family: var(--serif); color: var(--cream); }
.memory-card .m-by { font-size: 0.78rem; color: var(--muted); margin-top: 8px; letter-spacing: 0.02em; }

/* ============================================================
   REGRESANDO A CASA (diaspora cities)
   ============================================================ */
.homecoming-card .media { aspect-ratio: 16/10; }
.homecoming-card:hover .media::after { opacity: .65; }

/* ============================================================
   FERIA HALL OF FAME
   ============================================================ */
.hof-card .media { position: relative; }
.hof-year { position: absolute; top: 14px; left: 16px; z-index: 3; font-family: var(--serif); font-size: 1.7rem; color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,0.6); }
.hof-card { position: relative; }
.hof-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--gold), var(--amber)); opacity: .85; z-index: 4; }

/* ============================================================
   LO MEJOR DE LA FERIA (best of)
   ============================================================ */
.bestof-card { text-align: center; border-color: var(--border-strong); background:
  radial-gradient(120% 80% at 50% -10%, rgba(214,169,74,0.10), transparent 60%), var(--bg-3); }
.bestof-card .card-body { align-items: center; }
.bestof-card .eyebrow::before { display: none; }
.bestof-medal { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto;
  background: linear-gradient(150deg, var(--gold-bright), var(--amber)); box-shadow: 0 8px 24px -8px rgba(226,132,43,0.6); }
.bestof-medal svg { width: 26px; height: 26px; }

/* ============================================================
   COMING HOME (diaspora) — shared band
   ============================================================ */
.cta-band { position: relative; border-radius: var(--r-xl); overflow: hidden; padding: clamp(40px, 6vw, 80px); border: 1px solid var(--border); background:
  radial-gradient(90% 120% at 85% 0%, rgba(226,132,43,0.22), transparent 55%),
  radial-gradient(90% 120% at 0% 100%, rgba(124,36,51,0.5), transparent 55%),
  linear-gradient(160deg, #1c1712, #0f0c0a); }
.cta-band .display { font-size: clamp(2.2rem, 5vw, 4rem); }

/* ============================================================
   FORM / signup
   ============================================================ */
.form-card { background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--r-lg); padding: clamp(26px, 4vw, 44px); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--cream-dim); margin-bottom: 7px; letter-spacing: 0.01em; }
.field input, .field select {
  width: 100%; padding: 14px 16px; background: var(--bg); border: 1px solid var(--border-strong); border-radius: var(--r-sm); color: var(--cream); transition: border-color .25s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--gold); }
.field input::placeholder { color: var(--muted-2); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { font-size: 0.78rem; color: var(--muted); margin-top: 14px; }

/* ============================================================
   SPONSORS
   ============================================================ */
.sponsor-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.sponsor-tile { aspect-ratio: 16/9; border-radius: var(--r); border: 1px solid var(--border); background: var(--bg-2); display: grid; place-items: center; padding: 18px; transition: .3s; }
.sponsor-tile:hover { border-color: var(--gold); }
.sponsor-tile .logo-ph { font-family: var(--serif); font-size: 1.1rem; color: var(--muted); letter-spacing: 0.02em; text-align: center; }

/* ============================================================
   LIVE PULSE
   ============================================================ */
.pulse-band { border-radius: var(--r-xl); border: 1px solid var(--border); overflow: hidden; background: var(--bg-2); }
.pulse-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 28px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.pulse-feed { display: grid; grid-template-columns: repeat(4, 1fr); }
.pulse-cell { padding: 22px 24px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.pulse-cell .k { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.pulse-cell .v { font-family: var(--serif); font-size: 1.6rem; color: var(--cream); margin-top: 6px; }
.pulse-cell .trend { font-size: 0.8rem; color: var(--amber); margin-top: 4px; }

/* ============================================================
   FERIABOT widget + WhatsApp float
   ============================================================ */
.float-stack { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.fab { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; box-shadow: var(--shadow); transition: transform .3s var(--ease); }
.fab:hover { transform: scale(1.06); }
.fab svg { width: 26px; height: 26px; }
.fab-wa { background: #25D366; color: #fff; }
.fab-bot { background: linear-gradient(150deg, var(--gold-bright), var(--amber)); color: var(--ink); position: relative; }
.fab-bot::after { content: ""; position: absolute; top: 4px; right: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--burgundy-soft); border: 2px solid var(--bg); }

.bot-panel {
  position: fixed; right: 18px; bottom: 86px; z-index: 91; width: min(360px, calc(100vw - 36px));
  background: var(--bg-2); border: 1px solid var(--border-strong); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  overflow: hidden; transform: translateY(16px) scale(0.98); opacity: 0; pointer-events: none; transform-origin: bottom right; transition: .3s var(--ease);
}
.bot-panel.open { transform: none; opacity: 1; pointer-events: auto; }
.bot-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px; background: linear-gradient(120deg, rgba(214,169,74,0.16), rgba(124,36,51,0.16)); border-bottom: 1px solid var(--border); }
.bot-head .av { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(150deg, var(--gold-bright), var(--amber)); display: grid; place-items: center; color: var(--ink); font-weight: 800; }
.bot-head b { font-family: var(--serif); font-size: 1.1rem; font-weight: 500; }
.bot-head small { color: var(--muted); display: block; font-size: 0.74rem; }
.bot-body { padding: 18px 20px; max-height: 340px; overflow-y: auto; }
.bot-msg { background: var(--bg-3); border: 1px solid var(--border); border-radius: 14px 14px 14px 4px; padding: 12px 15px; font-size: 0.9rem; color: var(--cream-dim); margin-bottom: 14px; }
.bot-suggest { display: flex; flex-wrap: wrap; gap: 8px; }
.bot-suggest button { font-size: 0.8rem; padding: 8px 13px; border-radius: 100px; border: 1px solid var(--border-strong); color: var(--cream-dim); transition: .2s; }
.bot-suggest button:hover { border-color: var(--gold); color: var(--gold); }
.bot-foot { padding: 14px 20px; border-top: 1px solid var(--border); font-size: 0.74rem; color: var(--muted); text-align: center; }

/* ============================================================
   FOOD — dish profiles
   ============================================================ */
.dish-card .media { aspect-ratio: 16/10; }
.dish-photo { display: flex; gap: 9px; align-items: flex-start; font-size: 0.82rem; color: var(--muted); padding-top: 14px; margin-top: 4px; border-top: 1px dashed var(--border-strong); }
.dish-photo svg { flex: none; margin-top: 2px; }
.dish-photo b { color: var(--cream-dim); font-weight: 600; }

/* ============================================================
   SEARCH — nav trigger + modal
   ============================================================ */
.search-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border-strong); display: grid; place-items: center; transition: .25s; color: var(--cream-dim); }
.search-btn:hover { border-color: var(--gold); color: var(--gold); }
.search-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; }

.search-modal {
  position: fixed; inset: 0; z-index: 200; background: rgba(8,7,6,0.72); backdrop-filter: blur(8px);
  display: flex; align-items: flex-start; justify-content: center; padding: clamp(60px,12vh,140px) 20px 20px;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.search-modal.open { opacity: 1; pointer-events: auto; }
.search-box { width: 100%; max-width: 640px; background: var(--bg-2); border: 1px solid var(--border-strong); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; transform: translateY(-12px); transition: transform .25s var(--ease); }
.search-modal.open .search-box { transform: none; }
.search-input-row { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.search-input-row svg { width: 20px; height: 20px; stroke: var(--gold); flex: none; }
.search-input-row input { flex: 1; background: transparent; border: none; color: var(--cream); font-size: 1.1rem; outline: none; }
.search-input-row input::placeholder { color: var(--muted-2); }
#search-close { font-size: 0.72rem; letter-spacing: 0.08em; color: var(--muted); border: 1px solid var(--border-strong); border-radius: 7px; padding: 5px 9px; }
.search-results { max-height: min(56vh, 460px); overflow-y: auto; padding: 8px; }
.search-result { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 14px; border-radius: var(--r-sm); transition: background .18s; }
.search-result:hover { background: rgba(243,236,221,0.06); }
.sr-main { display: flex; flex-direction: column; gap: 2px; color: var(--cream); font-weight: 500; }
.sr-main small { color: var(--muted); font-weight: 400; font-size: 0.8rem; }
.sr-type { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(214,169,74,0.25); border-radius: 100px; padding: 4px 10px; flex: none; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: clamp(56px, 7vw, 90px) 0 34px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer-brand p { margin-top: 16px; font-size: 0.92rem; max-width: 320px; }
.footer-col h4 { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; font-weight: 700; }
.footer-col a { display: block; padding: 6px 0; font-size: 0.92rem; color: var(--cream-dim); transition: color .2s; }
.footer-col a:hover { color: var(--gold); }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-strong); display: grid; place-items: center; transition: .25s; }
.footer-social a:hover { border-color: var(--gold); color: var(--gold); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 50px; padding-top: 26px; border-top: 1px solid var(--border); }
.footer-bottom .legal { font-size: 0.82rem; color: var(--muted); }
.footer-bottom .legal a { color: var(--cream-dim); }
.disclaimer { font-size: 0.78rem; color: var(--muted-2); max-width: 760px; margin-top: 22px; }

/* 8blok credit (protocol) */
.footer-credit { font-size: 0.85rem; color: var(--muted); display: inline-flex; align-items: center; gap: 7px; }
.footer-credit a { text-decoration: none; font-weight: 700; display: inline-flex; align-items: center; }
.footer-credit a:hover { text-decoration: underline; }
.footer-credit img { height: 14px; vertical-align: middle; display: inline-block; }

/* ============================================================
   ANIMATIONS (scroll reveal)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Page hero (inner pages) */
.page-hero { padding: calc(74px + clamp(54px,8vw,110px)) 0 clamp(40px,6vw,70px); position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(70% 90% at 85% 0%, rgba(226,132,43,0.18), transparent 55%),
  radial-gradient(80% 90% at 0% 100%, rgba(124,36,51,0.32), transparent 55%); }
.page-hero .display { font-size: clamp(2.6rem, 7vw, 5rem); }
.breadcrumb { font-size: 0.82rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--gold); }

/* Utility */
.center { text-align: center; }
.mt-s { margin-top: 14px; } .mt-m { margin-top: 26px; } .mt-l { margin-top: 44px; }
.hide { display: none !important; }
.muted { color: var(--muted); }
.maxw-prose { max-width: 680px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.note-strip { display: flex; gap: 12px; align-items: center; padding: 16px 20px; border-radius: var(--r); border: 1px solid var(--border); background: rgba(214,169,74,0.06); font-size: 0.9rem; color: var(--cream-dim); }
.note-strip svg { flex: none; width: 20px; height: 20px; stroke: var(--gold); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .pulse-feed { grid-template-columns: repeat(2, 1fr); }
  .sponsor-grid { grid-template-columns: repeat(3, 1fr); }
  .memory-masonry { columns: 2; }
}
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-burger { display: grid; }
  .nav .lang-toggle { display: none; }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .split.reverse > :first-child { order: 0; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .cat-card.span-2 { grid-column: span 1; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .sponsor-grid { grid-template-columns: repeat(2, 1fr); }
  .memory-masonry { columns: 1; }
  .pulse-feed { grid-template-columns: 1fr 1fr; }
  .pulse-cell { padding: 18px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1; }
  .countdown { flex-wrap: wrap; }
  .count-unit { flex: 1; min-width: 64px; }
  .float-stack { right: 14px; bottom: 14px; }
}
