﻿/* =========================
   IMPACT TITLE SECTION
========================= */

.impact-title {
    position: relative;
    background: #ffffff;
    padding: 70px 0px 60px 0px;
    text-align: center;
    overflow: hidden;
}
.impact-title-alt {
    background-color: #c4bfb6;
}

/* Contenedor */
.impact-content {
    max-width: 1100px;
    margin: 0 auto;
}

/* TITULO PRINCIPAL */
.impact-main {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #192854;
    margin-bottom: 18px;
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    animation: titleImpact 1s ease-out forwards;
    position: relative; /* Necesario para el brillo */
    display: inline-block;
    overflow: hidden;
    background: linear-gradient(90deg, #192854, #4993cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

    /* Brillo diagonal sobre h1 */
    .impact-main::after {
        content: "";
        position: absolute;
        top: -50%;
        left: -75%;
        width: 50%;
        height: 200%;
        background: linear-gradient( 120deg, rgba(255, 253, 87, 0) 0%, /* amarillo transparente */
        rgba(255, 253, 87, 0.6) 50%, /* amarillo dorado */
        rgba(255, 253, 87, 0) 100% );
        transform: rotate(25deg);
        animation: shine 8s infinite;
    }

/* SUBTITULO */
.impact-sub {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 3px;
    color: #4993cc;
    opacity: 0;
    transform: translateY(30px);
    animation: subtitleImpact 1s ease-out forwards;
    animation-delay: 0.4s;
}

    /* Línea dorada elegante */
    .impact-sub::after {
        content: "";
        display: block;
        width: 0;
        height: 3px;
        background: linear-gradient(90deg, #fdd757, #bbd000);
        margin: 20px auto 0 auto;
        border-radius: 3px;
        animation: lineExpand 0.8s ease-out forwards;
        animation-delay: 0.9s;
    }

/* =========================
   ANIMACIONES
========================= */

@keyframes titleImpact {
    0% {
        opacity: 0;
        transform: translateY(60px) scale(0.9) rotateX(15deg);
    }

    60% {
        transform: translateY(-10px) scale(1.05) rotateX(-5deg);
    }

    80% {
        transform: translateY(5px) scale(1.02) rotateX(2deg);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0);
    }
}

@keyframes subtitleImpact {
    0% {
        opacity: 0;
        transform: translateY(30px) translateX(-20px);
    }

    50% {
        transform: translateY(10px) translateX(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0) translateX(0);
    }
}

@keyframes lineExpand {
    0% {
        width: 0;
    }

    60% {
        width: 160px;
    }

    80% {
        width: 140px;
    }

    100% {
        width: 150px;
    }
}

/* =========================
   ANIMACIÓN BRILLO DIAGONAL
========================= */
@keyframes shine {
    0% {
        left: -75%;
    }

    50% {
        left: 125%;
    }

    55% {
        left: 125%; /* mantiene el brillo en el extremo derecho un rato */
    }

    100% {
        left: -75%; /* vuelve al inicio */
    }
}
