/* ========== HERO (Estilos mejorados) ========== */

.hero {
    height: 90vh; /* Aumenté ligeramente la altura */
    min-height: 600px; /* Altura mínima para evitar que se vea muy pequeño */
    
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.051) 0%, rgba(0, 0, 0, 0.226) 100%), 
                url('../images/fondo.webp') no-repeat center center/cover;
    
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    margin-top: 80px;
    
    /* Nuevas propiedades añadidas */
    position: relative;
    overflow: hidden;
    animation: fadeIn 1s ease-in-out;
}

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
    transform: translateY(0);
    transition: transform 0.5s ease;
}

.hero h2 {
    font-size: 3.5rem; /* Un poco más grande */
    margin-bottom: 1.5rem;
    font-weight: 450;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5); /* Sombra para mejor legibilidad */
    line-height: 1.2;
    animation: slideUp 0.8s ease-out 0.2s both;
}

.hero p {
    font-size: 1.4rem;
    opacity: 0.95;
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
    line-height: 1.6;
    animation: slideUp 0.8s ease-out 0.4s both;
}

/* Botón mejorado */
.btn {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px); /* Efecto glass moderno */
    color: #ffffff;
    padding: 0.8rem 2.5rem;
    border-radius: 50px; /* Más redondeado */
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    animation: slideUp 0.8s ease-out 0.6s both;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn:hover::before {
    left: 100%;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Efecto de partículas o elementos decorativos opcionales */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(transparent, var(--light-color));
    opacity: 0.1;
}

/* Responsive mejorado */
@media (max-width: 768px) {
    .hero {
        height: 70vh;
        min-height: 500px;
        margin-top: 70px;
    }
    
    .hero h2 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .hero p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .btn {
        padding: 0.7rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
}

body, html {
    margin: 0;
    padding: 0;
}

.hero {
    margin-top: 0;
    padding-top: 0;
}
