/* ==========================================================================
   SISTEMA DE DISEÑO CENTRALIZADO - RUTA OLÍMPICA (olympics_route.css)
   CENAMEC - Centro Nacional para el Mejoramiento de la Enseñanza de la Ciencia
   ==========================================================================
   Archivo compartido y unificado para todas las olimpíadas:
   - Olimpiada Juvenil de Hidrocarburos (.olympics-hidrocarburos)
   - Olimpíada Venezolana de Química (.olympics-quimica)
   - Olimpiada Venezolana de Jóvenes Científicos (.olympics-ciencias)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIABLES Y PALETAS TEMÁTICAS (solo en las páginas de olimpiadas)
   -------------------------------------------------------------------------- */
.olympics-page {
  --bg-light: #f8fafc;
  --text-dark: #1e293b;
  --text-light: #64748b;
  --white: #ffffff;
  --border: #e2e8f0;
  --border-color: #e2e8f0;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.12);
  --container-width: 1200px;

  /* Boletines Informativos: Paleta unificada en azul corporativo para TODAS las olimpíadas */
  --bulletin-primary: #1d4a80;
  --bulletin-dark: #0f172a;
  --bulletin-accent: #1d4a80;

  /* Por defecto (Hidrocarburos) */
  --primary-color: #1d4a80;
  --primary-light: #2f6398;
  --accent-color: #2f6398;
  --accent-glow: #cfdae5;
  --hero-bg: linear-gradient(135deg, #163a66 0%, #1d4a80 60%, #2f6398 100%);
  --hero-title-color: #ffffff;
  --badge-bg: rgba(207, 218, 229, 0.15);
  --badge-border: rgba(207, 218, 229, 0.4);
  --badge-color: #ffffff;
}

/* 1.1 TEMA HIDROCARBUROS: Azules oscuros, negros, naranjas, dorados (petróleo, gas, energía) */
.olympics-hidrocarburos,
.olympics-container-hydrocarbons,
.hydrocarbons {
  --primary-color: #1d4a80;
  --primary-light: #2f6398;
  --accent-color: #2f6398;
  --accent-glow: #cfdae5;
  --title-color: #1d4a80;
  --hero-bg: linear-gradient(135deg, #163a66 0%, #1d4a80 60%, #2f6398 100%);
  --hero-title-color: #ffffff;
  --badge-bg: rgba(207, 218, 229, 0.15);
  --badge-border: rgba(207, 218, 229, 0.4);
  --badge-color: #ffffff;
  --item-bg-gradient: linear-gradient(135deg, rgba(12, 35, 51, 0.04) 0%, rgba(207, 218, 229, 0.06) 100%);
}

/* 1.2 TEMA QUÍMICA: Morados, púrpuras, rosas, turquesas (reactivos, tubos de ensayo, vibrancia) */
.olympics-quimica,
.olympics-container-chemistry,
.chemistry {
  --primary-color: #1d4a80;
  --primary-light: #2f6398;
  --accent-color: #2f6398;
  --accent-glow: #cfdae5;
  --title-color: #1d4a80;
  --hero-bg: linear-gradient(135deg, #163a66 0%, #1d4a80 60%, #2f6398 100%);
  --hero-title-color: #ffffff;
  --badge-bg: rgba(207, 218, 229, 0.15);
  --badge-border: rgba(207, 218, 229, 0.4);
  --badge-color: #ffffff;
  --item-bg-gradient: linear-gradient(135deg, rgba(0, 51, 102, 0.04) 0%, rgba(207, 218, 229, 0.06) 100%);
}

/* 1.3 TEMA CIENCIAS: Azules, verdes, blancos (laboratorio, naturaleza, conocimiento) */
.olympics-ciencias,
.olympics-container-sciences,
.sciences {
  --primary-color: #1d4a80;
  --primary-light: #2f6398;
  --accent-color: #2f6398;
  --accent-glow: #cfdae5;
  --title-color: #1d4a80;
  --hero-bg: linear-gradient(135deg, #163a66 0%, #1d4a80 60%, #2f6398 100%);
  --hero-title-color: #ffffff;
  --badge-bg: rgba(207, 218, 229, 0.15);
  --badge-border: rgba(207, 218, 229, 0.4);
  --badge-color: #ffffff;
  --item-bg-gradient: linear-gradient(135deg, rgba(0, 77, 64, 0.04) 0%, rgba(207, 218, 229, 0.06) 100%);
}

/* --------------------------------------------------------------------------
   2. ANIMACIONES GLOBALES
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

.reveal-delay-100 {
  transition-delay: 0.1s;
}
.reveal-delay-200 {
  transition-delay: 0.2s;
}
.reveal-delay-300 {
  transition-delay: 0.3s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rotate {
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* --------------------------------------------------------------------------
   3. ESTRUCTURA Y UTILIDADES DE LAYOUT
   -------------------------------------------------------------------------- */
.olympics-page .container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  background-color: transparent;
}

.section-padding {
  padding: 80px 0;
}

.text-center {
  text-align: center;
}

/* --------------------------------------------------------------------------
   4. HERO PRINCIPAL (ENCABEZADO CON ELEMENTOS VISUALES)
   -------------------------------------------------------------------------- */
.hero {
  background: var(--hero-bg);
  color: var(--hero-title-color);
  padding: 100px 0;
  text-align: center;
  overflow: hidden;
  position: relative;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-badge-pill {
  display: inline-block;
  background: var(--badge-bg);
  backdrop-filter: blur(5px);
  padding: 8px 24px;
  border-radius: 30px;
  margin-bottom: 25px;
  border: 1px solid var(--badge-border);
  color: var(--badge-color);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  opacity: 0;
  animation: fadeUp 1s ease forwards 0.3s;
}

.hero h1 {
  font-size: 3.2rem;
  margin-bottom: 15px;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  opacity: 0;
  animation: fadeUp 1s ease forwards 0.5s;
}

.hero h1 .highlight {
  color: var(--accent-color);
  text-shadow: 0 0 25px rgba(207, 218, 229, 0.4);
}

.hero h2 {
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--accent-color);
  margin-bottom: 25px;
  opacity: 0;
  animation: fadeUp 1s ease forwards 0.8s;
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 750px;
  margin: 0 auto 30px auto;
  font-size: 1.15rem;
  line-height: 1.8;
  opacity: 0;
  animation: fadeUp 1s ease forwards 1.1s;
}

/* Sistema Orbital Decorativo (Átomo / Energía) */
.orbital-system {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.orbital-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.orbital-ring-1 {
  width: 300px;
  height: 300px;
  animation: rotate 20s linear infinite;
}
.orbital-ring-2 {
  width: 520px;
  height: 520px;
  animation: rotate 30s linear infinite reverse;
}
.orbital-ring-3 {
  width: 740px;
  height: 740px;
  animation: rotate 42s linear infinite;
}

.electron {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--accent-color);
  border-radius: 50%;
  box-shadow:
    0 0 12px var(--accent-color),
    0 0 24px var(--accent-glow);
}

.electron-1 {
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
}
.electron-2 {
  top: 50%;
  right: 0;
  transform: translate(50%, -50%);
}
.electron-3 {
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
}

.nucleus {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
  opacity: 0.25;
  border-radius: 50%;
}

/* --------------------------------------------------------------------------
   5. TÍTULOS DE SECCIÓN
   -------------------------------------------------------------------------- */
.section-title {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-title h2 {
  font-size: 2.3rem;
  color: var(--primary-color);
  margin-bottom: 12px;
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: "";
  position: absolute;
  width: 60px;
  height: 3px;
  background: var(--accent-color);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
  opacity: 0.9;
}

.section-title p {
  color: var(--text-light);
  margin-top: 15px;
  font-size: 1.1rem;
  font-weight: 400;
}

/* --------------------------------------------------------------------------
   6. TARJETAS DE INFORMACIÓN (INFO-GRID & INFO-CARD)
   -------------------------------------------------------------------------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.info-card {
  background: var(--white);
  padding: 35px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent-color);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  display: block;
}

.info-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.info-card h3 {
  color: var(--primary-color);
  font-size: 1.35rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.info-card h3 i,
.info-card h3 svg {
  color: var(--accent-color);
  width: 24px;
  height: 24px;
}

.info-card p {
  color: var(--text-dark);
  font-size: 0.95rem;
  line-height: 1.6;
}

.list-check {
  list-style: none;
  text-align: left;
  margin-top: 15px;
  padding: 0;
}

.list-check li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 1.5;
}

.list-check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

/* Equipos Olímpicos Grid */
.purpose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.purpose-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--item-bg-gradient, var(--bg-light));
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform 0.2s ease;
}

.purpose-item:hover {
  transform: translateY(-2px);
}

.purpose-number {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  flex-shrink: 0;
}

/* Características Grid */
.char-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 25px;
}

.char-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary-color);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.char-item:hover {
  transform: translateY(-4px);
}

.char-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--badge-bg);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.char-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.char-info p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.5;
  margin: 0;
}

.point-highlight {
  font-weight: 700;
  color: var(--accent-color);
}

/* --------------------------------------------------------------------------
   6.1 ESTRUCTURA DE PRUEBAS Y NIVELES (DISEÑO SIMPLE Y UNIFORME)
   -------------------------------------------------------------------------- */
.levels-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 30px;
  align-items: stretch;
}

.level-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.level-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.level-header {
  background: var(--primary-color);
  color: #ffffff;
  padding: 22px 24px;
  position: relative;
  border-bottom: 3px solid var(--accent-color);
}

.level-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  margin-bottom: 10px;
}

.level-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 4px 0;
  color: #ffffff;
}

.level-header p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}

.level-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.level-desc {
  margin-bottom: 20px;
  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 1.5;
}

.test-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
}

.test-item {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary-color);
  border-radius: 8px;
  padding: 14px 16px;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.level-card:nth-child(2) .test-item {
  border-left-color: var(--primary-color);
}

.test-item:hover {
  background: #ffffff;
  border-color: var(--primary-color);
}

.test-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.test-title-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--primary-color);
  font-size: 0.95rem;
}

.test-num-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.level-card:nth-child(2) .test-num-circle {
  background: var(--primary-color);
  color: #ffffff;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  white-space: nowrap;
  background: rgba(0, 51, 102, 0.08);
  color: var(--primary-color);
  border: 1px solid rgba(0, 51, 102, 0.15);
}

.test-details {
  margin: 4px 0 0 0;
  font-size: 0.88rem;
  color: var(--text-dark);
  line-height: 1.45;
}

.test-details strong {
  color: var(--primary-color);
}

/* Modalidad & Elaboración Box Grid - Uniform style */
.modalidad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.modalidad-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: transform 0.2s ease;
}

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

.modalidad-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(0, 51, 102, 0.08);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.modalidad-body {
  flex-grow: 1;
}

.modalidad-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0 0 8px 0;
}

.modalidad-body p {
  font-size: 0.9rem;
  color: var(--text-dark);
  line-height: 1.5;
  margin: 0;
}

/* --------------------------------------------------------------------------
   7. CADENA DE VALOR (TABS) - DISEÑO UNIFICADO Y MODULAR
   -------------------------------------------------------------------------- */
.value-chain-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 35px;
  flex-wrap: wrap;
}

.value-tab {
  background: var(--white);
  border: 2px solid transparent;
  padding: 12px 24px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  font-family: inherit;
  font-size: 0.95rem;
}

.value-tab .tab-number {
  background: var(--bg-light);
  color: var(--primary-color);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.3s ease;
  margin: 0;
}

.value-tab:hover {
  transform: translateY(-2px);
  border-color: var(--accent-color);
  color: var(--primary-color);
}

.value-tab.active {
  background-color: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.value-tab.active .tab-number {
  background-color: var(--accent-color);
  color: var(--primary-color);
}

.value-tab.active .tab-title {
  color: #ffffff;
}

.value-content-panel {
  display: none;
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--accent-color);
  border: 1px solid var(--border);
  border-top-width: 4px;
  border-top-color: var(--accent-color);
  animation: fadeIn 0.4s ease-in;
}

.value-content-panel.active {
  display: block;
}

.panel-header-box {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 25px;
}

.panel-header-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: var(--badge-bg);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.panel-header-icon svg {
  width: 30px;
  height: 30px;
}

.panel-header-title h3 {
  margin: 0 0 5px 0;
  color: var(--primary-color);
  font-size: 1.45rem;
  font-weight: 700;
}

.panel-header-title p {
  margin: 0;
  color: var(--text-light);
  font-size: 1rem;
}

.chain-topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.chain-topic-item {
  background: var(--item-bg-gradient, var(--bg-light));
  border-radius: 10px;
  padding: 22px;
  border-left: 4px solid var(--primary-color);
  transition: transform 0.2s ease;
}

.chain-topic-item:hover {
  transform: translateY(-3px);
}

.chain-topic-item h4 {
  margin: 0 0 8px 0;
  color: var(--primary-color);
  font-size: 1.05rem;
  font-weight: 700;
}

.chain-topic-item p {
  margin: 0;
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Estado 'En desarrollo' para fases sin contenido */
.empty-phase-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 2rem;
  text-align: center;
  background: var(--item-bg-gradient, var(--bg-light));
  border-radius: 16px;
  border: 1.5px dashed var(--border);
  margin: 1.5rem 0;
}

.empty-phase-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--badge-bg);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.empty-phase-icon svg {
  width: 28px;
  height: 28px;
}

.empty-phase-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-light);
  max-width: 600px;
  line-height: 1.6;
  margin: 0;
}

/* Materiales de Formación / Descargas */
.materials-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.material-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: all 0.25s ease;
  cursor: pointer;
  text-decoration: none;
}

.material-item:hover {
  transform: translateY(-3px);
  border-color: var(--accent-color);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.material-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--badge-bg);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   8. RUTA OLÍMPICA (CRONOGRAMA VERTICAL UNIFICADO)
   -------------------------------------------------------------------------- */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::after {
  content: "";
  position: absolute;
  width: 2px;
  background-color: #e0e0e0;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
  box-sizing: border-box;
}

.timeline-item::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  background-color: var(--white);
  border: 4px solid var(--primary-color);
  top: 20px;
  border-radius: 50%;
  z-index: 1;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
}

.timeline-item:hover::after {
  transform: scale(1.3);
  border-color: var(--accent-color);
}

.left {
  left: 0;
  text-align: right;
}

.right {
  left: 50%;
}

.left::after {
  right: -8px;
}

.right::after {
  left: -8px;
}

.timeline-content {
  padding: 25px 30px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #f0f0f0;
  border-left: 4px solid var(--primary-color);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  position: relative;
}

.timeline-item.left .timeline-content {
  border-right: 4px solid var(--primary-color);
  border-left: 1px solid #f0f0f0;
  text-align: right;
}

.timeline-item.right .timeline-content {
  border-left: 4px solid var(--primary-color);
  text-align: left;
}

.timeline-item:hover .timeline-content {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border-color: var(--accent-color);
}

.date-badge {
  display: inline-block;
  background-color: var(--badge-bg);
  color: var(--primary-color);
  border: 1px solid var(--badge-border);
  padding: 5px 12px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

/* --------------------------------------------------------------------------
   9. RECONOCIMIENTOS (AWARDS) & SECCIÓN INTERNACIONAL
   -------------------------------------------------------------------------- */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.award-item {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
  border-top: 4px solid var(--accent-color);
}

.award-item:hover {
  transform: translateY(-5px);
}

.award-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  height: 60px;
  line-height: 60px;
}

.award-item h4 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.award-desc {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 15px;
}

.award-note {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--primary-light);
  font-weight: 600;
  background: var(--badge-bg);
  padding: 4px 10px;
  border-radius: 4px;
}

.international-box {
  background: linear-gradient(135deg, var(--primary-color) 0%, #001a33 100%);
  color: #ffffff;
  border-radius: var(--radius);
  padding: 50px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.international-box h3 {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 15px;
  margin-bottom: 25px;
}

.international-box .sub-heading {
  color: var(--accent-color);
  font-weight: bold;
  margin-top: 20px;
  margin-bottom: 10px;
  display: block;
}

/* --------------------------------------------------------------------------
   10. BOLETINES INFORMATIVOS (PANEL LATERAL DESLIZABLE UNIFICADO)
   -------------------------------------------------------------------------- */
@keyframes pulse-bulletin {
  0% {
    box-shadow: 0 0 0 0 rgba(29, 74, 128, 0.6);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(29, 74, 128, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(29, 74, 128, 0);
  }
}

.results-trigger {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg) translateX(50%);
  transform-origin: bottom right;
  background: linear-gradient(135deg, var(--bulletin-primary) 0%, var(--bulletin-dark) 100%);
  color: #ffffff;
  padding: 12px 24px;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  z-index: 1100;
  border: 2px solid var(--bulletin-accent);
  border-right: none;
  white-space: nowrap;
  animation: pulse-bulletin 2.5s infinite;
  transition: all 0.3s ease;
}

.results-trigger:hover {
  background: #1d4a80;
  transform: translateY(-50%) rotate(-90deg) translateX(55%);
  color: #ffffff;
}

.side-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 700px;
  height: 100vh;
  background-color: #ffffff;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.25);
  z-index: 1200;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.side-panel.open {
  transform: translateX(0);
}

.panel-header {
  background: linear-gradient(135deg, var(--bulletin-primary) 0%, var(--bulletin-dark) 100%);
  color: #ffffff;
  padding: 25px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.close-btn {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
  transition:
    transform 0.3s ease,
    color 0.3s ease;
}

.close-btn:hover {
  transform: rotate(90deg);
  color: #cfdae5;
}

.panel-content {
  padding: 30px;
  background-color: #f8fafc;
  min-height: 100%;
}

.doc-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.doc-item {
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px 24px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.doc-item:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  border-color: var(--bulletin-primary);
  transform: translateX(-5px);
}

.doc-icon {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-right: 20px;
  flex-shrink: 0;
}

.doc-icon.pdf {
  background-color: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.doc-icon.video {
  background-color: rgba(29, 74, 128, 0.1);
  color: #1d4a80;
}

.doc-icon.image {
  background-color: rgba(207, 218, 229, 0.1);
  color: #2f6398;
}

.doc-info {
  flex: 1;
  min-width: 0;
}

.doc-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
}

.doc-desc {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 6px;
  line-height: 1.4;
}

.doc-date {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.doc-action {
  margin-left: 15px;
  flex-shrink: 0;
}

.btn-doc {
  background: linear-gradient(135deg, var(--bulletin-primary) 0%, #1e40af 100%);
  color: #ffffff;
  padding: 9px 20px;
  border-radius: 25px;
  font-size: 0.88rem;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
}

.btn-doc:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1d4a80 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(29, 74, 128, 0.35);
  color: #ffffff;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1150;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s ease;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* --------------------------------------------------------------------------
   11. RESPONSIVE (MÓVILES Y TABLETS)
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .hero {
    padding: 60px 15px;
  }
  .hero h1 {
    font-size: 2.3rem;
  }
  .hero h2 {
    font-size: 1.3rem;
  }
  .section-title {
    margin-bottom: 35px;
  }
  .section-title h2 {
    font-size: 1.8rem;
  }

  .modalidad-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 45px 12px;
  }
  .hero-badge-pill {
    padding: 6px 16px;
    font-size: 0.8125rem;
    margin-bottom: 15px;
  }
  .hero h1 {
    font-size: 1.75rem;
    margin-bottom: 10px;
  }
  .hero h2 {
    font-size: 1.1rem;
    margin-bottom: 15px;
  }
  .hero p {
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 20px;
  }

  .orbital-system {
    display: none; /* Mejor rendimiento y menos distracción en móvil */
  }

  .section-title h2 {
    font-size: 1.5rem;
  }
  .section-title p {
    font-size: 0.9rem;
  }

  .modalidad-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .modalidad-card {
    padding: 16px;
    gap: 12px;
  }

  .value-chain-tabs {
    gap: 6px;
    margin-bottom: 25px;
  }
  .value-tab {
    padding: 8px 16px;
    font-size: 0.8125rem;
  }

  .side-panel {
    width: 100%;
    max-width: none;
  }
  .timeline::after {
    left: 31px;
  }
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 15px;
  }
  .timeline-item::after {
    left: 21px;
  }
  .left {
    text-align: left;
    left: 0;
  }
  .right {
    left: 0;
  }
  .left::after,
  .right::after {
    left: 21px;
  }
  .timeline-item.left .timeline-content {
    text-align: left;
    border-right: 1px solid #f0f0f0;
    border-left: 4px solid var(--primary-color);
  }
  .doc-item {
    flex-direction: column;
    text-align: left;
    gap: 12px;
  }
  .doc-icon {
    margin-right: 0;
    margin-bottom: 8px;
  }
  .doc-action {
    margin-left: 0;
    margin-top: 10px;
    width: 100%;
  }
  .btn-doc {
    width: 100%;
    justify-content: center;
  }
}

/* Sobre el fondo azul, el acento y el subtítulo deben ser claros */
.olympics-page .hero h1 .highlight {
  color: #cfdae5;
  background: none;
  -webkit-text-fill-color: #cfdae5;
  text-shadow: none;
}

.olympics-page .hero h2,
.olympics-page .hero p {
  color: #fff;
  -webkit-text-fill-color: #fff;
}

/* --------------------------------------------------------------------------
   MODO OSCURO
   -------------------------------------------------------------------------- */
[data-theme="dark"] .olympics-page,
[data-theme="dark"] .chemistry,
[data-theme="dark"] .hydrocarbons,
[data-theme="dark"] .olympics-ciencias,
[data-theme="dark"] .olympics-container-chemistry,
[data-theme="dark"] .olympics-container-hydrocarbons,
[data-theme="dark"] .olympics-container-sciences,
[data-theme="dark"] .olympics-hidrocarburos,
[data-theme="dark"] .olympics-quimica,
[data-theme="dark"] .sciences {
  --bg-light: #0f172a;
  --text-dark: #e2e8f0;
  --text-light: #94a3b8;
  --white: #1e293b;
  --border: #334155;
  --border-color: #334155;
  --primary-color: #9cc1e5;
  --title-color: #9cc1e5;
  --primary-light: #9cc1e5;
  --accent-color: #9cc1e5;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.5);
  color: #e2e8f0;
}

[data-theme="dark"] .olympics-page .purpose-number,
[data-theme="dark"] .olympics-page .level-header,
[data-theme="dark"] .olympics-page .test-num-circle,
[data-theme="dark"] .olympics-page .level-card:nth-child(2) .test-num-circle,
[data-theme="dark"] .olympics-page .value-tab.active,
[data-theme="dark"] .olympics-page .international-box {
  background: #1d4a80;
  background-color: #1d4a80;
}

[data-theme="dark"] .test-item:hover,
[data-theme="dark"] .timeline-content,
[data-theme="dark"] .side-panel,
[data-theme="dark"] .doc-item {
  background-color: #1e293b;
  border-color: #334155;
}

[data-theme="dark"] .panel-content {
  background-color: #0f172a;
}

[data-theme="dark"] .timeline::after {
  background-color: #334155;
}

[data-theme="dark"] .doc-icon.video,
[data-theme="dark"] .doc-icon.image {
  color: #9cc1e5;
}

[data-theme="dark"] .doc-title {
  color: #f8fafc;
}

[data-theme="dark"] .doc-desc,
[data-theme="dark"] .doc-date {
  color: #94a3b8;
}

[data-theme="dark"] .international-box h2,
[data-theme="dark"] .international-box h3,
[data-theme="dark"] .international-box .sub-heading {
  color: #ffffff;
}

[data-theme="dark"] .value-tab.active .tab-number {
  color: #9cc1e5;
  background-color: #0f172a;
}

/* Los textos de la caja internacional van sobre azul: siempre claros */
.international-box p,
.international-box li {
  color: #e2e8f0;
}

/* Móvil (11-11-2026): la pestaña vertical de «Boletines Informativos» tapaba el texto del borde derecho;
   pasa a ser un botón redondo abajo a la derecha */
@media (max-width: 640px) {
  .results-trigger,
  .results-trigger:hover {
    top: auto;
    right: 1rem;
    bottom: 1rem;
    transform: none;
    padding: 10px 16px;
    font-size: 0.85rem;
    border: 2px solid var(--bulletin-accent);
    border-radius: 999px;
  }
}
