/* ─── Design tokens · Dark Minimalist Editorial ─── */
:root {
  --bg: #08090D;
  --surface: #11131A;
  --surface-2: #171923;
  --border: #242733;
  --text: #F5F7FF;
  --text-2: #9299AD;
  --text-3: #cde739;
  --primary: #7257F5;
  --primary-hover: #8068FF;
  --accent: #25C7E8;

  /* Category accents */
  --cat-videojuegos: #fd79a8;
  --cat-deportes: #00cec9;
  --cat-politica: #6c5ce7;
  --cat-espectaculos: #9b59b6;
  --cat-especiales: #f39c12;
  --cat-cultura: #e67e22;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 100px;
  --max-w: 1120px;
  --content-max-width: 1240px;
  --header-h: 68px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --ease: 0.18s ease;
}

/* ─── Global Container System ─── */
.site-container {
  max-width: var(--content-max-width, 1240px);
  width: calc(100% - 64px);
  margin-inline: auto;
}

@media (max-width: 768px) {
  .site-container {
    width: calc(100% - 40px);
  }
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss01' on, 'cv11' on;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.home-heading {
  margin-bottom: 1rem;
}

.home-heading h1 {
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 650;
  letter-spacing: -0.025em;
  margin: 0;
}

/* ─── Header FULL WIDTH (DARK TRANSLUCENT IN BOTH THEMES) ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  max-width: 100%;
  height: 68px;
  background: rgba(4, 12, 22, 0.90) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10) !important;
}

[data-theme="light"] .site-header {
  background: rgba(4, 12, 22, 0.90) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10) !important;
}

.header-inner {
  max-width: var(--content-max-width, 1240px);
  width: calc(100% - 64px);
  margin: 0 auto;
  height: 100%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .header-inner {
    width: calc(100% - 40px);
  }
}

.header-search-wrap {
  position: relative;
  width: 200px;
  flex-shrink: 0;
}

.header-search-input {
  width: 100%;
  height: 38px;
  font-family: inherit;
  font-size: 0.82rem;
  color: #ffffff !important;
  background: rgba(20, 35, 52, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 10px;
  padding: 0 0.85rem 0 2.2rem;
  outline: none;
  transition: border-color var(--ease), background var(--ease);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239aacbf' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0.75rem center;
}

[data-theme="light"] .header-search-input {
  background-color: rgba(20, 35, 52, 0.85) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
}

.header-search-input::placeholder {
  color: rgba(245, 247, 250, 0.65) !important;
}

.header-search-input:focus {
  border-color: var(--primary);
  background-color: rgba(20, 35, 52, 0.95) !important;
}

.site-header .logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 750;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: #ffffff !important;
}

[data-theme="light"] .site-header .logo {
  color: #ffffff !important;
}

.site-header .logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.20) !important;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  color: #00cec9 !important;
}

[data-theme="light"] .site-header .logo-mark {
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.20) !important;
  color: #00cec9 !important;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav a {
  font-size: 0.84rem;
  font-weight: 550;
  color: rgba(245, 247, 250, 0.85) !important;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm, 8px);
  transition: color var(--ease), background var(--ease);
}

.nav a:hover {
  color: #ffffff !important;
}

.nav a.active,
[data-theme="light"] .nav a.active {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.16) !important;
}

/* ─── Nav Dropdown ("Más") ─── */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 550;
  color: rgba(245, 247, 250, 0.85) !important;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm, 8px);
  cursor: pointer;
  transition: color var(--ease), background var(--ease);
  line-height: inherit;
}

.nav-dropdown-btn:hover,
.nav-dropdown.is-open .nav-dropdown-btn {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08);
}

.nav-dropdown-btn.active,
.nav-dropdown.has-active .nav-dropdown-btn,
[data-theme="light"] .nav-dropdown-btn.active,
[data-theme="light"] .nav-dropdown.has-active .nav-dropdown-btn {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.16) !important;
}

.nav-dropdown-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.nav-dropdown-icon {
  display: inline-block;
  transition: transform var(--ease);
  flex-shrink: 0;
  opacity: 0.8;
}

.nav-dropdown.is-open .nav-dropdown-icon {
  transform: rotate(180deg);
  opacity: 1;
}

/* Desktop dropdown menu panel */
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 195px;
  background: #0f131a;
  background: rgba(15, 19, 26, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0.35rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.25);
  z-index: 1000;
  flex-direction: column;
  gap: 2px;
}

[data-theme="light"] .nav-dropdown-menu {
  background: #0f131a;
  background: rgba(15, 19, 26, 0.96);
  border-color: rgba(255, 255, 255, 0.14);
}

.nav-dropdown.is-open .nav-dropdown-menu {
  display: flex;
}

@media (hover: hover) and (min-width: 769px) {
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu {
    display: flex;
  }
  .nav-dropdown:hover .nav-dropdown-icon,
  .nav-dropdown:focus-within .nav-dropdown-icon {
    transform: rotate(180deg);
    opacity: 1;
  }
}

.nav-dropdown-menu a {
  display: flex !important;
  align-items: center;
  font-size: 0.84rem;
  font-weight: 500;
  color: rgba(245, 247, 250, 0.88) !important;
  padding: 0.55rem 0.85rem;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--ease), background var(--ease);
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.10) !important;
  outline: none;
}

.nav-dropdown-menu a.active,
[data-theme="light"] .nav-dropdown-menu a.active {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.18) !important;
  font-weight: 600;
}


/* ─── Main ─── */
.main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem 1.25rem 0rem;
}

.main-full {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* ─── Featured / Hero ─── */
.featured {
  margin-bottom: 2.5rem;
}

.featured-card {
  background: linear-gradient(180deg,
      color-mix(in srgb, var(--cat-color, var(--primary)) 10%, var(--surface)) 0%,
      var(--surface) 55%);
  border: 1px solid var(--border);
  border-top: 3px solid var(--cat-color, var(--primary));
  border-radius: 12px;
  padding: 1.75rem 1.5rem 1.5rem;
  position: relative;
  z-index: 0;
  overflow: hidden;
}

.featured-card.has-bg-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--event-bg);
  background-size: cover;
  background-position: center;
  z-index: -2;
}

.featured-card.has-bg-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      color-mix(in srgb, var(--surface) 55%, transparent),
      color-mix(in srgb, var(--surface) 92%, transparent));
  z-index: -1;
}

@media (min-width: 768px) {
  .featured-card {
    padding: 2rem 2rem 1.75rem;
  }
}

.featured-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-bottom: 0.85rem;
}

.featured-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
}

.featured-body {
  display: block;
}

.featured-cat {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cat-color, var(--primary));
}

.featured-title {
  font-size: clamp(1.65rem, 4.2vw, 2.35rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin-bottom: 0.45rem;
  color: var(--text);
  text-wrap: balance;
}

.featured-tagline {
  font-size: 0.95rem;
  color: var(--text-2);
  margin-bottom: 1.35rem;
  line-height: 1.45;
  max-width: 48ch;
}

.featured-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.84rem;
  color: var(--text-2);
  margin-bottom: 1.35rem;
}

.featured-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* When / where */
.when-block {
  display: grid;
  gap: 1rem;
  margin: 0 0 1.5rem;
  padding: 1.1rem 0 1.2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

@media (min-width: 640px) {
  .when-block {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1.5rem;
  }
}

.when-kicker {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 0.35rem;
}

.when-date {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--text);
}

.when-time {
  margin-top: 0.2rem;
  font-size: 0.9rem;
  color: var(--text-2);
}

.when-note {
  margin-top: 0.35rem;
  font-size: 0.72rem;
  color: var(--text-3);
  line-height: 1.4;
}

/* Countdown — full width, typographic */
.featured-countdown,
.detail-countdown {
  text-align: center;
}

.cd-kicker {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 0.75rem;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.45rem;
}

@media (min-width: 640px) {
  .countdown {
    gap: 0.7rem;
  }
}

.cd-unit {
  text-align: center;
  padding: 0.85rem 0.2rem 0.75rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-bottom: 2px solid var(--cat-color, var(--border));
  border-radius: 10px;
}

.cd-value {
  font-size: clamp(1.85rem, 7.5vw, 4rem);
  font-weight: 650;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--text);
}

.cd-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 0.45rem;
}

.featured-cta {
  margin-top: 1.25rem;
}

/* Status when finished / live */
.countdown-status {
  display: none;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-2);
  padding: 1.5rem 0;
  text-align: center;
}

.featured-card.is-live .countdown,
.featured-card.is-passed .countdown,
.featured-card.is-cancelled .countdown,
.featured-card.is-tbd .countdown,
.detail-hero.is-live .countdown,
.detail-hero.is-passed .countdown,
.detail-hero.is-cancelled .countdown,
.detail-hero.is-tbd .countdown,
.detail-countdown.is-live .countdown,
.detail-countdown.is-passed .countdown {
  display: none;
}

.featured-card.is-live .countdown-status,
.featured-card.is-passed .countdown-status,
.detail-hero.is-live .countdown-status,
.detail-hero.is-passed .countdown-status,
.detail-countdown.is-live .countdown-status,
.detail-countdown.is-passed .countdown-status {
  display: block;
}

.featured-card.is-live .countdown-status,
.detail-hero.is-live .countdown-status {
  color: var(--accent);
}

/* ─── Button System (Common) ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--ease), color var(--ease), border-color var(--ease),
    box-shadow var(--ease), transform 0.2s ease;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Primary */
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 10px color-mix(in srgb, var(--primary) 30%, transparent);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--primary) 45%, transparent);
}

/* Secondary (ghost with subtle fill) */
.btn-secondary {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--surface);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

/* Outline */
.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-outline:hover {
  background: var(--surface-2);
  border-color: color-mix(in srgb, var(--primary) 50%, var(--border));
}

/* Link-style button */
.btn-link {
  background: transparent;
  border: none;
  color: var(--primary);
  padding: 0;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--ease);
}

.btn-link:hover {
  color: var(--primary-hover);
}

/* Small size modifier */
.btn-sm {
  font-size: 0.8rem;
  padding: 0.42rem 0.9rem;
  border-radius: var(--radius-sm);
}

/* Large size modifier */
.btn-lg {
  font-size: 1rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
}


/* ─── Upcoming section ─── */
.upcoming {
  margin-top: 0.25rem;
}

.section-head {
  margin-bottom: 1rem;
}

.section-head h2 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.15rem;
}

.section-head p {
  font-size: 0.8rem;
  color: var(--text-3);
}

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.filter-btn {
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-2);
  background: transparent;
  border: 1px solid var(--border);
  padding: 0.32rem 0.75rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: color var(--ease), background var(--ease), border-color var(--ease);
}

.filter-btn:hover {
  color: var(--text);
  border-color: #2e3344;
}

.filter-btn.active {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

/* Event list items */
.events-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.list-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  transition: background var(--ease), border-color var(--ease);
  position: relative;
}

.list-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 2px;
  border-radius: 2px;
  background: var(--cat-color, transparent);
  opacity: 0.7;
}

.list-item:hover {
  background: var(--surface-2);
  border-color: #2e3344;
}

.list-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.list-body {
  flex: 1;
  min-width: 0;
}

.list-cat {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--cat-color, var(--text-3));
}

.list-title {
  font-size: 0.9rem;
  font-weight: 550;
  letter-spacing: -0.015em;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}

.list-loc {
  font-size: 0.75rem;
  color: var(--text-3);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.list-date {
  font-size: 0.75rem;
  color: var(--text-3);
  white-space: nowrap;
  flex-shrink: 0;
  text-align: right;
}

.list-status {
  font-size: 0.68rem;
  font-weight: 550;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-3);
  flex-shrink: 0;
}

.list-status.is-today {
  color: var(--accent);
}

.list-status.is-live {
  color: var(--accent);
}

.list-status.is-done {
  color: var(--text-3);
}

.list-arrow {
  color: var(--text-3);
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: color var(--ease), transform var(--ease);
}

.list-item:hover .list-arrow {
  color: var(--primary);
  transform: translateX(2px);
}

.list-date-short {
  display: none;
}

@media (max-width: 560px) {
  .list-date-full {
    display: none;
  }

  .list-date-short {
    display: inline-block;
  }
}

/* ─── Ad slot (non-intrusive) ─── */
.ad-slot {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1rem 1.25rem 0;
}

.ad-slot-inner {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ad-slot-label {
  font-size: 0.65rem;
  color: var(--text-3);
  text-align: center;
  margin-bottom: 0.4rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}


/* ═══════════════════════════════════════════════════════
   PHASE 1 — COMMON VISUAL SYSTEM
   Reference: evento.html (approved)
   Applicable to: all pages
   DO NOT override detail-page / hero specific rules
   ═══════════════════════════════════════════════════════ */

/* ─── Page-level wrapper for non-hero pages ─── */
.page-wrap {
  max-width: var(--content-max-width, 1240px);
  width: calc(100% - 64px);
  margin-inline: auto;
  padding-top: 2.5rem;
  padding-bottom: 4rem;
}

@media (max-width: 768px) {
  .page-wrap {
    width: calc(100% - 40px);
    padding-top: 1.75rem;
    padding-bottom: 2.5rem;
  }
}

/* ─── Common page-header (for legal, contact, etc.) ─── */
.page-header {
  margin-bottom: 2rem;
}

.page-header h1 {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 750;
  letter-spacing: -0.028em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.page-header p {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.6;
  max-width: 60ch;
}

/* Accent bar before section headings */
.page-header h1::before,
.section-title::before {
  content: none;
}

/* ─── Common Event Card (.event-card) ─── */
/* Base visual for all event cards across the site.
   Replaces the old .list-item style on pages that adopt the new design. */
.event-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  position: relative;
  text-decoration: none;
  color: inherit;
  transition: background var(--ease), border-color 0.22s ease, transform 0.22s ease,
    box-shadow 0.22s ease;
  overflow: hidden;
}

/* Category accent bar on left edge */
.event-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12%;
  bottom: 12%;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--cat-color, var(--primary));
  opacity: 0.85;
  transition: opacity 0.22s ease;
}

.event-card:hover {
  background: var(--surface-2);
  border-color: color-mix(in srgb, var(--cat-color, var(--primary)) 35%, var(--border));
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.event-card:hover::before {
  opacity: 1;
}

[data-theme="light"] .event-card:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.event-card-cat {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cat-color, var(--primary));
  margin-bottom: 0.5rem;
}

.event-card-title {
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.018em;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.event-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-top: auto;
  padding-top: 0.75rem;
}

.event-card-date {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-2);
}

.event-card-loc {
  font-size: 0.78rem;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-card-arrow {
  margin-left: auto;
  font-size: 0.9rem;
  color: var(--cat-color, var(--primary));
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.event-card:hover .event-card-arrow {
  transform: translateX(3px);
}

/* Grid layout for event cards (categories page, related events) */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

@media (max-width: 600px) {
  .events-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

/* ─── Common section titles (for list pages) ─── */
.section-title {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.022em;
  color: var(--text);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.section-title-bar {
  display: inline-block;
  width: 4px;
  height: 1.1em;
  background: var(--cat-color, var(--primary));
  border-radius: 4px;
  flex-shrink: 0;
}

/* ─── Pagination (shared) ─── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.pagination .page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  transition: all var(--ease);
}

.pagination .page-btn:hover {
  background: var(--surface-2);
  color: var(--text);
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
}

.pagination .page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 650;
}

.pagination .page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ─── Tools promo banner (shared, used on index.html) ─── */
.tools-promo {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: var(--content-max-width, 1240px);
  width: calc(100% - 64px);
  margin: 2.5rem auto 0;
  padding: 1.15rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--ease);
}

.tools-promo:hover {
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
}

@media (max-width: 600px) {
  .tools-promo {
    width: calc(100% - 40px);
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

/* ─── Responsive breakpoints (global) ─── */

/* 1024px — tablet landscape */
@media (max-width: 1024px) {
  .events-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

/* 768px — tablet portrait */
@media (max-width: 768px) {
  .page-header h1 {
    font-size: clamp(1.4rem, 5.5vw, 1.85rem);
  }

  .cat-hero-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
  }

  .events-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

/* 480px — mobile */
@media (max-width: 480px) {
  .event-card {
    padding: 1rem 1.1rem;
  }
}

/* ─── END Phase 1 Common Visual System ─── */

/* ═══════════════════════════════════════════════════════
   PHASE 2 — HOME VISUAL SYSTEM (index.html)
   ═══════════════════════════════════════════════════════ */

.main-full {
  width: 100%;
  padding-top: 0 !important;
}

/* ─── Home Featured Hero (Full Width, Cinematic Dark) ─── */
.home-featured {
  position: relative;
  width: 100%;
  background-color: #030a12;
  color: #f5f7fa;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.home-hero-section {
  position: relative;
  width: 100%;
  min-height: clamp(450px, 62vh, 540px);
  padding: 2.75rem 0 3.25rem;
  display: flex;
  align-items: center;
  background-color: #030a12;
  color: #f5f7fa;
}

.home-hero-section.has-bg-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--event-bg);
  background-size: cover;
  background-position: center right;
  z-index: 0;
  opacity: 0.85;
}

.home-hero-section .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg,
      rgba(3, 10, 18, 0.96) 0%,
      rgba(3, 10, 18, 0.88) 35%,
      rgba(3, 10, 18, 0.55) 65%,
      rgba(3, 10, 18, 0.22) 85%,
      rgba(3, 10, 18, 0.10) 100%);
}

.home-hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--content-max-width, 1240px);
  width: calc(100% - 64px);
  margin: 0 auto;
}

@media (max-width: 768px) {
  .home-hero-inner {
    width: calc(100% - 40px);
  }
}

.home-hero-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.home-hero-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #040a12;
  background: var(--event-accent, var(--primary));
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
}

.home-hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 850;
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: #ffffff !important;
  margin: 0 0 0.65rem 0;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
  max-width: 820px;
}

.home-hero-tagline {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 550;
  color: var(--event-accent, var(--primary)) !important;
  margin-bottom: 0.4rem;
  line-height: 1.4;
  max-width: 680px;
}

.home-hero-desc {
  font-size: clamp(0.9rem, 1.3vw, 1.02rem);
  font-weight: 400;
  color: rgba(245, 247, 250, 0.85) !important;
  margin-bottom: 1.25rem;
  line-height: 1.5;
  max-width: 680px;
}

/* Hero Countdown */
.home-hero-countdown {
  margin-bottom: 1.4rem;
}

.home-hero-countdown .countdown {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.home-hero-countdown .cd-unit {
  min-width: 100px;
  min-height: 88px;
  background: rgba(13, 26, 41, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-bottom: 3px solid var(--event-accent, var(--primary)) !important;
  border-radius: 14px;
  padding: 0.95rem 0.7rem 0.75rem;
  text-align: center;
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.home-hero-countdown .cd-unit:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.25) !important;
}

.home-hero-countdown .cd-value {
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: #ffffff !important;
}

.home-hero-countdown .cd-label {
  font-size: 0.65rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 247, 250, 0.75) !important;
  margin-top: 0.4rem;
}

/* Status badge for Featured when event is live / done / tbd / cancelled */
.home-hero-status-badge {
  display: inline-block;
  font-size: clamp(1.2rem, 2.5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(13, 26, 41, 0.75);
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 0.75rem 1.75rem;
  backdrop-filter: blur(12px);
  margin: 0;
}

.home-hero-countdown.is-live .home-hero-status-badge {
  color: var(--accent, #3ecf8e);
  border-color: var(--accent, #3ecf8e);
}

.home-hero-countdown.is-passed .home-hero-status-badge {
  color: rgba(245, 247, 250, 0.65);
  border-color: rgba(255, 255, 255, 0.12);
}

.home-hero-countdown.is-cancelled .home-hero-status-badge {
  color: #ff6b6b;
  border-color: #ff6b6b;
}

.home-hero-countdown.is-tbd .home-hero-status-badge {
  color: #f0c040;
  border-color: #f0c040;
}

.home-hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.25rem;
}

/* Skeletons */
.home-featured-skeleton {
  min-height: 450px;
  padding: 3rem 0;
  display: flex;
  align-items: center;
}

.hfs-inner {
  max-width: var(--content-max-width, 1240px);
  width: calc(100% - 64px);
  margin: 0 auto;
}

.skel {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06) 25%, rgba(255, 255, 255, 0.12) 50%, rgba(255, 255, 255, 0.06) 75%);
  background-size: 200% 100%;
  animation: skelLoading 1.5s infinite;
  border-radius: 8px;
}

@keyframes skelLoading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.skel-badge {
  width: 140px;
  height: 26px;
  border-radius: 100px;
  margin-bottom: 1.2rem;
}

.skel-title {
  width: 60%;
  height: 50px;
  margin-bottom: 1rem;
}

.skel-tagline {
  width: 40%;
  height: 22px;
  margin-bottom: 2rem;
}

.skel-countdown {
  display: flex;
  gap: 0.85rem;
}

.skel-unit {
  width: 100px;
  height: 88px;
  border-radius: 14px;
}

/* ─── Post-Hero Content Container ─── */
.home-content {
  padding-top: 1.6rem;
  padding-bottom: 3rem;
}

.home-heading {
  margin-bottom: 1.25rem;
}

.home-heading h1 {
  font-size: clamp(1.4rem, 3vw, 1.95rem);
  font-weight: 750;
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 0;
}

.home-heading-sub {
  font-size: 0.92rem;
  color: var(--text-2);
  margin-top: 0.35rem;
  line-height: 1.5;
}

/* Toolbar & Filters */
.home-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.home-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-btn {
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 1.1rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease), transform var(--ease);
}

.filter-btn:hover {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.filter-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--primary) 30%, transparent);
}

.home-search-wrap {
  position: relative;
  min-width: 260px;
}

.home-search-input {
  width: 100%;
  padding: 0.5rem 1rem 0.5rem 2.2rem;
  font-size: 0.85rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  transition: border-color var(--ease), box-shadow var(--ease);
}

.home-search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent);
}

/* Upcoming Section */
.home-upcoming-head {
  margin-bottom: 1.5rem;
}

.home-upcoming-head h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.home-upcoming-head p {
  font-size: 0.88rem;
  color: var(--text-2);
}

/* Events Grid (STRICTLY 4 COLUMNS DESKTOP, 2 TABLET, 1 MOBILE) */
.home-events-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

@media (max-width: 1024px) {
  .home-events-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .home-events-grid {
    grid-template-columns: 1fr;
  }
}

.event-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.55rem 1.45rem;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  min-height: 190px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.event-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--cat-color, var(--primary)) 50%, var(--border));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.ec-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.event-card-cat {
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cat-color, var(--primary));
}

.ec-icon {
  font-size: 1.2rem;
}

.event-card-title {
  font-size: 1.15rem;
  font-weight: 750;
  line-height: 1.35;
  color: var(--text);
  margin: 0 0 0.4rem 0;
}

.event-card-desc {
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text-2);
  margin: 0 0 1.1rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid var(--border);
  padding-top: 0.9rem;
  margin-top: auto;
  font-size: 0.84rem;
  color: var(--text-2);
}

.event-card-date {
  font-weight: 600;
  color: var(--text);
}

.event-card-arrow {
  margin-left: auto;
  font-size: 1rem;
  color: var(--cat-color, var(--primary));
  transition: transform 0.2s ease;
}

.event-card:hover .event-card-arrow {
  transform: translateX(4px);
}

/* Card Skeleton */
.event-card-skeleton {
  height: 190px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  animation: skelPulse 1.5s infinite alternate;
}

@keyframes skelPulse {
  0% {
    opacity: 0.6;
  }

  100% {
    opacity: 1;
  }
}

/* Pagination compact spacing */
.home-upcoming .pagination {
  margin-top: 1.75rem;
}

.page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 0.2rem;
  font-size: 0.85rem;
  color: var(--text-3);
  user-select: none;
}

/* Home Editorial / SEO Section */
.home-seo {
  margin-top: 2.5rem;
  padding: 1.75rem 2rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.home-seo h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--text);
}

.home-seo p {
  margin: 0 0 0.85rem;
  color: var(--text-2);
  line-height: 1.65;
  font-size: 0.92rem;
}

.home-seo p:last-child {
  margin-bottom: 0;
}

/* Category Editorial / SEO Section */
.cat-seo {
  margin-top: 2.5rem;
  padding: 1.75rem 2rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.cat-seo h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--text);
}

.cat-seo p {
  margin: 0 0 0.85rem;
  color: var(--text-2);
  line-height: 1.65;
  font-size: 0.92rem;
}

.cat-seo p:last-child {
  margin-bottom: 0;
}

/* Tools Promo (Integrated Component Banner) */
.home-tools-promo {
  max-width: var(--content-max-width, 1240px);
  width: calc(100% - 64px);
  margin: 0 auto 2.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 18px;
  padding: 1.5rem 2.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.home-tools-promo:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  border-left-color: var(--primary);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.tools-promo-icon {
  font-size: 1.75rem;
  color: var(--primary);
  line-height: 1;
}

.tools-promo-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  flex: 1;
}

.tools-promo-label {
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
}

.tools-promo-text {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
}

.tools-promo-link {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--primary);
  text-decoration: none;
  padding: 0.45rem 1rem;
  border-radius: 100px;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.tools-promo-link:hover {
  background: color-mix(in srgb, var(--primary) 20%, transparent);
  transform: translateX(2px);
}

@media (max-width: 768px) {
  .home-tools-promo {
    width: calc(100% - 40px);
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }

  .tools-promo-content {
    flex-direction: column;
    justify-content: center;
  }

  .tools-promo-link {
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .home-tools-promo {
    width: calc(100% - 32px);
  }
}

/* Responsive Home Hero */
@media (max-width: 768px) {
  .home-hero-section {
    min-height: auto;
    padding: 2.25rem 0 2.75rem;
  }

  .home-hero-title {
    font-size: clamp(1.95rem, 8vw, 2.8rem);
  }

  .home-hero-countdown .countdown {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .home-hero-countdown .cd-unit {
    min-width: 0;
    width: 100%;
    padding: 0.85rem 0.5rem;
  }

  .home-hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .home-hero-cta .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* ═══════════════════════════════════════════════════════
   PHASE 3 — CATEGORIES VISUAL SYSTEM (categorias/*.html)
   ═══════════════════════════════════════════════════════ */

/* ─── Category Hero (Full Width, Dark Cinematic Header in BOTH Light & Dark) ─── */
.cat-hero {
  position: relative;
  width: 100%;
  min-height: clamp(240px, 30vh, 290px);
  padding: 2.5rem 0 2.65rem;
  display: flex;
  align-items: center;
  background-color: #07111d !important;
  color: #f5f7fa !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  overflow: hidden;
}

[data-theme="light"] .cat-hero {
  background-color: #07111d !important;
  color: #f5f7fa !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.cat-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 35%,
      color-mix(in srgb, var(--cat-color, #00cec9) 18%, transparent) 0%,
      transparent 55%);
  z-index: 1;
  pointer-events: none;
}

.cat-hero[data-cat="deportes"]::before {
  background: radial-gradient(circle at 75% 35%, rgba(0, 206, 201, 0.16) 0%, transparent 55%);
}

.cat-hero[data-cat="videojuegos"]::before {
  background: radial-gradient(circle at 75% 35%, rgba(253, 121, 168, 0.18) 0%, transparent 55%);
}

.cat-hero[data-cat="politica"]::before {
  background: radial-gradient(circle at 75% 35%, rgba(108, 92, 231, 0.16) 0%, transparent 55%);
}

.cat-hero[data-cat="espectaculos"]::before {
  background: radial-gradient(circle at 75% 35%, rgba(155, 89, 182, 0.16) 0%, transparent 55%);
}

.cat-hero[data-cat="especiales"]::before {
  background: radial-gradient(circle at 75% 35%, rgba(243, 156, 18, 0.16) 0%, transparent 55%);
}

.cat-hero[data-cat="cultura"]::before {
  background: radial-gradient(circle at 75% 35%, rgba(230, 126, 34, 0.16) 0%, transparent 55%);
}

.cat-hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--content-max-width, 1240px);
  width: calc(100% - 64px);
  margin: 0 auto;
}

@media (max-width: 768px) {
  .cat-hero-inner {
    width: calc(100% - 40px);
  }
}

.cat-hero-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cat-color, var(--primary)) !important;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  background: color-mix(in srgb, var(--cat-color, var(--primary)) 14%, transparent) !important;
  border: 1px solid color-mix(in srgb, var(--cat-color, var(--primary)) 30%, transparent) !important;
  backdrop-filter: blur(8px);
}

.cat-title {
  font-size: clamp(2.6rem, 5vw, 4rem) !important;
  font-weight: 850 !important;
  line-height: 1.05 !important;
  letter-spacing: -0.03em !important;
  color: #f5f7fa !important;
  margin: 0.5rem 0 0.5rem 0 !important;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .cat-title {
  color: #f5f7fa !important;
}

.cat-desc {
  font-size: clamp(1rem, 1.6vw, 1.125rem) !important;
  font-weight: 500 !important;
  color: rgba(245, 247, 250, 0.75) !important;
  line-height: 1.55 !important;
  max-width: 650px !important;
  margin: 0 !important;
}

[data-theme="light"] .cat-desc {
  color: rgba(245, 247, 250, 0.75) !important;
}

/* ─── Post-Hero Category Content ─── */
.cat-content {
  padding-top: 3.25rem !important;
  padding-bottom: 3rem !important;
}

.cat-list-head {
  margin-bottom: 1.25rem !important;
}

.cat-list-head h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0;
}

/* Category Events Grid (STRICTLY 4 COLUMNS DESKTOP, 2 TABLET, 1 MOBILE) */
.cat-events-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

@media (max-width: 1024px) {
  .cat-events-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .cat-events-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .cat-hero {
    min-height: clamp(200px, 28vh, 250px);
    padding: 2rem 0 2.25rem;
  }

  .cat-title {
    font-size: clamp(2.2rem, 8vw, 2.75rem) !important;
  }

  .cat-desc {
    font-size: 0.95rem !important;
  }
}

/* ─── Cinematic Event Detail ─── */

.detail-page-wrap {
  --detail-bg: #07111d;
  --detail-panel: #0d1a29;
  --detail-panel-subtle: #101f31;
  --detail-text: #f5f7fa;
  --detail-text-muted: #9aacbf;
  --detail-border: rgba(255, 255, 255, 0.08);
  --detail-border-hover: rgba(255, 255, 255, 0.18);
  --detail-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  --detail-shadow-hover: 0 14px 32px rgba(0, 0, 0, 0.35);
  width: 100%;
  background: var(--detail-bg);
}

[data-theme="light"] .detail-page-wrap {
  --detail-bg: #f5f7fa;
  --detail-panel: #ffffff;
  --detail-panel-subtle: #eef0f4;
  --detail-text: #111827;
  --detail-text-muted: #5b6675;
  --detail-border: rgba(15, 23, 42, 0.08);
  --detail-border-hover: rgba(15, 23, 42, 0.18);
  --detail-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  --detail-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.detail-main-container {
  max-width: var(--content-max-width, 1240px);
  width: calc(100% - 64px);
  margin-inline: auto;
  padding: 1.5rem 0 4rem;
}

@media (max-width: 768px) {
  .detail-main-container {
    width: calc(100% - 40px);
    padding: 1rem 0 2.5rem;
  }
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(245, 247, 250, 0.78) !important;
  margin-bottom: 1.25rem;
  transition: color var(--ease), transform var(--ease);
}

.back-link:hover {
  color: #ffffff !important;
  transform: translateX(-3px);
}

/* ─── Hero Cinematic FULL WIDTH (DARK IN BOTH THEMES) ─── */
.detail-hero-cinematic {
  position: relative;
  width: 100%;
  min-height: clamp(520px, 75vh, 620px);
  margin: 0 0 3rem 0;
  padding: 3.5rem 0 4.5rem;
  border-radius: 0 !important;
  border: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
  display: flex;
  align-items: flex-end;
  background-color: #030a12 !important;
  overflow: hidden;
  color: #f5f7fa !important;
}

.detail-hero-cinematic.has-bg-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--event-bg);
  background-size: cover;
  background-position: center right;
  z-index: 0;
}

.detail-hero-cinematic .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg,
      rgba(3, 10, 18, 0.96) 0%,
      rgba(3, 10, 18, 0.88) 30%,
      rgba(3, 10, 18, 0.55) 55%,
      rgba(3, 10, 18, 0.18) 80%,
      rgba(3, 10, 18, 0.08) 100%) !important;
}

.detail-hero-cinematic .hero-content-inner {
  position: relative;
  z-index: 2;
  max-width: var(--content-max-width, 1240px);
  width: calc(100% - 64px);
  margin: 0 auto;
}

@media (max-width: 768px) {
  .detail-hero-cinematic .hero-content-inner {
    width: calc(100% - 40px);
  }
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--event-accent, var(--primary)) !important;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  background: color-mix(in srgb, var(--event-accent, var(--primary)) 16%, transparent) !important;
  border: 1px solid color-mix(in srgb, var(--event-accent, var(--primary)) 35%, transparent) !important;
  backdrop-filter: blur(8px);
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 5.1rem);
  font-weight: 850;
  line-height: 0.96;
  letter-spacing: -0.04em;
  color: #ffffff !important;
  margin: 0.85rem 0 0.65rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}

.hero-tagline {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 550;
  color: var(--event-accent, var(--primary)) !important;
  margin-bottom: 0.85rem;
  line-height: 1.35;
}

.hero-desc-short {
  font-size: 0.98rem;
  color: rgba(245, 247, 250, 0.88) !important;
  line-height: 1.6;
  max-width: 620px;
  margin-bottom: 1.85rem;
}

/* ─── Hero Countdown Cards ─── */
.hero-countdown-wrap {
  margin-bottom: 2rem;
}

.hero-countdown-wrap .countdown {
  display: flex;
  flex-wrap: wrap;
  gap: 0.95rem;
}

.hero-countdown-wrap .cd-unit {
  min-width: 108px;
  min-height: 94px;
  background: rgba(13, 26, 41, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-bottom: 3px solid var(--event-accent, var(--primary)) !important;
  border-radius: 16px;
  padding: 1.05rem 0.75rem 0.85rem;
  text-align: center;
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.hero-countdown-wrap .cd-unit:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.25) !important;
}

.hero-countdown-wrap .cd-value {
  font-size: clamp(2.1rem, 4.5vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: #ffffff !important;
}

.hero-countdown-wrap .cd-label {
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 247, 250, 0.75) !important;
  margin-top: 0.45rem;
}

/* ─── Hero Status Cards ─── */
.hero-status-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 2rem;
}

.hero-status-card {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 2rem;
  border-radius: 18px;
  background: rgba(13, 26, 41, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  max-width: 100%;
  width: auto;
  min-width: 300px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-status-card:hover {
  transform: translateY(-2px);
}

.hero-status-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  flex-shrink: 0;
}

.hero-status-icon svg {
  width: 28px;
  height: 28px;
}

.hero-status-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hero-status-kicker {
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.2;
}

.hero-status-title {
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff !important;
  line-height: 1.25;
}

/* ─── Specific Status Themes ─── */

/* 1. TBD: Amarillo / Ámbar */
.hero-status-card.status-tbd {
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-bottom: 3px solid #f59e0b;
  box-shadow: 0 8px 32px rgba(245, 158, 11, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hero-status-card.status-tbd .hero-status-icon {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.hero-status-card.status-tbd .hero-status-kicker {
  color: #fbbf24;
}

/* 2. ONGOING: Azul / Cian */
.hero-status-card.status-ongoing {
  border: 1px solid rgba(6, 182, 212, 0.45);
  border-bottom: 3px solid #06b6d4;
  box-shadow: 0 8px 32px rgba(6, 182, 212, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hero-status-card.status-ongoing .hero-status-icon {
  background: rgba(6, 182, 212, 0.18);
  color: #38bdf8;
  border: 1px solid rgba(6, 182, 212, 0.35);
}

.hero-status-card.status-ongoing .hero-status-kicker {
  color: #38bdf8;
}

/* 3. DONE: Gris / Neutro */
.hero-status-card.status-done {
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-bottom: 3px solid #94a3b8;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-status-card.status-done .hero-status-icon {
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.hero-status-card.status-done .hero-status-kicker {
  color: #cbd5e1;
}

/* 4. CANCELLED: Rojo */
.hero-status-card.status-cancelled {
  border: 1px solid rgba(239, 68, 68, 0.45);
  border-bottom: 3px solid #ef4444;
  box-shadow: 0 8px 32px rgba(239, 68, 68, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hero-status-card.status-cancelled .hero-status-icon {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.hero-status-card.status-cancelled .hero-status-kicker {
  color: #f87171;
}

@media (max-width: 600px) {
  .hero-status-card {
    padding: 1rem 1.25rem;
    gap: 1rem;
    width: 100%;
    min-width: 0;
    justify-content: flex-start;
  }

  .hero-status-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .hero-status-icon svg {
    width: 24px;
    height: 24px;
  }
}

/* ─── Hero Actions ─── */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

.btn-hero-primary {
  background: var(--event-accent, var(--primary)) !important;
  color: #040a12 !important;
  font-weight: 750;
  font-size: 0.95rem;
  padding: 0.85rem 1.65rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px color-mix(in srgb, var(--event-accent, var(--primary)) 40%, transparent);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 26px color-mix(in srgb, var(--event-accent, var(--primary)) 60%, transparent);
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.10) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.82rem 1.45rem;
  border-radius: 12px;
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.18) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  transform: translateY(-2px);
}

/* ─── Entrance Animations ─── */
.hero-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-loaded .hero-item {
  opacity: 1;
  transform: translateY(0);
}

.hero-loaded .hero-item:nth-child(1) {
  transition-delay: 0.05s;
}

.hero-loaded .hero-item:nth-child(2) {
  transition-delay: 0.12s;
}

.hero-loaded .hero-item:nth-child(3) {
  transition-delay: 0.19s;
}

.hero-loaded .hero-item:nth-child(4) {
  transition-delay: 0.26s;
}

.hero-loaded .hero-item:nth-child(5) {
  transition-delay: 0.33s;
}

.hero-loaded .hero-item:nth-child(6) {
  transition-delay: 0.40s;
}

/* ─── Scroll Reveal ─── */
.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {

  .hero-item,
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ─── Detail Sections Layout ─── */
.detail-section {
  margin-bottom: 4.5rem;
}

/* Compensación del header fijo al navegar hacia #about-section */
#about-section {
  scroll-margin-top: 90px;
}

/* Compensación del header fijo al navegar hacia el bloque de info de fecha/hora */
#event-info {
  scroll-margin-top: 90px;
}

.section-heading {
  font-size: clamp(1.35rem, 2.8vw, 1.8rem);
  font-weight: 750;
  letter-spacing: -0.025em;
  color: var(--detail-text, var(--text));
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-heading::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1.1em;
  background: var(--event-accent, var(--primary));
  border-radius: 4px;
}

/* 2 Columns: Description & Event Info Card */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .detail-grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
  }
}

.event-main-desc {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--detail-text-muted, var(--text-2));
  max-width: 650px;
}

.event-main-desc p {
  margin-bottom: 1.25rem;
}

.event-main-desc p:last-child {
  margin-bottom: 0;
}

.event-main-desc h3 {
  font-size: 1.2rem;
  font-weight: 750;
  color: var(--detail-text, var(--text));
  margin-top: 2.25rem;
  margin-bottom: 0.65rem;
  line-height: 1.35;
}

.event-main-desc h3:first-child {
  margin-top: 0;
}

.event-info-card {
  background: var(--detail-panel, var(--surface));
  border: 1px solid var(--detail-border, var(--border));
  border-radius: 18px;
  padding: 1.75rem 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.info-card-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--event-accent, var(--primary));
  margin-bottom: 1.25rem;
}

.info-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--detail-border, var(--border));
}

.info-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-label {
  font-size: 0.72rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--detail-text-muted, var(--text-3));
}

.info-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--detail-text, var(--text));
}

/* ─── Highlights Grid (STRICTLY MAX 4 COLUMNS DESKTOP) ─── */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

@media (max-width: 1024px) {
  .highlights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .highlights-grid {
    grid-template-columns: 1fr;
  }
}

.highlight-card {
  background: var(--detail-panel);
  border: 1px solid var(--detail-border);
  border-radius: 18px;
  padding: 1.4rem 1.5rem;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.85rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.highlight-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--event-accent, var(--primary)) 40%, var(--detail-border));
  box-shadow: var(--detail-shadow-hover, 0 12px 28px rgba(0, 0, 0, 0.2));
}

.highlight-icon {
  font-size: 1.2rem;
  color: var(--event-accent, var(--primary));
}

.highlight-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--detail-text);
  font-weight: 550;
}

/* ─── Official Links Section ─── */
.official-links-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.official-link-card {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  height: 46px;
  background: var(--detail-panel);
  border: 1px solid var(--detail-border);
  padding: 0 1.4rem;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--detail-text);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.official-link-card.is-primary-site {
  background: color-mix(in srgb, var(--event-accent, var(--primary)) 12%, var(--detail-panel));
  border-color: color-mix(in srgb, var(--event-accent, var(--primary)) 40%, transparent);
  color: var(--event-accent, var(--primary));
}

.official-link-card:hover {
  transform: translateY(-3px);
  border-color: var(--event-accent, var(--primary));
}

/* ─── Related Events Cards Grid (MAX 3 COLUMNS) ─── */
.related-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .related-cards-grid {
    grid-template-columns: 1fr;
  }
}

.related-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--detail-panel, var(--surface));
  border: 1px solid var(--detail-border, var(--border));
  border-radius: 18px;
  padding: 1.5rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  text-decoration: none;
}

.related-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--cat-color, var(--primary)) 50%, var(--detail-border, var(--border)));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.related-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.related-card-cat {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cat-color, var(--primary));
}

.related-card-icon {
  font-size: 1.2rem;
}

.related-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--detail-text, var(--text));
  margin-bottom: 0.5rem;
}

.related-card-desc {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--detail-text-muted, var(--text-3));
  margin-bottom: 0.65rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-card-loc {
  font-size: 0.85rem;
  color: var(--detail-text-muted, var(--text-3));
  margin-bottom: 1.25rem;
}

.related-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--detail-border, var(--border));
  padding-top: 0.85rem;
  margin-top: auto;
}

.related-card-date {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--detail-text, var(--text));
}

.related-card-arrow {
  font-size: 1rem;
  color: var(--cat-color, var(--primary));
  transition: transform 0.2s ease;
}

.related-card:hover .related-card-arrow {
  transform: translateX(4px);
}

/* ─── Media Queries Detail Page ─── */
@media (max-width: 768px) {
  .detail-hero-cinematic {
    min-height: auto;
    padding: 2.25rem 0 2.75rem;
    border-radius: 0 !important;
    margin-bottom: 2rem;
  }

  .hero-title {
    font-size: clamp(2rem, 8.5vw, 3.1rem);
  }

  .hero-countdown-wrap .countdown {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .hero-countdown-wrap .cd-unit {
    min-width: 0;
    width: 100%;
    padding: 0.85rem 0.5rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .detail-section {
    margin-bottom: 2.75rem;
  }

  .event-info-card {
    padding: 1.25rem;
  }
}

@media (max-width: 600px) {
  .official-links-container {
    flex-direction: column;
  }

  .official-link-card {
    width: 100%;
    justify-content: center;
  }

  .highlight-card {
    padding: 1.15rem 1.25rem;
    min-height: auto;
  }
}


/* Category page header */
.page-header {
  margin-bottom: 1.5rem;
}

.page-header h1 {
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 650;
  letter-spacing: -0.025em;
  margin-bottom: 0.3rem;
}

.page-header p {
  color: var(--text-2);
  font-size: 0.9rem;
}

/* Empty */
.empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-3);
  font-size: 0.9rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 1.25rem;
  text-align: center;
  color: var(--text-3);
  font-size: 0.75rem;
}

.site-footer a {
  color: var(--text-2);
}

.site-footer a:hover {
  color: var(--text);
}

/* Category color helpers */
[data-cat="deportes"] {
  --cat-color: var(--cat-deportes);
}

[data-cat="videojuegos"] {
  --cat-color: var(--cat-videojuegos);
}

[data-cat="politica"] {
  --cat-color: var(--cat-politica);
}

[data-cat="espectaculos"] {
  --cat-color: var(--cat-espectaculos);
}

[data-cat="especiales"] {
  --cat-color: var(--cat-especiales);
}

[data-cat="cultura"] {
  --cat-color: var(--cat-cultura);
}

/* Zona horaria bajo el countdown — chip compacto y alineado a la izquierda */
.countdown-tz {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.3rem 0.45rem;
  margin-top: 0.5rem;
  margin-bottom: 0;
  margin-left: 0;
  margin-right: auto;
  padding: 5px 10px;
  background: rgba(8, 15, 25, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  font-size: 0.76rem;
  line-height: 1.3;
  color: #ffffff;
  text-align: left;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.countdown-tz .tz-icon {
  font-size: 0.78rem;
  line-height: 1;
  opacity: 0.9;
  flex-shrink: 0;
}

.countdown-tz .tz-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.75);
  opacity: 0.9;
}

.countdown-tz .tz-value {
  font-size: 0.76rem;
  font-weight: 700;
  color: #ffffff;
}

.featured-meta .tz-hint,
.detail-meta .tz-hint {
  color: var(--text-3);
  font-size: 0.8rem;
}

/* ─── Light theme ─── */
[data-theme="light"] {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-2: #eef0f4;
  --border: rgba(15, 23, 42, 0.08);
  --border-hover: rgba(15, 23, 42, 0.18);
  --text: #111827;
  --text-2: #5b6675;
  --text-3: #64748b;
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --accent: #00cec9;

  /* Category colors unchanged in light mode */
  --cat-videojuegos: #fd79a8;
  --cat-deportes: #00cec9;
  --cat-politica: #6c5ce7;
  --cat-espectaculos: #9b59b6;
  --cat-especiales: #f39c12;
  --cat-cultura: #e67e22;
}

/* Header stays dark/translucent in BOTH themes */
[data-theme="light"] .site-header {
  background: rgba(4, 12, 22, 0.90) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10) !important;
}

[data-theme="light"] .logo-mark {
  background: var(--surface-2);
  color: var(--primary);
}

[data-theme="light"] .nav a.active {
  background: var(--surface-2);
}

[data-theme="light"] .ad-slot-inner {
  background: var(--surface);
}

/* Theme toggle */
.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1rem;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
  flex-shrink: 0;
}

.theme-toggle:hover {
  color: var(--text);
  border-color: #2e3344;
}

[data-theme="light"] .theme-toggle:hover {
  border-color: #c8ccd6;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switch {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.lang-btn {
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.5rem;
  border: none;
  background: var(--surface);
  color: var(--text-3);
  cursor: pointer;
  min-width: 2rem;
}

.lang-btn+.lang-btn {
  border-left: 1px solid var(--border);
}

.lang-btn:hover {
  color: var(--text);
}

.lang-btn.active {
  background: var(--surface-2);
  color: var(--text);
}

/* ─── Mobile nav toggle ─── */
.nav-toggle-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  opacity: 0;
  pointer-events: none;
}

@media (min-width: 769px) {
  .nav-toggle-input {
    display: none;
  }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color var(--ease);
}

.nav-toggle:hover {
  border-color: #2e3344;
}

[data-theme="light"] .nav-toggle:hover {
  border-color: #c8ccd6;
}

.nav-toggle-input:focus-visible~.nav-toggle {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.nav-toggle-bar {
  display: block;
  width: 16px;
  height: 2px;
  margin: 0 auto;
  background: var(--text-2);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}

.nav-toggle-input:checked~.nav-toggle .nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle-input:checked~.nav-toggle .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle-input:checked~.nav-toggle .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-header {
    height: auto;
    min-height: var(--header-h);
  }

  .header-inner {
    height: auto;
    min-height: var(--header-h);
    flex-wrap: wrap;
    row-gap: 0.5rem;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
  }

  .header-actions {
    display: none;
    flex-basis: 100%;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    border-top: 1px solid var(--border);
    padding-top: 0.75rem;
  }

  .nav-toggle-input:checked~.header-actions {
    display: flex;
  }

  .nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
  }

  .nav a {
    padding: 0.6rem 0.75rem;
  }

  .nav-dropdown {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: stretch;
  }

  .nav-dropdown-btn {
    width: 100%;
    justify-content: space-between;
    padding: 0.6rem 0.75rem;
    font-size: 0.84rem;
  }

  .nav-dropdown-menu {
    position: static;
    top: auto;
    left: auto;
    min-width: 0;
    width: 100%;
    box-shadow: none;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    margin: 0.2rem 0 0.35rem;
    padding: 0.25rem 0.35rem;
  }

  .nav-dropdown.is-open .nav-dropdown-menu {
    display: flex;
  }

  .nav-dropdown-menu a {
    padding: 0.65rem 0.85rem;
    font-size: 0.84rem;
    border-radius: 6px;
    white-space: normal;
  }

  .header-actions .lang-switch,
  .header-actions .theme-toggle {
    align-self: flex-start;
  }
}

/* ─── Footer FULL WIDTH (edge-to-edge 100vw) ─── */
.site-footer {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 2.25rem 0 1.75rem !important;
  background: #07111d;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0 !important;
}

[data-theme="light"] .site-footer {
  background: #f5f7fa;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.footer-inner {
  max-width: var(--content-max-width, 1240px);
  width: calc(100% - 64px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (max-width: 768px) {
  .footer-inner {
    width: calc(100% - 40px);
    gap: 1.25rem;
  }
}

.footer-top-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
}

@media (max-width: 600px) {

  .footer-top-row,
  .footer-bottom-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .footer-nav {
    flex-wrap: wrap;
    gap: 0.85rem 1.25rem;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.footer-brand .logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 750;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: #f5f7fa;
  text-decoration: none;
}

.footer-brand .logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

[data-theme="light"] .footer-brand .logo {
  color: #111827;
}

.footer-tagline {
  font-size: 0.85rem;
  color: #9aacbf;
}

[data-theme="light"] .footer-tagline {
  color: #64748b;
}

.footer-right-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  text-align: right;
}

@media (max-width: 600px) {
  .footer-right-col {
    align-items: flex-start;
    text-align: left;
    width: 100%;
    gap: 1rem;
  }
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 1.35rem;
}

@media (max-width: 600px) {
  .footer-nav {
    justify-content: flex-start;
    gap: 0.85rem 1.25rem;
  }
}

.footer-nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: #9aacbf;
  transition: color var(--ease);
}

.footer-nav a:hover {
  color: #f5f7fa;
}

[data-theme="light"] .footer-nav a {
  color: #334155;
}

[data-theme="light"] .footer-nav a:hover {
  color: #111827;
}

.footer-social {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

@media (max-width: 600px) {
  .footer-social {
    align-items: flex-start;
  }
}

.footer-social-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #9aacbf;
}

[data-theme="light"] .footer-social-title {
  color: #64748b;
}

.footer-social-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
}

@media (max-width: 600px) {
  .footer-social-links {
    justify-content: flex-start;
  }
}

.footer-social-links .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #9aacbf;
  transition: color var(--ease), background var(--ease), transform var(--ease);
}

.footer-social-links a.social-link:hover {
  color: #f5f7fa;
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.footer-social-links .social-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.footer-social-links .social-link.is-disabled {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

[data-theme="light"] .footer-social-links .social-link {
  background: rgba(15, 23, 42, 0.05);
  color: #475569;
}

[data-theme="light"] .footer-social-links a.social-link:hover {
  color: #0f172a;
  background: rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .footer-social-links .social-link.is-disabled {
  opacity: 0.45;
}

.footer-bottom-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1rem;
}

[data-theme="light"] .footer-bottom-row {
  border-top-color: rgba(15, 23, 42, 0.06);
}

.site-footer .disclaimer {
  font-size: 0.78rem;
  color: #9aacbf;
  line-height: 1.5;
  max-width: 100%;
  margin: 0;
  text-align: left;
}

[data-theme="light"] .site-footer .disclaimer {
  color: #64748b;
}

.site-footer .legal-links {
  font-size: 0.78rem;
}

.site-footer .legal-links a {
  color: #9aacbf;
}

[data-theme="light"] .site-footer .legal-links a {
  color: #334155;
}

.site-footer .legal-links a:hover {
  color: #f5f7fa;
}

[data-theme="light"] .site-footer .legal-links a:hover {
  color: #111827;
}

/* Disclaimer de precisión — texto discreto bajo el chip alineado a la izquierda */
.countdown-note {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.3rem;
  margin-top: 0.25rem;
  margin-bottom: 0;
  margin-left: 0;
  margin-right: auto;
  padding: 0;
  background: transparent !important;
  border: none !important;
  font-size: 0.73rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  text-align: left;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
}

.countdown-note .note-icon {
  font-size: 0.75rem;
  line-height: 1;
  opacity: 0.85;
  flex-shrink: 0;
}

/* Search + toolbar */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.search-wrap {
  flex: 1;
  min-width: 160px;
  max-width: 260px;
}

.search-input {
  width: 100%;
  font-family: inherit;
  font-size: 0.84rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.75rem;
  outline: none;
  transition: border-color var(--ease);
}

.search-input::placeholder {
  color: var(--text-3);
}

.search-input:focus {
  border-color: var(--primary);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.event-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.archived-banner {
  font-size: 0.8rem;
  color: var(--text-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.85rem;
  margin-bottom: 1rem;
}

@media (max-width: 640px) {
  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .search-wrap {
    max-width: none;
  }
}

/* Estados cancelado / TBD */
.countdown-status.is-cancelled,
.list-status.is-cancelled {
  color: #e07070;
  font-weight: 600;
}

.countdown-status.is-tbd,
.list-status.is-tbd {
  color: var(--text-3);
  font-weight: 550;
}

.featured-card.is-cancelled .countdown-status,
.detail-countdown.is-cancelled .countdown-status {
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 1.5rem 0;
}

.featured-card.is-tbd .countdown-status,
.detail-countdown.is-tbd .countdown-status {
  font-size: 1.05rem;
  padding: 1.5rem 0;
}

/* Paginación */
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.page-btn {
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-2);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}

.page-btn:hover:not(:disabled):not(.active) {
  color: var(--text);
  border-color: var(--primary);
}

.page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ─── 404 Page ─── */
.page-404 {
  min-height: calc(100vh - var(--header-h, 68px) - 180px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3.5rem 1rem;
  margin: 0 auto;
}

.page-404 .error-code {
  font-size: clamp(5rem, 16vw, 8.5rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.page-404 .error-title {
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  font-weight: 650;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.page-404 .error-desc {
  max-width: 48ch;
  color: var(--text-2);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

/* ─── Privacy page ─── */
.privacy-page {
  max-width: 920px;
  margin: 0 auto;
  padding: 2.5rem 0 3.5rem;
}

.privacy-page section {
  margin-bottom: 2rem;
}

.privacy-page h2 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 0.55rem;
}

.privacy-page p {
  color: var(--text-2);
  font-size: 0.88rem;
  line-height: 1.65;
}

.privacy-updated {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--text-3) !important;
  font-size: 0.72rem !important;
}

/* --- Skeleton (estado de carga inicial) --- */
@keyframes skel-pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.45;
  }
}

.skel {
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  animation: skel-pulse 1.4s ease-in-out infinite;
}

.skel-line {
  height: 0.8rem;
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  .skel {
    animation: none;
  }
}

/* Featured */
.featured-skeleton {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem 1.5rem;
}

@media (min-width: 640px) {
  .featured-skeleton {
    padding: 2rem 2rem 1.75rem;
  }
}

.featured-skeleton .skel-badge {
  width: 110px;
  height: 0.7rem;
  margin-bottom: 1rem;
  border-radius: var(--radius-pill);
}

.featured-skeleton .skel-title {
  width: min(70%, 380px);
  height: 1.7rem;
  margin-bottom: 0.75rem;
}

.featured-skeleton .skel-tagline {
  width: min(45%, 220px);
  margin-bottom: 1.5rem;
}

.featured-skeleton .skel-when {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.featured-skeleton .skel-when-col {
  flex: 1;
}

.featured-skeleton .skel-when-col .skel-line {
  width: 70%;
  margin-bottom: 0.5rem;
}

.featured-skeleton .skel-when-col .skel-line:last-child {
  width: 45%;
  margin-bottom: 0;
}

.featured-skeleton .skel-countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}

.featured-skeleton .skel-unit {
  height: 4rem;
}

/* Lista de eventos */
.list-skeleton-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
}

.list-skeleton-item+.list-skeleton-item {
  margin-top: 0.6rem;
}

.list-skeleton-item .skel-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  flex-shrink: 0;
}

.list-skeleton-item .skel-body {
  flex: 1;
  min-width: 0;
}

.list-skeleton-item .skel-body .skel-line:nth-child(1) {
  width: 28%;
  height: 0.6rem;
  margin-bottom: 0.55rem;
}

.list-skeleton-item .skel-body .skel-line:nth-child(2) {
  width: 58%;
  height: 0.95rem;
  margin-bottom: 0.45rem;
}

.list-skeleton-item .skel-body .skel-line:nth-child(3) {
  width: 38%;
  height: 0.65rem;
  margin-bottom: 0;
}

/* ─── Contact page ─── */
.contact-page {
  max-width: 980px;
  margin: 0 auto;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(240px, 0.8fr);
  gap: 2rem;
  align-items: start;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  border-radius: 12px;
  padding: 1.5rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.contact-field {
  display: grid;
  gap: 0.4rem;
}

.contact-field label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.01em;
}

.contact-optional {
  color: var(--text-3);
  font-weight: 400;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.84rem;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.75rem;
  outline: none;
  transition: border-color var(--ease), background var(--ease);
}

.contact-field textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.5;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: var(--text-3);
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  border-color: var(--primary);
  background: var(--surface);
}

.contact-field input:invalid:not(:placeholder-shown),
.contact-field textarea:invalid:not(:placeholder-shown) {
  border-color: #e07070;
}

.contact-conditional {
  display: grid;
  gap: 1rem;
}

.contact-conditional[hidden] {
  display: none;
}

.contact-side {
  display: grid;
  gap: 1.5rem;
}

.contact-note {
  padding-top: 0.15rem;
}

.contact-note+.contact-note {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.contact-note h2 {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0.55rem 0;
}

.contact-note p,
.contact-note li {
  color: var(--text-2);
  font-size: 0.82rem;
  line-height: 1.6;
}

.contact-note ul {
  list-style: none;
  display: grid;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.contact-note li {
  position: relative;
  padding-left: 0.9rem;
}

.contact-note li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.contact-note-muted {
  color: var(--text-3);
}

.contact-note-muted p {
  font-size: 0.72rem;
  color: var(--text-3);
}

.contact-status {
  min-height: 1.2rem;
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--text-3);
}

.contact-status.is-success {
  color: var(--accent);
}

.contact-status.is-error {
  color: #e07070;
}

@media (max-width: 760px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-side {
    order: 2;
  }
}

@media (max-width: 560px) {
  .contact-card {
    padding: 1.25rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translate(-50%, 20px);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.contact-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.contact-toast-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .contact-toast {
    left: 16px;
    right: 16px;
    bottom: 20px;
    transform: translateY(20px);
    justify-content: center;
    text-align: center;
  }

  .contact-toast.show {
    transform: translateY(0);
  }
}

/* ─── Event detail polish: image hero / contrast / TBD state ─── */
.detail-hero.has-bg-image {
  --hero-text: #fff;
  --hero-muted: rgba(255, 255, 255, 0.82);
  --hero-subtle: rgba(255, 255, 255, 0.64);
  --hero-border: rgba(255, 255, 255, 0.18);
}

.detail-hero.has-bg-image::after {
  background:
    linear-gradient(180deg,
      rgba(0, 0, 0, 0.62) 0%,
      rgba(0, 0, 0, 0.38) 42%,
      rgba(0, 0, 0, 0.72) 100%);
}

.detail-hero.has-bg-image .detail-info h1 {
  color: var(--hero-text);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.38);
}

.detail-hero.has-bg-image .featured-tagline {
  color: var(--hero-muted);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

.detail-hero.has-bg-image .when-block {
  border-color: var(--hero-border);
}

.detail-hero.has-bg-image .when-kicker {
  color: var(--hero-subtle);
}

.detail-hero.has-bg-image .when-date {
  color: var(--hero-text);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.25);
}

.detail-hero.has-bg-image .when-time,
.detail-hero.has-bg-image .when-note {
  color: var(--hero-muted);
}

.detail-hero.has-bg-image .cd-kicker,
.detail-hero.has-bg-image .countdown-note {
  color: var(--hero-subtle);
}

.detail-hero.has-bg-image .cd-unit {
  background: rgba(8, 9, 13, 0.48);
  border-color: var(--hero-border);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.detail-hero.has-bg-image .cd-value {
  color: var(--hero-text);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.detail-hero.has-bg-image .cd-label {
  color: var(--hero-muted);
}

.detail-hero.has-bg-image .detail-desc {
  color: var(--hero-muted);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.24);
}

.detail-hero.has-bg-image .btn-outline {
  border-color: var(--hero-border);
  color: var(--hero-text);
  background: rgba(8, 9, 13, 0.24);
}

.detail-hero.has-bg-image .btn-outline:hover {
  background: rgba(8, 9, 13, 0.52);
  border-color: rgba(255, 255, 255, 0.34);
}

/* TBD: the information block is the single source of the visible status.
   The countdown area is hidden to avoid repeating "Fecha por confirmar". */
.when-block--alert {
  display: flex;
  align-items: center;
  min-height: 92px;
  padding: 1rem 1.15rem;
  margin-top: 1.15rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
  border-left: 3px solid var(--event-accent, var(--primary));
  border-radius: 10px;
  background: var(--surface-2);
}

.when-block--alert .when-date {
  font-size: clamp(1.15rem, 2.6vw, 1.45rem);
  font-weight: 650;
}

.when-block--alert .when-time {
  max-width: 62ch;
  line-height: 1.45;
}

.detail-hero.has-bg-image .when-block--alert {
  background: rgba(8, 9, 13, 0.46);
  border-color: var(--hero-border);
  border-left-color: var(--event-accent, var(--primary));
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.detail-hero.has-bg-image .when-block--alert .when-date {
  color: #fff;
}

.detail-hero.has-bg-image .when-block--alert .when-time {
  color: rgba(255, 255, 255, 0.82);
}

.detail-hero.is-tbd .detail-countdown {
  display: none;
}

/* The hero keeps a clear visual rhythm when no countdown is rendered. */
.detail-hero.is-tbd .detail-desc {
  margin-top: 0.15rem;
}


/* =========================================================
   Featured card — contrast correction
   The image lives in ::before, so the scrim must live above it.
   ========================================================= */

.featured-card.has-bg-image {
  background-image: none;
  color: #fff;
}

.featured-card.has-bg-image::before {
  z-index: -2;
  opacity: 1;
}

.featured-card.has-bg-image::after {
  z-index: -1;
  background:
    linear-gradient(90deg,
      rgba(0, 0, 0, .72) 0%,
      rgba(0, 0, 0, .52) 46%,
      rgba(0, 0, 0, .25) 78%,
      rgba(0, 0, 0, .16) 100%),
    linear-gradient(180deg,
      rgba(0, 0, 0, .06) 0%,
      rgba(0, 0, 0, .10) 48%,
      rgba(0, 0, 0, .34) 100%);
}

.featured-card.has-bg-image .featured-title {
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .42);
}

.featured-card.has-bg-image .featured-tagline {
  color: rgba(255, 255, 255, .82);
  text-shadow: 0 1px 5px rgba(0, 0, 0, .40);
}

.featured-card.has-bg-image .featured-badge {
  color: var(--primary);
}

.featured-card.has-bg-image .featured-cat {
  color: var(--cat-color, var(--primary));
}

.featured-card.has-bg-image .when-block {
  background: rgba(0, 0, 0, .30);
  border-color: rgba(255, 255, 255, .22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}

.featured-card.has-bg-image .when-kicker,
.featured-card.has-bg-image .when-time,
.featured-card.has-bg-image .when-date,
.featured-card.has-bg-image .when-location,
.featured-card.has-bg-image .when-venue,
.featured-card.has-bg-image .when-note {
  text-shadow: 0 1px 4px rgba(0, 0, 0, .42);
}

.featured-card.has-bg-image .when-kicker {
  color: rgba(255, 255, 255, .64);
}

.featured-card.has-bg-image .when-date,
.featured-card.has-bg-image .when-time,
.featured-card.has-bg-image .when-location,
.featured-card.has-bg-image .when-venue {
  color: #fff;
}

.featured-card.has-bg-image .when-note {
  color: rgba(255, 255, 255, .72);
}

.featured-card.has-bg-image .countdown-kicker,
.featured-card.has-bg-image .countdown-note {
  color: rgba(255, 255, 255, .76);
  text-shadow: 0 1px 4px rgba(0, 0, 0, .40);
}

.featured-card.has-bg-image .countdown {
  background: transparent;
  border-color: transparent;
}

.featured-card.has-bg-image .countdown .cd-unit {
  background: rgba(248, 249, 252, .94);
  border-color: rgba(255, 255, 255, .55);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .16);
}

.featured-card.has-bg-image .countdown .cd-number {
  color: #101218;
  text-shadow: none;
}

.featured-card.has-bg-image .countdown .cd-label {
  color: #646a78;
  text-shadow: none;
}

.featured-card.has-bg-image .countdown-status {
  background: rgba(0, 0, 0, .34);
  border-color: rgba(255, 255, 255, .22);
  color: #fff;
}

.featured-card.has-bg-image .featured-cta .btn-primary {
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
}

@media (max-width: 700px) {
  .featured-card.has-bg-image::after {
    background:
      linear-gradient(180deg,
        rgba(0, 0, 0, .58) 0%,
        rgba(0, 0, 0, .42) 48%,
        rgba(0, 0, 0, .68) 100%);
  }
}


/* =========================================================
   Featured countdown — match event detail hero
   ========================================================= */

.featured-card.has-bg-image .featured-countdown .cd-kicker {
  color: var(--hero-subtle);
  text-shadow: 0 1px 6px rgba(0, 0, 0, .35);
}

.featured-card.has-bg-image .featured-countdown .countdown {
  background: transparent;
  border: 0;
}

.featured-card.has-bg-image .featured-countdown .cd-unit {
  background: rgba(8, 9, 13, 0.48);
  border: 1px solid var(--hero-border);
  border-bottom: 1px solid var(--hero-border);
  border-radius: 10px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: none;
}

.featured-card.has-bg-image .featured-countdown .cd-value {
  color: var(--hero-text);
  text-shadow: 0 2px 14px rgba(0, 0, 0, .35);
}

.featured-card.has-bg-image .featured-countdown .cd-label {
  color: var(--hero-muted);
  text-shadow: none;
}

.detail-hero.has-bg-image .countdown-tz,
.featured-card.has-bg-image .countdown-tz,
.featured-card.has-bg-image .featured-countdown .countdown-tz {
  background: rgba(8, 15, 25, 0.76) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35) !important;
  text-shadow: none !important;
  margin-left: 0 !important;
  margin-right: auto !important;
}

.detail-hero.has-bg-image .countdown-tz .tz-label,
.featured-card.has-bg-image .countdown-tz .tz-label,
.featured-card.has-bg-image .featured-countdown .countdown-tz .tz-label {
  color: rgba(255, 255, 255, 0.75) !important;
  text-shadow: none !important;
}

.detail-hero.has-bg-image .countdown-tz .tz-value,
.featured-card.has-bg-image .countdown-tz .tz-value,
.featured-card.has-bg-image .featured-countdown .countdown-tz .tz-value {
  color: #ffffff !important;
  text-shadow: none !important;
}

.detail-hero.has-bg-image .countdown-note,
.featured-card.has-bg-image .countdown-note,
.featured-card.has-bg-image .featured-countdown .countdown-note {
  color: rgba(255, 255, 255, 0.82) !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6) !important;
  background: transparent !important;
  border: none !important;
  margin-left: 0 !important;
  margin-right: auto !important;
  text-align: left !important;
  justify-content: flex-start !important;
}


/* Featured countdown — subtle category-colored frame */
.featured-card.has-bg-image .featured-countdown .cd-unit {
  border: 1px solid color-mix(in srgb,
      var(--cat-color, var(--primary)) 72%,
      rgba(255, 255, 255, .20));
  border-bottom: 1px solid color-mix(in srgb,
      var(--cat-color, var(--primary)) 72%,
      rgba(255, 255, 255, .20));
}

@supports not (color: color-mix(in srgb, black 10%, white)) {
  .featured-card.has-bg-image .featured-countdown .cd-unit {
    border: 1px solid var(--cat-color, var(--primary));
    border-bottom: 1px solid var(--cat-color, var(--primary));
  }
}


/* Event detail countdown — same category-colored subtle border
   used by the Featured countdown. */
.detail-hero.has-bg-image .detail-countdown .cd-unit {
  border: 1px solid color-mix(in srgb,
      var(--event-accent, var(--primary)) 72%,
      rgba(255, 255, 255, .20));
  border-bottom: 1px solid color-mix(in srgb,
      var(--event-accent, var(--primary)) 72%,
      rgba(255, 255, 255, .20));
}

@supports not (color: color-mix(in srgb, black 10%, white)) {
  .detail-hero.has-bg-image .detail-countdown .cd-unit {
    border: 1px solid var(--event-accent, var(--primary));
    border-bottom: 1px solid var(--event-accent, var(--primary));
  }
}

/* --------------------------------------------------
   Breadcrumb
-------------------------------------------------- */

.tools-breadcrumb {
  width: 100%;
  max-width: 1080px;
  margin: 1.25rem auto 1rem;
  padding: 0;
  font-size: 0.8rem;
  color: var(--text-3);
}

.tools-breadcrumb a {
  color: var(--text-2);
}

.tools-breadcrumb a:hover {
  color: var(--text);
}

@media (max-width: 1120px) {
  .tools-breadcrumb {
    width: calc(100% - 40px);
  }
}

/* --------------------------------------------------
   Tools Promo
-------------------------------------------------- */

.tools-promo {
  width: min(var(--max-w), calc(100% - 40px));
  margin: 32px auto 28px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.tools-promo-icon {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 1.1rem;
}

.tools-promo-content {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.tools-promo-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.tools-promo-text {
  font-size: 0.88rem;
  color: var(--text);
}

.tools-promo-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.tools-promo-link:hover {
  text-decoration: underline;
}

.tools-promo-link span:last-child {
  transition: transform 0.2s ease;
}

.tools-promo-link:hover span:last-child {
  transform: translateX(3px);
}

@media (max-width: 640px) {
  .tools-promo {
    width: calc(100% - 32px);
    margin: 28px auto 24px;
    padding: 14px 16px;
  }

  .tools-promo-content {
    display: block;
  }

  .tools-promo-label {
    display: block;
    margin-bottom: 3px;
  }

  .tools-promo-link {
    margin: 6px 0 0;
  }
}

/* --------------------------------------------------
   Local Time Info Row (integrated inside "Cuándo empieza")
-------------------------------------------------- */

.info-row-local-time {
  background: color-mix(in srgb, var(--event-accent, var(--primary)) 6%, transparent);
  margin: 0.2rem -0.6rem;
  padding: 0.65rem 0.6rem;
  border-radius: 8px;
}

.info-value-secondary {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--detail-text-muted, var(--text-2));
}

.info-tz-city {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--detail-text-muted, var(--text-3));
  margin-top: 0.05rem;
}

.info-convert-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--event-accent, var(--primary));
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.15s ease, text-decoration-color 0.15s ease;
  text-underline-offset: 3px;
}

.info-convert-link:hover {
  opacity: 1;
  text-decoration: underline;
}

.info-local-adjusted-note {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--detail-text-muted, var(--text-3));
  opacity: 0.85;
}

/* --------------------------------------------------
   Midnight technical-reference note (inside info-card)
-------------------------------------------------- */

.detail-midnight-note {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  margin: 0.9rem 0 0;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  background: color-mix(in srgb, var(--event-accent, var(--primary)) 6%, transparent);
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--detail-text-muted, var(--text-3));
  font-weight: 500;
}

.detail-midnight-note .note-icon {
  font-size: 0.78rem;
  line-height: 1.5;
  flex-shrink: 0;
  opacity: 0.8;
}

[data-theme="light"] .detail-midnight-note {
  color: #475569;
}

/* --------------------------------------------------
   Event-detail footer disclaimer (replaces generic one)
-------------------------------------------------- */

.disclaimer--detail {
  font-size: 0.78rem;
  color: #9aacbf;
  line-height: 1.6;
  max-width: 100%;
  margin: 0;
  text-align: left;
}

[data-theme="light"] .disclaimer--detail {
  color: #64748b;
}