/* ========================================================
   ESTILOS GENERALES Y VARIABLES
   ======================================================== */
:root {
    --ecax-gold: #FFD700;
    --ecax-orange: #FFA500;
    --ecax-black: #111;
    --ecax-dark-grey: #1a1a1a;
    --ecax-light-grey: #f4f4f4;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
}

/* Ajuste para que las secciones no se escondan bajo el menú fijo */
.team-hero-section,
.about-manifesto-section,
.timeline-clean-container,
.trayectoria-section {
    padding-top: 130px !important;
}


/* ========================================================
   1. NAVBAR ORIGINAL (MODO OSCURO PARA EL INICIO)
   ======================================================== */
.navbar:not(.navbar-premium) {
    padding: 20px 0;
    transition: 0.4s;
    background: transparent;
}

/* Fondo negro al hacer scroll */
.navbar:not(.navbar-premium).scrolled {
    background: rgba(0, 0, 0, 0.95);
    padding: 10px 0;
    border-bottom: 2px solid var(--ecax-gold);
}

/* ¡AQUÍ ESTÁ LA MAGIA! Letras finas, elegantes y separadas */
.navbar:not(.navbar-premium) .nav-link {
    color: #fff !important;
    font-weight: 500 !important;
    /* Letra delgada (Premium) */
    font-size: 0.8rem !important;
    /* Tamaño sofisticado */
    letter-spacing: 1.5px !important;
    /* Espaciado estilo Adidas */
    text-transform: uppercase;
    margin: 0 10px;
    transition: 0.3s;
}

.navbar:not(.navbar-premium) .nav-link:hover {
    color: var(--ecax-gold) !important;
}

/* Dropdown original (Oscuro) */
.navbar:not(.navbar-premium) .dropdown-menu {
    background-color: #ffffff;
    border: none;
    border-top: 4px solid var(--ecax-gold);
    border-radius: 0 0 10px 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 15px 0;
    margin-top: 15px;
}

.navbar:not(.navbar-premium) .dropdown-item {
    color: #333;
    padding: 8px 25px;
    font-weight: 500;
    transition: 0.2s;
    font-size: 0.85rem;
}

.navbar:not(.navbar-premium) .dropdown-item:hover {
    background-color: #fff8e1;
    color: var(--ecax-orange);
    padding-left: 30px;
}

.navbar:not(.navbar-premium) .dropdown-header {
    font-size: 0.75rem;
    letter-spacing: 1px;
    margin-top: 5px;
    margin-bottom: 5px;
    padding-left: 25px;
}

/* =========================================
   NUEVO BOTÓN VERIFICAR RADIANTE (Para el Inicio)
   ========================================= */
.btn-verificar-radiante {
    background: rgba(255, 215, 0, 0.05);
    /* Casi transparente */
    color: var(--ecax-gold) !important;
    /* Texto dorado */
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 10px 25px;
    border: 1px solid var(--ecax-gold);
    /* Borde fino y elegante */
    border-radius: 50px;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2), inset 0 0 10px rgba(255, 215, 0, 0.05);
    backdrop-filter: blur(5px);
    transition: all 0.4s ease;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.btn-verificar-radiante:hover {
    background: linear-gradient(45deg, var(--ecax-gold), var(--ecax-orange));
    color: #000 !important;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.6), inset 0 0 15px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}


/* ========================================================
   2. NAVBAR PREMIUM (ESTILO ADIDAS / APPLE PARA NOSOTROS)
   ======================================================== */
.navbar-premium {
    background-color: #ffffff !important;
    border-bottom: 1px solid #eaeaea;
    padding: 15px 0 !important;
    transition: all 0.3s ease;
}

.navbar-premium.scrolled {
    background-color: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
    border-bottom: none !important;
}

.nav-link-minimal {
    color: #111 !important;
    font-weight: 500 !important;
    font-size: 0.8rem !important;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 8px 15px !important;
    transition: color 0.3s ease;
}

.nav-link-minimal:hover,
.nav-link-minimal.active-link {
    color: var(--ecax-orange) !important;
}

.navbar-premium .dropdown-menu {
    background-color: #fff;
    border: none;
    border-top: 2px solid #000;
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 15px 0;
    margin-top: 0;
    min-width: 260px;
}

.navbar-premium .dropdown-item {
    color: #444;
    font-weight: 500;
    font-size: 0.8rem;
    padding: 10px 30px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.navbar-premium .dropdown-item:hover {
    background-color: #f9f9f9;
    color: #000;
    padding-left: 35px;
}

.navbar-premium .dropdown-header {
    color: var(--ecax-orange) !important;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 2px;
    padding-left: 30px;
}

/* BOTÓN VERIFICAR PREMIUM NEGRO */
.btn-premium-dark {
    background-color: #000;
    color: #fff !important;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 12px 30px;
    border-radius: 0;
    border: 1px solid #000;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-premium-dark:hover {
    background-color: transparent;
    color: #000 !important;
}


/* ========================================================
   SECCIONES DEL INICIO Y GLOBALES
   ======================================================== */
.hero-section {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8)), url('https://images.pexels.com/photos/12740147/pexels-photo-12740147.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    color: #ddd;
    margin-bottom: 30px;
}

.btn-outline-light {
    border: 2px solid #fff;
    border-radius: 50px;
    padding: 10px 30px;
    font-weight: 700;
    text-transform: uppercase;
    transition: 0.3s;
}

.btn-outline-light:hover {
    background: #fff;
    color: #000;
}

.stats-bar {
    background: linear-gradient(to right, #2c3e50, #1a1a1a);
    padding: 50px 0;
    border-top: 4px solid var(--ecax-gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--ecax-gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.stat-label {
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 2px;
    color: #fff;
    font-weight: 600;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    width: 80px;
    height: 4px;
    background: var(--ecax-gold);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.flip-card {
    background-color: transparent;
    width: 100%;
    height: 250px;
    perspective: 1000px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.flip-card-front {
    background: linear-gradient(145deg, #1a1a1a, #222);
    border: 2px solid #333;
}

.flip-card-back {
    background: linear-gradient(45deg, var(--ecax-black), #333);
    color: white;
    transform: rotateY(180deg);
    border: 2px solid var(--ecax-gold);
}

.service-icon {
    font-size: 4rem;
    color: var(--ecax-gold);
    margin-bottom: 20px;
}

.flip-card h4 {
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1.2rem;
    margin: 0;
    color: #fff;
}

.flip-card-back p {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #ddd;
}

.cta-block {
    background: linear-gradient(rgba(17, 17, 17, 0.9), rgba(17, 17, 17, 0.9)), url('https://images.pexels.com/photos/585419/pexels-photo-585419.jpeg');
    background-size: cover;
    background-attachment: fixed;
    padding: 80px 0;
    text-align: center;
}

/* ========================================================
   NOSOTROS Y CONTACTO
   ======================================================== */
.team-hero-section {
    padding: 80px 0;
    background-color: #ffffff;
    background-image: linear-gradient(145deg, #ffffff 20%, rgba(255, 215, 0, 0.15) 20%, rgba(255, 140, 0, 0.08) 45%, #ffffff 45%, #ffffff 75%, rgba(255, 215, 0, 0.15) 75%, rgba(255, 140, 0, 0.08) 95%, #ffffff 95%);
    overflow: hidden;
}

.hero-instructor-img {
    width: 100%;
    height: auto;
    max-height: 700px;
    object-fit: contain;
    -webkit-mask-image: radial-gradient(ellipse 180% 100% at 50% 0%, black 95%, transparent 100%);
    mask-image: radial-gradient(ellipse 180% 100% at 50% 0%, black 95%, transparent 100%);
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hero-instructor-img:hover {
    transform: scale(1.02);
}

.hero-instructor-info {
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

.hero-name {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 10px;
    color: #111;
    text-transform: uppercase;
}

.hero-role {
    font-size: 1.5rem;
    color: var(--ecax-orange);
    font-weight: 800;
    margin-bottom: 30px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-details li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.hero-details i {
    color: var(--ecax-orange);
    font-size: 1.3rem;
    margin-right: 15px;
}

.about-manifesto-section {
    padding: 100px 0;
    background-color: #fdfdfd;
    position: relative;
    overflow: hidden;
}

.about-manifesto-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50vw;
    height: 50vw;
    background-image: url('../../../sistema/public/img/Logo.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.03;
    z-index: 0;
    pointer-events: none;
}

.about-manifesto-section .container {
    position: relative;
    z-index: 2;
}

.manifesto-feature-box {
    padding: 30px 20px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-bottom: 4px solid var(--ecax-gold);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    height: 100%;
}

.manifesto-feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(255, 140, 0, 0.15);
    border-bottom-color: var(--ecax-orange);
}

.trayectoria-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #111111 0%, #1a1a1a 100%);
    position: relative;
    border-top: 4px solid var(--ecax-gold);
}

.timeline-tabs .nav-link {
    color: #666666;
    font-size: 1.4rem;
    font-weight: 900;
    border: none;
    background: transparent;
    padding: 10px 25px;
    margin: 0 5px;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.timeline-tabs .nav-link:hover {
    color: #ffffff;
    border-bottom: 3px solid rgba(255, 215, 0, 0.4);
}

.timeline-tabs .nav-link.active {
    color: var(--ecax-gold);
    border-bottom: 4px solid var(--ecax-gold);
    background: transparent;
    transform: scale(1.1);
}

.timeline-card-premium {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-left: 5px solid var(--ecax-orange);
    border-radius: 0 20px 20px 0;
    padding: 50px 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.timeline-card-premium:hover {
    transform: translateX(10px);
    border-left: 5px solid var(--ecax-gold);
    border-color: rgba(255, 215, 0, 0.3);
}

/* =========================================
   ESTILOS PÁGINA DE CONTACTO (Premium)
   ========================================= */
.form-premium {
    border-radius: 0 !important;
    border: 1px solid #ccc;
    padding: 12px 15px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: #fcfcfc;
    color: #111;
}

.form-premium:focus {
    outline: none;
    box-shadow: none !important;
    border-color: #111;
    background-color: #fff;
}

.form-label {
    letter-spacing: 1px;
}

/* =========================================
   FOOTER MINIMALISTA (Para sección Cursos)
   ========================================= */
.footer-minimal-gray {
    background-color: #f0f0f0 !important;
    border-top: 1px solid #e0e0e0;
    width: 100%;
}

.footer-minimal-gray strong {
    color: #111;
    font-weight: 700;
}

.footer-link-light {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.footer-link-light:hover {
    color: var(--ecax-orange);
    transform: translateX(5px);
}

.social-icon-light {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: #f4f4f4;
    color: #333;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon-light:hover {
    background-color: var(--ecax-gold);
    color: #000;
    transform: translateY(-3px);
}

/* =========================================
   BOTÓN WHATSAPP GLOBAL (Derecha, Unificado)
   ========================================= */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 0px 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1050;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #1ebe57;
    color: #fff;
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0px 6px 20px rgba(37, 211, 102, 0.6);
}

/* =========================================
   MEDIA QUERIES (Móvil)
   ========================================= */
@media (max-width: 991px) {
    .dropdown-menu {
        margin-top: 0;
    }

    .team-hero-section {
        background-image: none;
        background-color: #ffffff;
        padding: 60px 0;
    }

    .hero-instructor-img {
        max-height: 450px;
        margin-bottom: 30px;
    }

    .hero-instructor-info {
        padding: 20px;
        text-align: center;
    }

    .hero-name {
        font-size: 3rem;
    }

    .reverse-layout {
        flex-direction: column;
    }

    .hero-details li {
        justify-content: center !important;
    }
}

@media (max-width: 768px) {

    body,
    html {
        overflow-x: hidden;
    }

    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .hero-section {
        min-height: 100vh !important;
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        padding-top: 80px !important;
        padding-bottom: 50px !important;
        text-align: center !important;
    }

    .hero-title {
        font-size: 2rem !important;
        margin-bottom: 15px !important;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    }

    .hero-section .btn {
        width: 100% !important;
        max-width: 280px;
        display: block;
    }

    .cta-block {
        padding: 50px 20px !important;
        text-align: center;
    }

    .cta-block h2 {
        font-size: 1.6rem !important;
    }

    .cta-block .btn {
        width: 100% !important;
        max-width: 320px;
        margin-bottom: 10px;
    }

    .stat-number {
        font-size: 2.5rem !important;
    }

    .timeline-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start !important;
        padding-bottom: 10px;
    }

    .timeline-card-premium {
        padding: 30px 20px;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 28px;
    }

    .map-section iframe {
        height: 350px !important;
    }
}

@media (min-width: 992px) {
    .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
        animation: fadeIn 0.3s ease;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu-scroll {
    max-height: 500px;
    overflow-y: auto;
}

/* ========================================================
   CARRUSEL INFINITO DE CLIENTES (Recuperado)
   ======================================================== */
.clients-section {
    background: var(--ecax-light-grey);
    padding: 60px 0;
}

.clients-title {
    color: #333;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 40px;
}

.slider {
    height: 120px;
    margin: auto;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.slide-track {
    animation: scroll 30s linear infinite;
    display: flex;
    width: calc(250px * 14); /* Ancho total para que no se corte */
}

.slide {
    height: 120px;
    width: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Aquí está el truco que evita que los logos se vean gigantes */
.slide img {
    max-height: 80px;
    max-width: 180px;
    filter: grayscale(100%) opacity(0.6); /* Efecto gris elegante */
    transition: 0.4s ease;
    object-fit: contain;
}

.slide img:hover {
    filter: grayscale(0%) opacity(1); /* A color al pasar el mouse */
    transform: scale(1.1);
}

/* La animación de movimiento infinito */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 7)); } /* Ajusta el número según tus fotos */
}
/* =========================================
   OPTIMIZACIÓN EXTREMA PARA MÓVILES GAMA BAJA
   ========================================= */
* {
    /* Fuerza al celular a usar su procesador gráfico (GPU) */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, .btn, .god-card, .cinta-track, .photo-card {
    /* Evita parpadeos y lagazos al hacer scroll */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0); 
    will-change: transform, opacity;
}