/* REGLA MAESTRA: BLOQUEO DE SCROLL HORIZONTAL */
html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden !important;
    margin: 0;
    padding: 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif; 
}

body {
    background-color: white; 
    color: white; 
}

/* 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 35px 35px 0;
    padding: 10px; 
    width: 100%; 
    max-width: 440px; 
    box-shadow: 0 10px 30px rgba(253, 253, 253, 0.5); 
    font-family: 'Montserrat', sans-serif;
    
    /* --- CÓDIGO NUEVO PARA ANCLARLO --- */
    position: absolute;
    
    /* Ajusta estos valores para colocarlo exactamente donde quieres */
    right: 1.2%; /* Se ancla al lado derecho (usa % para que sea responsivo) */
    top: 50%; /* Lo baja hasta la mitad del contenedor */
    transform: translateY(0%); /* Lo centra perfectamente en vertical */
    
    z-index: 10; /* Asegura que siempre esté por encima de la imagen/fondo */
}

.promo-media {
    width: 100%;
    height: 280px; 
    object-fit: cover;
    border-radius: 12px;
    display: block;
    background-color: #000000; 
}

/* Efecto de degradado negro sobre el video */
.promo-overlay {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    padding: 80px 20px 20px 20px; 
    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; 
}

.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; 
    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; 
}

.btn-ver-mas {
    transition: all 0.3s ease; 
    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:hover {
    background-color: #b87333; 
    color: #ffffff !important; 
    transform: translateY(-2px); 
    box-shadow: 0 4px 15px rgba(184, 115, 51, 0.4); 
}

.btn-ver-mas .plus-icon {
    font-size: 1.2rem;
    font-weight: 900;
}

/* 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%;
    justify-content: space-between;
    padding: 8px 15px;
    font-weight: bold;
    min-height: 45px; 
}

.rank {
    color: #f8931f; 
    font-size: 1.4rem;
    font-weight: 800; 
    width: 45px; 
    text-align: center;
    flex-shrink: 0; 
}

.driver-banner {    
    flex: 1; 
    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; 
    text-align: center;
    padding: 0 10px; 
    flex-shrink: 0; 
    background-color: white;
    border-radius: 4px;
}

.driver-name {
    color: white;
    font-weight: 900; 
    font-size: 1.1rem;
    margin-left: auto; 
    white-space: nowrap;
    z-index: 2; 
    overflow: hidden;
    text-overflow: ellipsis;
}

.driver-photo {
    height: 120%; 
    position: absolute;
    bottom: 0;
    left: 45px;
    z-index: 1;
}

.team-logo {
    height: 20px;
    opacity: 0.9;
    z-index: 2;
}

.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-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
}

.pagination-dots {
    display: flex;
    gap: 8px;
    margin-top: -5px;
}

.pagination-dots .dot {
    width: 10px;
    height: 10px;
    background-color: white;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    cursor: pointer; 
}

.pagination-dots .dot.active {
    background-color: #b87333;
}

.pagination-dots .dot:not(.active):hover {
    background-color: rgba(184, 115, 51, 0.6); 
    transform: scale(1.2); 
}

.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;
}

/* 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); } 
}

/* =========================================
   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; 
    width: 250px; 
}

.loader-img {
    height: 100%;
    width: 250px; 
    object-fit: contain;
    object-position: left center;
}

.loader-bg {
    position: absolute;
    top: 0; left: 0;
    opacity: 0.2; 
    filter: grayscale(100%); 
}

.reveal-container {
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    width: 0%; 
    overflow: hidden; 
    animation: fill-logo 3s ease-out forwards; 
}

.loader-color {
    opacity: 1;
}

@keyframes fill-logo {
    0% { width: 0%; }
    100% { width: 100%; }
}

@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)); 
    }
}

@keyframes metallic-sweep {
    0% { left: -100%; }
    25% { left: 200%; }
    100% { left: 200%; } 
}

/* =========================================
   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 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;
}

.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 {
    position: relative;
    width: 100%;
    max-width: 1430px;
    min-height: 660px; /* TAMAÑO DEFINIDO. No saltará ni se deformará */
    margin: 100px auto 40px auto; 
    border-radius: 30px;
    overflow: hidden;
    background-color: white;
    display: flex;
    align-items: center; /* Centra el contenido verticalmente */
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    clip-path: inset(0 0.5% 0 0.6% round 30px);
}
/* Esto forzará a la imagen a comportarse como un fondo fijo y estático sin moverse */
.hero-image {
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    z-index: 1;
}

.hero-image img {
    width: 100%; 
    height: 100%;
    object-fit: cover; /* Rellena la caja fija sin distorsionarse */
    object-position: center right; /* Mantiene la pista a la vista */
    pointer-events: none;
}

/* Asegúrate de que el contenido de texto flote por encima de la imagen fija */
.hero-content {
    position: absolute;
    top: 50%;
    left: 5%; /* Margen izquierdo */
    transform: translateY(-50%);
    z-index: 2;
    max-width: 600px; /* Para que el texto no pise toda la pista de carreras */
}

.hero-overlay {
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 45%, rgba(0,0,0,0) 100%);
    z-index: 2;
}

@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; 
    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-container {
    position: relative;
    z-index: 3;
    width: 100%;
    display: flex;
    justify-content: space-between; /* Empuja el texto a la izq y widget a la der */
    align-items: center;
    padding: 0 60px;
    gap: 40px;
}

.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; 
}

/* AJUSTE LEONARDO */
img.ajuste-leonardo {
    left: 40px !important; 
}

/* SECCION NOSOTROS */
.nosotros-section {
    position: relative;
    width: 100%;
    max-width: 1420px; 
    margin: 10px auto; 
    background-color: #000000; 
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    font-family: 'Montserrat', sans-serif;
}

.video-fondo {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover; 
    z-index: 1; 
    opacity: 0.8; 
}

.nosotros-header {
    position: absolute; 
    top: 5%; left: 2.2%;
    width: 90%;
    z-index: 2; 
}

.stats-grid {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 2; 
}

.stat-card {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    width: 19%; 
    height: 32%; 
    padding: 2%; 
    background: rgba(255, 255, 255, 0.03); 
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px); 
    border: 1px solid rgba(255, 255, 255, 0.15); 
    border-radius: 16px; 
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3); 
    overflow: hidden; 
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 33px; left: 42px; 
    width: 45px; height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07); 
    pointer-events: none; 
    z-index: 0;
}

.card-top-row, .text-box {
    position: relative;
    z-index: 1;
}

.card-top-row {
    display: flex;
    flex-direction: column; 
    align-items: flex-start;
    position: relative;
    margin-top: 5px;
}

.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; 
}

.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));
}

.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 */
.circuitos-section {
    width: 95%;
    max-width: 1400px; /* Al igual que el Hero, frena el crecimiento desmedido */
    margin: 100px auto; /* Lo centra de forma matemática en cualquier pantalla */
    padding: 0 40px;
    font-family: 'Montserrat', sans-serif;
}

.circuitos-header {
    text-align: center;
    margin-bottom: 80px;
}

.badge-nosotros {
    display: inline-block;
    border: 2px solid #b87333; 
    color: #b87333;
    border-radius: 6px; 
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 4px;
    margin-bottom: 25px;
    text-transform: uppercase;
}
.badge-circuitos {
    background-color: rgba(184, 115, 51, 0.15);
    color: #b87333;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 25px;
    border: 1px solid rgba(184, 115, 51, 0.3);
}
.badge-nosotros { padding: 10px 20px; }

.circuitos-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem); /* Fluido y equilibrado */
    font-weight: 900;
    line-height: 1.2;
    color: #fff;
    text-transform: uppercase;
}

.circuitos-title span {
    color: #b87333;
}

.circuitos-content {
    display: flex;
    flex-direction: column;
    gap: 100px; /* Separación elegante entre fila y fila */
}

.circuit-row {
    display: flex;
    align-items: stretch; /* Hace que el lado negro y la foto tengan exactamente la misma altura */
    width: 100%;
    background-color: #0b0b0b; /* El fondo negro de la mitad del texto */
    border-radius: 25px; /* Los bordes redondeados globales de toda la tarjeta */
    overflow: hidden; /* Corta la imagen en las esquinas para que respete el borde curvo */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4); /* Sombra elegante */
    /* Nota: Se eliminó el "gap" para que la foto y el negro estén pegados */
}

.circuit-img {
    flex: 1; /* Toma exactamente el 50% del espacio */
    position: relative;
    overflow: hidden;
}
.circuit-img img {
    width: 100%;
    height: 100%;
    min-height: 400px; /* Asegura que la tarjeta tenga buena altura siempre */
    object-fit: cover; /* Adapta la foto sin deformarla */
    display: block;
    transition: transform 0.6s ease; /* Transición suave del hover */
}
.circuit-row:hover .circuit-img img {
    transform: scale(1.05);
}
.circuit-info {
    flex: 1; /* Toma el otro 50% del espacio */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centra el texto verticalmente en la caja negra */
    align-items: flex-start;
    padding: 60px 80px; /* Da un respiro amplio para que el texto no toque la foto ni los bordes */
}
.circuit-info h3 {
    font-size: clamp(1.6rem, 2.8vw, 2.4rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.2;
}

.circuit-info h3 span {
    color: #b87333;
}

.circuit-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #b87333; /* Color cobre para el subtítulo geométrico (como en tu foto) */
    margin-bottom: 25px;
    letter-spacing: 0.5px;
}

.circuit-info p {
    font-size: 1.05rem;
    color: #d1d1d1;
    line-height: 1.6;
    margin-bottom: 40px; /* Empuja el botón hacia abajo */
}   
.circuit-info .btn-ver-mas {
    border: 2px solid #b87333; 
    padding: 10px 24px;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Columnas de Imagen */
.circuit-img {
    flex: 1; /* Toma exactamente la otra mitad del espacio disponible */
    max-width: 600px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.circuit-img img {
    width: 100%;
    height: 380px; /* Control de altura uniforme para que ambas fotos se vean parejas */
    object-fit: cover; /* Recorta la imagen limpiamente en su cuadro sin deformarla */
    display: block;
    transition: transform 0.5s ease;
}

/* COCKPIT */
.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; 
}

/* FOOTER */
.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;
}

.social-icons {
    display: flex;
    justify-content: flex-start; 
    align-items: center;         
    gap: 15px;                   
    margin-top: 20px;
}
.social-icons a {
    display: inline-flex;
    transition: transform 0.3s ease, opacity 0.3s ease; 
}
.social-icons img {
    width: 32px; height: 32px;            
    object-fit: contain;     
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); 
}
.social-icons a:hover {
    transform: translateY(-3px); 
    opacity: 0.8;                
}
.social-icons img[alt="WhatsApp"] {
    transform: scale(0.65); 
}

/* 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;
}
        #lang-switcher {
  display: flex;
  flex-direction: column; /* Apila los botones de arriba hacia abajo */
  width: fit-content;     /* Evita que el contenedor ocupe todo el ancho de la pantalla */
  gap: 8px;               /* Añade un pequeño espacio entre las opciones */
}
#lang-switcher span {
  cursor: pointer;
}
        #lang-switcher span { cursor: pointer; opacity: 0.6; transition: opacity 0.3s; }
        #lang-switcher span.active { opacity: 0.50; text-decoration: underline; }
        
        /* Language Display Logic */
        body.lang-de .lang-en { display: none !important; }
        body.lang-en .lang-de { display: none !important; }
/* ESTILOS ESPECÍFICOS LANDING B2B (SOCIOS) */
.hero-b2b {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(10, 10, 10, 0.7), rgba(10, 10, 10, 0.9)), url('../assets/img/circuito.jpg') center/cover;
    padding-top: 80px;
}

.hero-b2b h1 {
    font-size: 4.5rem;
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-b2b h1 span {
    color: #b87333;
}

.hero-b2b p {
    font-size: 1.5rem;
    color: #dddddd;
    margin-bottom: 40px;
}

/* SECCIÓN "THE SYSTEM" (CARRUSEL ARRASTRABLE) */
.system-section {
    padding: 100px 0;
    background-color: #0a0a0a;
    overflow: hidden; 
}

.system-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 0 20px;
}

.system-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}


.system-subtitle {
    font-size: 1.2rem;
    color: #b87333;
    font-weight: 600;
    text-transform: uppercase;
}

.system-carousel-wrapper {
    width: 100%;
    position: relative;
    overflow-x: hidden; 
    overflow-y: hidden;
    padding: 20px 0; 
}

.system-carousel {
    display: flex;
    gap: 50px; 
    width: max-content; 
    animation: scrollContinuo 60s linear infinite; 
    align-items: center; 
}
.system-carousel:hover {
    animation-play-state: paused;
}
.system-carousel::-webkit-scrollbar { display: none; }
.system-carousel:active { cursor: grabbing; }

.system-item {
    width: 280px; 
    display: flex;
    flex-direction: column;
    gap: 15px;
    white-space: normal; 
}
.system-item:hover {
    transform: translateY(-8px);
}
.system-img {
    width: 100%;
    height: 180px; 
    object-fit: contain; 
    border-radius: 8px; 
    pointer-events: none; 
}
.system-item h3 {
    color: #ffffff;
    font-size: 1.3rem; 
    font-weight: 900;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.system-item p {
    color: #bbbbbb;
    line-height: 1.5;
    font-size: 0.95rem; 
}
@keyframes scrollContinuo {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}

.card-icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
    filter: drop-shadow(0 0 10px rgba(184, 115, 51, 0.5));
}
.drag-indicator {
    text-align: center;
    margin-top: 10px;
    color: #b87333;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 4px;
    animation: pulse 2s infinite;
}

/* SECCIÓN GLOBO 3D B2B */
.globe-b2b-section {
    background-color: #111111;
    padding: 100px 20px 450px 20px; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
}

#globe-container {
    width: 100%;
    margin: 20px auto 0 auto;
    display: none;
    justify-content: center;
    align-items: center;
    cursor: grab;
    transform: translate(0px, 2000px);
}
#globe-container:active { 
    cursor: grabbing; 
}

/* CLASES ANTIGUAS DE FORMULARIO (MANTENIDAS POR COMPATIBILIDAD) */
.form-b2b-section {
    padding: 100px 20px;
    background-color: #050505;
    display: flex;
    justify-content: center;
}
.registro-container {
    margin: 0;
}

/* =========================================
   NUEVO FORMULARIO SPLIT (ESQUINA A ESQUINA)
   ========================================= */
.split-form-section {
    display: flex;
    width: 100vw;
    min-height: 100vh; 
    background-color: #f04e30; 
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
}

.split-left {
    flex: 1;
    padding: 8% 5% 8% 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.split-title {
    font-size: clamp(3rem, 6vw, 6.5rem);
    font-weight: 900;
    font-style: italic;
    line-height: 0.9;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.split-subtitle {
    font-size: clamp(0.85rem, 1.2vw, 1.1rem);
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 40px;
    max-width: 85%;
    text-transform: uppercase;
}

.btn-location-wrapper {
    margin-top: 10px;
}

.btn-location {
    display: inline-flex;
    align-items: center;
    background-color: #ffffff;
    color: #f04e30;
    font-weight: 900;
    font-style: italic;
    padding: 12px 24px;
    text-decoration: none;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.split-right {
    flex: 1;
    padding: 8% 10% 8% 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.kartag-split-form {
    width: 100%;
    max-width: 600px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-row.full-width .input-group {
    width: 100%;
}

.kartag-split-form label {
    font-size: 0.95rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.kartag-split-form input,
.kartag-split-form select {
    width: 100%;
    padding: 12px 15px;
    border: none;
    background-color: #f2f2f2;
    font-size: 1rem;
    color: #333;
    outline: none;
    box-sizing: border-box;
}

.phone-input-wrapper {
    display: flex;
}

.phone-input-wrapper select {
    width: 85px;
    border-right: 1px solid #ddd;
    background-color: #ffffff;
    cursor: pointer;
}

.phone-input-wrapper input {
    flex: 1;
}

.form-disclaimer {
    font-size: 0.8rem;
    line-height: 1.4;
    margin-top: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn-submit-split {
    background-color: #2b3a55; 
    color: #ffffff;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-submit-split:hover {
    background-color: #1a2436;
}
/* =========================================
   INTERACTIVE COCKPIT HOTSPOTS
   ========================================= */
.hotspot-container {
    position: relative;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
}

.main-cockpit-img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 20px 40px rgba(184, 115, 51, 0.15));
}

.hotspot {
    position: absolute;
    width: 30px;
    height: 30px;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 5;
}

/* El punto parpadeante (cobre) */
.hotspot-dot {
    width: 20px;
    height: 20px;
    background-color: #b87333;
    border-radius: 50%;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 0 rgba(184, 115, 51, 0.7);
    animation: pulse-hotspot 2s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes pulse-hotspot {
    to { box-shadow: 0 0 0 25px rgba(184, 115, 51, 0); }
}

/* La tarjeta emergente oculta por defecto */
.hotspot-tooltip {
    position: absolute;
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid #b87333;
    backdrop-filter: blur(8px);
    padding: 15px 20px;
    border-radius: 8px;
    width: 260px;
    color: white;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hotspot-tooltip h4 {
    color: #b87333;
    margin-bottom: 8px;
    font-size: 1.1rem;
    font-weight: 700;
}

.hotspot-tooltip p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #ccc;
}

/* Mostrar tarjeta al hacer Hover */
.hotspot:hover .hotspot-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Posicionamiento de las tarjetas dependiendo de dónde esté el punto */
.tooltip-top { bottom: 40px; left: 50%; transform: translateX(-50%) translateY(10px); }
.tooltip-left { right: 40px; top: 50%; transform: translateY(-50%) translateX(10px); }
.tooltip-right { left: 40px; top: 50%; transform: translateY(-50%) translateX(-10px); }

.hotspot:hover .tooltip-top { transform: translateX(-50%) translateY(0); }
.hotspot:hover .tooltip-left { transform: translateY(-50%) translateX(0); }
.hotspot:hover .tooltip-right { transform: translateY(-50%) translateX(0); }
.model-section {
            position: relative;
            width: 100%;
            height: 85vh;
            background-color: #050505;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            border-top: 1px solid #1a1a1a;
            border-bottom: 1px solid #1a1a1a;
        }

        model-viewer {
            width: 100%;
            height: 100%;
            outline: none;
            --poster-color: transparent;
        }

        /* Tarjeta de Notificación Flotante */
        .notification-card {
            position: absolute;
            right: 5%;
            top: 15%;
            width: 320px;
            background: rgba(15, 15, 15, 0.7);
            border-left: 4px solid #b87333;
            padding: 24px;
            border-radius: 8px;
            color: white;
            z-index: 10;
            box-shadow: 0 10px 40px rgba(0,0,0,0.8);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            animation: slideInRight 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
        }

        @keyframes slideInRight {
            from { transform: translateX(120%); opacity: 0; }
            to { transform: translateX(0); opacity: 1; }
        }

        .notification-card h3 {
            color: #b87333;
            margin-top: 0;
            margin-bottom: 10px;
            font-size: 1.2rem;
            text-transform: uppercase;
            font-weight: 700;
        }

        .notification-card p {
            color: #d1d1d1;
            font-size: 0.95rem;
            line-height: 1.6;
            margin-bottom: 0;
            font-weight: 400;
        }

        .notification-icon {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 15px;
            border-bottom: 1px solid rgba(255,255,255,0.1);
            padding-bottom: 10px;
        }

/* =========================================
   MEDIA QUERIES (RESPONSIVO MÓVILES)
   ========================================= */
@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; 
        clip-path: none;
    }
    .hero-image {
        display: none !important;
    }

    .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: 8px; right: 10px; 
        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; margin-left: 10px;}
    .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; 
        color: #000000 !important;
    }
    .hero-content p {
        font-size: 1rem;
        color: #f8f8f8;
    }

    .promo-widget {
        /* 1. RESETEO CRUCIAL DEL POSICIONAMIENTO ABSOLUTO DE ESCRITORIO */
        position: relative; 
        top: auto; 
        right: auto; 
        transform: none; 

        /* 2. TAMAÑO Y CENTRADO */
        width: 100%;
        max-width: 380px; 
        margin: 0 auto; /* Centrado horizontal perfecto */
        padding: 15px; 
        margin-top: 200px;
        margin-left: 2px;
        
        /* 3. ESTÉTICA MÓVIL */
        /* En móvil, un borde completamente redondeado suele verse más armónico que la punta recta */
        border-radius: 25px; 
        z-index: 10;
    }
    .promo-media, .mini-leaderboard { height: 270px; }
    .promo-overlay { padding: 60px 15px 15px 15px; }
    .promo-overlay h3 { font-size: 1.1rem; }
    .driver-photo { height: 100%; }

    .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; }

    .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;
    }
    .globe-b2b-section {
        padding: 80px 20px; /* Reducimos el padding gigante del escritorio */
    }
    
    .globe-layout {
        flex-direction: column;
        margin-top: 0;
    }

    #globe-container {
        max-width: 100%;
        height: 600px; /* Globo más pequeño para que quepa en la pantalla */
        transition: transform 0.4s ease, opacity 0.4s ease;
        transform: translate(-90px, 0px);
    }

    /* En móvil, el globo no se va a la izquierda. Se queda en el centro, se encoge un poquito y se oscurece */
    #globe-container.shift-left {
        transform: scale(0.85) !important;
        opacity: 0.3; 
    }

    /* El panel de información se convierte en una ventana emergente (Modal) centrada */
    .side-panel {
        width: 90%;
        max-width: 400px;
        right: auto;
        left: 50%;
        top: 50%;
        /* Lo mantenemos oculto y encogido por defecto */
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 0;
        pointer-events: none; /* Evita clics fantasma cuando está oculto */
        border-left: none;
        border-top: 4px solid #b87333; /* Borde de adorno arriba en lugar de al lado */
        border-radius: 12px;
        box-shadow: 0 15px 50px rgba(0,0,0,0.9);
        text-align: center; /* Centramos el texto del panel */
    }

    /* Cuando el panel se abre en móvil */
    .side-panel.open {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
        pointer-events: auto;
        z-index: 100;
    }

    /* 2. SECCIÓN DEL FORMULARIO DIVIDIDO (SPLIT) EN MÓVIL */
    .split-form-section {
        flex-direction: column; /* Apilamos los elementos: Textos arriba, formulario abajo */
    }

    /* Mitad Izquierda (Textos) */
    .split-left {
        padding: 60px 20px 40px 20px;
        align-items: center; /* Centramos todo */
        text-align: center;
    }

    .split-title {
        font-size: 2.5rem !important; /* Letra más pequeña para que no se salga */
        text-align: center;
    }

    .split-subtitle {
        font-size: 1rem !important;
        text-align: center;
        max-width: 100%;
    }

    /* Mitad Derecha (Formulario) */
    .split-right {
        padding: 40px 20px 60px 20px;
    }

    .kartag-split-form {
        max-width: 100%;
    }

    /* Forzamos a que First Name y Last Name se pongan uno debajo del otro */
    .form-row {
        flex-direction: column;
        gap: 15px;
    }

    .btn-submit-split {
        width: 100%; /* Botón gigante para pulgares */
        padding: 18px;
    }
     #lang-switcher {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: center;
    border: 1px solid #b87333;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.3);
    /* Estas líneas son el secreto para el teléfono: */
    width: 65px !important;    /* Ancho fijo para que no cambie */
    min-width: 65px !important;
    height: 28px !important;
    margin: 0 5px;
    flex-shrink: 0;           /* Evita que el logo o iconos lo aplasten */
}

/* Asegurar que los textos no se rompan */
#lang-switcher span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50%;               /* Cada uno ocupa la mitad exacta */
    height: 100%;
    font-size: 10px !important;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;      /* Evita salto de línea */
    padding: 0 !important;    /* Eliminamos padding extra */
}

}
