/* ================= HERO SECTION ================= */

/* HERO CON IMAGEN DE FONDO */
.hero {
    background-image: url("img/hero2.png"); /* ruta de la imagen del hero */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    color: #fff;
    position: relative;
    transition: background 0.3s ease-in-out, opacity 1.5s ease-out, transform 1.5s ease-out;
    opacity: 0;
    transform: translateY(40px);
}

/* Capa oscura sobre la imagen para mejorar contraste */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* oscurece un poco la imagen */
    z-index: 1;
}

/* Contenido del hero sobre la capa oscura */
.hero > * {
    position: relative;
    z-index: 2;
}

/* TITULO HERO */
.hero h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

/* TEXTO HERO */
.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* BOTÓN HERO */
.hero .btn {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
}

/* ANIMACIÓN HERO */
.hero.show {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE HERO */
@media (max-width: 768px) {
    .hero {
        min-height: 90vh;
        padding-top: 70px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero .btn {
        font-size: 1rem;
        padding: 0.6rem 1.2rem;
    }
}



/* Logo dentro del hero */
.logo-hero {
    display: block;
    margin: 0 auto 20px auto; /* centrado horizontal y separación debajo */
    max-width: 200px;
    height: auto;

    /* Transición suave para hover */
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Efecto al pasar el mouse */
.logo-hero:hover {
    transform: scale(1.2); /* aumenta un 20% */
}

/* Ajuste responsivo */
@media (max-width: 768px) {
    .logo-hero {
        max-width: 120px;
        margin-bottom: 15px;
    }

    .logo-hero:hover {
        transform: scale(1.15); /* un poco menos en móvil */
    }
}