/* ================================================
   HERO ULTRA-PROFESIONAL & NAVIGATION OPTIMIZATION
   ================================================ */

/* --- NAVIGATION MOBILE STYLES --- */
@media (max-width: 992px) {
    nav .container {
        padding: 0 20px;
    }

    .hamburger {
        display: block !important;
        z-index: 1001;
    }

    .nav-links {
        display: flex !important;
        /* Override display:none from styles.css so CSS transform transition works */
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(2, 6, 23, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        align-items: center;
        padding: 40px 20px;
        gap: 20px;
        transform: translateY(-110%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        /* Prevent interaction while hidden off-screen */
        pointer-events: none;
    }

    .nav-links.active {
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-links a {
        font-size: 1.1rem;
        width: 100%;
        text-align: center;
        padding: 12px;
        margin: 0;
        border-radius: 8px;
    }

    .nav-links a:hover {
        background: rgba(255, 255, 255, 0.05);
    }

    /* Botón Inscripción en Móvil */
    .nav-links a[href="contacto.html"] {
        background: var(--color-yellow) !important;
        color: #020617 !important;
        font-weight: 800;
        margin-top: 10px;
        max-width: 100%;
    }
}

/* --- HERO FORM STYLES (Replaces Inline CSS) --- */
.hero-form {
    background: #FFFFFF;
    padding: 40px 32px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 10;
    width: 420px;
    max-width: 100%;
    transition: all 0.3s ease;
}

.hero-form h3 {
    color: #002060;
    margin-bottom: 10px;
    font-size: 1.6rem;
    font-weight: 800;
}

.hero-form p {
    color: #64748b;
    margin-bottom: 25px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.hero-input-group {
    margin-bottom: 16px;
}

.hero-input-group label {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    color: #334155;
    margin-bottom: 8px;
}

.hero-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    font-size: 1rem;
    transition: all 0.3s ease;
    height: 52px;
    /* Touch friendly */
}

.hero-input:focus {
    border-color: #00D9FF;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 217, 255, 0.1);
    outline: none;
}

.hero-input::placeholder {
    color: #94a3b8;
}

.btn-hero-submit {
    width: 100%;
    font-size: 1.1rem;
    padding: 16px;
    font-weight: 800;
    margin-top: 10px;
    border-radius: 12px;
    background: #FFD500;
    color: #002060;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 213, 0, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-hero-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 213, 0, 0.5);
    background: #ffe033;
}

/* --- RESPONSIVE ADJUSTMENTS FOR HERO --- */

/* Tablet (768px - 1023px) */
@media (max-width: 1024px) {
    .hero-ultra {
        padding: 100px 0 80px 0;
    }

    .hero-form {
        width: 100%;
        max-width: 380px;
        padding: 32px 24px;
        margin: 0 auto;
    }
}

/* Mobile (320px - 767px) */
@media (max-width: 767px) {
    .hero-ultra {
        padding: 100px 0 60px 0;
        /* Top padding ensures space from fixed nav */
        background: linear-gradient(180deg, #001529 0%, #00284d 100%);
    }

    .hero-ultra-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-content-left {
        text-align: center;
        padding: 0 10px;
    }

    /* Badge */
    .admission-badge {
        margin: 0 auto 20px auto;
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    /* Typography */
    .hero-main-title {
        font-size: 2.2rem;
        line-height: 1.1;
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 25px;
    }

    /* Features */
    .hero-features {
        text-align: left;
        display: inline-block;
        margin: 0 auto 30px auto;
    }

    .hero-features li {
        font-size: 0.9rem;
        align-items: flex-start;
    }

    /* Form Mobile Card */
    .hero-visual-right {
        margin-top: 0;
        padding: 0;
    }

    .hero-form {
        max-width: 100%;
        padding: 24px 20px;
        margin: 0 10px;
        /* Margen lateral */
        border-radius: 20px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    }

    .hero-form h3 {
        font-size: 1.4rem;
        text-align: center;
    }

    .hero-form p {
        text-align: center;
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .btn-hero-submit {
        height: 56px;
    }

    /* Hide Decorative Elements on Mobile */
    .hero-mascot {
        display: none !important;
    }

    .hero-planes {
        opacity: 0.5;
    }
}


.hero-ultra {
    position: relative;
    min-height: auto;
    /* Changed from 100vh to avoid centering issues on short screens */
    background: linear-gradient(180deg, #001F3D 0%, #003666 50%, #00508A 100%);
    display: flex;
    align-items: center;
    padding: 180px 0 100px 0;
    /* Increased top padding to clear navbar */
    overflow: hidden;
}

/* Efecto Aviones de Papel en Fondo */
.hero-planes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Detran de grid que es 10 */
    overflow: hidden;
    pointer-events: none;
}

.paper-plane {
    position: absolute;
    opacity: 0;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.paper-plane-1 {
    width: 120px;
    top: 15%;
    left: -150px;
    opacity: 0.9;
    animation: flightPath1 8s linear infinite;
    animation-delay: 0s;
}

.paper-plane-2 {
    width: 80px;
    top: 50%;
    left: -150px;
    opacity: 0.7;
    animation: flightPath2 12s linear infinite;
    animation-delay: 4s;
}

@keyframes flightPath1 {
    0% {
        transform: translate(0, 0) rotate(15deg);
        opacity: 0;
        left: -100px;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        transform: translate(120vw, -100px) rotate(15deg);
        opacity: 0;
        left: 0;
        /* Base position override */
    }
}

@keyframes flightPath2 {
    0% {
        transform: translate(0, 0) rotate(25deg) scale(0.8);
        opacity: 0;
        left: -100px;
    }

    15% {
        opacity: 0.4;
    }

    85% {
        opacity: 0.4;
    }

    100% {
        transform: translate(120vw, -200px) rotate(45deg) scale(0.8);
        opacity: 0;
        left: 0;
    }
}

/* ========== GRID LAYOUT ========== */
/* ========== GRID LAYOUT ========== */
.hero-ultra-grid {
    display: grid;
    grid-template-columns: 1.22fr 1fr;
    /* 55% - 45% ratio */
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 10;
}

/* ========== CONTENIDO IZQUIERDA ========== */
.hero-content-left {
    max-width: 600px;
}



/* Título Principal */
.hero-main-title {
    font-size: 2.8rem;
    /* Reduced to avoid overflow */
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
    color: #FFFFFF;
    margin: 0 0 15px 0;
}

.title-highlight {
    display: block;
    background: linear-gradient(135deg, #FFD500 0%, #FFA500 50%, #FFD500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    margin-top: 5px;
}

.title-highlight::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 180px;
    height: 4px;
    background: linear-gradient(90deg, #FFD500, transparent);
    border-radius: 2px;
}

/* Subtítulo */
.hero-subtitle {
    font-size: 1rem;
    /* Reduced to 1rem */
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    line-height: 1.5;
    margin: 0 0 25px 0;
}

/* Features List */
.hero-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.hero-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    /* Reduced margin */
    color: #FFFFFF;
    font-size: 0.95rem;
    /* Slightly smaller */
    font-weight: 400;
}

.hero-features svg {
    flex-shrink: 0;
    color: #00F0FF;
    width: 20px;
    height: 20px;
}

/* Acciones */
.hero-actions {
    display: flex;
    gap: 14px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.btn-primary-hero,
.btn-secondary-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
}

.btn-primary-hero {
    background: linear-gradient(135deg, #FFD500, #FFA500);
    color: #000000;
    box-shadow: 0 8px 24px rgba(255, 213, 0, 0.35);
}

.btn-primary-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(255, 213, 0, 0.5);
}

.btn-primary-hero svg {
    transition: transform 0.3s;
}

.btn-primary-hero:hover svg {
    transform: translateX(4px);
}

.btn-secondary-hero {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
}

.btn-secondary-hero:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}



/* ========== VISUAL DERECHA ========== */
.hero-visual-right {
    position: relative;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 0;
}

/* León Mascota - MÁS PEQUEÑO Y ARRIBA */
.mascot-container {
    position: relative;
    z-index: 3;
    max-width: 300px;
    width: 100%;
    margin-top: 20px;
}

.mascot-main {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 15px 40px rgba(0, 0, 0, 0.4));
    animation: mascotFloat 6s ease-in-out infinite;
}

@keyframes mascotFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

.mascot-main:hover {
    animation: mascotWave 0.6s ease-in-out;
}

@keyframes mascotWave {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-6deg);
    }

    75% {
        transform: rotate(6deg);
    }
}

/* Galería Carrusel - 5 imágenes, muestra 3 rotando */
.image-showcase {
    position: absolute;
    bottom: -130px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 550px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    z-index: 2;
}

.showcase-card {
    position: relative;
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid rgba(0, 240, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    display: none;
    transform: scale(0.95);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* JavaScript controlará cuáles son visibles */
.showcase-card[style*="display: block"] {
    opacity: 1;
    transform: scale(1);
}

/* Imagen activa en el carrusel */
.showcase-card.active {
    border-color: rgba(0, 240, 255, 0.7);
    box-shadow: 0 8px 25px rgba(0, 240, 255, 0.5);
}

.showcase-card:hover {
    transform: translateY(-5px) scale(1.02) !important;
    border-color: rgba(0, 240, 255, 0.9);
    box-shadow: 0 12px 35px rgba(0, 240, 255, 0.6);
}

.showcase-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.showcase-card:hover img {
    transform: scale(1.1);
}

/* Badge - MÁS A LA IZQUIERDA */
.floating-badge {
    position: absolute;
    top: 10px;
    left: -110px;
    background: #FFFFFF;
    border-radius: 12px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    z-index: 4;
    animation: badgeFloat 4s ease-in-out infinite;
}

@keyframes badgeFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.badge-icon {
    font-size: 1.8rem;
}

.badge-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.badge-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #001F3D;
    line-height: 1;
    white-space: nowrap;
}

.badge-subtitle {
    font-size: 0.7rem;
    color: #666;
    white-space: nowrap;
}

/* ========== RESPONSIVE ========== */
/* Changed breakpoint from 1200px to 992px to keep laptop view side-by-side */
@media (max-width: 992px) {
    .hero-ultra-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .hero-content-left {
        max-width: none;
        text-align: center;
    }

    .hero-main-title {
        font-size: 3rem;
    }

    .hero-features {
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .trust-bar {
        max-width: 500px;
        margin: 0 auto;
    }

    .hero-visual-right {
        height: auto;
    }

    .mascot-container {
        max-width: 280px;
    }

    .image-showcase {
        width: 100%;
        max-width: 500px;
        bottom: -100px;
    }

    .floating-badge {
        left: 50%;
        transform: translateX(-50%);
        top: -30px;
    }
}

@media (max-width: 768px) {
    .hero-main-title {
        font-size: 2.4rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-features {
        display: none;
        /* Hide features on mobile to reduce scrolling/clutter */
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .btn-primary-hero,
    .btn-secondary-hero {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }

    .trust-bar {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .trust-number {
        font-size: 1.4rem;
    }

    .trust-label {
        font-size: 0.7rem;
    }

    /* Form adjustment */
    .hero-visual-right form {
        padding: 20px !important;
        width: 100%;
    }

    .hero-mascot {
        width: 150px;
        right: -10px;
        /* Pull inside to avoid cutoff */
        bottom: -25px;
    }
}

@media (max-width: 480px) {
    .hero-main-title {
        font-size: 1.8rem;
        /* Fit on small phones */
    }

    .trust-bar {
        gap: 5px;
    }

    .hero-visual-right {
        width: 100%;
    }

    .hero-mascot {
        width: 130px;
        right: -5px;
        /* Fully integrated */
        bottom: -20px;
    }
}

/* =========================================
   MASCOTA LEÓN APOYADO EN FORMULARIO
   ========================================= */
/* =========================================
   MASCOTA LEÓN APOYADO EN FORMULARIO
   ========================================= */
.hero-mascot {
    position: absolute;
    bottom: 20px;
    right: -300px;
    /* Closer starting point for large screens */
    left: auto;
    width: 660px;
    height: auto;
    z-index: 20;
    filter: drop-shadow(10px 20px 40px rgba(0, 0, 0, 0.5));
    pointer-events: none;
    animation: mascotBreath 4s ease-in-out infinite;
}

@keyframes mascotBreath {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

@media (max-width: 1700px) {
    .hero-mascot {
        right: -350px;
        /* Move out as screen gets tighter */
        width: 600px;
    }
}

@media (max-width: 1500px) {
    .hero-mascot {
        right: -300px;
        /* Keep checking overlap */
        width: 500px;
        /* Shrink faster to avoid collision */
        bottom: 10px;
    }
}

@media (max-width: 1300px) {
    .hero-mascot {
        right: -200px;
        width: 400px;
        bottom: 0px;
    }
}

@media (max-width: 1100px) {

    /* Tablet adjustment */
    .hero-mascot {
        right: -100px;
        width: 300px;
        bottom: 0px;
    }
}

@media (max-width: 992px) {
    .hero-ultra {
        padding: 80px 0 60px 0;
        /* Reduced padding */
        height: auto;
        min-height: auto;
    }

    .hero-ultra-grid {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .hero-visual-right {
        height: auto;
        /* Allow form to determine height */
        padding-top: 0;
        margin-top: 30px;
        /* Ensure mascot doesn't overflow horizontally causing scroll or cutoff */
        overflow: visible;
    }

    .hero-mascot {
        /* Mobile adaptation: Visible but smaller and positioned carefully */
        display: block;
        right: -20px;
        width: 180px;
        bottom: -30px;
        z-index: 20;
    }
}

@media (max-width: 768px) {
    .hero-main-title {
        font-size: 2.2rem;
        /* Even smaller title for mobile readability */
        line-height: 1.1;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .btn-primary-hero,
    .btn-secondary-hero {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }

    .trust-bar {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .trust-number {
        font-size: 1.4rem;
    }

    .trust-label {
        font-size: 0.7rem;
    }

    /* Form adjustment */
    .hero-visual-right form {
        padding: 20px !important;
        width: 100%;
    }

    .hero-mascot {
        width: 150px;
        right: -10px;
        /* Pull inside to avoid cutoff */
        bottom: -25px;
    }
}

@media (max-width: 480px) {
    .hero-main-title {
        font-size: 1.8rem;
        /* Fit on small phones */
    }

    .trust-bar {
        gap: 5px;
    }

    .hero-visual-right {
        width: 100%;
    }

    .hero-mascot {
        width: 130px;
        right: -5px;
        /* Fully integrated */
        bottom: -20px;
    }
}