/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

/* ================= FONDO GENERAL ================= */
body {
    background:
        linear-gradient(rgba(11,148,183,.85), rgba(0,40,50,.85)),
        url('fondo-ultra.png') no-repeat center center fixed;
    background-size: cover;
    color: #e6f2f2;
}

/* ================= NAV ================= */
header {
    background: #08333d;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 30px;
}

.logo {
    font-weight: bold;
    font-size: 20px;
    letter-spacing: 1px;
}

.menu {
    list-style: none;
    display: flex;
    gap: 20px;
}

.menu a {
    color: #e6f2f2;
    text-decoration: none;
    font-weight: bold;
}

.menu a:hover {
    color: #4fd1c5;
}

/* ===== HAMBURGER ===== */
#menu-toggle {
    display: none;
}

.hamburger {
    display: none;
    font-size: 26px;
    cursor: pointer;
}

/* ================= HERO ================= */
.hero {
    display: flex;
    gap: 40px;
    padding: 60px 10%;
    align-items: center;
}

.hero-video {
    flex: 1;
    max-width: 380px;
    aspect-ratio: 9 / 16;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 0 25px rgba(0,0,0,.4);
}

.hero-video iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.hero-content {
    flex: 2;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.intro {
    font-size: 18px;
    margin-bottom: 10px;
}

.epic {
    margin: 20px 0;
    line-height: 1.6;
}

/* ================= COUNTDOWN ================= */
.countdown {
    display: flex;
    gap: 15px;
    margin: 25px 0;
}

.countdown div {
    background: rgba(0,0,0,.35);
    padding: 12px 16px;
    border-radius: 10px;
    text-align: center;
}

.countdown span {
    font-size: 24px;
    font-weight: bold;
}

/* ================= BUTTON ================= */
.btn {
    display: inline-block;
    background: #1ecad3;
    color: #00323b;
    padding: 12px 22px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
}

.btn:hover {
    background: #4fd1c5;
}

/* ================= LA CARRERA ================= */
.race-section {
    padding: 60px 10%;
}

.race-text {
    max-width: 800px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.strava-link {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: #fff;
}

.strava-link img {
    max-width: 320px;
    border-radius: 12px;
}

/* ================= INSCRIPCIÓN ================= */
.inscribe-section {
    padding: 60px 5%;
    text-align: center;
}

.iframe-wrapper {
    width: 100%;
    max-width: 12000px;
    margin: 40px auto;
    min-height: 900px;
    position: relative;
}

#okticket-iframe {
    width: 100%;
    height: 12000px;
    border: none;
    border-radius: 12px;
}

#iframe-fallback {
    display: none;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

/* ================= GALERÍA ================= */
.gallery-section {
    padding: 60px 5%;
}

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

.gallery-item {
    position: relative;
}

.gallery-item img {
    width: 100%;
    border-radius: 12px;
    cursor: pointer;
}

.watermark {
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-size: 12px;
    opacity: .7;
}

/* ===== PAGINACIÓN ===== */
.pagination {
    margin-top: 30px;
    text-align: center;
}

.pagination a {
    margin: 0 6px;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(0,0,0,.3);
    color: #fff;
    text-decoration: none;
}

.pagination a.active {
    background: #1ecad3;
    color: #00323b;
}

/* ================= LIGHTBOX ================= */
#lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.9);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

#lightbox.show {
    display: flex;
}

#lightbox img {
    max-width: 90%;
    max-height: 90%;
}

/* ================= CONTACTO ================= */
.contact-section {
    padding: 60px 5%;
}

.contact-form {
    max-width: 500px;
    margin-top: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 8px;
    border: none;
}

.contact-form button {
    padding: 12px;
    border: none;
    background: #1ecad3;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
}

/* ================= WHATSAPP ================= */
/*-------------------*/
#whatsapp-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

#whatsapp-container a {

    
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    /*background: #fffffffa;*/
    background:transparent;
    border-radius: 50%;
    box-shadow: none;
    transition: transform .2s ease, box-shadow .2s ease;
}


#whatsapp-container a:hover {
    transform: scale(1.08);
    box-shadow: none;
}

#whatsapp-container img {
    width: 70px;
    height: 70px;
}


/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        padding: 40px 5%;
    }

    .menu {
        flex-direction: column;
        background: #08333d;
        position: absolute;
        top: 60px;
        right: 0;
        width: 220px;
        display: none;
        padding: 20px;
    }

    #menu-toggle:checked + .hamburger + .menu {
        display: flex;
    }

    .hamburger {
        display: block;
    }
}
/* ===============================
   INSCRÍBETE – VERSIÓN PROFESIONAL
   =============================== */

.btn-inscribe {
    margin-bottom: 30px;
    font-size: 1.2rem;
    padding: 16px 40px;
}

/* Preview del iframe */
.iframe-preview {
    position: relative;
    width: 100%;
    max-width: 1400px;
    height: 900px;
    margin: 0 auto;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(0,0,0,.5);
    background: #000;
}

.iframe-preview iframe {
    width: 100%;
    height: 100%;
    border: none;
    opacity: 0.85;
    pointer-events: none; /* IMPORTANTE */
}

/* Overlay con CTA */
.iframe-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(0,0,0,.4),
        rgba(0,0,0,.7)
    );
    display: flex;
    align-items: center;
    justify-content: center;
}

.iframe-overlay .btn {
    font-size: 1.1rem;
    padding: 16px 36px;
}

/* Mobile */
@media (max-width: 900px) {
    .iframe-preview {
        height: 600px;
    }
}
/* ================= INSCRIBETE ================= */
.inscribe-section {
    min-height: calc(100vh - 120px);
    padding: 80px 20px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.inscribe-section h2 {
    font-size: 2.4rem;
    margin-bottom: 20px;
    color: #ffffff;
}

.inscribe-text {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 40px;
    color: #d7f3f7;
}

.btn-inscribe {
    display: inline-block;
    background: linear-gradient(135deg, #00e0ff, #00a4b8);
    color: #002b33;
    padding: 18px 36px;
    font-size: 1.3rem;
    font-weight: bold;
    border-radius: 40px;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

.btn-inscribe:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(0,0,0,.45);
}

.inscribe-note {
    margin-top: 20px;
    font-size: .95rem;
    opacity: .85;
}


/* ================= IFRAME INSCRIPCION ================= */
.iframe-container {
    margin-top: 60px;
    width: 100%;
    max-width: 1100px;
    height: 80vh;
    margin-left: auto;
    margin-right: auto;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,.45);
    background: #000;
}

.iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}
/* ================= IFRAME INSCRIPCION ================= */

.iframe-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 85vh;
    margin: 40px auto;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* LOADER */
.iframe-loader {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 5;
    color: #fff;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255,255,255,.3);
    border-top: 4px solid #0bb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 12px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* FALLBACK */
.iframe-fallback {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.9);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 6;
    text-align: center;
}


/* LOGO IMAGEN */
/* ================= LOGO FINAL ================= */

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-link,
.logo-link:visited,
.logo-link:active,
.logo-link:focus {
    color: #e6f2f2; /* fuerza blanco */
}

/* TEXTO */
.logo-text {
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 1px;
    color: #e6f2f2; /* fuerza blanco */
}

/* IMAGEN */
.logo-link img {
    height: 42px;
    width: auto;
    transition: transform .2s ease, opacity .2s ease;
}

/* HOVER */
.logo-link:hover .logo-text {
    color: #0fb9b1;
}

.logo-link:hover img {
    transform: scale(1.05);
    opacity: 0.9;
}

/* MOBILE */
@media (max-width: 768px) {
    .logo-link img {
        height: 34px;
    }

    .logo-text {
        font-size: 1rem;
    }
}
/* ===== CAMBIO DE FUENTE SOLO TITULO HEADER ===== */
.logo-text {
    font-family: 'Oswald', Arial, Helvetica, sans-serif;
    font-weight: 800;
    letter-spacing: 4.0px;
}

/* ===== FUENTE AGRESIVA PARA MENU ===== */
.menu a {
    font-family: 'Oswald', Arial, Helvetica, sans-serif;
    font-weight: 900;
    letter-spacing: 1.2px;
    text-transform: uppercase; /* look más racing */
}
/* ===== LA CARRERA ===== */

.race-section {
    padding: 80px 10%;
    max-width: 1000px;
    margin: auto;
}

.race-section h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 3rem;
    letter-spacing: 3px;
    margin-bottom: 30px;
}

.race-section h3 {
    margin-top: 40px;
    margin-bottom: 15px;
    color: #00e0ff;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 1.5px;
}

.race-text,
.race-intro {
    line-height: 1.7;
    margin-bottom: 15px;
}

.race-list {
    margin-left: 20px;
    line-height: 1.8;
}

/* ===== DOCUMENTO TECNICO ===== */
.race-doc {
    margin-top: 40px;
    padding: 30px;
    border-radius: 16px;
    background: rgba(0,0,0,.35);
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,.45);
}

.btn-doc {
    margin-top: 20px;
    display: inline-block;
    background: linear-gradient(135deg, #00e0ff, #00a4b8);
    color: #002b33;
    padding: 16px 36px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 40px;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

.btn-doc:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(0,0,0,.45);
}