/* ===== HERO / SECCIÓN DE PRESENTACIÓN ===== */
.hero-section {
    position: relative;
    min-height: 80vh; /* ocupa 80% de la altura de la pantalla como mínimo */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    text-align: center;
    color: #fff;
    padding: 80px 20px; /* espacio superior e inferior para móviles */
    flex-direction: column; /* apilar h1, p y botones verticalmente */
}

/* Fondo con auto */
.hero-bg img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 170%;       /* un poco más grande para cubrir todo */
    height: auto;      /* mantiene proporción */
    transform: translate(-50%, -50%);
    z-index: 1;
    filter: brightness(1) contrast(1.1);
    animation: heroMove 20s linear infinite alternate;
}

.hero-bg canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    gap: 15px; /* separa h1, p y botones */
}

/* Título con fondo para legibilidad */
.hero-content h1.hero-title {
    font-size: 5vw;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1vw;
    margin-bottom: 1rem;
    
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 10px;
    display: inline-block;
    color: #fff;
    -webkit-background-clip: unset;
    background-clip: unset;
}

/* Texto descriptivo con fondo semitransparente */
.hero-content p {
    font-size: 1.2rem;
    color: #fff;
    line-height: 1.5;
    margin-bottom: 30px;
    
    background-color: rgba(0, 0, 0, 0.5);
    padding: 8px 15px;
    border-radius: 8px;
    display: inline-block;
}

/* Botones */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-primary {
    background: #002147;
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 0 10px #002147;
    transition: 0.4s;
}

.btn-primary:hover {
    background: #001733;
    box-shadow: 0 0 20px #002147;
    transform: scale(1.05);
}

/* Animaciones */
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(50px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes heroMove {
    0% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.02); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

/* ===== MEDIA QUERIES ===== */

/* Tablets */
@media (max-width: 992px) {
    .hero-section {
        min-height: 70vh;
        padding: 60px 20px;
    }
    .hero-content h1.hero-title {
        font-size: 6vw;
        letter-spacing: 1.5vw;
    }
    .hero-content p {
        font-size: 1.1rem;
    }
}

/* Celulares */
@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
        padding: 50px 15px;
    }
    .hero-content h1.hero-title {
        font-size: 8vw;
        letter-spacing: 0.5rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .btn-primary {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

/* Móviles muy pequeños */
@media (max-width: 480px) {
    .hero-section {
        min-height: 50vh;
        padding: 40px 10px;
    }
    .hero-content h1.hero-title {
        font-size: 10vw;
        letter-spacing: 0.3rem;
    }
    .hero-content p {
        font-size: 0.9rem;
    }
}
