/* =========================================
   1. CONFIGURACIÓN BASE Y VARIABLES
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    /* Paleta Dark Mode Futurista */
    --bg-dark: #0A0C10;
    --bg-card: #161B22;
    --text-main: #E6EDF3;
    --text-muted: #8B949E;
    
    /* Colores Argentina & Marca */
    --accent-cyan: #00AEEF; 
    --arg-celeste: #75C0E0; /* Celeste Bandera */
    --arg-blanco: #FFFFFF;
    --neon-green: #00ff41;
    
    --nav-height: 80px;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }

body {
    background-color: var(--bg-dark);
    background-image: radial-gradient(circle at 50% 0%, #1c2333 0%, #0A0C10 70%);
    color: var(--text-main);
    padding-top: var(--nav-height);
    min-height: 100vh;
    display: flex; 
    flex-direction: column;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.contenedor { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.fade-in { animation: fadeIn 1s ease-in; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* =========================================
   2. HEADER Y LOGO POTENCIADO
   ========================================= */
.header {
    background: rgba(10, 12, 16, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(117, 192, 224, 0.2);
    position: fixed; width: 100%; top: 0; left: 0; z-index: 1000;
    height: var(--nav-height); display: flex; align-items: center;
    transition: all 0.3s ease;
}

.header-content {
    width: 100%; max-width: 1400px;
    margin: 0 auto; padding: 0 2rem;
    display: flex; justify-content: space-between; align-items: center;
}

/* --- LOGO ANIMADO Y VISIBLE --- */
.logo-container { 
    display: flex; 
    align-items: center; 
    gap: 1.5rem; 
    position: relative;
    z-index: 10;
}

.logo, .animated-logo { 
    height: 110px !important; 
    width: auto !important;
    object-fit: contain;
    border-radius: 12px;
    border: 2px solid rgba(0, 174, 239, 0.6);
    background-color: rgba(13, 17, 23, 0.8);
    padding: 4px;
    box-shadow: 0 0 20px rgba(0, 174, 239, 0.4);
    animation: gravity-zero-float 8s infinite ease-in-out;
    position: relative;
    z-index: 2;
}

@keyframes gravity-zero-float { 
    0% { transform: translateY(0) scale(1); box-shadow: 0 0 15px rgba(0, 174, 239, 0.4); } 
    50% { transform: translateY(-8px) scale(1.05); box-shadow: 0 0 30px rgba(0, 174, 239, 0.8), 0 0 10px rgba(255, 255, 255, 0.4); } 
    100% { transform: translateY(0) scale(1); box-shadow: 0 0 15px rgba(0, 174, 239, 0.4); } 
}

/* Texto de la marca (Blanco brillante y legible) */
.brand-name {
    font-size: 1.6rem; 
    font-weight: 700; 
    text-transform: uppercase;
    color: #FFFFFF; 
    text-shadow: 0 0 10px rgba(0, 174, 239, 0.6), 0 0 20px rgba(0, 174, 239, 0.3); 
    letter-spacing: 1px;
}

/* Menú Desktop */
.navegacion-principal { display: flex; gap: 2rem; }
.navegacion-principal a { font-weight: 500; position: relative; color: var(--text-muted); display: flex; align-items: center; gap: 5px;}
.navegacion-principal a:hover, .navegacion-principal a.active { color: var(--arg-celeste); }
.navegacion-principal a::after {
    content: ''; position: absolute; width: 0; height: 2px; bottom: -4px; left: 0;
    background: var(--arg-celeste); transition: 0.3s;
}
.navegacion-principal a:hover::after, .navegacion-principal a.active::after { width: 100%; }

/* Botón menú móvil (Oculto en PC) */
.menu-toggle { display: none; }


/* =========================================
   3. UI GENERAL Y HERO
   ========================================= */
.hero {
    position: relative; min-height: 60vh; display: flex; align-items: center; justify-content: center;
    text-align: center; overflow: hidden;
}

.hero-content h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    line-height: 1.1;
    background: linear-gradient(to right, #fff, var(--arg-celeste), #fff);
    background-size: 200% auto; 
    -webkit-background-clip: text; 
    background-clip: text; 
    color: transparent;
    animation: shine 5s linear infinite;
}

@keyframes shine { to { background-position: 200% center; } }

/* Alerta Verde */
.alerta-inscripcion {
    background: rgba(0, 255, 0, 0.05);
    border: 1px solid var(--neon-green);
    color: var(--neon-green);
    text-align: center; padding: 12px; margin: 20px auto 30px;
    border-radius: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
    max-width: 600px; box-shadow: 0 0 10px rgba(0, 255, 65, 0.2);
    animation: luz-verde 1.5s infinite alternate ease-in-out;
}
@keyframes luz-verde {
    0% { opacity: 1; text-shadow: 0 0 10px var(--neon-green); box-shadow: 0 0 15px rgba(0, 255, 65, 0.4); }
    100% { opacity: 0.6; text-shadow: none; box-shadow: none; }
}

.btn-hero, .boton-card {
    display: inline-block; padding: 12px 30px; border-radius: 50px;
    background: transparent; border: 2px solid var(--arg-celeste); color: var(--arg-celeste);
    font-weight: 600; transition: 0.3s; cursor: pointer; text-align: center;
}
.btn-hero:hover, .boton-card:hover {
    background: var(--arg-celeste); color: #000;
    box-shadow: 0 0 20px rgba(0, 174, 239, 0.6); transform: translateY(-3px);
}
.text-gradiente-animado {
    background: linear-gradient(90deg, #fff, var(--arg-celeste));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.card-feature {
    background: var(--bg-card); padding: 2rem; border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05); transition: 0.4s; position: relative; overflow: hidden;
}
.card-feature:hover { transform: translateY(-10px); border-color: var(--arg-celeste); box-shadow: 0 10px 30px rgba(0, 174, 239, 0.15); }


/* =========================================
   4. CARRUSEL (SWIPER)
   ========================================= */
.cursos-container-limit { max-width: 1400px; margin: 0 auto; padding: 0 20px; position: relative; }
.cursos-slider { padding: 50px 0 80px 0 !important; }

.swiper-slide {
    height: auto !important; 
    display: flex;
}

.card-curso {
    background-color: var(--bg-card); border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px; overflow: hidden; width: 100%; height: 100%; display: flex; flex-direction: column;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-curso img { width: 100%; height: 200px; object-fit: cover; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.card-content { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; text-align: center; }
.card-content p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.5rem; line-height: 1.6; flex-grow: 1; }
.ia-tag {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    background: rgba(0, 174, 239, 0.1); color: var(--arg-celeste); font-size: 0.8rem; font-weight: 600; padding: 6px 12px;
    border-radius: 50px; margin: 0 auto 15px auto; border: 1px solid rgba(0, 174, 239, 0.3);
}
.boton-card { margin-top: auto; display: block; text-align: center; }

.swiper-button-next, .swiper-button-prev { color: var(--arg-celeste); width: 50px; height: 50px; background: rgba(0,0,0,0.5); border-radius: 50%; backdrop-filter: blur(5px); }
.swiper-button-next::after, .swiper-button-prev::after { font-size: 20px; font-weight: bold; }
.swiper-pagination-bullet { background: #fff; opacity: 0.3; }
.swiper-pagination-bullet-active { background: var(--arg-celeste); opacity: 1; }


/* =========================================
   5. CONTACTO & FORMULARIO NIVEL PRO
   ========================================= */
.contacto-bg { position: relative; overflow: hidden; }
.titulo-pasion { font-size: 2.5rem; text-align: center; margin-bottom: 1rem; color: #fff; }

.formulario-futurista {
    max-width: 800px; 
    margin: 0 auto 5rem;
    background: rgba(22, 27, 34, 0.75); 
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1); 
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px; 
    padding: 3rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.05); 
    position: relative; 
    transition: all 0.5s ease;
    overflow: hidden;
}

.formulario-futurista::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(117, 192, 224, 0.1) 0%, transparent 60%);
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

.campo { margin-bottom: 1.5rem; }
.campo label { display: block; color: var(--arg-celeste); margin-bottom: 0.5rem; }
.campo input, .campo select, .campo textarea {
    width: 100%; 
    padding: 15px 20px; 
    background: rgba(10, 12, 16, 0.6); 
    border: 1px solid rgba(255,255,255,0.1); 
    border-radius: 15px; 
    color: #fff;
    font-size: 1rem;
    transition: 0.3s;
    outline: none;
}

.campo input:focus, .campo select:focus, .campo textarea:focus {
    background: rgba(0, 174, 239, 0.05);
    border-color: var(--arg-celeste);
    box-shadow: 0 0 15px rgba(0, 174, 239, 0.3);
    transform: translateY(-2px);
}

select option {
    background-color: #161B22;
    color: #fff;
    padding: 10px;
}

.boton-contacto {
    width: 100%; padding: 15px; border: none; border-radius: 50px;
    background: linear-gradient(90deg, var(--accent-cyan), #fff, var(--accent-cyan));
    background-size: 200%; color: #000; font-weight: 700; cursor: pointer; text-transform: uppercase;
}


/* =========================================
   6. FOOTER GENERAL
   ========================================= */
.footer-futurista {
    background: linear-gradient(to top, #000 0%, var(--bg-dark) 100%);
    border-top: 1px solid transparent;
    border-image: linear-gradient(90deg, transparent, var(--arg-celeste), transparent) 1;
    padding: 4rem 0 1rem; margin-top: auto;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; }
.tagline { color: var(--text-muted); margin-top: 1rem; font-size: 0.9rem; }
.arg-text { background: linear-gradient(90deg, var(--arg-celeste), #FFF); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; }
.footer-nav h4, .footer-contact h4 { color: #FFF; margin-bottom: 1.5rem; border-bottom: 2px solid var(--arg-celeste); display: inline-block; }
.nav-links li { margin-bottom: 0.8rem; }
.nav-links a { color: var(--text-muted); display: flex; align-items: center; gap: 8px;}
.footer-bottom { text-align: center; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.05); font-size: 0.85rem; color: var(--text-muted); }
.highlight { color: var(--arg-celeste); }

/* Cards Equipo */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.team-member { background: var(--bg-card); border-radius: 20px; text-align: center; padding-bottom: 20px; border: 1px solid rgba(255,255,255,0.05); }
.member-img-wrapper { width: 120px; height: 120px; margin: 2rem auto; border-radius: 50%; padding: 3px; background: linear-gradient(180deg, var(--arg-celeste), #fff); }
.member-img-wrapper img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--bg-card); }


/* =========================================
   7. MODO ARGENTINA (ESTÁNDAR Y MUNDIAL)
   ========================================= */
@keyframes bandera-flameando { 
    0% { background-position: 0% 50%; } 
    100% { background-position: 100% 50%; } 
}

@keyframes borde-vivo {
    0% { box-shadow: 0 0 20px rgba(117, 192, 224, 0.2); border-color: rgba(117, 192, 224, 0.5); }
    50% { box-shadow: 0 0 50px rgba(117, 192, 224, 0.6); border-color: #fff; }
    100% { box-shadow: 0 0 20px rgba(117, 192, 224, 0.2); border-color: rgba(117, 192, 224, 0.5); }
}

@keyframes agite-mundial {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-3px, 3px) rotate(-2deg); }
    50% { transform: translate(3px, -3px) rotate(2deg); }
    75% { transform: translate(-3px, -3px) rotate(-2deg); }
    100% { transform: translate(3px, 3px) rotate(2deg); }
}

@keyframes luces-campeon {
    0% { box-shadow: 0 0 15px #fff, 0 0 30px #75C0E0; border-color: #fff; }
    50% { box-shadow: 0 0 50px #75C0E0, 0 0 80px #fff; border-color: #75C0E0; }
    100% { box-shadow: 0 0 15px #fff, 0 0 30px #75C0E0; border-color: #fff; }
}

@keyframes vuelta-olimpica {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.3) rotate(180deg); filter: drop-shadow(0 0 20px #fff); }
    100% { transform: scale(1) rotate(360deg); }
}

/* Aplicación Modo Argentina */
body.modo-argentina .header {
    background: linear-gradient(115deg, #75C0E0 0%, #fff 20%, #75C0E0 40%, #fff 60%, #75C0E0 80%, #fff 100%);
    background-size: 400% 400%;
    animation: bandera-flameando 1s linear infinite;
    border-bottom: 3px solid #fff;
    box-shadow: 0 0 50px rgba(117, 192, 224, 0.8);
}

body.modo-argentina .header a, 
body.modo-argentina .brand-name { 
    color: #0b253a !important; 
    font-weight: 800;
    text-shadow: 0px 1px 0px rgba(255,255,255,0.5);
    -webkit-text-fill-color: initial;
}

body.modo-argentina .formulario-futurista {
    background: rgba(10, 12, 16, 0.9);
    border: 2px solid var(--arg-celeste);
    animation: borde-vivo 2s infinite alternate;
}

body.modo-argentina .campo label { color: var(--arg-celeste); text-shadow: 0 0 10px rgba(117, 192, 224, 0.4); }
body.modo-argentina .titulo-pasion { text-shadow: 0 0 20px var(--arg-celeste); }

body.modo-argentina .team-member {
    background: linear-gradient(135deg, rgba(10,12,16,0.9) 0%, rgba(117,192,224,0.2) 100%);
    animation: agite-mundial 0.3s infinite ease-in-out, luces-campeon 0.5s infinite alternate;
    border: 2px solid #fff;
    z-index: 100;
}

body.modo-argentina .member-img-wrapper {
    border-color: #fff;
    box-shadow: 0 0 20px var(--arg-celeste);
    animation: luces-campeon 0.2s infinite alternate;
}

body.modo-argentina .animated-logo { animation: vuelta-olimpica 1s infinite linear; }

body.modo-argentina .logo-container::before {
    width: 100%; height: 100%;
    background: radial-gradient(circle, var(--arg-celeste), transparent);
    opacity: 0.8;
    animation: luces-campeon 0.1s infinite;
}

body.modo-argentina .footer-futurista {
    background: linear-gradient(180deg, #0A0C10 0%, #75C0E0 100%);
    border-top: 4px solid #fff;
}


/* =========================================
   8. MEDIA QUERIES (CELULARES: ANDROID & IPHONE) - PERFECTO Y CENTRADO
   ========================================= */
@media (max-width: 768px) {
    :root {
        --nav-height: 75px;
    }

    body {
        padding-top: var(--nav-height);
    }

    .header {
        height: var(--nav-height);
        padding: 0 1rem;
        background: rgba(10, 12, 16, 0.98);
        width: 100%;
        left: 0;
        top: 0;
    }

    .header-content {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        max-width: 100%;
        padding: 0 0.5rem;
    }

    /* Logo y marca compactos a la izquierda */
    .logo-container {
        gap: 10px;
        align-items: center;
    }

    .logo, .animated-logo {
        height: 42px !important;
        width: auto !important;
    }

    .brand-name {
        font-size: 1.15rem !important;
    }

    /* Botón Hamburguesa estilizado a la derecha */
    .menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: 2px solid var(--arg-celeste);
        color: var(--arg-celeste);
        font-size: 1.3rem;
        width: 42px;
        height: 42px;
        border-radius: 10px;
        cursor: pointer;
        transition: 0.3s;
    }

    .menu-toggle:hover {
        background: var(--arg-celeste);
        color: #000;
    }

    /* Menú Desplegable Flotante Pantalla Completa (Evita cortes en iPhone/Android) */
    .navegacion-principal {
        display: none; 
        flex-direction: column;
        position: fixed; 
        top: var(--nav-height);
        left: 0;
        width: 100vw;
        background-color: rgba(10, 12, 16, 0.98);
        border-bottom: 3px solid var(--arg-celeste);
        padding: 2rem 1.5rem;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.9);
        z-index: 9999;
        gap: 12px;
        box-sizing: border-box;
    }

    .navegacion-principal.active {
        display: flex !important;
    }

    .navegacion-principal a {
        font-size: 1.15rem;
        padding: 12px;
        width: 100%;
        text-align: center;
        background: rgba(255, 255, 255, 0.04);
        border-radius: 12px;
    }

    .navegacion-principal a.active,
    .navegacion-principal a:hover {
        background: var(--arg-celeste);
        color: #000;
    }

    /* Contenedores y márgenes generales centrados */
    .contenedor {
        padding: 0 1.25rem;
    }

    .hero { 
        min-height: auto; 
        padding: 25px 0; 
    }

    .hero-content h1 {
        font-size: 1.6rem;
        line-height: 1.25;
        padding: 0 10px;
        word-wrap: break-word;
    }
    
    .hero-content p { 
        font-size: 0.9rem; 
        padding: 0 10px; 
    }

    /* Formularios y tarjetas adaptadas para celulares */
    .formulario-futurista {
        padding: 1.5rem 1rem;
        border-radius: 20px;
        margin: 0 10px 3rem 10px;
    }

    /* Footer Móvil Reducido y Centrado */
    .footer-futurista { 
        padding: 2rem 0 1rem; 
        text-align: center; 
    }

    .footer-grid {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        padding: 0 1rem;
    }

    .footer-brand, .footer-nav, .footer-contact { 
        display: flex; 
        flex-direction: column; 
        align-items: center; 
        width: 100%;
        text-align: center;
    }

    .tagline { 
        font-size: 0.8rem; 
        max-width: 300px; 
        margin: 0 auto 1rem auto; 
    }
    
    .footer-nav h4, .footer-contact h4 { 
        font-size: 1.1rem; 
        margin-bottom: 1rem; 
        border-bottom-width: 1px; 
    }

    .nav-links a, .footer-contact p { 
        justify-content: center; 
        font-size: 0.9rem; 
    }
    
    .footer-social { 
        margin-top: 1rem; 
        gap: 1.5rem; 
    }
    
    .footer-social a { 
        font-size: 1.2rem; 
    }

    .email-link { 
        word-break: break-all; 
        font-size: 0.8rem; 
        padding: 0 1rem; 
    }

    .footer-bottom { 
        margin-top: 2rem; 
        padding-top: 1rem; 
        font-size: 0.75rem; 
    }

    .swiper-button-next, .swiper-button-prev { 
        transform: scale(0.6); 
    }
}