﻿/* inicio.css */

/* Hero: sección de bienvenida a pantalla completa con estilo llamativo */
.hero {
    /* rompe el ancho limitado del container padre */
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    /* tu fondo ya existente */
    background-color: #000268;
    background-image: linear-gradient(rgba(42, 63, 84, 0.8), rgba(42, 63, 84, 0.8));
    background-size: cover;
    background-position: center;
    min-height: 30vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--spacing-lg) 0;
}

    .hero .container {
        max-width: 800px;
    }

    /* Título principal */
    .hero h1 {
        font-family: var(--font-heading);
        font-size: clamp(2rem, 5vw, 3.5rem);
        color: var(--color-surface);
        margin-bottom: var(--spacing-sm);
    }

    /* Subtítulo descriptivo */
    .hero p {
        font-size: clamp(1rem, 2.5vw, 1.25rem);
        color: var(--color-surface);
        margin-bottom: var(--spacing-md);
        line-height: 1.4;
    }

    /* Botón de llamada a la acción */
    .hero .btn-warning {
        background-color: var(--color-secondary);
        color: var(--color-surface);
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: 1rem;
        border-radius: var(--radius-base);
        transition: filter 0.2s ease;
    }

        .hero .btn-warning:hover {
            filter: brightness(1.1);
        }

/* Responsive adjustments */
@media (max-width: 767px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }
}
/* ───── Animaciones de Hero ───── */

/* Keyframes de fade-in + slide-up */
@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Keyframes de pulso para el botón */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Aplicar fade-in a toda la seccion */
.hero {
    animation: fadeUp 1s ease-out both;
}

    /* Retrasos escalonados para título y párrafo */
    .hero h1 {
        opacity: 0;
        animation: fadeUp 1s ease-out 0.3s both;
    }

    .hero p {
        opacity: 0;
        animation: fadeUp 1s ease-out 0.6s both;
    }

    /* Pulsación suave continua en el botón CTA */
    .hero .btn-primary {
        animation: pulse 2.5s ease-in-out 1s infinite;
        will-change: transform;
    }
