/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary-color: #1a237e;
    --secondary-color: #FFD700;
    --accent-color: #DC143C;
    --dark-blue: #0d1642;
    --light-blue: #3949ab;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --gray: #757575;
    --dark-gray: #424242;
    
    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    
    /* Transitions */
    --transition: all 0.3s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--dark-gray);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER & NAVIGATION ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav__logo .logo {
    height: 60px;
    width: auto;
    border-radius: 8px;
}

.nav__menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav__link {
    color: var(--dark-gray);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.nav__link:hover {
    color: var(--primary-color);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-blue) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.05)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,101.3C1248,85,1344,75,1392,69.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    opacity: 0.3;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(220, 20, 60, 0.1) 0%, transparent 50%);
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
}

.hero__title {
    font-size: 4rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: fadeInUp 1s ease;
}

.hero__title .highlight {
    color: var(--secondary-color);
    position: relative;
}

.hero__description {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero__buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.4s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn--primary {
    background: var(--secondary-color);
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn--primary:hover {
    background: #FFC700;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.btn--secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn--secondary:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.btn--large {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
}

.hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.hero__scroll a {
    color: var(--white);
    font-size: 2rem;
    opacity: 0.7;
}

/* ===== SECTION HEADERS ===== */
.section__header {
    text-align: center;
    margin-bottom: 4rem;
}

.section__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section__line {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    margin: 0 auto 1rem;
    border-radius: 2px;
}

.section__subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== ABOUT SECTION ===== */
.about {
    padding: 6rem 0;
    background: var(--white);
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.about__image {
    position: relative;
}

.about__shield {
    background: var(--primary-color);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    transform: rotate(-5deg);
    transition: var(--transition);
}

.about__shield:hover {
    transform: rotate(0deg);
}

.about__shield img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.about__subtitle {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.about__text {
    font-size: 1.1rem;
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat {
    text-align: center;
}

.stat i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.stat h4 {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* ===== COURSES SECTION ===== */
.courses {
    padding: 6rem 0;
    background: var(--light-gray);
}

.courses__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.course__card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-align: center;
}

.course__card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card__icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--light-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.card__icon i {
    font-size: 2rem;
    color: var(--white);
}

.course__card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.course__card p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.card__features {
    list-style: none;
    text-align: left;
}

.card__features li {
    padding: 0.5rem 0;
    color: var(--dark-gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card__features i {
    color: var(--secondary-color);
}

/* ===== SUBJECTS SECTION ===== */
.subjects {
    padding: 6rem 0;
    background: var(--white);
}

.subjects__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.subjects__column h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.subjects__column h3 i {
    color: var(--secondary-color);
}

.subjects__list {
    list-style: none;
}

.subjects__list li {
    padding: 0.8rem 0;
    color: var(--dark-gray);
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: var(--transition);
}

.subjects__list li:hover {
    padding-left: 10px;
    color: var(--primary-color);
}

.subjects__list i {
    color: var(--secondary-color);
}

/* ===== PROFESSORS SECTION ===== */
.professors {
    padding: 6rem 0;
    background: var(--light-gray);
}

.professors__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.professor__card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.professor__card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.professor__icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--light-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.professor__icon i {
    font-size: 1.8rem;
    color: var(--white);
}

.professor__card h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.professor__card p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* ===== DIFFERENTIALS SECTION ===== */
.differentials {
    padding: 6rem 0;
    background: var(--white);
}

.differentials__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.differential__card {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 15px;
    transition: var(--transition);
    border-left: 4px solid var(--secondary-color);
}

.differential__card:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
    border-left-color: var(--accent-color);
}

.differential__icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.differential__icon i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.differential__card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.differential__card p {
    color: var(--dark-gray);
    line-height: 1.6;
}

/* ===== CTA SECTION ===== */
.cta {
    position: relative;
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-blue) 100%);
    text-align: center;
    overflow: hidden;
}

.cta__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(255, 215, 0, 0.15) 0%, transparent 50%);
}

.cta__content {
    position: relative;
    z-index: 2;
}

.cta h2 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.cta p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: 6rem 0;
    background: var(--light-gray);
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
}

.contact__info h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-weight: 600;
}

.contact__item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.contact__item i {
    font-size: 1.8rem;
    color: var(--secondary-color);
    min-width: 30px;
}

.contact__item h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact__item p {
    color: var(--dark-gray);
    line-height: 1.6;
}

.contact__item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact__item a:hover {
    color: var(--secondary-color);
}

.small-text {
    font-size: 0.9rem;
    color: var(--gray);
    margin-top: 0.5rem;
}

.contact__map {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    height: 100%;
    min-height: 400px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark-blue);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer__logo img {
    height: 80px;
    width: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.footer__logo p {
    color: rgba(255, 255, 255, 0.7);
}

.footer__links h4,
.footer__social h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.footer__links ul {
    list-style: none;
}

.footer__links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: block;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.footer__links a:hover {
    color: var(--secondary-color);
    padding-left: 10px;
}

.social__icons {
    display: flex;
    gap: 1rem;
}

.social__icons a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social__icons a:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-5px);
}

.footer__bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

.footer__bottom p {
    margin: 0.5rem 0;
}

/* ===== FLOATING BUTTONS ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.scroll-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-5px);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(37, 211, 102, 0.7);
    }
    100% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media screen and (max-width: 992px) {
    .nav__menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
    }
    
    .nav__menu.active {
        left: 0;
    }
    
    .nav__toggle {
        display: block;
    }
    
    .hero__title {
        font-size: 2.5rem;
    }
    
    .hero__description {
        font-size: 1.1rem;
    }
    
    .about__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about__stats {
        grid-template-columns: 1fr;
    }
    
    .contact__grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    .section__title {
        font-size: 2rem;
    }
    
    .hero__buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .courses__grid,
    .differentials__grid {
        grid-template-columns: 1fr;
    }
    
    .subjects__container {
        grid-template-columns: 1fr;
    }
    
    .footer__content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social__icons {
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    .hero__title {
        font-size: 2rem;
    }
    
    .section__title {
        font-size: 1.5rem;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }
    
    .scroll-top {
        bottom: 20px;
        left: 20px;
    }
}
