/* --- 3. HERO (REPARADO Y DINÁMICO) --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-color: #000;
}

/* Slider de Fondo */
.hero-slider {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
}

.slide-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1);
    animation: imageFadeZoom 15s linear infinite;
}

.slide-bg:nth-child(1) { animation-delay: 0s; }
.slide-bg:nth-child(2) { animation-delay: 5s; }
.slide-bg:nth-child(3) { animation-delay: 10s; }

.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7));
    z-index: 2;
}

/* Contenedor de Texto (SUBIDO PARA GENERAR ESPACIO ABAJO) */
.hero-content {
    position: relative;
    z-index: 3;
    padding: 0 20px;
    max-width: 1000px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    animation: fadeInUp 1.2s ease-out forwards;
    /* Movemos el bloque hacia arriba para ganar los ~200px de separación */
    margin-top: -120px; 
}

.hero-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: clamp(2.8rem, 7vw, 5rem);
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -1px;
    color: var(--white);
}

.hero-content h1 span { 
    color: var(--accent); 
}

.hero-content p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    max-width: 800px;
    margin: 0 auto 45px;
    font-weight: 400;
    line-height: 1.6;
}

/* BOTÓN "EMPECEMOS PROYECTO" (AGRANDADO Y CON PULSO) */
.btn-hero {
    display: inline-block;
    padding: 20px 45px;
    background: var(--grad);
    color: white !important;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none !important;
    letter-spacing: 1px;
    font-size: 1.1rem;
    transition: var(--transition);
    animation: heroPulse 2s infinite;
    box-shadow: 0 10px 30px rgba(29, 132, 207, 0.4);
}

.btn-hero:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(29, 132, 207, 0.6);
    text-decoration: none !important;
}

/* --- INDICADOR DE SCROLL POSICIÓN MÁXIMA INFERIOR --- */
.scroll-indicator {
    position: absolute;
    bottom: 10px; /* Pegado al borde inferior */
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px; 
    color: white;
    text-decoration: none !important;
    opacity: 0.5; /* Un poco más sutil por la distancia */
    transition: var(--transition);
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-indicator span {
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 700;
    margin-bottom: -5px; 
}

.scroll-indicator i {
    font-size: 1.1rem;
    animation: arrowBounce 2s infinite;
}

/* --- ANIMACIONES --- */
@keyframes imageFadeZoom {
    0% { opacity: 0; transform: scale(1); }
    10% { opacity: 1; }
    33% { opacity: 1; }
    43% { opacity: 0; transform: scale(1.1); }
    100% { opacity: 0; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes heroPulse {
    0% { transform: scale(1); box-shadow: 0 10px 30px rgba(29, 132, 207, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 10px 45px rgba(29, 132, 207, 0.7); }
    100% { transform: scale(1); box-shadow: 0 10px 30px rgba(29, 132, 207, 0.4); }
}

@keyframes arrowBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(8px); } /* Rebote sutil hacia abajo */
    60% { transform: translateY(4px); }
}
