:root {
    --primary-color: #0F2C59;
    /* Azul Profundo - Confianza */
    --secondary-color: #00A9EE;
    /* Azul Brillante - Acción */
    --accent-color: #2D9596;
    /* Verde/Turquesa - Salud */
    --background-light: #F8F9FA;
    /* Fondo Claro */
    --text-dark: #1E2432;
    /* Texto Principal */
    --text-light: #FFFFFF;
    /* Texto Blanco */
    --gray-light: #E9ECEF;
    --shadow-card: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    /* Fallback to sans-serif */
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Header & Nav */
/* Header & Nav */
header {
    background-color: var(--text-light);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    /* Suave sombra moderna */
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.5rem 5%;
    /* Reducción de padding */
    transition: var(--transition);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px !important;
    /* Ajuste de altura */
    transition: var(--transition);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    transition: var(--transition);
    font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--secondary-color);
}

/* Efecto de subrayado animado */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.btn-nav-cta {
    background-color: var(--secondary-color);
    color: var(--text-light) !important;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    /* Botones redondeados modernos */
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 172, 193, 0.3);
    /* Sombra brillante */
}

.btn-nav-cta:hover {
    background-color: #008AC0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 172, 193, 0.5);
}

.btn-nav-cta::after {
    display: none;
    /* Sin subrayado para el botón */
}

/* Hero Section */
.hero {
    height: 85vh;
    /* Un poco más alto */
    background: linear-gradient(rgba(15, 44, 89, 0.6), rgba(15, 44, 89, 0.6)), url('../img/hero_01.png') no-repeat center center/cover;
    transition: background-image 1s ease-in-out;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    padding: 0 5%;
    position: relative;
}

/* Overlay sutil para mejorar lectura */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--text-light);
    box-shadow: 0 5px 15px rgba(0, 172, 193, 0.4);
}

.btn-primary:hover {
    background-color: #008AC0;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 172, 193, 0.6);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--text-light);
    color: var(--text-light);
}

.btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Trust Bar */
.trust-bar {
    background-color: white;
    padding: 2.5rem 5%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4rem;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    position: relative;
    z-index: 10;
}

.trust-item h3 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.trust-item p {
    color: #777;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Section General */
section {
    padding: 5rem 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 800;
}

.section-title .underline {
    height: 5px;
    width: 80px;
    background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
    margin: 0 auto;
    border-radius: 5px;
}

/* Cards Grid */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.card {
    background: var(--text-light);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    top: 0;
}

.card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 131, 143, 0.15);
    /* Sombra turquesa suave */
    border-color: rgba(0, 172, 193, 0.3);
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover img {
    transform: scale(1.05);
}

.card-content {
    padding: 2rem;
    text-align: left;
    /* Alineación más profesional */
}

.card-tag {
    background-color: rgba(38, 198, 218, 0.15);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 1rem;
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
    font-weight: 700;
}

.card p {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.7;
}

.btn-card {
    color: var(--secondary-color);
    font-weight: 700;
    border: 2px solid var(--secondary-color);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    display: inline-block;
    transition: var(--transition);
}

.btn-card:hover {
    background-color: var(--secondary-color);
    color: var(--text-light);
    box-shadow: 0 4px 10px rgba(0, 172, 193, 0.3);
}

/* About Section */
.about-container {
    display: flex;
    align-items: center;
    gap: 4rem;
    background-color: var(--text-light);
    padding: 4rem;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    header {
        padding: 0.5rem 5%;
    }

    .logo img {
        height: 45px !important;
    }

    .nav-links {
        display: none;
        /* JS Toggle needed */
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: var(--text-light);
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    /* Menú móvil visible cuando activo */
    .nav-links.active {
        display: flex;
        gap: 1.5rem;
    }

    .hero {
        height: auto;
        padding: 6rem 5% 4rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .cta-group {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .trust-bar {
        flex-direction: column;
        gap: 2rem;
    }

    .about-container {
        flex-direction: column;
        padding: 2rem;
        text-align: center;
    }

    .section-title h2 {
        font-size: 2rem;
    }
}

.about-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        text-align: justify;
    }

    .about-text .btn {
        width: 100%;
        text-align: center;
    }
}

/* Campus Banner */
.campus-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 5%;
    background-color: var(--background-light);
    border-top: 1px solid var(--gray-light);
}

.campus-banner h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 2rem;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 4rem 5% 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    font-size: 1.2rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.social-links a {
    display: inline-block;
    transition: var(--transition);
}

.social-links a:hover {
    transform: translateY(-3px);
    color: var(--secondary-color) !important;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Mobile Adjustments for Footer */
@media (max-width: 768px) {
    .campus-banner {
        padding: 3rem 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
}