/* Paleta de Colores y Variables */
:root {
    --primary-color: #1437be;
    --primary-dark: #0d2379;
    --primary-light: #2859d8;
    --text-color: #333333;
    --bg-light: #f0f2f5;
    --bg-white: #ffffff;
}

/* Estilos Generales */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container p {
    margin-top: 2rem;
    margin-bottom: 0;
}

h1, h2, h3 {
    margin-bottom: 20px;
    font-weight: 600;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    color: var(--primary-dark);
}

p {
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-light);
}

.section {
    padding: 80px 0;
    animation: fadeIn 1s ease-in-out forwards;
}

.section:nth-child(even) {
    background-color: var(--bg-light);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header y Navbar */
.header {
    background: linear-gradient(#1437becc, #1437becc), url(/assets/images/fachada.jpg) no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 150px 0;
    position: relative;
    overflow: hidden;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    transition: background-color 0.4s ease-in-out;
    z-index: 1000;
}

.navbar.scrolled {
    background-color: var(--primary-dark);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

ul, li {
    list-style: none;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.logo img {
    transform: scale(1.5);
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: #fff;
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
}

.requisitos-list li {
    text-align: left;
    list-style: disc;
    margin: 0;
    font-size: 0.7em;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #fff;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.hero {
    margin-top: 50px;
    animation: slideInUp 1s ease-out;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.5rem;
    font-style: italic;
    font-weight: 300;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-light);
    color: #fff;
    padding: 12px 25px;
    margin-top: 20px;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-5px);
    background-color: #fff;
    color: var(--primary-dark);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Secciones de Contenido */
.historia-section p.quote {
    font-style: italic;
    text-align: center;
    margin-top: 30px;
    color: var(--primary-dark);
    font-weight: 600;
}

.academica-grid, .contactos-grid, .horarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
    margin-top: 50px;
}

.academica-item, .contacto-item, .horarios-item {
    background-color: var(--bg-white);
    padding: 40px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: scaleIn 0.5s ease-out forwards;
}

.academica-item:hover, .contacto-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.academica-item .icon, .contacto-item .icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.academica-item h3, .contacto-item h3 {
    color: var(--primary-dark);
}

.technical-focus {
    border: 2px solid var(--primary-color);
    background-color: var(--primary-color);
    color: #fff;
}

.technical-focus p {
    color: #fff;
}

.technical-focus h3, .technical-focus .icon {
    color: #fff;
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 50px;
}

.galeria-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.galeria-item:hover {
    transform: scale(1.03);
}

.galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Footer */
.footer {
    background-color: var(--primary-dark);
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

.footer p {
    margin: 0;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
    }

    .nav-links {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links li {
        margin: 5px 10px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .section {
        padding: 50px 0;
    }
}