﻿/* Estilos para la hero section - VERSIÓN CORREGIDA */
.hero-container {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-image: url('../Images/Clinica/Fachada.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.8) 0%, rgba(13, 71, 161, 0.9) 100%);
    z-index: 1;
}

.hero-logo {
    position: absolute;
    top: 120px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    text-align: center;
}

.logo-image {
    height: 200px;
    width: auto;
    filter: brightness(0) invert(1); /* Hace el logo blanco */
}

.hero-content-container {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.hero-content-wrapper {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding-top: 80px; /* Compensa la altura del logo */
}

.hero-title {
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    animation: fadeInUp 1s ease-out;
    margin-bottom: 1.5rem !important;
    line-height: 1.2;
}

.hero-subtitle {
    font-weight: 400;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.2s both;
    margin-bottom: 2.5rem !important;
    line-height: 1.6;
}

.hero-buttons {
    margin-top: 2rem;
    animation: fadeInUp 1s ease-out 0.4s both;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-btn {
    border-radius: 30px;
    padding: 12px 30px;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    min-width: 200px;
}

    .hero-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    }

.hero-features {
    margin-top: 4rem;
    animation: fadeIn 1s ease-out 0.6s both;
    width: 100%;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 4;
}

    .scroll-indicator .mud-icon {
        font-size: 2rem;
    }

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-15px) translateX(-50%);
    }

    60% {
        transform: translateY(-7px) translateX(-50%);
    }
}

/* Responsive */
@media (max-width: 960px) {
    .hero-title {
        font-size: 2.5rem !important;
    }

    .hero-subtitle {
        font-size: 1.2rem !important;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-btn {
        width: 100%;
        max-width: 280px;
        margin: 0;
    }

    .logo-image {
        height: 60px;
    }

    .hero-content-wrapper {
        padding-top: 60px;
    }
}

@media (max-width: 980px) {
    .hero-logo {
        display: none !important;
    }
}

@media (max-width: 600px) {
    .hero-container {
        min-height: 700px;
        height: auto;
        padding: 80px 0 60px;
    }

    .hero-title {
        font-size: 2rem !important;
        margin-bottom: 1rem !important;
    }

    .hero-subtitle {
        font-size: 1.2rem !important;
        margin-bottom: 2rem !important;
    }

    /* El logo se oculta en móvil por la regla en @media (max-width: 980px) */

    .feature-item {
        margin-bottom: 1.5rem;
    }

    .hero-features {
        margin-top: 3rem;
    }

    .hero-content-wrapper {
        padding-top: 80px;
    }
}

/* Ajustes específicos para el texto según la imagen de referencia */
.hero-title {
    font-size: 3.5rem;
}

.hero-subtitle {
    font-size: 1.5rem;
}

/* Mejora de contraste para mejor legibilidad */
.hero-subtitle {
    font-weight: 300;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.white--text {
    color: #fff !important;
}

