/* --- VARIABLES GLOBALES --- */
:root {
    --bg-dark: #0f0f0f;
    --bg-card: #1a1a1a;
    --accent: #e74c3c;
    --accent-hover: #c0392b;
    --text-main: #ffffff;
    --text-muted: #b0b0b0; /* Un poco más claro para mejor lectura con Exo 2 */
    
    /* NUEVAS TIPOGRAFÍAS RACING */
    --font-heading: 'Chakra Petch', sans-serif;
    --font-body: 'Exo 2', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- NAVBAR (ESTILO + RESPONSIVE) --- */
.navbar {
    background: rgba(15, 15, 15, 0.95);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 10px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar-content {
    display: flex;
    align-items: center;
    position: relative;
    min-height: 100px;
    justify-content: space-between;
}

/* LOGO (Centrado en PC) */
.nav-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    width: auto;
    z-index: 105;
}

.nav-logo img {
    height: 100%;
    width: auto;
    max-width: 300px; /* Ajustado para no chocar */
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
    pointer-events: auto;
}

/* BOTÓN HAMBURGUESA (Solo móvil) */
.hamburger-menu {
    display: none; /* Oculto en PC */
    font-size: 2rem;
    color: white;
    cursor: pointer;
    z-index: 110;
}

/* CONTENEDOR MENÚ (Estructura PC) */
.nav-menu-container {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

/* LADOS DEL MENÚ */
.nav-side {
    flex: 1;
    display: flex;
    align-items: center;
}

/* Distancias calculadas para no tocar el logo (150px mitad logo + 20px aire) */
.nav-side.left { justify-content: flex-end; padding-right: 170px; }
.nav-side.right { justify-content: flex-start; padding-left: 170px; gap: 30px; }

/* --- ESTILOS DE TEXTO (RECUPERADOS) --- */
.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
    padding: 0;
    margin: 0;
}

.nav-links li a {
    color: #ffffff !important; /* Forzamos blanco */
    text-decoration: none !important; /* Quitamos subrayado azul */
    font-family: 'Chakra Petch', sans-serif !important; /* Fuente Racing */
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 5px;
    letter-spacing: 1px;
    transition: color 0.3s;
}

/* Efecto Línea Roja al pasar el ratón */
.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #e74c3c; /* Rojo */
    transition: width 0.3s ease-out;
}

.nav-links li a:hover {
    color: #e74c3c !important;
}

.nav-links li a:hover::after {
    width: 100%;
}

.nav-links li a.active {
    color: #e74c3c !important;
}

/* --- BOTÓN DESPLEGABLE (CIRCUITOS / CALENDARIO) --- */
.dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.dropdown-trigger {
    font-family: 'Chakra Petch', sans-serif !important;
    background-color: transparent;
    color: #ffffff !important;
    border: 1px solid #555;
    width: 200px;
    height: 42px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    gap: 10px;
    letter-spacing: 1px;
    transition: all 0.3s;
    border-radius: 4px;
    white-space: nowrap;
    text-decoration: none !important;
}

.dropdown-trigger:hover, .dropdown-trigger.active {
    background-color: #e74c3c;
    border-color: #e74c3c;
    color: white !important;
}

.arrow { font-size: 0.8rem; transition: transform 0.3s; }
.dropdown-trigger.active .arrow { transform: rotate(180deg); }

/* Menú desplegable lista */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #1a1a1a;
    min-width: 260px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.9);
    border: 1px solid #333;
    list-style: none;
    padding: 0;
    margin-top: 12px;
    z-index: 1000;
    border-radius: 4px;
}
.dropdown-menu.show { display: block; }
.dropdown-menu li {
    padding: 12px 20px;
    border-bottom: 1px solid #2a2a2a;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #b0b0b0;
    transition: background 0.2s;
    font-family: 'Exo 2', sans-serif;
}
.dropdown-menu li:hover { background-color: #222; color: white; }
.count-badge {
    background-color: #333; color: #fff; font-size: 0.75rem; padding: 2px 8px;
    border-radius: 12px; font-weight: bold; min-width: 24px; text-align: center;
}
.dropdown-menu li:hover .count-badge { background-color: var(--accent); }


/* --- MEDIA QUERY: MÓVIL (< 992px) --- */
@media (max-width: 992px) {
    
    .navbar-content {
        justify-content: space-between;
        min-height: 70px;
        padding: 0 15px; /* Un poco de margen lateral */
    }

    /* Logo a la izquierda */
    .nav-logo {
        position: relative;
        left: 0;
        transform: none;
        height: 50px;
        margin: 0;
    }
    .nav-logo img { max-width: 180px; }

    /* Mostrar botón hamburguesa */
    .hamburger-menu { display: block; }

    /* MENÚ LATERAL DESPLEGABLE */
    .nav-menu-container {
        position: fixed;
        top: 70px; /* Altura del header móvil */
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: #0f0f0f;
        flex-direction: column;
        padding: 40px 20px;
        transform: translateX(100%); /* Oculto a la derecha */
        transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        overflow-y: auto;
        justify-content: flex-start; /* Empezar arriba */
        border-top: 1px solid #333;
    }

    .nav-menu-container.active {
        transform: translateX(0); /* Mostrar */
    }

    /* Resetear lados para que se apilen */
    .nav-side {
        flex-direction: column;
        width: 100%;
        padding: 0 !important;
        justify-content: center;
        gap: 30px;
        margin-bottom: 30px;
    }

    .nav-links {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }

    .nav-links li a {
        font-size: 1.3rem; /* Letra más grande en móvil */
        display: block;
        padding: 10px;
    }

    /* Botón Circuitos en Móvil */
    .dropdown-wrapper {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .dropdown-trigger {
        width: 100%;
        max-width: 300px;
        height: 50px;
    }
    .dropdown-menu {
        position: relative;
        width: 100%;
        max-width: 300px;
        top: 0;
        right: auto;
        left: 0;
        transform: none;
        margin-top: 10px;
    }
}

/* --- HERO FULLSCREEN CON SLIDER --- */
.hero-fullscreen {
    position: relative;
    min-height: 90vh; 
    width: 100%;
    display: flex;
    align-items: center;
    overflow: hidden; /* Oculta el slide que entra por la derecha */
    margin-top: 0;
    padding-top: 150px; 
    padding-bottom: 150px; 
}

/* El "Carril" de imágenes */
.slider-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    z-index: 0;
    /* IMPORTANTE: Quitamos la transición aquí para controlarla con JS */
}

.hero-slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.2) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px; 
    margin-left: 100px; 
    padding-top: 60px;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem; 
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: white;
}

.hero-subtitle {
    font-size: 1.3rem; 
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

.hero-desc {
    color: #ddd;
    font-size: 1rem; 
    margin-bottom: 2.5rem;
}

.btn-primary-red {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--accent);
    color: white;
    padding: 12px 30px; 
    font-family: var(--font-heading);
    font-size: 1.2rem; 
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s, transform 0.2s;
}
.btn-primary-red:hover { background-color: var(--accent-hover); transform: translateY(-2px); }

/* --- DIVISOR DIAGONAL --- */
.hero-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 3;
}
.hero-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 90px;
}

/* --- SECCIÓN DE EVENTOS --- */
.events-section {
    background-color: var(--bg-dark);
    padding-top: 4rem; 
    padding-bottom: 6rem;
    position: relative;
    z-index: 2;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    width: 100%;
}
.section-title .accent { color: var(--accent); }
.section-title::after {
    content: ''; display: block; width: 60px; height: 4px;
    background: var(--accent); margin: 10px auto 0; border-radius: 2px;
}

/* --- TARJETAS (GRID) --- */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.event-card {
    background-color: #f4f4f4; 
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column; 
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(231, 76, 60, 0.4);
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    margin: 0;
    display: flex; 
    line-height: 0;
    font-size: 0;
    background-color: transparent; 
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.03); 
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.event-card:hover .card-image-wrapper img {
    transform: scale(1.12);
}

.card-info {
    padding: 15px;
    background-color: #f4f4f4;
    border-top: 4px solid var(--accent);
    position: relative;
    z-index: 5; 
    flex-grow: 1; 
    margin-top: -5px; 
    padding-top: 20px;
}

.event-title {
    font-family: var(--font-heading);
    color: #333;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.3;
    margin: 0;
}

.card-link-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    z-index: 30; cursor: pointer;
}

/* --- FOOTER PROFESIONAL --- */
.site-footer {
    background-color: #050505; /* Fondo más oscuro que el resto */
    color: #a0a0a0;
    padding: 5rem 0 2rem;
    font-size: 0.95rem;
    border-top: 1px solid #222;
}

/* Grid Principal */
.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr; /* La primera y última columna son más anchas */
    gap: 40px;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: white;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

/* Pequeña línea roja bajo los títulos */
.footer-col h4::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--accent);
    margin-top: 8px;
}

/* Columna de Marca */
.footer-logo {
    max-width: 180px;
    margin-bottom: 1.5rem;
    filter: grayscale(100%) brightness(200%); /* Logo en blanco */
    transition: filter 0.3s;
}

.footer-col:hover .footer-logo {
    filter: none; /* Recupera color al pasar ratón por la zona */
}

.brand-col p {
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 300px;
}

/* Redes Sociales */
.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #1a1a1a;
    color: white;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1px solid #333;
}

.social-links a:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-3px);
}

/* Listas de Enlaces */
.footer-links, .footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #a0a0a0;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px); /* Pequeño desplazamiento a la derecha */
}

/* Lista de Contacto */
.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.footer-contact-list i {
    color: var(--accent);
    margin-top: 5px;
}

.footer-contact-list a {
    color: #a0a0a0;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-contact-list a:hover {
    color: white;
}

/* Barra Inferior */
.footer-divider {
    border: 0;
    border-top: 1px solid #222;
    margin-bottom: 2rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright strong {
    color: white;
}

.legal-links {
    display: flex;
    gap: 20px;
}

.legal-links a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.legal-links a:hover {
    color: var(--accent);
}

/* Responsive Footer */
@media (max-width: 992px) {
    .footer-top {
        grid-template-columns: 1fr 1fr; /* 2 columnas en tablets */
    }
}

@media (max-width: 600px) {
    .footer-top {
        grid-template-columns: 1fr; /* 1 columna en móvil */
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .brand-col p { max-width: 100%; }
}
/* Responsive */
@media (max-width: 1200px) {
    .nav-side.left { padding-right: 180px; }
    .nav-side.right { padding-left: 180px; }
    .navbar-content { gap: 300px; }
}
@media (max-width: 992px) {
     .navbar-content { gap: 100px; }
     .nav-side.left { padding-right: 50px; }
     .nav-side.right { padding-left: 50px; }
     .hero-content h1 { font-size: 3rem; }
     .hero-content { margin-left: 50px; } 
}
@media (max-width: 768px) {
    .navbar { position: relative; padding: 10px 0; }
    .navbar-content { flex-direction: column; height: auto; gap: 20px; padding: 20px 0; }
    .nav-logo { position: relative; transform: none; left: auto; margin: 10px 0; }
    .nav-side { padding: 0; justify-content: center; width: 100%; flex: auto;}
    .nav-links { gap: 20px; }
    .nav-right-group { gap: 20px; }
    .hero-fullscreen { padding-top: 80px; padding-bottom: 180px; align-items: flex-start; }
    .hero-content { margin-left: 0; max-width: 100%; text-align: center; } 
    .hero-content h1 { font-size: 2.5rem; }
    .hero-divider svg { height: 60px; } 
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
html { scroll-behavior: smooth; 

}
/* --- SECCIÓN PATROCINADORES (Siempre en Color) --- */
.sponsors-section {
    background-color: #111;
    padding: 4rem 0 6rem;
    border-top: 1px solid #333;
}

.sponsor-slider {
    width: 100%;
    padding-bottom: 0;
}

.sponsor-slider .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    
    /* CAMBIO: Eliminamos opacity y filter:grayscale para que se vean siempre bien */
    opacity: 1;
    filter: none; 
    
    transition: transform 0.3s ease;
}

.sponsor-slider .swiper-slide:hover {
    /* Mantenemos un pequeño efecto de zoom para saber que es interactivo */
    transform: scale(1.1);
    cursor: grab;
}

.sponsor-slider .swiper-slide:active {
    cursor: grabbing;
}

.sponsor-slider img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Color de los puntos de paginación de Swiper */
.swiper-pagination-bullet {
    background: #666;
}
.swiper-pagination-bullet-active {
    background: var(--accent); /* Rojo corporativo */
}
/* --- ESTILOS PÁGINA SERVICIOS --- */

/* Encabezado */
.page-header {
    position: relative;
    height: 50vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../img/fondo/servicios/fondo1.jpg'); 
    background-size: cover;
    background-position: center;
    margin-top: 130px; /* Ajustado al nuevo tamaño del header */
}

.page-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.page-header-content h1 {
    font-size: 4rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.page-header-content p {
    font-size: 1.5rem;
    color: #ddd;
    font-weight: 300;
}

/* Contenido Principal (Zig-Zag) */
.services-content {
    padding: 5rem 0;
    background-color: var(--bg-dark);
}

.service-row {
    display: flex;
    align-items: center; /* Centra verticalmente texto e imagen */
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 6rem;
}

/* Invertir el orden para las filas pares */
.service-row.reverse {
    flex-direction: row-reverse;
}

.service-row:last-child {
    margin-bottom: 0;
}

/* Texto del Servicio */
.service-text {
    flex: 1; /* Ocupa el 50% */
}

.service-text h3 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.service-text h3::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--accent);
    margin-top: 10px;
}

.service-text p {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Lista de características */
.service-list {
    list-style: none;
    padding: 0;
}

.service-list li {
    margin-bottom: 10px;
    color: #ddd;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-list li i {
    color: var(--accent);
}

/* Imagen del Servicio (CORREGIDO) */
.service-image {
    flex: 1; /* Ocupa el otro 50% */
    position: relative;
    
    /* CAMBIO: Altura fija para equilibrar con el texto (aprox lo que mide el texto) */
    height: 400px; 
    
    /* CAMBIO: Bordes redondos */
    border-radius: 15px; 
    overflow: hidden; /* Para que la imagen respete el borde redondo */
    
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.service-image img {
    width: 100%;
    height: 100%;
    /* CAMBIO CLAVE: Cover recorta la imagen para llenar el hueco sin deformarse */
    object-fit: cover; 
    display: block;
    transition: transform 0.5s ease;
}

.service-image:hover img {
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 992px) {
    .service-row, .service-row.reverse {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    /* En móvil dejamos que la altura sea automática o un poco menor */
    .service-image {
        width: 100%;
        height: 250px; 
    }
    
    .service-text h3::after {
        margin: 10px auto;
    }
    
    .service-list {
        display: inline-block;
        text-align: left;
    }
}

/* CTA Final */
.cta-section {
    background: #111;
    padding: 4rem 0;
    text-align: center;
    border-top: 1px solid #333;
}
.cta-section h2 {
    font-family: var(--font-heading);
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}
.cta-section p { color: #999; margin-bottom: 2rem; font-size: 1.2rem; 

}
/* AJUSTE RACING EXTRA */
.hero-content h1, 
.page-header-content h1,
.section-title,
.event-title,
.corner-ribbon {
    font-style: italic; /* Inclinación para efecto de velocidad */
    letter-spacing: 1px; /* Un poco más de aire */
}

/* El cuerpo de texto lo dejamos recto para que se lea bien */
body {
    font-weight: 400;
}
/* --- ESTILOS PÁGINA SOBRE NOSOTROS --- */

/* Sección Intro */
.about-intro {
    padding: 6rem 0;
    background-color: var(--bg-dark);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.about-text p {
    color: #ccc;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-image img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 10px 10px 0px var(--accent); /* Efecto de marco desplazado */
}

/* Estadísticas (Stats) */
.stats-row {
    display: flex;
    gap: 40px;
    margin-top: 3rem;
    border-top: 1px solid #333;
    padding-top: 2rem;
}

.stat-box {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
}

.stat-label {
    font-size: 0.9rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sección Equipo */
.team-section {
    background-color: #111;
    padding: 5rem 0 8rem;
    text-align: center;
}

.section-subtitle {
    color: #888;
    margin-bottom: 4rem;
    font-size: 1.2rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.team-card {
    background: var(--bg-card);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid #222;
}

.team-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
}

.team-img-wrapper {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.team-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card:hover .team-img-wrapper img {
    transform: scale(1.1);
}

/* Iconos sociales que aparecen al hover */
.team-social {
    position: absolute;
    bottom: -50px; /* Oculto inicialmente */
    left: 0;
    width: 100%;
    background: rgba(231, 76, 60, 0.9); /* Rojo semitransparente */
    padding: 10px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    transition: bottom 0.3s ease;
}

.team-card:hover .team-social {
    bottom: 0; /* Aparece al hover */
}

.team-social a {
    color: white;
    font-size: 1.2rem;
    transition: color 0.2s;
}

.team-social a:hover {
    color: black;
}

.team-info {
    padding: 1.5rem;
    text-align: left;
}

.team-info h4 {
    font-family: var(--font-heading);
    color: white;
    font-size: 1.3rem;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.team-role {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Responsive */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .stats-row {
        justify-content: center;
    }
    
    .team-info {
        text-align: center;
    }
}
/* --- SECCIÓN CONTACTO --- */
.contact-section {
    background-color: var(--bg-dark);
    padding: 6rem 0;
    border-top: 1px solid #222;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 3rem;
}

/* Info Izquierda */
.contact-info h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: white;
    margin-bottom: 1rem;
}

.contact-info p {
    color: #999;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 2rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--accent);
    width: 40px;
    text-align: center;
}

.info-item strong {
    display: block;
    color: white;
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

.info-item span {
    color: #ccc;
}

/* Formulario Derecha */
.contact-form-wrapper {
    background-color: #111;
    padding: 3rem;
    border-radius: 4px;
    border: 1px solid #333;
}

.form-group {
    margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    background-color: #0f0f0f;
    border: 1px solid #333;
    padding: 15px;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.2);
}

.contact-form button {
    width: 100%;
    cursor: pointer;
    border: none;
}

/* Responsive Contacto */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-form-wrapper {
        padding: 2rem;
    }
}
/* --- ESTILOS CHECKBOX PRIVACIDAD --- */
.checkbox-group {
    display: flex;
    align-items: flex-start; /* Alinear arriba por si el texto es largo */
    gap: 10px;
    margin-top: -10px; /* Acercarlo un poco al textarea */
    margin-bottom: 1.5rem;
}

.checkbox-group input[type="checkbox"] {
    /* Personalizar tamaño */
    width: 20px; 
    height: 20px;
    margin-top: 2px; /* Ajuste fino */
    cursor: pointer;
    /* Eliminar estilo por defecto del input que pusimos antes */
    background-color: #222; 
    border: 1px solid #555;
    appearance: auto; /* Dejar que el navegador pinte el tick */
    accent-color: var(--accent); /* Color rojo al marcarlo */
}

.checkbox-group label {
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.4;
    cursor: pointer;
}

.checkbox-group label a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.checkbox-group label a:hover {
    text-decoration: underline;
}
/* --- PÁGINA DE GRACIAS --- */
.thank-you-page {
    position: relative;
    height: 80vh; /* Ocupa casi toda la pantalla */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('../img/fondo/fondo5.jpg'); /* Reutilizamos un fondo existente */
    background-size: cover;
    background-position: center;
    margin-top: 85px; /* Compensa el header fijo */
}

.thank-you-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border: 2px solid var(--accent); /* Círculo rojo */
    border-radius: 50%;
    margin-bottom: 2rem;
    color: var(--accent);
    font-size: 2.5rem;
    animation: pulseIcon 2s infinite;
}

.thank-you-content h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.thank-you-content p {
    color: #ccc;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.thank-you-content .small-note {
    font-size: 1rem;
    color: #888;
    margin-bottom: 3rem;
    font-style: italic;
}

@keyframes pulseIcon {
    0% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(231, 76, 60, 0); }
    100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); }
}

/* Responsive Gracias */
@media (max-width: 768px) {
    .thank-you-content h1 { font-size: 2.5rem; }
    .thank-you-page { height: 70vh; }
}
/* --- PÁGINA FOTOGRAFÍA --- */

/* Cabecera específica (puedes cambiar la imagen de fondo) */
.photo-header {
    background-image: url('../img/fondo/fondo5.jpg'); /* Reutilizamos fondo4 */
    background-position: center 30%; /* Ajuste para encuadrar mejor */
}

.photo-content {
    padding: 6rem 0;
    background-color: var(--bg-dark);
}

.photo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.photo-text h3 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.photo-text p {
    color: #ccc;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* Iconos de características */
.photo-features {
    display: flex;
    gap: 30px;
    margin-bottom: 3rem;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
    padding: 20px 0;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: 600;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.9rem;
}

.feature i {
    color: var(--accent);
    font-size: 1.2rem;
}

/* Caja del Botón */
.cta-box {
    background-color: #151515;
    padding: 2rem;
    border-left: 4px solid var(--accent);
    border-radius: 0 4px 4px 0;
}

.cta-label {
    display: block;
    margin-bottom: 1rem !important; /* Forzamos margen */
    color: #fff !important;
    font-weight: 700;
}

/* Imagen con efecto elegante */
.photo-showcase img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 20px 20px 0 rgba(231, 76, 60, 0.1); /* Sombra roja sutil */
    transition: transform 0.5s ease;
}

.photo-showcase img:hover {
    transform: scale(1.02);
}

/* Responsive Fotografía */
@media (max-width: 992px) {
    .photo-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .photo-features {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .cta-box {
        text-align: center;
        border-left: none;
        border-top: 4px solid var(--accent);
    }
}
/* --- FORZADO DE TIPOGRAFÍA GLOBAL --- */
/* Esto asegura que todos los títulos y textos usen la fuente correcta en todas las páginas */

h1, h2, h3, h4, h5, h6, 
.section-title, 
.page-header-content h1,
.hero-content h1,
.service-text h3,
.photo-text h3,
.contact-info h3 {
    font-family: var(--font-heading) !important; /* Chakra Petch */
    text-transform: uppercase;
}

body, p, a, li, span, div, label, input, textarea, button {
    font-family: var(--font-body); /* Exo 2 */
}

/* Excepción: Botones y enlaces del menú que usan la fuente de títulos */
.nav-links li a,
.btn-primary-red,
.dropdown-trigger,
.feature {
    font-family: var(--font-heading) !important;
}
/* --- ANIMACIÓN TEXTO GRADIENTE (SOLO HACIA LA DERECHA) --- */

/* 1. Definimos la animación lineal continua */
@keyframes textShine {
    0% {
        background-position: 200% center;
    }
    100% {
        background-position: -200% center;
    }
}

/* 2. Aplicamos el efecto a las palabras con clase .accent */
.section-title .accent,       
.page-header-content .accent, 
.hero-content .accent         
{
    /* El gradiente: Rojo -> Blanco -> Rojo */
    background: linear-gradient(90deg, #e74c3c 30%, #e4dddd 50%, #e74c3c 100%);
    
    /* Hacemos el fondo el doble de ancho para que el movimiento sea fluido */
    background-size: 200% auto;
    
    /* Hacemos el texto transparente y recortamos el fondo */
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    
    /* Ejecutamos la animación: 3 segundos, velocidad constante (linear), infinita */
    animation: textShine 5s linear infinite;
    
    display: inline-block;
}
/*Antes de tocar footer
/* --- CRÉDITOS AXION DIGITAL --- */
.copyright {
    display: flex;
    flex-wrap: wrap; /* Permite que baje de línea en móvil si no cabe */
    align-items: center;
    gap: 5px;
}

.axion-link {
    color: #a0a0a0;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
    font-family: var(--font-heading); /* Usa la fuente técnica */
    letter-spacing: 0.5px;
}

.axion-link:hover {
    color: var(--accent); /* Se pone rojo al pasar el ratón */
}

.sep {
    color: #444; /* Color suave para el separador */
    margin: 0 5px;
}

/* Ajuste móvil para que no se rompa */
@media (max-width: 600px) {
    .copyright {
        justify-content: center;
        flex-direction: column; /* Uno debajo de otro en móvil */
        gap: 5px;
    }
    
    .sep {
        display: none; /* Ocultamos el palito separador en móvil */
    }
}
