@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root{
    --bg:#f0f4fa;
    --primary:#1251c5;
    --primary-light:#2d6ef7;
    --accent:#00c6ff;
    --dark:#0a0f1e;
    --muted:#5a6a85;
    --white:#ffffff;
    --radius:20px;
    --glass:rgba(255,255,255,0.12);
    --glass-border:rgba(255,255,255,0.18);
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Plus Jakarta Sans',sans-serif;
    background:var(--bg);
    color:var(--dark);
    overflow-x:hidden;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar{ width:8px; }
::-webkit-scrollbar-track{ background:transparent; }
::-webkit-scrollbar-thumb{
    background:linear-gradient(var(--primary),var(--accent));
    border-radius:20px;
}

/* ── CONTAINER ── */
.container{ max-width:1200px; }

/* ── NAVBAR ── */
.navbar{
    transition:all 0.4s cubic-bezier(0.4,0,0.2,1);
    padding:16px 0;
    z-index:999;
}

.navbar.scrolled{
    background:rgba(11,77,196,0.96) !important;
    backdrop-filter:blur(16px);
    -webkit-backdrop-filter:blur(16px);
    box-shadow:0 8px 32px rgba(0,0,0,0.18);
    padding:10px 0;
}

.navbar-brand span{
    font-weight:800;
    font-size:17px;
    letter-spacing:-0.3px;
}

.nav-link{
    font-weight:600;
    color:white !important;
    margin-left:12px;
    position:relative;
    font-size:14px;
    letter-spacing:0.2px;
    transition:opacity 0.2s;
}

.nav-link::after{
    content:'';
    position:absolute;
    width:0%;
    height:2px;
    background:var(--accent);
    left:0;
    bottom:-4px;
    transition:width 0.3s cubic-bezier(0.4,0,0.2,1);
    border-radius:2px;
}

.nav-link:hover::after,
.nav-link.active-link::after{
    width:100%;
}

.nav-link.active-link{
    opacity:1;
    color:var(--accent) !important;
}

/* ── HERO ── */
.hero-modern{
    position:relative;
    min-height:100vh;
    background:
        linear-gradient(rgba(0,0,0,0.45),rgba(0,0,0,0.58)),
        url('../img/colegio.jpg');
    background-size:cover;
    background-position:center;
    overflow:hidden;
}

.hero-overlay{
    position:absolute;
    inset:0;
    background:linear-gradient(
        135deg,
        rgba(18,81,197,0.82) 0%,
        rgba(0,198,255,0.35) 100%
    );
}

/* Partículas decorativas */
.hero-particles{
    position:absolute;
    inset:0;
    pointer-events:none;
    z-index:1;
    overflow:hidden;
}

.hero-particles span{
    position:absolute;
    display:block;
    border-radius:50%;
    background:rgba(255,255,255,0.08);
    animation:floatParticle linear infinite;
}

@keyframes floatParticle{
    0%{ transform:translateY(100vh) scale(0); opacity:0; }
    10%{ opacity:1; }
    90%{ opacity:0.6; }
    100%{ transform:translateY(-120px) scale(1); opacity:0; }
}

.hero-glow{
    position:absolute;
    width:600px;
    height:600px;
    background:radial-gradient(circle,rgba(0,198,255,0.22) 0%,transparent 70%);
    border-radius:50%;
    top:-150px;
    right:-150px;
    animation:floatGlow 8s ease-in-out infinite;
    pointer-events:none;
}

.hero-glow-2{
    position:absolute;
    width:400px;
    height:400px;
    background:radial-gradient(circle,rgba(18,81,197,0.3) 0%,transparent 70%);
    border-radius:50%;
    bottom:-100px;
    left:-100px;
    animation:floatGlow 10s ease-in-out infinite reverse;
    pointer-events:none;
}

@keyframes floatGlow{
    0%,100%{ transform:translateY(0px) scale(1); }
    50%{ transform:translateY(40px) scale(1.08); }
}

.hero-content{
    position:relative;
    z-index:2;
}

.badge-school{
    background:var(--glass);
    border:1px solid var(--glass-border);
    padding:10px 20px;
    border-radius:50px;
    backdrop-filter:blur(12px);
    display:inline-flex;
    align-items:center;
    gap:8px;
    margin-bottom:28px;
    font-size:13px;
    font-weight:600;
    letter-spacing:0.5px;
    animation:fadeDown 0.7s ease both;
}

@keyframes fadeDown{
    from{ opacity:0; transform:translateY(-20px); }
    to{ opacity:1; transform:translateY(0); }
}

.hero-modern h1{
    font-size:4.4rem;
    font-weight:800;
    line-height:1.12;
    margin-bottom:24px;
    letter-spacing:-1px;
    animation:fadeUp 0.8s ease 0.1s both;
}

.hero-text{
    font-size:1.15rem;
    line-height:1.85;
    max-width:620px;
    opacity:0.92;
    animation:fadeUp 0.8s ease 0.2s both;
}

@keyframes fadeUp{
    from{ opacity:0; transform:translateY(30px); }
    to{ opacity:1; transform:translateY(0); }
}

.hero-buttons{
    display:flex;
    gap:14px;
    margin-top:36px;
    flex-wrap:wrap;
    animation:fadeUp 0.8s ease 0.3s both;
}

.btn-modern-primary{
    background:linear-gradient(135deg,var(--primary-light),var(--accent));
    color:white;
    padding:15px 32px;
    border-radius:14px;
    text-decoration:none;
    font-weight:700;
    font-size:14px;
    transition:all 0.35s cubic-bezier(0.4,0,0.2,1);
    border:none;
    display:inline-flex;
    align-items:center;
    gap:8px;
    letter-spacing:0.2px;
    position:relative;
    overflow:hidden;
}

.btn-modern-primary::before{
    content:'';
    position:absolute;
    inset:0;
    background:rgba(255,255,255,0.12);
    opacity:0;
    transition:opacity 0.3s;
}

.btn-modern-primary:hover{
    transform:translateY(-4px);
    box-shadow:0 16px 36px rgba(0,198,255,0.4);
    color:white;
}

.btn-modern-primary:hover::before{ opacity:1; }

.btn-modern-outline{
    border:1.5px solid rgba(255,255,255,0.65);
    color:white;
    padding:15px 32px;
    border-radius:14px;
    text-decoration:none;
    font-weight:700;
    font-size:14px;
    transition:all 0.35s cubic-bezier(0.4,0,0.2,1);
    display:inline-flex;
    align-items:center;
    gap:8px;
    backdrop-filter:blur(6px);
}

.btn-modern-outline:hover{
    background:white;
    color:var(--primary);
    border-color:white;
    transform:translateY(-4px);
}

/* ── ESTADÍSTICAS ── */
.hero-stats{
    display:flex;
    gap:16px;
    margin-top:52px;
    flex-wrap:wrap;
    animation:fadeUp 0.8s ease 0.4s both;
}

.stat-card{
    background:var(--glass);
    border:1px solid var(--glass-border);
    backdrop-filter:blur(16px);
    -webkit-backdrop-filter:blur(16px);
    padding:24px 28px;
    border-radius:20px;
    min-width:140px;
    text-align:center;
    transition:all 0.35s cubic-bezier(0.4,0,0.2,1);
    position:relative;
    overflow:hidden;
}

.stat-card::before{
    content:'';
    position:absolute;
    inset:-1px;
    border-radius:20px;
    background:linear-gradient(135deg,rgba(255,255,255,0.2),transparent);
    pointer-events:none;
}

.stat-card:hover{
    transform:translateY(-10px) scale(1.03);
    background:rgba(255,255,255,0.18);
}

.stat-card h3{
    font-size:2.2rem;
    font-weight:800;
    margin-bottom:6px;
    letter-spacing:-1px;
}

.stat-card .stat-suffix{
    font-size:1.4rem;
    opacity:0.75;
}

.stat-card p{
    margin:0;
    font-size:13px;
    font-weight:600;
    opacity:0.8;
    letter-spacing:0.3px;
}

/* ── SCROLL INDICATOR ── */
.scroll-indicator{
    position:absolute;
    bottom:36px;
    left:50%;
    transform:translateX(-50%);
    z-index:5;
    opacity:0.7;
}

.scroll-indicator span{
    display:block;
    width:26px;
    height:44px;
    border:2px solid rgba(255,255,255,0.7);
    border-radius:30px;
    position:relative;
}

.scroll-indicator span::before{
    content:'';
    position:absolute;
    top:8px;
    left:50%;
    transform:translateX(-50%);
    width:5px;
    height:5px;
    background:white;
    border-radius:50%;
    animation:scrollDown 1.8s ease-in-out infinite;
}

@keyframes scrollDown{
    0%{ opacity:0; top:8px; }
    40%{ opacity:1; }
    100%{ opacity:0; top:26px; }
}

/* ── SERVICES ── */
.services-section{
    padding:110px 0;
    background:#f8fbff;
    position:relative;
}

.services-section::before{
    content:'';
    position:absolute;
    top:0; left:0; right:0;
    height:4px;
    background:linear-gradient(90deg,var(--primary),var(--accent));
}

.section-title h2{
    font-size:2.6rem;
    font-weight:800;
    color:var(--dark);
    margin-bottom:16px;
    letter-spacing:-0.8px;
}

.section-title .section-badge{
    display:inline-block;
    background:linear-gradient(135deg,var(--primary),var(--accent));
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
    background-clip:text;
    font-size:13px;
    font-weight:700;
    letter-spacing:2px;
    text-transform:uppercase;
    margin-bottom:12px;
}

.section-title p{
    color:var(--muted);
    max-width:600px;
    margin:auto;
    line-height:1.8;
}

.service-card{
    position:relative;
    overflow:hidden;
    background:white;
    border-radius:24px;
    padding:44px 32px;
    transition:all 0.4s cubic-bezier(0.4,0,0.2,1);
    height:100%;
    border:1px solid rgba(0,0,0,0.05);
    box-shadow:0 4px 20px rgba(0,0,0,0.04);
}

.service-card::before{
    content:'';
    position:absolute;
    width:140px;
    height:140px;
    background:linear-gradient(135deg,rgba(18,81,197,0.08),rgba(0,198,255,0.06));
    border-radius:50%;
    top:-50px;
    right:-50px;
    transition:transform 0.5s cubic-bezier(0.4,0,0.2,1);
}

.service-card::after{
    content:'';
    position:absolute;
    inset:0;
    border-radius:24px;
    border:2px solid transparent;
    background:linear-gradient(135deg,var(--primary),var(--accent)) border-box;
    -webkit-mask:
        linear-gradient(#fff 0 0) padding-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite:destination-out;
    mask-composite:exclude;
    opacity:0;
    transition:opacity 0.4s;
}

.service-card:hover::before{ transform:scale(1.6); }
.service-card:hover::after{ opacity:1; }

.service-card:hover{
    transform:translateY(-14px);
    box-shadow:0 28px 60px rgba(18,81,197,0.14);
}

.service-icon{
    width:80px;
    height:80px;
    margin:0 auto 28px;
    border-radius:22px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(135deg,var(--primary),var(--accent));
    color:white;
    font-size:28px;
    box-shadow:0 12px 28px rgba(18,81,197,0.25);
    transition:transform 0.3s;
}

.service-card:hover .service-icon{
    transform:scale(1.1) rotate(-5deg);
}

.service-card h4{
    font-weight:800;
    margin-bottom:14px;
    font-size:1.15rem;
    letter-spacing:-0.3px;
}

.service-card p{
    color:var(--muted);
    line-height:1.78;
    font-size:0.95rem;
}

/* ── WHY SECTION ── */
.why-section{
    padding:110px 0;
    background:white;
    position:relative;
}

.why-card{
    background:#f8fbff;
    border-radius:24px;
    padding:38px 26px;
    text-align:center;
    transition:all 0.4s cubic-bezier(0.4,0,0.2,1);
    height:100%;
    border:1px solid rgba(18,81,197,0.06);
    position:relative;
    overflow:hidden;
}

.why-card::before{
    content:'';
    position:absolute;
    bottom:0; left:0;
    width:100%;
    height:3px;
    background:linear-gradient(90deg,var(--primary),var(--accent));
    transform:scaleX(0);
    transition:transform 0.4s cubic-bezier(0.4,0,0.2,1);
    border-radius:0 0 24px 24px;
}

.why-card:hover::before{ transform:scaleX(1); }

.why-card:hover{
    transform:translateY(-12px);
    background:white;
    box-shadow:0 20px 50px rgba(18,81,197,0.1);
}

.why-icon-wrap{
    width:68px;
    height:68px;
    margin:0 auto 22px;
    border-radius:18px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(135deg,rgba(18,81,197,0.1),rgba(0,198,255,0.08));
    transition:all 0.3s;
}

.why-card:hover .why-icon-wrap{
    background:linear-gradient(135deg,var(--primary),var(--accent));
}

.why-card i{
    font-size:28px;
    color:var(--primary);
    transition:color 0.3s;
}

.why-card:hover i{ color:white; }

.why-card h5{
    font-weight:800;
    margin-bottom:12px;
    letter-spacing:-0.2px;
}

.why-card p{
    color:var(--muted);
    line-height:1.75;
    font-size:0.92rem;
}

/* ── TESTIMONIOS ── */
.testimonials-section{
    padding:110px 0;
    background:linear-gradient(135deg,#f0f4fa,#e8f0fe);
}

.testimonial-card{
    background:white;
    border-radius:24px;
    padding:36px 30px;
    height:100%;
    border:1px solid rgba(18,81,197,0.07);
    box-shadow:0 4px 20px rgba(0,0,0,0.05);
    transition:all 0.35s cubic-bezier(0.4,0,0.2,1);
    position:relative;
}

.testimonial-card::before{
    content:'"';
    position:absolute;
    top:16px;
    right:24px;
    font-size:80px;
    line-height:1;
    font-weight:800;
    background:linear-gradient(135deg,var(--primary),var(--accent));
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
    background-clip:text;
    opacity:0.25;
    font-family:Georgia,serif;
}

.testimonial-card:hover{
    transform:translateY(-10px);
    box-shadow:0 24px 50px rgba(18,81,197,0.12);
}

.testimonial-stars{
    display:flex;
    gap:4px;
    margin-bottom:16px;
}

.testimonial-stars i{
    color:#f59e0b;
    font-size:16px;
}

.testimonial-card p{
    color:var(--muted);
    line-height:1.8;
    font-size:0.95rem;
    margin-bottom:24px;
    font-style:italic;
}

.testimonial-author{
    display:flex;
    align-items:center;
    gap:14px;
}

.author-avatar{
    width:46px;
    height:46px;
    border-radius:50%;
    background:linear-gradient(135deg,var(--primary),var(--accent));
    display:flex;
    align-items:center;
    justify-content:center;
    color:white;
    font-weight:800;
    font-size:14px;
    flex-shrink:0;
}

.author-info strong{
    display:block;
    font-weight:700;
    font-size:14px;
    letter-spacing:-0.2px;
}

.author-info span{
    font-size:12px;
    color:var(--muted);
}

/* ── CTA ── */
.cta-section{
    padding:110px 0;
    background:linear-gradient(135deg,var(--primary) 0%,#0a3fa8 50%,#0b2d7a 100%);
    position:relative;
    overflow:hidden;
}

.cta-section::before{
    content:'';
    position:absolute;
    width:700px;
    height:700px;
    background:radial-gradient(circle,rgba(0,198,255,0.15) 0%,transparent 70%);
    border-radius:50%;
    top:-200px;
    right:-200px;
    pointer-events:none;
}

.cta-section h2{
    font-size:2.9rem;
    font-weight:800;
    margin-bottom:20px;
    letter-spacing:-0.8px;
}

.cta-section p{
    font-size:1.1rem;
    margin-bottom:38px;
    opacity:0.88;
    line-height:1.8;
}

.cta-features{
    display:flex;
    flex-wrap:wrap;
    gap:14px;
    justify-content:center;
    margin-top:20px;
}

.cta-feature{
    background:rgba(255,255,255,0.1);
    border:1px solid rgba(255,255,255,0.15);
    padding:10px 20px;
    border-radius:50px;
    font-size:13px;
    font-weight:600;
    display:inline-flex;
    align-items:center;
    gap:8px;
    backdrop-filter:blur(8px);
    color:white;
}

/* ── WHATSAPP FLOAT ── */
.whatsapp-float{
    position:fixed;
    right:24px;
    bottom:90px;
    width:58px;
    height:58px;
    border-radius:50%;
    background:#25D366;
    color:white;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:26px;
    text-decoration:none;
    z-index:999;
    box-shadow:0 8px 24px rgba(37,211,102,0.4);
    transition:all 0.3s cubic-bezier(0.4,0,0.2,1);
}

.whatsapp-float::before{
    content:'';
    position:absolute;
    inset:-4px;
    border-radius:50%;
    background:#25D366;
    opacity:0.3;
    animation:waPulse 2.5s ease-in-out infinite;
}

@keyframes waPulse{
    0%,100%{ transform:scale(1); opacity:0.3; }
    50%{ transform:scale(1.35); opacity:0; }
}

.whatsapp-float:hover{
    transform:scale(1.12);
    color:white;
    box-shadow:0 12px 32px rgba(37,211,102,0.5);
}

/* ── BACK TO TOP ── */
.back-to-top{
    position:fixed;
    right:24px;
    bottom:24px;
    width:46px;
    height:46px;
    border-radius:14px;
    background:linear-gradient(135deg,var(--primary),var(--accent));
    color:white;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:18px;
    text-decoration:none;
    z-index:999;
    box-shadow:0 6px 20px rgba(18,81,197,0.35);
    transition:all 0.3s cubic-bezier(0.4,0,0.2,1);
    opacity:0;
    transform:translateY(20px);
    pointer-events:none;
}

.back-to-top.visible{
    opacity:1;
    transform:translateY(0);
    pointer-events:auto;
}

.back-to-top:hover{
    transform:translateY(-4px);
    color:white;
    box-shadow:0 10px 28px rgba(18,81,197,0.45);
}

/* ── CARRUSEL ── */
.carousel{
    border-radius:0 0 24px 24px;
    overflow:hidden;
    position:relative;
}

.carousel img{
    height:520px;
    object-fit:cover;
    filter:brightness(0.92);
}

.carousel-item img{
    transform:scale(1);
    transition:transform 8s ease;
}

.carousel-item.active img{
    transform:scale(1.06);
}

.carousel::before{
    content:'';
    position:absolute;
    inset:0;
    background:linear-gradient(
        to top,
        rgba(0,0,0,0.62) 0%,
        rgba(0,0,0,0.1) 60%,
        transparent 100%
    );
    z-index:1;
}

.carousel-caption{
    z-index:2;
    bottom:10%;
    left:8%;
    right:8%;
    background:rgba(10,15,30,0.4);
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);
    padding:28px 32px;
    border-radius:20px;
    border:1px solid rgba(255,255,255,0.12);
    max-width:680px;
    text-align:left;
    box-shadow:0 16px 40px rgba(0,0,0,0.3);
}

.carousel-caption h3{
    font-size:2.1rem;
    font-weight:800;
    color:#fff;
    margin-bottom:12px;
    letter-spacing:-0.5px;
}

.carousel-caption p{
    color:#e2e8f4;
    font-size:1rem;
    line-height:1.75;
    margin:0;
}

/* ── FOOTER ── */
footer{
    color:white;
    padding:48px 0;
    margin-top:0;
    background:#1251a3;
}

footer a{
    color:rgba(255,255,255,0.65);
    text-decoration:none;
    transition:color 0.2s;
}

footer a:hover{ color:var(--accent); }

/* ── ANIMATIONS ── */
[data-aos]{
    will-change:transform,opacity;
}

/* ── RESPONSIVE ── */
@media(max-width:992px){
    .hero-modern h1{ font-size:3.2rem; }
}

@media(max-width:768px){
    .hero-modern{
        text-align:center;
    }

    .hero-modern h1{
        font-size:2.5rem;
    }

    .hero-text{
        font-size:1rem;
        margin:auto;
    }

    .hero-buttons{
        justify-content:center;
    }

    .hero-stats{
        justify-content:center;
    }

    .carousel img{
        height:280px;
    }

    .carousel-caption{
        left:5%;
        right:5%;
        bottom:6%;
        padding:18px 20px;
        border-radius:14px;
    }

    .carousel-caption h3{
        font-size:1.3rem;
    }

    .carousel-caption p{
        font-size:0.88rem;
    }

    .section-title h2{
        font-size:2rem;
    }

    .cta-section h2{
        font-size:2rem;
    }

    .why-icon-wrap{
        margin-left:auto;
        margin-right:auto;
    }
}