html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}


/* --- ANIMACIÓN KEN BURNS (Fondo en movimiento lento) --- */
@keyframes kenBurnsEffect {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.07) translate(-1%, -1%);
    }

    100% {
        transform: scale(1);
    }
}

.hero-animated-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.8)), url('/images/hero-bg.jpg') center/cover no-repeat;
    animation: kenBurnsEffect 20s ease-in-out infinite;
}

    /* Asegurar que el contenido permanezca estático sobre el fondo en movimiento */
    .hero-animated-section > .container-fluid {
        position: relative;
        z-index: 2;
    }

/* --- ANIMACIÓN SÚPER CHIVA PARA EL BOTÓN DE RECORRIDO --- */
@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.6);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(25, 135, 84, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(25, 135, 84, 0);
    }
}

.btn-recorrido-pro {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    animation: pulseGlow 2.5s infinite;
    border: 2px solid #28a745 !important;
}

    .btn-recorrido-pro:hover {
        transform: translateY(-3px) scale(1.05);
        background-color: #28a745 !important;
        color: #000 !important;
        box-shadow: 0 10px 20px rgba(40, 167, 69, 0.4);
    }

    .btn-recorrido-pro::after {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: linear-gradient(60deg, transparent, rgba(255,255,255,0.25), transparent);
        transform: rotate(45deg) translateX(-100%);
        transition: transform 0.6s ease-in-out;
    }

    .btn-recorrido-pro:hover::after {
        transform: rotate(45deg) translateX(100%);
    }

/* --- CARRUSEL INFINITO CON FONDO NEGRO TRANSLÚCIDO Y MODAL --- */
.sponsor-ticker-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
    background: rgba(0, 0, 0, 0.65); /* Negro transparente */
    backdrop-filter: blur(8px); /* Difumina ligeramente la imagen del fondo */
    -webkit-backdrop-filter: blur(8px);
    padding: 30px 0;
    margin-top: 40px; /* Separa la franja de los elementos superiores en responsive y desktop */
    border-top: 2px solid rgba(25, 135, 84, 0.5);
    border-bottom: 2px solid rgba(25, 135, 84, 0.5);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

    .sponsor-ticker-container::before,
    .sponsor-ticker-container::after {
        content: "";
        position: absolute;
        top: 0;
        width: 150px;
        height: 100%;
        z-index: 2;
        pointer-events: none;
    }

    .sponsor-ticker-container::before {
        left: 0;
        background: linear-gradient(to right, rgba(0,0,0,0.8), transparent);
    }

    .sponsor-ticker-container::after {
        right: 0;
        background: linear-gradient(to left, rgba(0,0,0,0.8), transparent);
    }

.sponsor-ticker-track {
    display: inline-flex;
    align-items: center;
    gap: 30px;
    animation: scrollTicker 75s linear infinite; /* Ajustado a 75s para un movimiento más pausado y suave */
}

    .sponsor-ticker-track:hover {
        animation-play-state: paused;
    }

/* Tarjetas individuales de cada logo con fondo blanco y bordes redondeados */
.sponsor-logo-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 10px 20px;
    border-radius: 12px;
    height: 75px;
    min-width: 140px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

    .sponsor-logo-item img {
        max-height: 45px;
        width: auto;
        object-fit: contain;
        mix-blend-mode: multiply;
    }

    .sponsor-logo-item:hover {
        transform: translateY(-4px) scale(1.05);
        box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
        border-color: #28a745;
    }

@keyframes scrollTicker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* --- VENTANA MODAL / LIGHTBOX PARA EL LOGO SELECCIONADO --- */
.sponsor-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

    .sponsor-modal-overlay.active {
        opacity: 1;
        visibility: visible;
    }

.sponsor-modal-content {
    position: relative;
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    max-width: 90%;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.sponsor-modal-overlay.active .sponsor-modal-content {
    transform: scale(1);
}

.sponsor-modal-content img {
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
}

.sponsor-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    transition: color 0.2s ease;
}

    .sponsor-modal-close:hover {
        color: #dc3545;
    }

@media (max-width: 768px) {
    .sponsor-modal-content {
        padding: 30px 20px;
    }

    .sponsor-ticker-container {
        margin-top: 25px; /* Margen adaptado para celulares */
    }
}

/* --- ESTILOS PARA LA SECCIÓN DE BANDERAS INTERNACIONALES --- */
.flags-section-container {
    background: linear-gradient(to bottom, #000000, #111111);
    padding: 40px 0;
    border-bottom: 2px solid rgba(25, 135, 84, 0.4);
}

.flag-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 18px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

    .flag-card:hover {
        background: rgba(40, 167, 69, 0.15);
        border-color: #28a745;
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
    }

    .flag-card img {
        width: 32px;
        height: 32px;
        object-fit: contain;
        border-radius: 50%;
    }

    .flag-card span {
        color: #ffffff;
        font-weight: 600;
        font-size: 0.95rem;
        letter-spacing: 0.5px;
    }

.flag-card-special {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.2), rgba(0, 0, 0, 0.6));
    border: 1px solid #28a745;
}
