/* UCI Gran Fondo World Series Colombia: el look del sitio del evento sobre la plantilla.
   Azul marino (#003155 / #064674), la franja arcoíris UCI, títulos en Montserrat Black
   en mayúsculas, amarillo para resaltar y rojo para la acción principal. */
:root {
  --uci-azul: #0286CC; --uci-rojo: #C8203F; --uci-negro: #000; --uci-amarillo: #FFDD00; --uci-verde: #45B649;
  --uci-cta: #F70000; --uci-marino: #003155;
  --uci-franja: linear-gradient(180deg, var(--uci-azul) 0 20%, var(--uci-rojo) 20% 40%, var(--uci-negro) 40% 60%,
    var(--uci-amarillo) 60% 80%, var(--uci-verde) 80% 100%);
  --dark-bg-rgb: 0,49,85;   /* islas oscuras (barra, héroe de la ficha) también en tema claro */
}
/* Tema oscuro: el marino del sitio, no el casi-negro que sale de derivar la marca */
:root:not([data-theme="light"]) {
  --d-bg: #003155; --d-bg-rgb: 0,49,85; --d-bg-2: #064674; --d-bg-2-rgb: 6,70,116;
  --d-surface: #064674; --d-line: #1D5E8F; --brand-deep: #042344; --brand-raise: #0A5287; --brand-soft: #0A4A7A; --brand-hover: #0D5A93;
  --c-gray: #C3D5E6; --c-gray-2: #A6BED4; --c-gray-3: #86A2BC; --c-gray-rgb: 195,213,230;
}

/* La franja arcoíris UCI bajo la barra y al pie del héroe */
header { box-shadow: none; }
header::after { content: ''; position: absolute; left: 0; right: 0; bottom: -15px; height: 15px; background: var(--uci-franja); pointer-events: none; z-index: 1; }
#sec-modalidades.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 20px; background: var(--uci-franja); z-index: 3; }

/* Héroe: foto de salida con velo marino, como la portada del evento (en los dos temas) */
.hero-bg, :root[data-theme] .hero-bg { background: url(banner.webp) center 58% / cover no-repeat; }
@media (max-width: 700px) { .hero-bg, :root[data-theme] .hero-bg { background-image: url(banner-movil.webp); } }
.hero-overlay, :root[data-theme] .hero-overlay {
  background: linear-gradient(180deg, rgba(0,49,85,.78) 0%, rgba(0,49,85,.70) 45%, rgba(0,49,85,.92) 100%);
}
.hero-content { padding-bottom: 5rem; }
:root[data-theme] #sec-modalidades .hero-title, #sec-modalidades .hero-title {
  font-weight: 900; text-transform: uppercase; color: #fff; text-shadow: 0 4px 30px rgba(0,0,0,.45);
  font-size: clamp(2.6rem, 8vw, 6rem);
}
/* «COLOMBIA» espaciado y en amarillo, como «MEDELLÍN» en la portada del evento */
:root[data-theme] #sec-modalidades .hero-title span, #sec-modalidades .hero-title span {
  background: none; -webkit-text-fill-color: #F3DB04; color: #F3DB04;
  font-weight: 800; letter-spacing: .22em; font-size: .62em; display: inline-block; margin-top: .25em; margin-right: -.22em;
}
:root[data-theme] #sec-modalidades .hero-kicker, #sec-modalidades .hero-kicker { color: #fff; letter-spacing: .32em; }
:root[data-theme] #sec-modalidades .hero-kicker::before, :root[data-theme] #sec-modalidades .hero-kicker::after { background: #F3DB04; }
:root[data-theme] #sec-modalidades .hero-sub, #sec-modalidades .hero-sub,
:root[data-theme] #sec-modalidades .hm-lbl, #sec-modalidades .hm-lbl { color: rgba(255,255,255,.82); }
:root[data-theme] #sec-modalidades .hm-num, #sec-modalidades .hm-num { color: #fff; }

/* Botones: rojo «Inscríbete» para el principal y píldora blanca con borde para el resto */
.btn-hero { text-transform: uppercase; letter-spacing: .06em; font-weight: 800; font-size: .88rem; }
.btn-hero--primary, :root[data-theme] .btn-hero--primary { background: var(--uci-cta); color: #fff; box-shadow: 0 10px 28px rgba(247,0,0,.32); }
.btn-hero--primary:hover { box-shadow: 0 16px 38px rgba(247,0,0,.45); }
.btn-hero--ghost, :root[data-theme] .btn-hero--ghost { background: transparent; border: 2px solid #fff; color: #fff; }
.btn-hero--ghost:hover, :root[data-theme] .btn-hero--ghost:hover { background: rgba(255,255,255,.12); }

/* Títulos de sección en Montserrat Black y mayúsculas, como «RECORRIDOS / ROUTES» */
.section-title, h2.sec-title, .page-title, .sec-head h2 { font-weight: 900; text-transform: uppercase; letter-spacing: .01em; }

@media (max-width: 700px) { header::after { bottom: -10px; height: 10px; } }

/* Amarillo sólido con texto marino donde la plantilla ponía degradados o lavados de neón
   (el amarillo al 15 % sobre marino queda oliva) */
.header-nav a.active, nav a.active, :root[data-theme="light"] .header-nav a.active { background: #F3DB04; color: var(--uci-marino); }
.rt-btn.active, .page-title .sport-badge { background: #F3DB04; color: var(--uci-marino); border-color: transparent; }
.dorsal-badge, .count-badge { background: rgba(255,255,255,.1); color: #F3DB04; border-color: rgba(255,255,255,.18); }
:root[data-theme="light"] .dorsal-badge, :root[data-theme="light"] .count-badge { background: #E6EEF6; color: var(--uci-marino); border-color: #C9D8E8; }
