:root {
    --black: #070707;
    --paper: #f2f0e9;
    --gold: #ffd700;
    --red: #ff4500;
    --gray: #aaa;
    --overlay-dark: #050505e6;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--black);
    color: #fff;
    font-family: 'Inter', Arial, sans-serif;
    overflow-x: hidden;
}

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

h1, h2, h3, p {
    margin-top: 0;
}

h1, h2, h3, .countdown strong {
    font-family: "Barlow Condensed", sans-serif;
    line-height: 0.84;
    letter-spacing: -0.035em;
}

em {
    color: var(--gold);
    font-style: italic;
}

/* ===== SKIP LINK ===== */
.skip-link {
    position: fixed;
    top: -80px;
    left: 16px;
    background: #fff;
    color: #000;
    padding: 12px;
    z-index: 1000;
}

.skip-link:focus {
    top: 12px;
}

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

/* ===== HEADER / NAVBAR ===== */
.site-header {
    min-height: 90px;
    height: auto;
    padding: 15px clamp(22px, 6vw, 90px);
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #ffffff30;
    transition: 0.3s;
}

.site-header.is-solid {
    min-height: 76px;
    padding-top: 10px;
    padding-bottom: 10px;
    background: #070707ee;
    backdrop-filter: blur(12px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    color: #fff;
    line-height: 1;
}

.brand .brand-logo {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    background-color: transparent;
    flex-shrink: 0;
}

.brand .brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    white-space: nowrap;
}

.brand .brand-text strong {
    font: 800 21px/.82 "Barlow Condensed", sans-serif;
    letter-spacing: .05em;
}

.brand .brand-text small {
    font: 600 9px/1 "Inter", Arial, sans-serif;
    letter-spacing: .16em;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    border: 2px solid var(--gold);
    color: var(--gold);
    font: 900 19px "Barlow Condensed", sans-serif;
    transform: skew(-8deg);
}

.site-header nav {
    display: flex;
    align-items: center;
    gap: 32px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.11em;
}

.nav-icon {
    display: none;
}

.site-header nav>a:not(.nav-cta):hover {
    color: var(--gold);
}

.nav-cta {
    padding: 15px 22px;
    background: var(--gold);
    color: #000;
    border-radius: 4px;
}

.nav-cta:hover {
    background: #ffed4a;
    transform: scale(1.02);
}

.menu-toggle {
    display: none;
    background: none;
    border: 0;
    padding: 8px;
    cursor: pointer;
}

.menu-toggle i {
    display: block;
    width: 27px;
    border-top: 2px solid #fff;
    margin: 6px;
}

/* ===== UTILIDADES ===== */
.eyebrow,
.section-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.2em;
}

.gold {
    color: var(--gold);
}

/* ===== ⭐ HERO - CON FOTO COMPLETA ⭐ ===== */
.hero {
    min-height: 100svh;
    position: relative;
    display: flex;
    align-items: center;
    padding: 120px clamp(24px, 8vw, 130px);
    background: 
        linear-gradient(90deg, #050505 4%, var(--overlay-dark) 39%, transparent 74%),
        linear-gradient(0deg, #050505 0%, transparent 40%),
        url('../images/tornado-runners-osorno.png') 58% center/contain no-repeat;
    /* ⬆️ "cover" cambiado a "contain" para que se vea COMPLETA ⬆️ */
    background-blend-mode: normal;
}

/* Fallback si la imagen no carga */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #070707;
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 780px;
}

.hero h1 {
    font-size: clamp(76px, 11vw, 170px);
    margin: 28px 0;
}

.hero p {
    color: #ccc;
    line-height: 1.7;
    max-width: 580px;
}

/* ===== BOTONES ===== */
.actions {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.centered {
    justify-content: center;
}

.btn {
    display: inline-flex;
    padding: 18px 25px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.1em;
    transition: 0.25s;
    border-radius: 4px;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-hot {
    background: var(--red);
    color: #fff;
}

.btn-hot:hover {
    background: #e63e00;
}

.btn-dark {
    background: #090909;
    color: #fff;
    border: 1px solid #333;
}

.btn-dark:hover {
    background: #1a1a1a;
}

.btn-link {
    font-size: 12px;
    font-weight: 800;
    border-bottom: 1px solid;
    padding-bottom: 7px;
}

.dark-link {
    color: #111;
}

/* ===== HERO META ===== */
.hero-meta {
    position: absolute;
    left: 8vw;
    right: 8vw;
    bottom: 30px;
    display: flex;
    gap: 45px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
    color: rgba(255, 255, 255, 0.7);
}

.hero-number {
    position: absolute;
    right: 2vw;
    top: 10vh;
    color: #ffffff09;
    font: 900 32vw/1 "Barlow Condensed", sans-serif;
    pointer-events: none;
}

/* ===== CONTADOR ===== */
.countdown-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px 7vw;
    background: #0a0a0a;
}

.countdown-section h2 {
    font-size: 48px;
    margin: 8px 0;
}

.countdown {
    display: flex;
    align-items: flex-start;
    gap: 1vw;
}

.countdown div {
    text-align: center;
}

.countdown strong {
    display: block;
    color: var(--gold);
    font-size: clamp(48px, 7vw, 108px);
}

.countdown span {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.countdown i {
    color: var(--gold);
    font: 800 55px "Barlow Condensed", sans-serif;
}

/* ===== VIDEO ===== */
.video-section {
    height: 78vh;
    min-height: 560px;
    position: relative;
    overflow: hidden;
    background: #050505;
}

.promo-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.promo-video-main {
    z-index: 1;
    object-fit: cover;
    object-position: center center;
}

.video-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: rgba(0, 0, 0, 0.6);
    pointer-events: none;
}

.video-content {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(24px, 8vw, 130px);
    color: #fff;
    text-align: center;
}

.video-content h2 {
    max-width: 1200px;
    margin: 25px 0;
    font-size: clamp(65px, 10vw, 150px);
}

.video-content p {
    margin: 0;
    font-size: clamp(15px, 1.5vw, 22px);
}

/* ===== SECCIÓN CLARA ===== */
.bib-promo {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1.2fr);
    align-items: center;
    gap: clamp(45px, 7vw, 120px);
    padding: clamp(80px, 9vw, 145px) 8vw;
    overflow: hidden;
    background: #080808;
    color: #fff;
}

.bib-copy h2 {
    margin: 22px 0 28px;
    font-size: clamp(52px, 6.3vw, 105px);
    line-height: 0.84;
}

.bib-copy h2 em { color: var(--gold); }

.bib-copy > p {
    max-width: 600px;
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: clamp(17px, 1.4vw, 21px);
    line-height: 1.6;
}

.bib-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin: 40px 0 0;
    padding: 0;
    list-style: none;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.bib-features li {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 18px 14px;
    background: #080808;
}

.bib-features strong {
    color: var(--gold);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.bib-features span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

.bib-preview {
    position: relative;
    margin: 0;
    padding: clamp(14px, 2vw, 25px);
    background: linear-gradient(135deg, var(--gold), #bf7500);
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.5);
    transform: rotate(1.5deg);
}

.bib-preview img { width: 100%; height: auto; display: block; }

.bib-badge {
    position: absolute;
    top: 0;
    right: 30px;
    z-index: 1;
    padding: 11px 18px;
    background: var(--gold);
    color: #050505;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.12em;
    transform: translateY(-50%);
}

.bib-preview figcaption {
    padding: 14px 5px 0;
    color: #080808;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-align: center;
    text-transform: uppercase;
}

@media (max-width: 900px) {
    .bib-promo { grid-template-columns: 1fr; gap: 55px; padding: 80px 22px; }
    .bib-copy h2 { font-size: clamp(48px, 15vw, 75px); }
    .bib-preview { width: min(100%, 680px); margin-inline: auto; transform: none; }
}

@media (max-width: 520px) {
    .bib-features { grid-template-columns: 1fr; }
    .bib-badge { right: 12px; }
}

.light-section {
    background: var(--paper);
    color: #090909;
    padding: 9vw 8vw;
}

.section-heading h2,
.map-copy h2 {
    font-size: clamp(62px, 9vw, 140px);
    margin: 40px 0;
}

/* ===== DATOS CLAVE ===== */
.fact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-block: 1px solid #999;
}

.fact-grid article {
    min-height: 190px;
    padding: 28px 20px;
    border-right: 1px solid #aaa;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.fact-grid article:last-child {
    border-right: none;
}

.fact-grid b {
    font: 900 clamp(44px, 5vw, 78px) "Barlow Condensed", sans-serif;
}

.fact-grid span {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.13em;
}

.organizers {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 30px;
    margin-top: 30px;
    align-items: center;
}

.organizers span {
    color: var(--red);
    font-size: 10px;
    font-weight: 900;
}

/* ===== EMOCIONAL, OFICIAL, CTA FINAL ===== */
.emotional,
.official,
.final-cta {
    min-height: 85vh;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 8vw;
    background-color: #070707;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.emotional {
    background-image: linear-gradient(#0009, #0009),
        url('../images/ChatGPT Image 16 ago 2026, 21_08_18.png');
}

@media (min-width: 901px) {
    .emotional {
        background-image: linear-gradient(#0009, #0009),
            url('../images/ChatGPT Image 16 ago 2026, 21_08_18.png');
        background-size: auto, contain;
        background-position: center, center;
    }
}

.emotional h2,
.official h2,
.final-cta h2 {
    font-size: clamp(68px, 10vw, 154px);
    margin: 30px 0;
}

/* ===== PRUEBAS ===== */
.event-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

.event-grid article {
    min-height: 490px;
    padding: 32px;
    display: grid;
    grid-template-rows: auto 225px 14px;
    align-content: end;
    color: #fff;
    background-color: #111;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transition: 0.3s;
}

.event-grid article:nth-child(1) {
    background-image: linear-gradient(0deg, #000 0%, #000b 25%, #0001 68%),
        url('../images/prueba-velocidad-master.png');
}

.event-grid article:nth-child(2) {
    background-image: linear-gradient(0deg, #000 0%, #000b 25%, #0001 68%),
        url('../images/prueba-mediofondo-master.png');
}

.event-grid article:nth-child(3) {
    background-image: linear-gradient(0deg, #000 0%, #000b 25%, #0001 68%),
        url('../images/lanzamiento.png');
    background-position: center;
}

.event-grid article:hover {
    transform: translateY(-7px);
}

.event-grid h3 {
    font-size: clamp(45px, 5vw, 75px);
    align-self: start;
    margin: 22px 0 0;
    line-height: .9;
}

.event-grid span,
.event-grid p {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.15em;
}

/* ===== OFICIAL ===== */
.official {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding: 0;
    background: #070707;
    text-align: center;
}

.official-heading {
    grid-area: 1 / 1;
    z-index: 2;
    align-self: start;
    justify-self: center;
    margin: 0;
    padding: 30px;
    pointer-events: none;
    text-shadow: 0 3px 18px rgba(0,0,0,.9);
    width: 100%;
    text-align: center;
}

.official-heading h2 {
    margin-bottom: 0;
}

.official-photo {
    grid-area: 1 / 1;
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 0;
}

.official-photo::after,
.final-cta-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.55));
    pointer-events: none;
}

.official-photo img {
    display: block;
    width: 100%;
    height: auto;
}

.official-details {
    display: grid;
    justify-items: center;
    grid-area: 1 / 1;
    z-index: 3;
    align-self: end;
    justify-self: center;
    margin: 0;
    padding: 30px;
    text-shadow: 0 2px 12px rgba(0,0,0,.95);
    width: 100%;
    text-align: center;
}

.official p {
    max-width: 540px;
    margin: 0;
    color: #fff;
    line-height: 1.7;
    text-align: center;
}

.tech {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 18px;
    color: var(--gold);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.13em;
    justify-content: center;
}

/* ===== INSCRIPCIÓN ===== */
.register {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    background: var(--gold);
    color: #090909;
}

.register>div {
    padding: 9vw 8vw;
}

.register h2 {
    font-size: clamp(68px, 9vw, 135px);
    margin: 35px 0;
}

.register h2 em {
    color: #090909;
}

.price {
    display: flex;
    align-items: end;
    gap: 25px;
    flex-wrap: wrap;
}

.price strong {
    font: 900 clamp(65px, 8vw, 115px) "Barlow Condensed", sans-serif;
}

.price span,
.extra {
    font-size: 11px;
    font-weight: 800;
}

.register aside {
    padding: 8vw 4vw;
    background: #0a0a0a;
    color: #fff;
}

.register aside>span {
    color: var(--gold);
    font-size: 10px;
    letter-spacing: 0.18em;
}

.register aside h3 {
    font-size: clamp(54px, 6vw, 82px);
    margin-top: 35px;
}

/* ===== CATEGORÍAS ===== */
.category-list article {
    display: grid;
    grid-template-columns: 55px 1fr 1fr 70px;
    align-items: center;
    border-top: 1px solid #aaa;
    padding: 19px 0;
}

.category-list article:last-child {
    border-bottom: 1px solid #aaa;
}

.category-list strong {
    font: 900 clamp(34px, 5vw, 66px) "Barlow Condensed", sans-serif;
}

.category-list span,
.category-list small {
    font-size: 10px;
}

/* ===== PROGRAMA ===== */
.schedule {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 6vw;
    padding: 9vw 8vw;
}

.schedule .section-heading {
    position: sticky;
    top: 100px;
    align-self: start;
}

.schedule .section-heading h2 {
    font-size: clamp(62px, 8vw, 120px);
    margin-top: 40px;
}

.schedule-row {
    display: grid;
    grid-template-columns: 85px 1fr 150px;
    align-items: center;
    padding: 16px 8px;
    border-bottom: 1px solid #333;
}

.schedule-row b {
    color: var(--gold);
    font: 800 25px "Barlow Condensed", sans-serif;
}

.schedule-row strong {
    font: 700 18px "Barlow Condensed", sans-serif;
}

.schedule-row span {
    color: #aaa;
    font-size: 10px;
}

.schedule-head {
    font-size: 9px;
    color: #888;
}

.schedule-note {
    padding: 20px;
    background: #191919;
    color: var(--gold);
    font-size: 10px;
    font-weight: 800;
    text-align: center;
}

/* ===== GALERÍA ===== */
.gallery {
    display: block;
}

.gallery-heading {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 470px);
    align-items: end;
    gap: 40px;
    margin-bottom: 55px;
}

.gallery-heading p {
    margin: 0 0 14px;
    color: #4b4b4b;
    font-size: clamp(16px, 1.4vw, 20px);
    line-height: 1.65;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.gallery-card {
    display: block;
    min-width: 0;
    padding: 0;
    position: relative;
    border: 0;
    border-radius: 8px;
    overflow: hidden;
    background: transparent;
    cursor: zoom-in;
    aspect-ratio: 4 / 3;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
    z-index: 1;
    object-fit: cover;
    object-position: var(--photo-position, center);
    transition: filter .35s ease;
}

.gallery-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,.72), transparent 50%);
    z-index: 2;
    pointer-events: none;
}

.gallery-card span {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 3;
    color: #fff;
    font: 900 clamp(20px, 2vw, 30px) "Barlow Condensed", sans-serif;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.gallery-card:hover img,
.gallery-card:focus-visible img {
    filter: saturate(1.08) contrast(1.04);
}

.gallery-card:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

.gallery-lightbox {
    width: min(1120px, calc(100vw - 36px));
    max-width: none;
    height: min(88vh, 900px);
    padding: 0;
    border: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #080808;
    color: #fff;
}

.gallery-lightbox::backdrop {
    background: rgba(0,0,0,.9);
    backdrop-filter: blur(5px);
}

.gallery-lightbox img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.gallery-lightbox p {
    position: absolute;
    left: 22px;
    bottom: 18px;
    margin: 0;
    padding: 8px 12px;
    border-radius: 4px;
    background: rgba(0,0,0,.72);
    font-size: 13px;
}

.gallery-close {
    position: absolute;
    z-index: 2;
    top: 14px;
    right: 14px;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: rgba(0,0,0,.72);
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}

/* ===== PREMIACIÓN ===== */
.awards {
    padding: 9vw;
    text-align: center;
    background: #dedbd3;
    color: #090909;
}

.awards h2 {
    font-size: clamp(65px, 9vw, 135px);
    margin: 40px 0 18px;
}

.awards-lead {
    margin: 0;
    font-size: clamp(12px, 1.5vw, 18px);
    font-weight: 900;
    letter-spacing: .18em;
}

.podium {
    display: flex;
    align-items: end;
    justify-content: center;
    margin-top: 60px;
    gap: 10px;
}

.podium article {
    width: min(220px, 30vw);
    height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    color: #fff;
    padding: 20px;
    border-radius: 14px 14px 0 0;
    box-shadow: 0 20px 35px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.4);
    position: relative;
    overflow: visible;
}

.podium b {
    font: 900 75px "Barlow Condensed", sans-serif;
}

.podium .medal-name {
    font: 800 28px "Barlow Condensed", sans-serif;
}

.podium .medal {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -55%);
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    border: 5px solid rgba(255,255,255,.85);
    border-radius: 50%;
    background: #111;
    box-shadow: 0 10px 24px rgba(0,0,0,.3);
    font-size: 48px;
    line-height: 1;
}

.podium .gold-medal {
    height: 330px;
    background: linear-gradient(145deg, #ffe164, #d5a900 55%, #8f6900);
    box-shadow: 0 0 0 4px rgba(255,211,0,.2), 0 25px 45px rgba(118,84,0,.4), inset 0 1px 0 rgba(255,255,255,.6);
}

.silver {
    background: linear-gradient(145deg, #dedede, #969696 55%, #606060);
}

.bronze {
    background: linear-gradient(145deg, #d88a55, #96562e 55%, #5e301b);
}

/* ===== MAPA ===== */
.map-section {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
}

.map-copy {
    padding: 8vw;
}

.map-copy h3 {
    font-size: 32px;
}

.map iframe {
    width: 100%;
    height: 100%;
    min-height: 600px;
    border: 0;
    filter: none;
}

.directions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid #333;
}

.directions article {
    padding: 35px 6vw;
    border-right: 1px solid #333;
}

.directions article:last-child {
    border-right: none;
}

.directions b {
    color: var(--gold);
}

.directions h3 {
    font-size: 25px;
    margin: 20px 0;
}

.directions p {
    color: #888;
    font-size: 12px;
    line-height: 1.6;
}

/* ===== BASES ===== */
.rules,
.athlete-center {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6vw;
}

.rule-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.rule-grid article {
    padding: 28px;
    border: 1px solid #aaa;
}

.rule-grid article>b {
    color: var(--red);
}

.rule-grid h3 {
    font-size: 28px;
    margin-top: 25px;
}

.rule-grid p {
    color: #666;
    font-size: 13px;
    line-height: 1.6;
}

.rule-grid>.btn {
    grid-column: 1 / -1;
    justify-content: center;
}

/* ===== CENTRO DEL ATLETA ===== */
.athlete-center {
    padding: 9vw 8vw;
    background: var(--gold);
    color: #090909;
}

.athlete-center h2 {
    font-size: clamp(60px, 8vw, 120px);
    margin: 40px 0;
}

.portal-links a {
    display: grid;
    grid-template-columns: 45px 1fr 30px;
    padding: 25px 10px;
    border-top: 1px solid #111;
    transition: 0.2s;
    align-items: center;
}

.portal-links a:hover,
.portal-links .featured {
    padding-left: 22px;
    background: #090909;
    color: #fff;
}

.portal-links span,
.portal-links i {
    font-size: 10px;
}

/* ===== INSTAGRAM ===== */
.instagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10vw;
    background: linear-gradient(120deg, #341848, #c3265d, #f27a2d);
}

.ig-identity {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 35px auto;
}

.ig-identity svg,
.instagram-link svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.ig-identity svg {
    width: clamp(70px, 10vw, 145px);
}

.ig-identity .fill,
.instagram-link .fill {
    fill: currentColor;
    stroke: none;
}

.ig-identity strong {
    font: 900 clamp(42px, 7vw, 100px) / 0.84 "Barlow Condensed", sans-serif;
    text-align: left;
}

.instagram p {
    max-width: 520px;
    margin: auto;
}

.instagram .btn {
    margin-top: 30px;
}

/* ===== CTA FINAL ===== */
.final-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding: 0;
    background: #070707;
    text-align: center;
}

.final-cta-heading {
    grid-area: 1 / 1;
    z-index: 2;
    align-self: start;
    justify-self: center;
    margin: 0;
    padding: 30px;
    pointer-events: none;
    text-shadow: 0 3px 18px rgba(0,0,0,.9);
    width: 100%;
    text-align: center;
}

.final-cta-heading h2 {
    margin-bottom: 0;
}

.final-cta-date {
    grid-area: 1 / 1;
    z-index: 4;
    align-self: start;
    justify-self: center;
    display: block;
    margin-top: 22px;
    padding: 8px 13px;
    border-radius: 4px;
    background: rgba(0,0,0,.62);
    text-align: center;
    text-shadow: 0 2px 10px rgba(0,0,0,.9);
}

.final-cta-photo {
    grid-area: 1 / 1;
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 0;
}

.final-cta-photo img {
    display: block;
    width: 100%;
    height: auto;
}

.final-cta-actions {
    grid-area: 1 / 1;
    z-index: 3;
    align-self: end;
    justify-self: center;
    justify-content: center;
    margin: 0 0 35px;
    padding: 0 20px;
    text-shadow: 0 2px 12px rgba(0,0,0,.95);
    width: 100%;
}

.official-overlay,
.final-cta-overlay {
    grid-area: 1 / 1;
    z-index: 3;
    align-self: center;
    justify-self: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: min(900px, 100%);
    padding: 35px;
    gap: 24px;
    text-align: center;
    text-shadow: 0 3px 18px rgba(0,0,0,.95);
}

.final-cta-overlay {
    position: relative;
    top: 9%;
}

.official-overlay .official-heading,
.final-cta-overlay .final-cta-heading,
.official-overlay .official-details,
.final-cta-overlay .final-cta-actions {
    grid-area: auto;
    align-self: center;
    justify-self: center;
    width: 100%;
    margin: 0;
    padding: 0;
}

.official-overlay h2,
.final-cta-overlay h2 {
    margin: 18px 0 0;
}

.official-overlay .tech {
    margin-top: 14px;
}

/* ===== FOOTER ===== */
.site-footer {
    padding: 7vw;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 5vw;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-brand img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
}

.site-footer h2 {
    font-size: 55px;
    margin: 0;
}

.site-footer p {
    color: #999;
    font-size: 12px;
    line-height: 1.8;
}

.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 18px;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 13px;
    border: 1px solid #333;
    border-radius: 5px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.footer-socials svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.footer-socials .fill {
    fill: currentColor;
    stroke: none;
}

.footer-socials .footer-instagram {
    border-color: #c13584;
    background: linear-gradient(135deg, #405de6, #833ab4 38%, #c13584 62%, #f77737 82%, #fcaf45);
    color: #fff;
}

.footer-socials .footer-whatsapp {
    border-color: #25d366;
    background: #25d366;
    color: #fff;
}

.footer-socials .footer-instagram:hover,
.footer-socials .footer-whatsapp:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.footer-bottom {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    padding-top: 25px;
    border-top: 1px solid #333;
    color: #777;
    font-size: 10px;
}

.footer-credits {
    display: flex;
    flex: 1;
    justify-content: center;
    gap: 28px;
    text-align: center;
}

.back-to-top {
    margin-left: auto;
    color: #fff;
}

.footer-bottom b {
    color: var(--gold);
}

/* ===== ANIMACIONES REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: 0.8s;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* TABLET */
@media (max-width: 900px) {
    .site-header {
        min-height: 76px;
        padding-top: 12px;
        padding-bottom: 12px;
    }
    
    .site-header nav {
        display: none;
        position: fixed;
        inset: 76px 0 auto;
        background: #080808;
        padding: 18px clamp(22px, 6vw, 90px) 28px;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        border-bottom: 1px solid #ffffff20;
        box-shadow: 0 18px 35px rgba(0,0,0,.35);
    }

    .site-header nav a {
        display: flex;
        align-items: center;
        gap: 15px;
        width: 100%;
        min-height: 52px;
        padding: 10px 14px;
        border-bottom: 1px solid #ffffff14;
        font-size: 12px;
    }

    .site-header nav .nav-cta {
        margin-top: 8px;
        justify-content: center;
        border-bottom: 0;
    }

    .nav-icon {
        display: grid;
        place-items: center;
        width: 26px;
        height: 26px;
        flex: 0 0 26px;
        color: var(--gold);
        font-size: 19px;
    }
    
    .site-header.menu-open nav {
        display: flex;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .countdown-section {
        display: block;
        text-align: center;
    }
    
    .countdown {
        justify-content: center;
        margin: 20px 0;
    }
    
    .fact-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .event-grid {
        grid-template-columns: 1fr;
    }
    
    .event-grid article {
        min-height: 400px;
        grid-template-rows: auto 145px 14px;
    }
    
    .register,
    .schedule,
    .map-section,
    .rules,
    .athlete-center {
        grid-template-columns: 1fr;
    }
    
    .schedule .section-heading {
        position: static;
    }
    
    .map {
        min-height: 500px;
    }
    
    .map iframe {
        min-height: 400px;
    }
    
    .directions {
        grid-template-columns: 1fr;
    }
    
    .directions article {
        border-right: none;
        border-bottom: 1px solid #333;
    }
    
    .directions article:last-child {
        border-bottom: none;
    }
    
    .hero-meta {
        display: none;
    }
}

/* MÓVIL */
@media (max-width: 600px) {
    .hero {
        padding: 105px 22px 70px;
        background: 
            linear-gradient(90deg, #050505 4%, var(--overlay-dark) 39%, transparent 74%),
            linear-gradient(0deg, #050505 0%, transparent 40%),
            url('../images/tornado-runners-osorno.png') 64% center/cover no-repeat;
        /* ⬆️ En móvil usar cover para mejor visual ⬆️ */
    }
    
    .hero h1 {
        font-size: 68px;
    }
    
    .hero p {
        font-size: 14px;
    }
    
    .actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }
    
    .centered {
        align-items: center;
    }
    
    .countdown-section {
        padding: 35px 20px;
    }
    
    .countdown {
        gap: 3px;
    }
    
    .countdown strong {
        font-size: 40px;
    }
    
    .countdown i {
        font-size: 28px;
    }
    
    .video-section {
        height: 68vh;
        min-height: 500px;
    }
    
    .video-content {
        padding: 60px 22px;
    }
    
    .video-content h2 {
        font-size: 52px;
    }
    
    .light-section,
    .schedule,
    .athlete-center {
        padding: 75px 22px;
    }
    
    .section-heading h2,
    .map-copy h2 {
        font-size: 59px;
    }
    
    .fact-grid article {
        min-height: 135px;
        padding: 18px 8px;
    }
    
    .fact-grid b {
        font-size: 43px;
    }
    
    .emotional {
        padding: 75px 22px;
        background-attachment: scroll;
    }

    .official,
    .final-cta {
        padding: 0;
        background-attachment: scroll;
    }

    .emotional h2,
    .official h2,
    .final-cta h2 {
        font-size: 60px;
    }

    .official-heading,
    .final-cta-heading {
        padding: 20px;
    }

    .official-heading h2,
    .final-cta-heading h2 {
        margin-top: 14px;
        font-size: 42px;
    }

    .official-details {
        padding: 18px;
    }

    .official-details p {
        font-size: 11px;
    }

    .official-details .tech {
        gap: 8px 14px;
        margin-top: 10px;
        font-size: 8px;
    }

    .final-cta-actions {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        margin-bottom: 18px;
        padding: 0 12px;
    }

    .final-cta-actions .btn {
        padding: 13px 16px;
    }

    .final-cta-actions .btn-link {
        font-size: 10px;
    }

    .official-overlay,
    .final-cta-overlay {
        gap: 12px;
        padding: 18px;
    }

    .final-cta-overlay {
        top: 6%;
    }

    .final-cta-date {
        margin-top: 12px;
        padding: 6px 9px;
        font-size: 8px;
    }

    .official-overlay .official-details,
    .final-cta-overlay .final-cta-actions {
        margin: 0;
        padding: 0;
    }
    
    .register>div,
    .register aside,
    .map-copy {
        padding: 75px 22px;
    }
    
    .register h2 {
        font-size: 62px;
    }
    
    .price {
        display: block;
    }
    
    .price strong {
        font-size: 65px;
    }
    
    .category-list article {
        grid-template-columns: 35px 1fr 85px;
    }
    
    .category-list small {
        display: none;
    }
    
    .schedule-row {
        grid-template-columns: 65px 1fr;
    }
    
    .schedule-row>*:last-child {
        display: none;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-heading {
        grid-template-columns: 1fr;
        margin-bottom: 35px;
    }

    .gallery-card {
        aspect-ratio: 4 / 3;
    }

    .podium article {
        height: 170px;
        width: min(150px, 30vw);
    }
    
    .podium .gold-medal {
        height: 225px;
    }
    
    .podium b {
        font-size: 50px;
    }
    
    .podium span {
        font-size: 20px;
    }

    .podium .medal {
        width: 58px;
        height: 58px;
        border-width: 3px;
        font-size: 34px;
    }
    
    .rule-grid {
        grid-template-columns: 1fr;
    }
    
    .ig-identity {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .ig-identity svg {
        width: 55px;
    }
    
    .ig-identity strong {
        font-size: 39px;
    }
    
    .site-footer {
        grid-template-columns: 1fr;
        justify-items: center;
        padding: 75px 22px 30px;
        text-align: center;
        gap: 48px;
    }

    .footer-brand {
        justify-content: center;
    }

    .footer-event,
    .footer-contact {
        width: 100%;
        text-align: center;
    }

    .footer-socials {
        justify-content: center;
    }
    
    .footer-bottom {
        position: relative;
        display: block;
        width: 100%;
        min-height: 75px;
        text-align: center;
    }
    
    .footer-credits {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 0 70px;
    }

    .back-to-top {
        position: absolute;
        right: 0;
        bottom: 0;
        white-space: nowrap;
    }
}

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ===== HERO OPTIMIZADO ===== */
.hero-section{position:relative;min-height:100svh;overflow:hidden;isolation:isolate;background:#050505}
.hero-bg-wrapper{position:absolute;inset:0;z-index:-1;overflow:hidden;background:#050505}
.hero-bg-wrapper picture{display:block;width:100%;height:100%}
.hero-bg-image{position:relative;z-index:1;display:block;width:100%;height:100%;object-fit:cover;object-position:center center;image-rendering:auto;transform:translateZ(0)}
.hero-gradient-overlay{position:absolute;z-index:2;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.82) 0%,rgba(0,0,0,.66) 48%,rgba(0,0,0,.48) 100%),linear-gradient(0deg,rgba(0,0,0,.72) 0%,transparent 46%);pointer-events:none}
.hero-content-wrapper{min-height:100svh;position:relative;display:flex;align-items:center;justify-content:flex-start;padding:120px clamp(24px,8vw,130px) 100px;text-align:left}
.hero-section .hero-content{position:relative;z-index:1;width:min(650px,100%)}
.hero-eyebrow{margin:0 0 22px;color:#fff;font-size:11px;font-weight:800;letter-spacing:.2em}
.hero-title{margin:0 0 24px;color:#fff;font-size:clamp(64px,8vw,118px);line-height:.86}
.hero-description{max-width:540px;margin-bottom:0;color:#fff;font-size:clamp(14px,1.2vw,18px);line-height:1.65}
.hero-actions{display:flex;flex-wrap:wrap;align-items:center;gap:18px;margin-top:32px}
.hero-section .btn-primary{background:#ff5722;color:#fff;border:1px solid #ff5722}
.hero-section .btn-secondary{border:1px solid #fff;background:transparent;color:#fff;backdrop-filter:none}
.hero-section .hero-meta{position:absolute;right:auto;bottom:28px;left:clamp(24px,8vw,130px);display:flex;gap:14px;color:#fff;font-size:9px;font-weight:700;letter-spacing:.14em}
.hero-section .hero-meta span+span::before{content:"·";margin-right:14px}
@media (max-width:900px){.hero-bg-image{object-position:center}.hero-gradient-overlay{background:linear-gradient(90deg,rgba(0,0,0,.8),rgba(0,0,0,.58)),linear-gradient(0deg,rgba(0,0,0,.72),transparent 55%)}}
@media (max-width:600px){.site-header,.site-header.is-solid{min-height:76px;background:#070707;backdrop-filter:none}.hero-bg-wrapper{top:76px}.hero-bg-wrapper::before{display:none}.hero-content-wrapper{align-items:center;padding:105px 22px 90px}.hero-bg-image{position:absolute;top:0;left:50%;width:auto;max-width:none;height:100%;object-fit:initial;transform:translateX(-50%)}.hero-gradient-overlay{background:linear-gradient(90deg,rgba(0,0,0,.68),rgba(0,0,0,.48)),linear-gradient(0deg,rgba(0,0,0,.7),transparent 55%)}.hero-title{font-size:clamp(54px,17vw,72px)}.hero-description br{display:none}.hero-actions{align-items:stretch;flex-direction:column}.hero-actions .btn{justify-content:center}.hero-section .hero-meta{display:flex;bottom:20px;left:22px;font-size:8px}}
