:root {
    --color-primary: #003366;
    --color-secondary: #F0F0F0;
    --color-accent: #66B2FF;
    --color-white: #FFFFFF;
    --color-black: #000000;
}

/* Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--color-black);
    background-color: var(--color-white);
}

.page-container {
    /*padding: 40px 80px;*/
    background-color: var(--color-secondary);
}

/* Encabezado */
.header {
    background-color: var(--color-white);
    padding: 20px 80px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-primary);
}

.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--color-primary);
    font-weight: 600;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--color-accent);
}

.cta-button, .cta-primary {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
    display: inline-block;
}

.cta-button {
    background-color: var(--color-accent);
    color: var(--color-white);
}

.cta-button:hover {
    background-color: #55a3f3;
}

/* Sección Héroe */
.hero-section {
    background-color: var(--color-primary);
    background-image: url('/images/fondo_2.jpg');
    background-size: cover;
    background-position: center;
    color: var(--color-white);
    padding: 100px 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 51, 102, 0.9) 0%, rgba(0, 51, 102, 0.3) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-primary {
    background-color: var(--color-accent);
    color: var(--color-white);
    font-size: 1.2rem;
}

.cta-primary:hover {
    background-color: #55a3f3;
}

/* Secciones de Contenido */
section {
    padding: 60px 0;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 20px;
    text-align: center;
}

#carreras, #nosotros, #contacto{
    padding: 40px 80px;
}

/* Carreras */

.careers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.career-item {
    background-color: var(--color-white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.career-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.career-item svg {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

/* Stats */
.stats-section {
    width: 100%;;
    background:linear-gradient(90deg, rgba(0, 51, 102, 0.9) 0%, rgba(0, 51, 102, 0.3) 100%);
    background-size: cover;
    background-position: center;
    position: relative;
    color: var(--color-white); /* Texto blanco sobre fondo oscuro */
    text-align: center;
    padding: 80px 0;
}

.stats-overlay {
    background: rgba(0, 51, 102, 0.7); /* Degradado oscuro sobre la imagen */
    padding: 80px 40px;
    position: relative;
    z-index: 1;
}

.stats-section h2 {
    color: var(--color-white); /* Título blanco */
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-item {
    background-color: rgba(255, 255, 255, 0.1); /* Fondo semitransparente para los ítems */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.stat-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 5px;
}

.stat-item h3 {
    color: var(--color-white);
    margin-bottom: 5px;
}
.stat-item p {
    color: var(--color-white);
    opacity: 0.8;
}

/* Testimonios */
.testimonials-container {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.testimonial-item {
    background-color: var(--color-white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    text-align: center;
    max-width: 400px;
    position: relative;
}

.testimonial-item img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
    object-fit: cover;
    margin-bottom: 15px;
}

.quote-icon {
    font-size: 3rem;
    color: var(--color-accent);
    position: absolute;
    top: 10px;
    left: 20px;
}

/* Contacto */
.contact-content {
    display: flex;
    gap: 40px;
    background-color: var(--color-white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.contact-form {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    color: var(--color-primary);
    margin-bottom: 10px;
}

/* Pie de página */
.footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    text-align: center;
    padding: 20px 0;
}

/* Animaciones */
.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Medias Queries (Responsividad) */
@media (max-width: 1024px) {
    .page-container {
        padding: 40px;
    }

    .stats-grid, .testimonials-container, .contact-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .header, .page-container {
        padding: 20px;
    }

    .nav-menu {
        display: none; /* Oculta el menú en móvil, se manejaría con JS */
    }

    .cta-button {
        display: none; /* Oculta el botón en móvil para simplicidad */
    }

    .hero-section {
        padding: 80px 20px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .stats-overlay {
        padding: 60px 20px;
    }
}