/*RESET BÁSICO Y VARIABLES*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif; 
}

body {
    background-color: white; 
    color: white; 
    margin: 0;
    padding: 0;
}
/* WIDGET PROMOCIONAL (HERO)*/
.promo-widget {
    background: rgba(255, 255, 255, 0.03); 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px); 
    border: 1px solid rgba(255, 255, 255, 0.15); 
    border-radius: 35px;
    padding: 32px; 
    width: 100%; 
    max-width: 440px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); 
    font-family: 'Montserrat', sans-serif;
    margin-right: -30px; 
    position: relative;
    top: 100px; 
    flex-shrink: 0; 
    overflow: hidden;
}


.promo-media {
    width: 100%;
    height: 280px; /* Aumentamos el alto para que quepa el botón sin asfixiar la imagen/video */
    object-fit: cover;
    border-radius: 12px;
    display: block;
    background-color: #000000; /* Fondo negro por si el video tarda un milisegundo en cargar */
}
.mini-leaderboard {
    width: 100%;
    height: 290px; /* Igualamos la altura con el video para que el carrusel no salte */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 5px;
}

/* Efecto de degradado negro sobre el video para que el texto se lea */
.promo-overlay {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    padding: 80px 20px 20px 20px; /* Más espacio arriba para el degradado */
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 60%, rgba(0,0,0,0) 100%);
    border-radius: 0 0 12px 12px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Alinea los textos a la izquierda */
}

.promo-badge {
    background-color: #b87333;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: inline-block;
}

.promo-badge.sponsor {
    background-color: #333333;
    border: 1px solid #b87333;
}

.promo-overlay h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.promo-overlay p {
    font-size: 0.85rem;
    color: #cccccc;
}

.promo-footer {
    display: flex;
    justify-content: center; /* Centra los puntitos perfectamente */
    align-items: center;
    margin-top: 15px;
    padding: 0 10px;
}
.slide-btn {
    margin-top: 12px;
    width: fit-content;
    text-decoration: none; 
    padding: 8px 16px;
        font-size: 0.8rem;
}

.center-btn {
    margin: 15px auto 0 auto; /* Centra el botón del Tablero de Pilotos */
}
.btn-ver-mas {
    transition: all 0.3s ease; /* Transición suave */
}

.btn-ver-mas:hover {
    background-color: #b87333; /* Relleno cobre */
    color: #ffffff; /* Texto blanco */
    transform: translateY(-2px); /* Se levanta un poquito */
    box-shadow: 0 4px 15px rgba(184, 115, 51, 0.4); /* Resplandor cobre */
}

/* Asegurar que los puntitos del carrusel parezcan clicables */
.pagination-dots .dot {
    cursor: pointer; 
}

.pagination-dots .dot:hover {
    background-color: rgba(184, 115, 51, 0.6); /* Resplandor sutil al pasar el ratón */
}
/* MINI TABLERO DE PILOTOS */
.mini-leaderboard {
    width: 100%;
    height: 290px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 5px;
}

.mini-title {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-align: center;
    letter-spacing: 2px;
}
.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 10px; 
}
.leaderboard-item {
    display: flex;
    align-items: center;
    background-color: #f2f2f2; 
    height: 48px;
    border-radius: 6px;
    overflow: hidden; 
    width: 100%;
}
.rank {
    color: #f8931f; 
    font-size: 1.4rem;
    font-weight: 800; 
    width: 45px; /* Espacio fijo exacto */
    text-align: center;
    flex-shrink: 0; 
}
.driver-banner {    
    flex: 1; /* Ocupa automáticamente el espacio sobrante en el medio */
    background-color: #f8931f; 
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 15px;
    overflow: visible; 
    min-width: 0; 
}
.points {
    color: #f8931f; 
    font-size: 1.2rem;
    font-weight: 800; 
    min-width: 65px; /* ANCHO CORREGIDO para que quepa el número completo */
    text-align: center;
    padding: 0 10px; 
    flex-shrink: 0; 
}

.driver-name {
    color: white;
    font-weight: 900; 
    font-size: 1.1rem;
    margin-left: auto; 
    white-space: nowrap;
    z-index: 2; 
}
.driver-photo {
    height: 120%; 
    position: absolute;
    bottom: 0;
    left: 45px;
    z-index: 1;
}

.team-logo {
    height: 20px;
    opacity: 0.9;
    z-index: 2;
}



/* =========================================
   PANTALLA DE CARGA (REVELADO IZQ A DER)
   ========================================= */
#preloader {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background-color: #0b0b0b; 
    z-index: 999999; 
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s;
}

.loader-logo-wrapper {
    position: relative;
    height: 45px; /* Asegura el tamaño de tu logo */
    width: 250px; /* Ajusta este valor según qué tan ancho sea tu logo en píxeles */
}

/* Control general para ambas imágenes */
.loader-img {
    height: 100%;
    width: 250px; /* Obliga a mantener el ancho para que coincidan exactamente */
    object-fit: contain;
    object-position: left center;
}

/* El logo de fondo, semitransparente o en escala de grises */
.loader-bg {
    position: absolute;
    top: 0; left: 0;
    opacity: 0.2; 
    filter: grayscale(100%); /* Lo vuelve blanco/negro apagado */
}

/* El contenedor que hace el efecto de carga */
.reveal-container {
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    width: 0%; /* Empieza en 0 (invisible) */
    overflow: hidden; /* Oculta la parte del logo que aún no ha cargado */
    animation: fill-logo 3s ease-out forwards; /* 3 segundos exactos */
}

/* La imagen a color dentro del contenedor recortado */
.loader-color {
    /* Mantiene los colores originales dorados/grises de Kartag */
    opacity: 1;
}

@keyframes fill-logo {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* 1ra Animación: Latido y Resplandor (Color exacto Kartag #b87333) */
@keyframes engine-pulse {
    0% { 
        transform: scale(0.98); 
        filter: drop-shadow(0 0 5px rgba(184, 115, 51, 0.2)); 
    }
    100% { 
        transform: scale(1.02); 
        filter: drop-shadow(0 0 25px rgba(184, 115, 51, 0.9)); 
    }
}

/* 2da Animación: Recorrido del reflejo */
@keyframes metallic-sweep {
    0% { left: -100%; }
    25% { left: 200%; }
    100% { left: 200%; } /* Pausa para que el efecto no sea mareante */
}
/* =========================================
   ANIMACIONES DE SCROLL
   ========================================= */
.fade-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.fade-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}
@keyframes metallic-wipe {
    to { background-position: 200% center; }
}

@keyframes pulse-engine {
    0% { transform: scale(0.95); opacity: 0.6; }
    100% { transform: scale(1.05); opacity: 1; }
}
/*NAVBAR*/
.navbar {
    position: fixed; 
    top: 15px;
    left: 50%; 
    transform: translateX(-50%); 
    z-index: 9999; 
    background-color: rgba(255, 255, 255, 0.95); 
    border: 1px solid #d1d1d1;
    border-radius: 10px; 
    padding: 2.5px 40px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); 
    width: 100%; 
    max-width: 1420px; 
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.navbar a {
    color: #888888; 
    text-decoration: none;
    font-family: Arial, sans-serif; 
    font-size: 16px;
    margin: 0 15px; 
}
.navbar a.active {
    color: #888888;
    border-bottom: 3px solid #cca14e; 
    padding-bottom: 5px; 
}



/*Logo*/
.logo img {
    height: 55px; 
    display: block;
}
.logo {
    flex: 1; 
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.nav-links {
    position: relative; 
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0px;
    margin-left: 80px;
}
.nav-links a {
    text-decoration: none;
    color: #888888;
    font-size: 15px;
    font-weight: bold;
    padding: 5px 15px; 
    transition: color 0.3s ease;
    z-index: 1; 
}
.nav-links a:hover {
    color: #333333;
}
.nav-links a.active {
    color: #888888; 
}
.nav-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background-color: #b87333; 
    border-radius: 2px; 
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); 
    z-index: 0;
}

/* -- Iconos de la Derecha -- */
.nav-icons img.nav-icon-img {
    width: 22px;  
    height: 22px; 
    object-fit: contain;
    display: block;
    transition: opacity 0.3s ease;
}
.nav-icons img.nav-icon-img:hover {
    opacity: 0.7;
}
.nav-icons {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0px;
    color: #888888;
    font-size: 20px;
    cursor: pointer;
    margin-left: 80px;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #9e9e9e;
    font-size: 20px;
    transition: color 0.3s ease;
}

.icon-btn:hover {
    color: #ffffff;
}

/*  HERO SECTION */
    /*  HERO SECTION */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh; 
    background-image: url('../assets/img/Slideshow_01_fondo.png');
    
    /* ELIMINAMOS EL 100% 100% QUE DEFORMA LA IMAGEN */
    background-size: cover; /* Esto hace que la imagen crezca proporcionalmente sin aplastarse */
    background-position: center bottom; /* Centra el enfoque de la foto */
    background-repeat: no-repeat;
    background-color: #ffffff;  
    display: flex;
    margin-top: 80px;
    align-items: center;
    border-radius: 50px; /* Cambia este número para hacerlos más o menos redondos */
    overflow: hidden;
}

/* ANIMACIONES */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    opacity: 0; /* Empieza invisible */
    animation: fadeInUp 1s ease-out forwards;
}
.hero-content p {
    font-size: 1.2rem;
    color: #cccccc;
    opacity: 0; 
    animation: fadeInUp 1s ease-out 0.4s forwards; 
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;   
    z-index: 1;
}
.hero-container {
    position: relative;
    z-index: 2;
    
    /* IGUALAMOS EL ANCHO CON EL NAVBAR (De 1200px a 1420px) */
    max-width: 1420px; 
    
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end; 
    height: 100vh; 
    padding-bottom: 8%; 
}
/* Textos de la Izquierda */
.hero-content {
    max-width: 60%;
    position: relative;
    top: 70px;
    margin-left: 20px;
}

.hero-content h1 {
    font-family: 'Montserrat', sans-serif; 
    font-size: 3.5rem; 
    font-weight: 600; 
    line-height: 1.2; 
    color: #ffffff; 
    margin-bottom: 15px; 
}

.hero-content h1 span {
    background: linear-gradient(to right, #ffffff, #b87333); 
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-weight: 700;
}
.hero-content p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem; 
    font-weight: 400; 
    color: #cccccc; 
    letter-spacing: 1px; 
}

/*Widget de Posiciones*/

.leaderboard-header h3 {
    background-color: #b87333;
    color: white;
    display: inline-block;
    padding: 6px 15px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
}
.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 15px;
}
.leaderboard-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8931f;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: bold;
}

.leaderboard-item .points {
    background-color: white;
    color: #f8931f;
    padding: 2px 8px;
    border-radius: 4px;
}
.leaderboard-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.btn-ver-mas {
    background: none;
    border: 2px solid #b87333;
    color: #b87333;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
}
.pagination-dots .dot {
    display: inline-block;
    width: 8px; height: 8px;
    background-color: #000000;
    border-radius: 50%;
    margin-left: 5px;
}
.pagination-dots .dot.active {
    background-color: #b87333;
}
.driver-info {
    display: flex;
    align-items: center;
    gap: 12px; 
}

.driver-info img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #ffffff; 
    object-fit: cover;
    display: block;
    border: 2px solid #b87333;
}

.leaderboard-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8931f;
    color: white;
    padding: 8px 15px;
    border-radius: 6px;
    font-weight: bold;
    min-height: 45px; 
}

/* CARRUSEL ESTRUCTURA */
.carousel-wrapper {
    overflow: hidden; 
    width: 100%;
}
.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); 
}
.carousel-slide {
    min-width: 100%;
    width: 100%; 
    flex-shrink: 0;
    position: relative
}
.carousel-slide .team-logo,
.carousel-slide .driver-photo,
.carousel-slide .driver-name {
    opacity: 0;
    transform: translateX(-30px);
}

.carousel-slide.active-slide .team-logo,
.carousel-slide.active-slide .driver-photo {
    animation: seqLogoPhoto 5.4s ease-in-out 0.6s forwards;
}

.carousel-slide.active-slide .driver-name {
   animation: seqName 5.4s ease-in-out 0.6s forwards;
}


@keyframes seqLogoPhoto {
    0%   { opacity: 0; transform: translateX(-30px); }
    10%  { opacity: 1; transform: translateX(0); } 
    35%  { opacity: 1; transform: translateX(0); } 
    45%  { opacity: 0; transform: translateX(30px); } 
    100% { opacity: 0; transform: translateX(30px); } 
}

@keyframes seqName {
    0%   { opacity: 0; transform: translateX(-30px); }
    35%  { opacity: 0; transform: translateX(-30px); } 
    45%  { opacity: 1; transform: translateX(0); } 
    90%  { opacity: 1; transform: translateX(0); } 
    100% { opacity: 0; transform: translateX(30px); } 
}

/*  FILAS Y BLOQUE NARANJA  */
.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 8px; }
.leaderboard-item {
    display: flex;
    align-items: center;
    background-color: #f2f2f2; 
    height: 48px;
}

.team-logo {
    height: 20px;
    opacity: 0.9;
}
.driver-photo {
    height: 120%; 
    position: absolute;
    bottom: 0;
    left: 30px;
}
.carousel-slide {
    min-width: 100%;
    width: 100%; 
    flex-shrink: 0;
}


.driver-name {
    color: white;
    font-weight: 900; 
    font-size: 1.2rem;
    margin-left: auto; 
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/*  FOOTER Y BOTÓN  */
.leaderboard-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
}
.btn-ver-mas {
    background: transparent;
    border: 3px solid #b87333;
    color: #b87333;
    font-weight: 800;
    font-size: 0.9rem;
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}
.btn-ver-mas .plus-icon {
    font-size: 1.2rem;
    font-weight: 900;
}
.pagination-dots {
    display: flex;
    gap: 8px;
}
.pagination-dots .dot {
    width: 10px;
    height: 10px;
    background-color: white;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}
.pagination-dots .dot.active {
    background-color: #b87333;
}
img.ajuste-leonardo {
    left: 40px !important; 
}

.nosotros-section {
    position: relative;
    width: 100%;
    max-width: 1420px; 
    margin: 10px auto; 
    background-color: #000000; /* Fondo negro de seguridad mientras carga el video */
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    font-family: 'Montserrat', sans-serif;
}

/* NUEVO: Configuración del video para que actúe como fondo */
.video-fondo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que el video llene la caja sin deformarse */
    z-index: 1; /* Lo enviamos al fondo */
    opacity: 0.8; /* Opcional: Oscurece un poco el video para que resalte el texto */
}

/* ASEGURAR QUE EL TEXTO ESTÉ POR ENCIMA DEL VIDEO */
.nosotros-header {
    position: absolute; /* Mantenemos tu absolute anterior */
    top: 5%;
    left: 2.2%;
    width: 90%;
    z-index: 2; /* Mayor que el z-index del video (1) */
}

.stats-grid {
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    z-index: 2; /* Mayor que el z-index del video (1) */
}

/*Red de Estadísticas */
.stats-grid {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

/* =========================================
   EFECTO CRISTAL (GLASSMORPHISM) PARA TARJETAS
   ========================================= */
.stat-card {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    width: 19%; 
    height: 32%; 
    padding: 2%; 
    
    /* 1. Fondo semi-transparente muy sutil */
    background: rgba(255, 255, 255, 0.03); 
    
    /* 2. El desenfoque del cristal (blur) sobre el video */
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px); /* Soporte para navegadores Safari */
    
    /* 3. Borde fino y brilloso para delimitar el cuadro */
    border: 1px solid rgba(255, 255, 255, 0.15); 
    
    /* 4. Esquinas redondeadas y sombra de profundidad */
    border-radius: 16px; 
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3); 
    
    overflow: hidden; /* Mantiene los elementos internos dentro del radio */
}

/* El pequeño círculo decorativo en la esquina superior izquierda */
.stat-card::before {
    content: '';
    position: absolute;
    top: 33px;
    left: 42px; 
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07); /* Círculo casi imperceptible */
    pointer-events: none; /* Evita que estorbe al hacer clic */
    z-index: 0;
}

/* Asegurar que el contenido (iconos y texto) resalte por encima del cristal */
.card-top-row, .text-box {
    position: relative;
    z-index: 1;
}

/*FILA SUPERIOR */
.card-top-row {
    display: flex;
    flex-direction: column; 
    align-items: flex-start;
    position: relative;
    margin-top: 5px;
}

/* Caja independiente del Icono */
.icon-box {
    width: clamp(28px, 3.5vw, 42px); 
    margin-bottom: -15px; 
    margin-left: 15px; 
    z-index: 2; 
}
.icon-box img {
    width: 100%;
    height: auto;
    object-fit: contain;
    opacity: 0.85; 
}

/* Caja independiente del Número */
.number-box {
    margin-left: 65px; 
    margin-top: 15px;
    z-index: 1;
}

.number-box h2 {
    font-size: clamp(3rem, 5.5vw, 4.5rem); 
    font-weight: 700;
    line-height: 0.9; 
    margin: 0;
    background: linear-gradient(to bottom, #fde3a7 10%, #b87333 90%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(2px 4px 4px rgba(0,0,0,0.4));
}

/* FILA INFERIOR */
.text-box {
    width: 100%;
    margin-top: 8px; 
    padding-bottom: 5px;
}
.text-box p {
    font-size: clamp(0.7rem, 0.95vw, 1rem);
    line-height: 1.35;
    color: #e8e8e8;
    font-weight: 400; 
    margin:5px;
    text-align: left; 
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.text-box p.visible {
    opacity: 1;
    transform: translateY(0);
}
.card-1 {
    top: 28.5%;
    left: 1.4%;
}

.card-2 {
    top: 51%;
    left: 26.6%;
}

.card-3 {
    top: 71%;
    left: 52.4%;
}

.card-4 {
    top: 36%;
    left: 78.1%;
}


.circuitos-section {
    max-width: 1200px; 
    margin: 80px auto 60px auto; 
    padding: 0 20px;
    font-family: 'Montserrat', sans-serif;
}

/*  Encabezado  */
.circuitos-header {
    text-align: left;
    margin-left: -120px; 
    margin-top: -60px;
}

.badge-circuitos {
    display: inline-block;
    border: 2px solid #b87333; 
    color: #b87333;
    padding: 20px 30px;
    border-radius: 6px; 
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 4px;
    margin-bottom: 25px;
    text-transform: uppercase;
}
.badge-nosotros {
    display: inline-block;
    border: 2px solid #b87333; 
    color: #b87333;
    padding: 10px 20px;
    border-radius: 6px; 
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 4px;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.circuitos-title {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 500;
    color: #2b2b2b; 
    line-height: 1.2;
    margin-bottom: 50px;
}

.circuitos-title span {
    color: #b87333; 
    font-weight: 600;
}

.circuitos-content {
    display: flex;
    flex-direction: column;
    gap: 30px; 
}

.circuit-row {
    display: flex;
    width: 100%;
    min-height: 320px; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    background-color: #0b0b0b; 
    width: 97vw;
    left: 40%;
    right: 40%;
    margin-left: -8.5vw;
    margin-right: -40vw;
}


.circuit-img {
    flex: 1; 
    background-color: #ffffff; 
    overflow: hidden;
}

.circuit-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
}

.circuit-info {
    flex: 1; 
    padding: 40px 0px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; 
    color: #ffffff;
}

.circuit-info h3 {
    font-size: 2rem;
    font-weight: 400; 
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    margin-left: 10px;
}

.circuit-info h3 span {
    color: #b87333;
    font-weight: 600; 
}

.circuit-info h4 {
    color: #b87333;
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 25px;
    margin-left: 10px;
}

.circuit-info p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #e0e0e0;
    margin-bottom: 35px;
    max-width: 90%; 
    margin-left: 10px;
}

.circuit-info .btn-ver-mas {
    border: 2px solid #b87333; 
    padding: 8px 20px;
    font-size: 0.95rem;
    margin-left: 10px;
}

.cockpit-section {
    width: 100%;
    background-color: #ffffff; 
    padding-top: 80px; 
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    position: relative;
}

.cockpit-container {
    max-width: 1000px; 
    margin: 0 auto;
    padding: 0 20px;
}

.cockpit-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    color: #111111; 
    font-weight: 500; 
    line-height: 1.2;
    margin-bottom: 25px;
}

.cockpit-description {
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    color: #333333;
    line-height: 1.6;
    margin-bottom: 40px;
    font-weight: 400;
}

.btn-partner {
    display: inline-block;
    background-color: #b87333; 
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    padding: 22px 42px;
    border-radius: 6px; 
    text-decoration: none;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-bottom: 60px; 
}

.btn-partner:hover {
    background-color: #9c6028; 
    transform: translateY(-3px); 
    color: #ffffff;
}

.cockpit-image-wrapper {
    position: relative;
    max-width: 1450px; 
    margin: 0 auto;
}

.cockpit-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.fade-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 180px; 
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
    pointer-events: none; 
}

.site-footer {
    background-color: #0d0d0d; 
    background-size: cover;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    padding: 60px 20px 20px 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap; 
}

.footer-col {
    flex: 1;
    min-width: 220px;
}

.footer-logo {
    max-width: 200px;
    margin-bottom: 30px;
}

.footer-title {
    color: #b87333; 
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
}

.footer-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #e0e0e0;
    margin-bottom: 15px;
}

.footer-text.uppercase {
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* =========================================
   ICONOS DE REDES SOCIALES (FOOTER)
   ========================================= */

/* Contenedor principal de los iconos */
.social-icons {
    display: flex;
    justify-content: flex-start; /* Alineados a la izquierda para seguir el texto */
    align-items: center;         /* Centrados verticalmente entre sí */
    gap: 15px;                   /* Separación exacta y uniforme entre cada icono */
    margin-top: 20px;
}

/* El enlace que envuelve la imagen */
.social-icons a {
    display: inline-flex;
    transition: transform 0.3s ease, opacity 0.3s ease; /* Animación suave */
}

/* Estructura estricta para las imágenes */
.social-icons img {
    width: 32px;             /* Ancho fijo para estandarizarlos todos */
    height: 32px;            /* Alto fijo idéntico al ancho (cuadrado perfecto) */
    object-fit: contain;     /* Evita que los logos se deformen o aplasten */
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); /* Sutil sombra de fondo */
}

/* Efecto al pasar el cursor (Hover) */
.social-icons a:hover {
    transform: translateY(-3px); /* Pequeño salto hacia arriba */
    opacity: 0.8;                /* Se aclaran un poco */
}
/* Reducir visualmente solo el logo de WhatsApp para igualar pesos */
.social-icons img[alt="WhatsApp"] {
    transform: scale(0.65); /* Lo reduce al 85% de su tamaño. Puedes probar con 0.80 si aún lo ves grande */
}

@media (max-width: 768px) {
    .social-icons {
        justify-content: center; /* En celulares, los iconos saltan al centro */
    }
}

/* ACORDEÓN  */
.accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.accordion-item {
    display: flex;
    flex-direction: column;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 1px solid #b87333; 
    padding-bottom: 5px;
    transition: border-color 0.3s ease;
}
.chevron {
    width: 10px;
    height: 10px;
    border-right: 2px solid #b87333;
    border-bottom: 2px solid #b87333;
    transform: rotate(45deg); 
    transition: transform 0.3s ease;
    margin-bottom: 4px;
}

.accordion-content {
    color: #b87333;
    font-size: 0.9rem;
    font-weight: 500;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease;
}

.accordion-item.active .accordion-header {
    border-bottom: 1px solid transparent;
}

.accordion-item.active .chevron {
    transform: rotate(-135deg);
    margin-top: 4px;
}

.accordion-item.active .accordion-content {
    max-height: 50px; 
    opacity: 1;
    padding-top: 5px;
    padding-bottom: 5px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 60px auto 0 auto;
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05); 
    padding-top: 20px;
}

.footer-k-logo {
    height: 20px;
}

.footer-bottom span {
    font-size: 0.75rem;
    color: #888888;
    font-weight: 600;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
    }

    .hero-section {
        background-image: url('../assets/img/movil.png'); 
        background-size: cover; 
        background-position: center; 
    }


    .navbar {
        flex-direction: column; 
        padding: 10px 15px;
        width: 95%;
        border-radius: 20px; 
        gap: 12px; 
        left: 2.5%; 
        transform: none; 
    }
   
    .nav-icons {
        display: flex !important; 
        position: absolute; 
        top: 14px; 
        right: 0px; 
        margin-left: 0; 
        gap: 0px; 
    }
    .nav-icons .icon-link {
        margin-left: -5px; 
    }
    
    .nav-icons .icon-link:first-child {
        margin-left: 0; 
    }
    
    .nav-icons img.nav-icon-img {
        width: 18px; 
        height: 18px;
    }

    .logo {
        flex: none;
        margin: 0 auto; 
    }
    .logo img {
        height: 28px; 
        width: auto;
    }

    .nav-indicator {
        display: none !important;
    }

    .nav-links {
        display: flex !important; 
        flex-direction: row; 
        position: relative;
        width: 100%;
        height: auto;
        background: transparent;
        padding: 0;
        box-shadow: none;
        gap: 3px; 
        top: 0; right: 40px;
    }

    .nav-links a {
        flex: 1; 
        font-size: 0.75rem; 
        text-align: center;
        padding: 8px 0;
        margin: 0;
        border-radius: 25px; 
        background-color: rgba(0, 0, 0, 0.05); 
        color: #888888;
        font-weight: 600;
        border-bottom: none; 
        overflow: hidden; 
        white-space: nowrap; 
        transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); 
    }

    .nav-links a.active {
        flex: 1.5; 
        background-color: #b87333; 
        color: #ffffff; 
        font-size: 0.85rem; 
    }
    
    .hero-container {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 120px 20px 40px 20px; 
        height: auto;
        min-height: 100vh;
        gap: 40px;
    }
    .hero-content {
        max-width: 100%;
        margin-left: 0;
        top: 0;
        text-align: center;
    }
    .hero-content h1 {
        font-size: 2.1rem;
        margin-bottom: 15px;
        line-height: 1.25;
        color: #000000 !important;
    }
    .hero-content h1 span {
        background: none !important; 
        -webkit-text-fill-color: #000000 !important; /* Forzamos el negro puro */
        color: #000000 !important;
    }
    
    .hero-content p {
        font-size: 1rem;
        color: #f8f8f8;
    }

   /* AJUSTES MÓVILES PARA WIDGET PROMO */
    .promo-widget {
        width: 100%;
        max-width: 380px; 
        padding: 20px;
        margin: 0;
        top: 0; /* Quitamos el empuje hacia abajo en celular */
    }

    .promo-media, .mini-leaderboard {
        height: 270px; /* Reducimos la altura un poco en móviles */
    }

    .promo-overlay {
        padding: 60px 15px 15px 15px; /* Ajustamos el texto */
    }

    .promo-overlay h3 {
        font-size: 1.1rem;
    }

    .driver-photo {
        height: 100%; /* Ajuste para que las caras no se corten en móvil */
    }

    .nosotros-section {
        aspect-ratio: auto; 
        padding: 40px 20px;
        min-height: auto;
    }
    .nosotros-header {
        position: relative; 
        top: 0; left: 0;
        width: 100%;
        text-align: center;
        margin-bottom: 30px;
    }
    .nosotros-header p {
        font-size: 1rem !important;
    }
    /*  INTERACCIONES DE BOTONES (HOVER) */
.btn-ver-mas {
    transition: all 0.3s ease; /* Transición fluida */
}

/* Efecto al pasar el cursor sobre los botones */
.btn-ver-mas:hover {
    background-color: #b87333; 
    color: #ffffff !important; 
    transform: translateY(-2px); /* Efecto de levitación */
    box-shadow: 0 4px 15px rgba(184, 115, 51, 0.4); 
}

/* Asegurar que los puntitos del carrusel parezcan clicables */
.pagination-dots .dot {
    cursor: pointer; 
}

/* Efecto al pasar el cursor sobre los puntitos inactivos */
.pagination-dots .dot:not(.active):hover {
    background-color: rgba(184, 115, 51, 0.6); 
    transform: scale(1.2); /* Crece un poquito */
}
    .stats-grid {
        position: relative; 
        display: grid;
        grid-template-columns: 1fr; 
        gap: 20px;
        padding: 0;
    }
    .stat-card {
        position: relative; 
        width: 100%;
        height: auto;
        min-height: 150px;
        top: auto !important; 
        left: auto !important;
        padding: 20px;
        border-bottom: 3px solid rgba(255,255,255,0.1);
    }
    .stat-card::before {
    top: 18px;
    left: 26px; 
    width: 45px;
    height: 45px;
   
}
    .number-box h2 {
        font-size: 3rem; 
    }

    .circuitos-section {
        margin: 60px auto 40px auto;
        padding: 0 15px;
    }
    .circuitos-header {
        margin-left: 0; 
        margin-top: 0;
        text-align: center;
    }
    .circuit-row {
        width: 100%;
        left: 0; right: 0;
        margin-left: 0; 
        margin-right: 0;
        flex-direction: column !important;
    }
    .circuit-info {
        padding: 30px 20px;
        align-items: center;
        text-align: center;
    }
    .circuit-info h3, 
    .circuit-info h4, 
    .circuit-info p, 
    .circuit-info .btn-ver-mas {
        margin-left: 0; 
    }
    .circuit-info p {
        max-width: 100%;
    }

    .cockpit-title {
        font-size: 2rem;
    }
    .btn-partner {
        padding: 15px 30px;
        font-size: 0.9rem;
    }

    .footer-container {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
    .footer-col {
        width: 100%;
        min-width: 100%;
        padding-top: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.1); 
    }
    .footer-logo {
        margin: 0 auto 20px auto; 
    }
    .social-icons {
        justify-content: center; 
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}
    
