/* ==========================================
   VARIABLES CSS & PALETA INSTITUCIONAL
   ========================================== */
:root {
    --primary-green: #00703C;     /* Verde del escudo Vicentino */
    --primary-dark: #004D29;      /* Verde oscuro para contrastes */
    --accent-red: #D3122A;        /* Rojo institucional */
    --accent-gold: #F1B816;       /* Dorado/Amarillo del escudo */
    --bg-light: #F8F9FA;          /* Fondo claro minimalista */
    --text-dark: #212529;         /* Texto principal */
    --text-muted: #6C757D;        /* Texto secundario */
    --white: #FFFFFF;
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 25px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Cambio de color global para enlaces HTML al pasar el cursor */
a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-red); /* Rojo al pasar el cursor */
}

a:active {
    color: var(--accent-gold); /* Amarillo al hacer clic/mantener presionado */
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

.section-title {
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    width: 50%;
    height: 4px;
    background: var(--accent-gold);
    position: absolute;
    bottom: -8px;
    left: 25%;
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 50px;
}

/* ==========================================
   BOTONES & CTAS
   ========================================== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-green);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--accent-red);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--accent-gold);
    color: var(--text-dark);
}

.btn-secondary:hover {
    background-color: var(--accent-red);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    border-color: var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--accent-gold);
    color: var(--text-dark);
    border-color: var(--accent-gold);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

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

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo img {
    height: 75px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    transition: var(--transition);
}

/* Estado normal del cursor -> Rojo */
.nav-link:hover {
    color: var(--accent-red);
}

/* Estado al hacer clic o foco secundario -> Amarillo */
.nav-link:active,
.nav-link:focus {
    color: var(--accent-gold);
}

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

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(rgba(0, 77, 41, 0.75), rgba(0, 0, 0, 0.65)), url('imagenes/portada.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    color: var(--white);
    padding-top: 90px;
}

.hero-content {
    max-width: 750px;
}

.hero-tag {
    background-color: rgba(241, 184, 22, 0.9);
    color: var(--text-dark);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 35px;
    opacity: 0.95;
    font-weight: 300;
}

.hero-btns {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* ==========================================
   VALORES / POR QUÉ ELEGIRNOS
   ========================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-green);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(0, 112, 60, 0.1);
    color: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--primary-dark);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==========================================
   NIVELES EDUCATIVOS
   ========================================== */
.levels {
    background-color: var(--white);
}

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

.level-card {
    background-color: var(--bg-light);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.level-img {
    height: 220px;
    width: 100%;
    object-fit: cover;
}

.level-content {
    padding: 30px;
}

.level-badge {
    color: var(--accent-red);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.level-title {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin: 5px 0 15px 0;
}

.level-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

/* ==========================================
   PROCESO DE ADMISIÓN
   ========================================== */
.admission-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.steps-list {
    margin-top: 30px;
}

.step-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.step-number {
    width: 45px;
    height: 45px;
    background-color: var(--primary-green);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.step-info h4 {
    font-size: 1.1rem;
    color: var(--primary-dark);
}

.step-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Tarjeta de Admisión */
.admission-cta-card {
    background-color: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    text-align: center;
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

.admission-cta-card:hover {
    transform: translateY(-5px);
}

.admission-cta-img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.admission-cta-content {
    padding: 35px 25px;
}

.admission-cta-title {
    color: var(--primary-dark);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.admission-cta-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 25px;
}

/* ==========================================
   GALERÍA / VIDA ESCOLAR
   ========================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 240px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,77,41,0.8), transparent);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    color: var(--white);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* ==========================================
   UBICACIÓN Y CONTACTO
   ========================================== */
.contact {
    background-color: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-card {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(211, 18, 42, 0.1);
    color: var(--accent-red);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.contact-info h4 {
    color: var(--primary-dark);
    margin-bottom: 5px;
}

.contact-info p {
    color: var(--text-muted);
}

.map-wrapper {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    height: 100%;
    min-height: 300px;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 60px;
    background-color: var(--white);
    padding: 5px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.footer-desc {
    opacity: 0.8;
    font-size: 0.9rem;
}

.footer-title {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--accent-gold);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-red);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--accent-gold);
    color: var(--text-dark);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ==========================================
   RESPONSIVE DESIGN (MOBILE & TABLET)
   ========================================== */
@media (max-width: 992px) {
    .admission-container,
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.3rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 90px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 90px);
        background-color: var(--white);
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        transition: var(--transition);
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-title {
        font-size: 1.9rem;
    }

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

    .section-title {
        font-size: 1.8rem;
    }
}