/* ══════════════════════════════════════
   Shared utilities
══════════════════════════════════════ */

.section-tag {

    display: inline-block;

    font-size: .75rem;
    font-weight: 700;

    letter-spacing: 2.5px;
    text-transform: uppercase;

    color: #dca84d;

    margin-bottom: 12px;
}

.section-tag--light {

    color: #ffd76d;
}

.section-header {

    text-align: center;

    margin-bottom: 48px;
}

.section-header h2 {

    font-size: 2rem;

    color: #07193d;

    margin-top: 6px;
}


.btn-outline {

    display: inline-block;

    padding: 12px 26px;

    border-radius: 30px;

    border: 2px solid rgba(255, 255, 255, .7);

    color: white;

    font-weight: 600;
    font-size: .95rem;

    text-decoration: none;

    transition:
        background .25s,
        border-color .25s;
}

.btn-outline:hover {

    background: rgba(255, 255, 255, .1);

    border-color: white;
}


.btn-ghost {

    display: inline-block;

    padding: 10px 22px;

    border-radius: 30px;

    border: 2px solid #dca84d;

    color: #dca84d;

    font-weight: 600;
    font-size: .9rem;

    text-decoration: none;

    transition:
        background .25s,
        color .25s;
}

.btn-ghost:hover {

    background: #dca84d;

    color: #07193d;
}


.btn-lg {

    padding: 16px 36px;

    font-size: 1.05rem;
}




/* ══════════════════════════════════════
   Hero Carousel
══════════════════════════════════════ */

.hero-carousel {

    position: relative;

    height: calc(100vh - 90px);
    min-height: 520px;

    overflow: hidden;
}

.carousel-inner {

    position: relative;

    width: 100%;
    height: 100%;
}

.carousel-slide {

    position: absolute;
    inset: 0;

    background-color: #07193d;

    opacity: 0;

    transition: opacity .8s ease;

    overflow: hidden;

     /* Solo el slide activo recibe eventos de puntero */
     pointer-events: none;
}

.carousel-slide.active {

    opacity: 1;

     pointer-events: auto;
}

.slide-media {

    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}

.slide-overlay {

    position: absolute;
    inset: 0;

    background-color: rgba(0, 0, 0, 0.5);
}

.slide-content {

    position: absolute;

    top: 50%;
    left: 10%;

    transform: translateY(-50%);

    max-width: 580px;

    color: white;
}

.slide-tag {

    display: inline-block;

    font-size: .75rem;
    font-weight: 700;

    letter-spacing: 3px;
    text-transform: uppercase;

    color: #ffd76d;

    background: rgba(220, 168, 77, .15);

    border: 1px solid rgba(220, 168, 77, .4);

    padding: 5px 14px;

    border-radius: 20px;

    margin-bottom: 20px;
}

.slide-content h1 {

    font-size: clamp(1.8rem, 3.5vw, 2.8rem);

    line-height: 1.2;

    margin-bottom: 18px;

    font-weight: 700;
}

.slide-content h1 em {

    font-style: normal;

    color: #ffd76d;
}

.slide-content p {

    font-size: 1.05rem;
    line-height: 1.65;

    color: rgba(255, 255, 255, .85);

    margin-bottom: 32px;
}

.slide-actions {

    display: flex;

    gap: 14px;

    flex-wrap: wrap;
}


/* Arrows */

.carousel-arrow {

    position: absolute;

    top: 50%;
    transform: translateY(-50%);

    background: rgba(255, 255, 255, .12);

    border: 2px solid rgba(255, 255, 255, .3);

    color: white;

    width: 50px;
    height: 50px;

    border-radius: 50%;

    font-size: 1.8rem;
    line-height: 1;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 10;

    transition:
        background .25s,
        border-color .25s;
}

.carousel-arrow:hover {

    background: rgba(220, 168, 77, .4);

    border-color: #dca84d;
}

.carousel-arrow.prev {
    left: 24px;
}

.carousel-arrow.next {
    right: 24px;
}


/* Dots */

.carousel-dots {

    position: absolute;

    bottom: 28px;
    left: 50%;

    transform: translateX(-50%);

    display: flex;

    gap: 10px;

    z-index: 10;
}

.dot {

    width: 10px;
    height: 10px;

    border-radius: 50%;

    background: rgba(255, 255, 255, .4);

    border: none;

    cursor: pointer;

    padding: 0;

    transition:
        background .3s,
        transform .3s;
}

.dot.active {

    background: #dca84d;

    transform: scale(1.3);
}

.dot:hover {

    background: rgba(255, 255, 255, .7);
}




/* ══════════════════════════════════════
   Stats bar
══════════════════════════════════════ */

.stats-bar {

    display: flex;
    justify-content: center;
    align-items: center;

    flex-wrap: wrap;

    padding: 32px 40px;

    background:
        linear-gradient(135deg,
            #07193d,
            #0c2b66,
            #09142c);

    border-bottom: 3px solid #dca84d;
}

.stat-item {

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 4px;

    padding: 0 48px;
}

.stat-item strong {

    font-size: 2rem;
    font-weight: 700;

    color: #ffd76d;
}

.stat-item span {

    font-size: .85rem;

    color: rgba(255, 255, 255, .75);

    letter-spacing: .5px;

    text-align: center;
}

.stat-divider {

    width: 1px;
    height: 40px;

    background: rgba(220, 168, 77, .35);
}




/* ══════════════════════════════════════
   About teaser
══════════════════════════════════════ */

.about-teaser {

    display: grid;
    grid-template-columns: 1fr 1fr;

    min-height: 480px;
}

.about-image {

    overflow: hidden;
}

.about-img-inner {

    width: 100%;
    height: 100%;
    min-height: 480px;

    overflow: hidden;
}

.about-img-inner img,
.about-img-inner video {

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    display: block;
}

.about-content {

    padding: 72px 64px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    background: white;
}

.about-content h2 {

    font-size: 1.85rem;

    color: #07193d;

    line-height: 1.3;

    margin: 8px 0 18px;
}

.about-content>p {

    color: #4a5568;

    line-height: 1.75;

    margin-bottom: 28px;
}

.about-features {

    list-style: none;

    display: flex;
    flex-direction: column;

    gap: 12px;

    margin-bottom: 36px;
}

.about-features li {

    color: #2b3654;
    font-size: .95rem;

    display: flex;
    align-items: center;

    gap: 10px;
}

.check-icon {

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 22px;
    height: 22px;

    border-radius: 50%;

    background:
        linear-gradient(135deg, #dca84d, #ffd76d);

    color: #07193d;

    font-size: .75rem;
    font-weight: 700;

    flex-shrink: 0;
}

.check-icon svg {

    width: 13px;
    height: 13px;

    stroke: #07193d;

    stroke-width: 3;
}




/* ══════════════════════════════════════
   News section
══════════════════════════════════════ */

.news-section {

    padding: 80px;

    background: #f5f7fc;
}

.news-grid {

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 28px;
}

.news-card {

    background: white;

    overflow: hidden;

    box-shadow:
        0 4px 20px rgba(0, 0, 0, .07);

    transition:
        transform .3s,
        box-shadow .3s;
}

.news-card--fullimg {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card--fullimg .news-img {
    height: 260px;
    min-height: 200px;
    max-height: 320px;
    width: 100%;
    object-fit: cover;
    object-position: center;
    background: #eaeaea;
}

.news-card--fullimg .news-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


.news-card:hover {

    transform: translateY(-5px);

    box-shadow:
        0 12px 35px rgba(0, 0, 0, .13);
}

.news-img {

    height: 190px;

    background:
        linear-gradient(135deg,
            #07193d,
            #1a3d7c,
            #0c2b66);

    /* swap with: background-image: url(...); background-size: cover; */
}

.news-body {

    padding: 24px;
}

.news-date {

    font-size: .78rem;
    font-weight: 600;

    letter-spacing: .5px;
    text-transform: uppercase;

    color: #dca84d;
}

.news-body h3 {

    font-size: 1rem;

    color: #07193d;

    line-height: 1.45;

    margin: 10px 0 12px;
}

.news-body p {

    font-size: .88rem;

    color: #5a6a85;

    line-height: 1.65;

    margin-bottom: 18px;
}

.news-link {

    font-size: .88rem;
    font-weight: 700;

    color: #0c2b66;

    text-decoration: none;

    transition: color .25s;
}

.news-link:hover {

    color: #dca84d;
}




/* ══════════════════════════════════════
   Levels section
══════════════════════════════════════ */

.levels-section {

    padding: 80px;

    background:
        linear-gradient(135deg,
            #07193d,
            #0c2b66,
            #09142c);
}

.levels-section .section-header h2 {

    color: white;
}

.levels-grid {

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 28px;
}

.level-card {

    background: rgba(255, 255, 255, .06);

    border: 1px solid rgba(220, 168, 77, .25);

    padding: 40px 32px;

    text-align: center;

    transition:
        background .3s,
        border-color .3s,
        transform .3s;
}

.level-card:hover {

    background: rgba(255, 255, 255, .1);

    border-color: #dca84d;

    transform: translateY(-4px);
}

.level-icon {

    margin-bottom: 20px;
}

.level-icon svg {

    width: 48px;
    height: 48px;

    stroke: #dca84d;
}

.level-card h3 {

    font-size: 1.15rem;

    color: white;

    margin-bottom: 12px;
}

.level-card p {

    font-size: .9rem;

    color: rgba(255, 255, 255, .7);

    line-height: 1.65;

    margin-bottom: 28px;
}




/* ══════════════════════════════════════
   Admission CTA
══════════════════════════════════════ */

.admission-cta {

    padding: 90px 40px;

    background:
        linear-gradient(135deg,
            #dca84d,
            #ffd76d,
            #dca84d);

    text-align: center;
}

.admission-cta-inner {

    max-width: 640px;

    margin: 0 auto;
}

.admission-cta h2 {

    font-size: 2rem;

    color: #07193d;

    margin-bottom: 14px;
}

.admission-cta p {

    font-size: 1.05rem;

    color: #1a3660;

    line-height: 1.6;

    margin-bottom: 36px;
}

.admission-cta .btn-primary {

    background: #07193d;

    color: white;
}

.admission-cta .btn-primary:hover {

    background: #0c2b66;

    box-shadow:
        0 6px 20px rgba(7, 25, 61, .35);
}





/* ══════════════════════════════════════
   Responsive
══════════════════════════════════════ */

@media (max-width: 1100px) {

    .about-content {
        padding: 48px 40px;
    }

    .news-section,
    .levels-section {
        padding: 64px 40px;
    }

}

@media (max-width: 768px) {

    .hero-carousel {
        height: calc(100vh - 70px);
        min-height: 440px;
    }

    .slide-content {
        left: 6%;
        right: 6%;
        max-width: 100%;
    }

    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.4rem;
    }

    .carousel-arrow.prev {
        left: 12px;
    }

    .carousel-arrow.next {
        right: 12px;
    }


    .stats-bar {
        flex-direction: column;
        gap: 20px;
        padding: 32px 24px;
    }

    .stat-divider {
        width: 60px;
        height: 1px;
    }


    .about-teaser {
        grid-template-columns: 1fr;
    }

    .about-img-inner {
        min-height: 260px;
    }

    .about-content {
        padding: 40px 28px;
    }


    .news-section,
    .levels-section {
        padding: 56px 24px;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .levels-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    .admission-cta {
        padding: 64px 24px;
    }

}

@media (max-width: 500px) {

    .slide-content h1 {
        font-size: 1.5rem;
    }

    .slide-content p {
        font-size: .9rem;
    }

    .stat-item strong {
        font-size: 1.6rem;
    }

    .section-header h2 {
        font-size: 1.65rem;
    }

    .news-grid,
    .levels-grid {
        grid-template-columns: 1fr;
    }

    .admission-cta h2 {
        font-size: 1.6rem;
    }
}