:root {
    /* PALETA DE COLORES ACTUALIZADA */
    --primary-color: #59b0ae;
    /* Color Principal (Teal/Verde Azulado) */
    --primary-dark: #46918f;
    /* Versión un poco más oscura para hovers */
    --secondary-color: #ffffff;
    /* Color Secundario (Blanco) */

    --dark-color: #333333;
    /* Para textos generales */
    --light-bg: #f4fcfc;
    /* Fondo muy suave con tinte del color principal */
    --text-muted: #6c757d;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-color);
    overflow-x: hidden;
}

/* Navbar Styling */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 10px 0;
    /* Un poco menos de padding vertical para ajustar el logo */
    background-color: var(--secondary-color);
}

.navbar-brand img {
    max-height: 60px;
    /* Altura controlada para el logo */
    width: auto;
    transition: transform 0.3s;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    color: var(--dark-color) !important;
    font-weight: 500;
    margin-left: 15px;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

.btn-appointment {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-radius: 50px;
    padding: 8px 25px;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid var(--primary-color);
}

.btn-appointment:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    /* Superposición blanca más fuerte para resaltar el color teal del texto */
    background: linear-gradient(rgba(255,255,255,0.92), rgba(255,255,255,0.85)), url('image/bg-hero.avif');
    background-size: cover;
    background-position: center;
    padding: 120px 0 80px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
}

.scroll-down-container {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.scroll-down-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(89, 176, 174, 0.1);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    animation: bounce 2s infinite;
}

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

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

.hero-title {
    font-weight: 800;
    color: var(--primary-color);
    font-size: 3.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--dark-color);
    /* Cambiado a oscuro para contraste */
    margin-bottom: 20px;
    font-weight: 600;
    border-left: 5px solid var(--primary-color);
    padding-left: 15px;
}

.hero-image-container {
    position: relative;
    z-index: 1;
}

.hero-image {
    border-radius: 20px;
    /* Borde o sombra con el color principal */
    box-shadow: 20px 20px 0px var(--primary-color);
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

/* Buttons Standard */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

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

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

/* Stats/Info Cards */
.info-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s;
    height: 100%;
}

.info-card:hover {
    transform: translateY(-10px);
}

/* Services Section */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-weight: 700;
    color: var(--dark-color);
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.text-primary {
    color: var(--primary-color) !important;
}

.service-box {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    transition: all 0.3s;
    border-bottom: 4px solid transparent;
}

.service-box:hover {
    border-bottom: 4px solid var(--primary-color);
    transform: translateY(-5px);
}

.service-icon {
    width: 70px;
    height: 70px;
    /* Fondo semitransparente del color principal */
    background-color: rgba(89, 176, 174, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 1.8rem;
}

/* Education Section */
.education-section {
    background-color: var(--light-bg);
}

.education-card-simple {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    height: 100%;
    border-left: 3px solid var(--primary-color);
}

.education-card-simple:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.education-card-simple .degree-title {
    color: var(--dark-color);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.education-card-simple .institution-name {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0;
}

.education-card-simple .institution-name i {
    color: var(--primary-color);
}

.education-card-simple .badge {
    font-size: 0.7rem;
    padding: 4px 8px;
    font-weight: 500;
}

/* About Section */
.about-section {
    background-color: var(--light-bg);
}

/* Location Section */
.contact-info-box {
    padding: 20px;
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-icon {
    min-width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 1.2rem;
}

/* Custom BG for contact box */
.bg-custom-dark {
    background-color: var(--primary-color);
    /* Usamos el color principal en el bloque de contacto */
}

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
}

.whatsapp-float:hover {
    background-color: #1da851;
    color: white;
    transform: scale(1.1);
}

/* Footer */
footer {
    background-color: #333;
    /* Gris oscuro para contraste profesional al final */
    color: white;
    padding: 40px 0 20px;
    border-top: 5px solid var(--primary-color);
}

footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: var(--primary-color);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
        margin-top: 30px;
        text-align: center;
    }

    .hero-subtitle,
    .hero-desc,
    .hero-btns {
        text-align: center;
    }

    .hero-subtitle {
        border-left: none;
        border-bottom: 3px solid var(--primary-color);
        display: inline-block;
    }

    .hero-image {
        margin-top: 40px;
        box-shadow: 10px 10px 0px var(--primary-color);
    }

    .hero-section {
        padding-top: 100px;
        text-align: center;
    }

    .navbar-brand img {
        max-height: 45px;
        /* Logo más pequeño en móvil */
    }
}