/* ============================================================
   EVENTOS — Fiestas de Independencia 2026
   Usa los tokens de variables.css
   ============================================================ */

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 110px); }
body { background: var(--clr-bg); color: var(--clr-dark); font-family: var(--ff-body); }

/* Categorías */
.cat-desfile { --c: #C4922A; }
.cat-cultura { --c: #4F7A5A; }
.cat-nautico { --c: #2F6FA3; }

/* ── Hero ── */
.ev-hero {
  position: relative;
  min-height: 78vh;
  padding-top: var(--header-h);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--clr-white);
}
.ev-hero__bg { position: absolute; inset: 0; z-index: 0; }
.ev-hero__bg-img { width: 100%; height: 100%; object-fit: cover; object-position: center 65%; }
.ev-hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to bottom, rgba(5, 14, 5, 0.55) 0%, rgba(5, 14, 5, 0.85) 100%),
    linear-gradient(to right, rgba(5, 14, 5, 0.45) 0%, rgba(5, 14, 5, 0) 70%);
}
.ev-hero__content {
  position: relative; z-index: 2; width: 100%;
  padding: var(--sp-12) clamp(2rem, 7vw, 5rem) 7rem;
  display: grid; grid-template-columns: 1.35fr 1fr; gap: var(--sp-12); align-items: end;
}
.ev-hero__label {
  display: inline-block; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--clr-gold); margin-bottom: var(--sp-3);
}
.ev-hero__title {
  font-family: var(--ff-heading); font-size: clamp(2.1rem, 4.6vw, 3.9rem);
  font-weight: 700; line-height: 1.05; margin-bottom: var(--sp-4);
}
.ev-hero__title em { font-style: normal; color: var(--clr-gold); display: block; }
.ev-hero__sub { font-size: clamp(0.95rem, 1.2vw, 1.0625rem); color: rgba(255,255,255,.82); line-height: 1.7; max-width: 580px; }
.ev-hero__stats { list-style: none; display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-6); margin-top: var(--sp-6); padding: 0; }
.ev-hero__stats li { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.ev-hero__stats b { color: var(--clr-gold); font-size: 0.9375rem; margin-right: 4px; }

.ev-count {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: var(--r-lg); padding: var(--sp-6);
}
.ev-count__label { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--clr-gold); }
.ev-count__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-2); margin: var(--sp-4) 0; }
.ev-count__grid div { background: rgba(0,0,0,.28); border-radius: var(--r-md); text-align: center; padding: var(--sp-3) var(--sp-1); }
.ev-count__grid b { display: block; font-family: var(--ff-heading); font-size: 2rem; line-height: 1; }
.ev-count__grid small { font-size: 0.6875rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.ev-count__status { font-family: var(--ff-heading); font-size: 1.5rem; margin: var(--sp-3) 0; }
.ev-count__next { font-size: 0.9375rem; color: rgba(255,255,255,.85); line-height: 1.55; }
.ev-count__next strong { color: var(--clr-white); font-weight: 600; }

/* ── Tira de fechas ── */
.ev-strip {
  position: sticky; top: calc(var(--header-h) + 8px); z-index: 50;
  margin-top: -3.25rem; padding: 0 clamp(1rem, 7vw, 5rem);
}
.ev-strip__box {
  max-width: 1200px; margin: 0 auto; background: var(--clr-white);
  border-radius: var(--r-lg); box-shadow: var(--shadow-bar);
  padding: var(--sp-3) var(--sp-4); display: flex; align-items: center; gap: var(--sp-4);
}
.ev-strip__month {
  font-family: var(--ff-heading); font-weight: 700; font-size: 0.9375rem; color: var(--clr-dark);
  line-height: 1.1; flex-shrink: 0; padding-right: var(--sp-4); border-right: 1px solid var(--clr-border);
}
.ev-strip__month small { display: block; font-family: var(--ff-body); font-weight: 500; color: var(--clr-muted); font-size: 0.75rem; letter-spacing: .08em; }
.ev-strip__days { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.ev-strip__days::-webkit-scrollbar { display: none; }

.ev-day {
  flex: 0 0 auto; width: 52px; border-radius: var(--r-md); border: 1px solid transparent; background: transparent;
  padding: 6px 0 10px; text-align: center; color: #B8B6A6; position: relative; cursor: pointer;
  font-family: var(--ff-body); transition: background var(--t-fast), color var(--t-fast);
}
.ev-day small { display: block; font-size: 0.6875rem; text-transform: uppercase; letter-spacing: .08em; }
.ev-day b { display: block; font-size: 1.25rem; font-weight: 600; }
.ev-day.has { color: var(--clr-dark); }
.ev-day.has::after { content: ''; position: absolute; left: 50%; bottom: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--clr-gold); transform: translateX(-50%); }
.ev-day.has:hover { background: rgba(196,146,42,.12); }
.ev-day.past.has { color: #A9A795; }
.ev-day.today { border-color: var(--clr-dark); }
.ev-day.sel { background: var(--clr-dark); color: var(--clr-white); }
.ev-day:disabled { cursor: default; }

/* ── Layout ── */
.ev-main { padding: 0 clamp(1rem, 7vw, 5rem) var(--sp-16); }
.ev-section, .ev-cta, .ev-note { max-width: 1200px; margin-left: auto; margin-right: auto; }
.ev-section { padding-top: clamp(2.5rem, 5vw, 4rem); }
.ev-kicker { display: inline-block; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--clr-gold); margin-bottom: var(--sp-2); }
.ev-h2 { font-family: var(--ff-heading); font-size: clamp(1.6rem, 2.8vw, 2.4rem); font-weight: 700; color: var(--clr-dark); line-height: 1.15; }
.ev-lead { color: var(--clr-muted); margin-top: var(--sp-2); font-size: 0.9875rem; line-height: 1.65; max-width: 720px; }

.ev-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--sp-5); margin-bottom: var(--sp-8); }
.ev-controls { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }
.ev-chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.ev-chip {
  border: 1px solid var(--clr-border); background: var(--clr-white); color: var(--clr-dark); border-radius: var(--r-pill);
  padding: 8px 15px; font-size: 0.8125rem; font-weight: 500; display: inline-flex; align-items: center; gap: 7px;
  cursor: pointer; font-family: var(--ff-body); transition: border-color var(--t-fast), background var(--t-fast);
}
.ev-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.ev-chip:hover { border-color: var(--clr-gold); }
.ev-chip.is-on { background: var(--clr-dark); border-color: var(--clr-dark); color: var(--clr-white); }
.ev-seg { display: inline-flex; background: var(--clr-white); border: 1px solid var(--clr-border); border-radius: var(--r-pill); padding: 3px; }
.ev-seg button {
  border: 0; background: transparent; padding: 7px 14px; border-radius: var(--r-pill); font-size: 0.8125rem; font-weight: 500;
  color: var(--clr-muted); display: inline-flex; gap: 6px; align-items: center; cursor: pointer; font-family: var(--ff-body);
}
.ev-seg svg { width: 14px; height: 14px; }
.ev-seg button.is-on { background: var(--clr-gold); color: var(--clr-white); }

/* ── Línea de tiempo ── */
.ev-tl-month { font-family: var(--ff-heading); color: var(--clr-gold); font-size: 0.8125rem; letter-spacing: .14em; margin: 0 0 var(--sp-4) 128px; }
.ev { display: grid; grid-template-columns: 96px 32px 1fr; }
.ev-date { text-align: right; padding-top: 20px; }
.ev-date .wd { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: .12em; color: var(--clr-muted); }
.ev-date .wd .short { display: none; }
.ev-date .dn { font-family: var(--ff-heading); font-size: 2.5rem; line-height: 1; color: var(--clr-dark); font-weight: 700; }
.ev-date .dn small { font-size: 1.375rem; }
.ev-date .mo { font-size: 0.8125rem; color: var(--clr-muted); }
.ev-rail { position: relative; display: flex; justify-content: center; }
.ev-rail::before { content: ''; position: absolute; top: 0; bottom: 0; width: 2px; background: rgba(26,43,26,.12); }
.ev:first-of-type .ev-rail::before { top: 32px; }
.ev:last-of-type .ev-rail::before { bottom: auto; height: 32px; }
.ev-dot { position: relative; margin-top: 28px; width: 14px; height: 14px; border-radius: 50%; background: var(--clr-white); border: 3px solid var(--clr-gold); z-index: 1; }
.ev.past .ev-dot { border-color: #C9C6B4; background: #C9C6B4; }
.ev.now .ev-dot { background: var(--clr-gold); box-shadow: 0 0 0 6px var(--clr-gold-glow); animation: ev-pulse 1.8s infinite; }
@keyframes ev-pulse { 50% { box-shadow: 0 0 0 11px rgba(196,146,42,0); } }

.ev-card {
  margin: 8px 0 18px 10px; background: var(--clr-white); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-card); border: 1px solid transparent;
  display: grid; grid-template-columns: 6px 1fr; transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.ev-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }
.ev.sel .ev-card { border-color: var(--clr-gold); box-shadow: 0 10px 36px var(--clr-gold-glow); }
.ev-bar { background: var(--c); }
.ev-body { padding: var(--sp-5) var(--sp-6); }
.ev-top { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; margin-bottom: var(--sp-3); }
.ev-tag {
  display: inline-flex; align-items: center; gap: 5px; font-size: 0.6875rem; font-weight: 600; letter-spacing: .04em;
  padding: 4px 10px 4px 8px; border-radius: var(--r-pill); background: rgba(26,43,26,.88); color: var(--clr-white);
}
.ev-tag svg { width: 9px; height: 12px; }
.ev-tag--cat { background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--clr-dark); }
.ev-tag--cat i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.ev-badge { font-size: 0.6875rem; font-weight: 600; letter-spacing: .04em; padding: 4px 10px; border-radius: var(--r-pill); margin-left: auto; }
.ev-badge.soon { background: rgba(196,146,42,.12); color: var(--clr-gold); }
.ev-badge.next { background: var(--clr-gold); color: var(--clr-white); }
.ev-badge.live { background: #B23A2E; color: var(--clr-white); }
.ev-badge.done { background: #ECE9DC; color: var(--clr-muted); }
.ev-title { font-family: var(--ff-heading); font-size: 1.25rem; font-weight: 700; color: var(--clr-dark); line-height: 1.3; }
.ev.feat .ev-title::after { content: '★ Imperdible'; font-family: var(--ff-body); font-size: 0.6875rem; font-weight: 600; letter-spacing: .06em; color: var(--clr-gold); margin-left: 10px; vertical-align: middle; text-transform: uppercase; }
.ev-desc { color: #4a5a4a; margin-top: var(--sp-2); font-size: 0.9375rem; line-height: 1.6; max-width: 700px; }
.ev-actions { display: flex; flex-wrap: wrap; gap: var(--sp-5); margin-top: var(--sp-4); padding-top: var(--sp-3); border-top: 1px solid var(--clr-border); }
.ev-link {
  display: inline-flex; align-items: center; gap: var(--sp-2); color: var(--clr-gold); font-weight: 600; font-size: 0.8125rem;
  background: none; border: 0; cursor: pointer; font-family: var(--ff-body); transition: color var(--t-fast), gap var(--t-fast);
}
.ev-link svg { width: 15px; height: 15px; }
.ev-link:hover { color: var(--clr-gold-hover); gap: var(--sp-3); }
.ev.past .ev-card { opacity: .6; }
.ev.past .ev-card:hover { opacity: 1; }
.ev-empty { text-align: center; color: var(--clr-muted); padding: var(--sp-10); background: var(--clr-white); border-radius: var(--r-lg); }
.ev-note { font-size: 0.8125rem; color: var(--clr-muted); margin-top: var(--sp-2); padding-left: 128px; }

/* ── Calendario ── */
.ev-cal { background: var(--clr-white); border-radius: var(--r-lg); padding: var(--sp-5); box-shadow: var(--shadow-card); }
.ev-cal__head, .ev-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.ev-cal__head div { text-align: center; font-size: 0.6875rem; text-transform: uppercase; letter-spacing: .12em; color: var(--clr-muted); padding-bottom: 8px; font-weight: 600; }
.ev-cell { min-height: 110px; border-radius: var(--r-md); background: #F8F6EE; padding: 8px; display: flex; flex-direction: column; gap: 5px; }
.ev-cell.out { background: transparent; }
.ev-cell .n { font-size: 0.875rem; font-weight: 600; color: #B8B6A6; }
.ev-cell.has .n { color: var(--clr-dark); }
.ev-cell.today { outline: 2px solid var(--clr-dark); }
.ev-cell.fest { background: #FAF3DF; }
.ev-pill {
  text-align: left; border: 0; border-radius: 6px; padding: 5px 7px; font-size: 0.75rem; font-weight: 500; line-height: 1.25;
  color: var(--clr-dark); background: color-mix(in srgb, var(--c) 18%, #fff); border-left: 3px solid var(--c); cursor: pointer; font-family: var(--ff-body);
}
.ev-pill:hover { background: color-mix(in srgb, var(--c) 30%, #fff); }
.ev-cell.past .ev-pill { opacity: .55; }

/* ── CTA ── */
.ev-cta {
  margin-top: clamp(2.5rem, 5vw, 4rem); border-radius: var(--r-xl); overflow: hidden; position: relative; color: var(--clr-white);
  background: var(--clr-dark); padding: var(--sp-10) var(--sp-12); display: grid; grid-template-columns: 1fr auto; gap: var(--sp-6); align-items: center;
}
.ev-cta::after { content: ''; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; border: 40px solid rgba(196,146,42,.14); }
.ev-cta h3 { font-family: var(--ff-heading); font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.2; }
.ev-cta h3 em { font-style: normal; color: var(--clr-gold); }
.ev-cta p { color: rgba(255,255,255,.78); margin-top: var(--sp-2); max-width: 620px; }
.ev-btn {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: var(--sp-2); border-radius: var(--r-pill);
  padding: 0.8rem 1.5rem; font-size: 0.9375rem; font-weight: 600; white-space: nowrap; transition: background-color var(--t-fast), transform var(--t-fast);
}
.ev-btn svg { width: 16px; height: 16px; }
.ev-btn--gold { background: var(--clr-gold); color: var(--clr-white); }
.ev-btn--gold:hover { background: var(--clr-gold-hover); transform: translateY(-1px); }

/* ── Lineup ── */
.ev-lineup { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--sp-4); margin-top: var(--sp-6); }
.ev-artist {
  background: linear-gradient(160deg, var(--clr-dark) 0%, #0F1A0F 100%); color: var(--clr-white); border-radius: var(--r-lg);
  padding: var(--sp-6) var(--sp-3); text-align: center; transition: transform var(--t-base);
}
.ev-artist:hover { transform: translateY(-4px); }
.ev-artist .ini {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto var(--sp-3); display: grid; place-items: center;
  background: rgba(196,146,42,.16); border: 1px solid rgba(196,146,42,.55); color: var(--clr-gold);
  font-family: var(--ff-heading); font-size: 1.15rem; font-weight: 700;
}
.ev-artist b { font-family: var(--ff-heading); font-size: 0.9375rem; font-weight: 600; display: block; line-height: 1.25; }

/* ── Hoteles (usa .hotel-card de hotels.css) ── */
.ev-hotels { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); margin-top: var(--sp-6); }
.ev-hotels .hotel-card__img-wrap { height: 240px; }
.ev-hotels .hotel-card__body { padding: var(--sp-4) var(--sp-5) var(--sp-5); }
.ev-hotels .hotel-card__name { font-size: 1.0625rem; margin-bottom: var(--sp-1); }
.ev-hotels .hotel-card__desc { font-size: 0.875rem; margin-bottom: var(--sp-4); }
.ev-hotels .hotel-card__link { font-size: 0.875rem; padding-top: var(--sp-3); }
.ev-quote {
  font-family: var(--ff-heading); color: var(--clr-dark); font-size: 1.0625rem; text-align: center;
  margin-top: var(--sp-10);
}
.ev-quote::before, .ev-quote::after { content: '—'; color: var(--clr-gold); margin: 0 var(--sp-3); }

/* ── Toast ── */
.ev-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 120px); background: var(--clr-dark); color: var(--clr-white);
  padding: 12px 20px; border-radius: var(--r-pill); font-size: 0.875rem; transition: transform var(--t-slow); z-index: 200;
}
.ev-toast.show { transform: translate(-50%, 0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .ev-lineup { grid-template-columns: repeat(3, 1fr); }
  .ev-hotels { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .ev-hero__content { grid-template-columns: 1fr; gap: var(--sp-6); padding-bottom: 6rem; }
  .ev-cta { grid-template-columns: 1fr; padding: var(--sp-8) var(--sp-6); }
  .ev-cell { min-height: 84px; }
  .ev-pill { font-size: 0.6875rem; padding: 4px 5px; }
}

@media (max-width: 640px) {
  .ev-count__grid b { font-size: 1.6rem; }
  .ev-strip { padding: 0 var(--sp-4); }
  .ev-strip__box { padding: var(--sp-2) var(--sp-3); gap: var(--sp-3); }
  .ev-strip__month { font-size: 0.8125rem; padding-right: var(--sp-3); }
  .ev-day { width: 44px; }
  .ev-main { padding: 0 var(--sp-4) var(--sp-12); }
  .ev { grid-template-columns: 56px 22px 1fr; }
  .ev-date { padding-right: 2px; }
  .ev-date .wd { font-size: 0.625rem; letter-spacing: .04em; }
  .ev-date .wd .full { display: none; }
  .ev-date .wd .short { display: inline; }
  .ev-date .dn { font-size: 1.875rem; }
  .ev-date .dn small { font-size: 1rem; }
  .ev-tl-month { margin-left: 0; }
  .ev-note { padding-left: 0; }
  .ev-card { margin-left: 4px; }
  .ev-body { padding: var(--sp-4); }
  .ev-title { font-size: 1.0625rem; }
  .ev-badge { margin-left: 0; }
  .ev-lineup { grid-template-columns: repeat(2, 1fr); }
  .ev-hotels { grid-template-columns: 1fr; }
  .ev-cal { padding: var(--sp-2); }
  .ev-cal__head, .ev-cal__grid { gap: 3px; }
  .ev-cell { min-height: 60px; padding: 4px; }
  .ev-pill { font-size: 0; padding: 0; height: 8px; border-left: 0; background: var(--c); border-radius: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ev.now .ev-dot { animation: none; }
}
