/* ======================
   BANNER 2
====================== */

.banner-2 {
    height: 100vh;
    background-image: url("../img/banner-2-bg.jpg");
    background-size: cover;
    background-position: center;
    position: relative;
    overflow-x: hidden;
}

.banner-2-overlay {
    background: rgba(0, 0, 0, 0.55);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* TEXTO */
.banner-2-content {
    text-align: center;
    color: #fff;
    margin-bottom: 40px;
}

.banner-2-content h1 {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: 2px;
    font-family: "alrono";
}

.banner-2-content .phone {
    font-size: clamp(56px, 8vw, 112px);
    font-weight: bold;
    margin-top: 10px;
    font-family: "alrono";
    line-height: 1.1;
    text-align: center;
}

/* ANIMACIÓN REBOTE */
.bounce {
    animation: bounce 1.5s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-18px); }
    60% { transform: translateY(-8px); }
}

/* ======================
   CAMIÓN
====================== */

.truck-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

/* SIRENA (ATRÁS DEL CAMIÓN) */
.truck-container::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 58px;
    height: 9px;

    background: linear-gradient(
        90deg,
        rgba(255,159,26,1) 0%,
        rgba(255,159,26,1) 38%,
        rgba(158,158,158,1) 38%,
        rgba(158,158,158,1) 62%,
        rgba(255,159,26,1) 62%,
        rgba(255,159,26,1) 100%
    );

    border-radius: 6px;

    z-index: 1;

    animation: sirena-estroboscopica 0.5s steps(1) infinite;
}

/* CAMIÓN (CAPA TRASERA) */
.truck-front {
    width: 200px;
    height: 120px;
    background-image: url("../img/frente-camion.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    z-index: 2;
}

/* CAMIÓN DUPLICADO (CAPA FRONTAL QUE TAPA LA SIRENA) */
.truck-front::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../img/frente-camion.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 3;
    pointer-events: none;
}

/* FLASH SIRENA */
@keyframes sirena-flash {
    0% {
        opacity: 0.3;
        box-shadow: 0 0 4px rgba(255,159,26,0.5);
    }
    100% {
        opacity: 1;
        box-shadow:
            0 0 10px rgba(255,159,26,1),
            0 0 18px rgba(255,159,26,0.9);
    }
}


@keyframes sirena-estroboscopica {

    /* IZQUIERDA ON */
    0% {
        opacity: 1;
        background: linear-gradient(
            90deg,
            rgba(255,159,26,1) 0%,
            rgba(255,159,26,1) 38%,
            rgba(120,120,120,0.35) 38%,
            rgba(120,120,120,0.35) 62%,
            rgba(255,159,26,0.25) 62%,
            rgba(255,159,26,0.25) 100%
        );
        box-shadow: 0 0 14px rgba(255,159,26,1);
    }

    /* OFF (PLÁSTICO ÁMBAR) */
    30% {
        opacity: 1;
        background: linear-gradient(
            90deg,
            rgba(255,159,26,0.28) 0%,
            rgba(255,159,26,0.28) 38%,
            rgba(120,120,120,0.45) 38%,
            rgba(120,120,120,0.45) 62%,
            rgba(255,159,26,0.28) 62%,
            rgba(255,159,26,0.28) 100%
        );
        box-shadow: none;
    }

    /* DERECHA ON */
    50% {
        opacity: 1;
        background: linear-gradient(
            90deg,
            rgba(255,159,26,0.25) 0%,
            rgba(255,159,26,0.25) 38%,
            rgba(120,120,120,0.35) 38%,
            rgba(120,120,120,0.35) 62%,
            rgba(255,159,26,1) 62%,
            rgba(255,159,26,1) 100%
        );
        box-shadow: 0 0 14px rgba(255,159,26,1);
    }

    /* OFF FINAL */
    80%,
    100% {
        opacity: 1;
        background: linear-gradient(
            90deg,
            rgba(255,159,26,0.28) 0%,
            rgba(255,159,26,0.28) 38%,
            rgba(120,120,120,0.45) 38%,
            rgba(120,120,120,0.45) 62%,
            rgba(255,159,26,0.28) 62%,
            rgba(255,159,26,0.28) 100%
        );
        box-shadow: none;
    }
}

/* ======================
   LÍNEAS LATERALES
====================== */

.line {
    width: 120px;
    height: 7px;
    background: linear-gradient(to right, transparent, #f5c400);
    position: relative;
}

.left-line { margin-right: 10px; }
.right-line {
    margin-left: 10px;
    transform: rotate(180deg);
}

.line::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 7px;
    background: #fff;
    animation: lightMove 2s infinite;
}

@keyframes lightMove {
    0% { left: 0; opacity: 0; }
    50% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

@media (max-width: 480px) {
    .line {
        width: 60px;
    }
}