.instalacion-steps{
    margin-top: 120px;
}


/* WRAPPER solo centra */
/* WRAPPER */
.titulo-wrapper{
    text-align:center;
}


/* TITULO NORMAL Y VISIBLE */
.titulo-instalaciones{
    font-family:'Raleway',sans-serif;
    font-weight:900;
    letter-spacing:4px;
    text-transform:uppercase;

    color:#fad201;
    font-size:2.4rem;

    padding:18px 45px;
    border-radius:18px;

    background:
        linear-gradient(180deg,#111,#000);

    border:2px solid rgba(250,210,1,.35);

    text-shadow:
        0 0 12px rgba(250,210,1,.8),
        0 0 25px rgba(250,210,1,.5);

    box-shadow:
        0 0 25px rgba(250,210,1,.25),
        inset 0 0 25px rgba(250,210,1,.08);

    position:relative;
    z-index:5;

    animation: titleReveal 1s cubic-bezier(.2,.8,.2,1) forwards;
}

/* animación exclusiva del título */
@keyframes titleReveal{
    0%{
        opacity:0;
        transform:translateY(-30px) scale(.85);
        filter:blur(6px);
    }
    60%{
        opacity:1;
        transform:translateY(5px) scale(1.02);
        filter:blur(0);
    }
    100%{
        transform:translateY(0) scale(1);
    }
}



.flash-light{
    z-index:1;
}
/* ===== TITULO EN CUADRO ===== */
.titulo-instalaciones{
    font-family:'Raleway',sans-serif;
    font-weight:800;
    font-size:2.2rem;
    letter-spacing:3px;
    text-transform:uppercase;

    color:#fff;

    /* 🔥 visible SIEMPRE */
    opacity:1;

    /* brillo suave inicial */
    text-shadow:0 0 4px rgba(255,255,255,.4);

    animation: tituloFade 1.2s ease forwards;
    position:relative;
    z-index:5;   /* 🔥 por encima de TODO */

}

@keyframes tituloFade{
    0%{
        opacity:0;
        transform:translateY(-15px);
        text-shadow:0 0 0 rgba(255,255,255,0);
    }
    100%{
        opacity:1;
        transform:translateY(0);
        text-shadow:
            0 0 6px #fff,
            0 0 14px rgba(250,210,1,.6);
    }
}




.titulo-instalaciones::before,
.titulo-instalaciones::after{
    content:"";
    position:absolute;
    left:0;
    width:100%;
    height:3px;

    background:linear-gradient(
        90deg,
        transparent,
        #fad201,
        transparent
    );

    background-size:300px 100%;
    animation: waveIdle 3s linear infinite;
    z-index:-1;
}

/* animación entrada */
.titulo-instalaciones.show{
    opacity:1;
    transform:translateY(0);

    text-shadow:
        0 0 8px #fff,
        0 0 18px rgba(250,210,1,.7);
}


/* hover glow */
.titulo-instalaciones:hover{
    transform:scale(1.05);

    text-shadow:
        0 0 10px #fff,
        0 0 25px #fad201;

    box-shadow:
        inset 0 0 0 1px rgba(250,210,1,.45),
        0 15px 45px rgba(250,210,1,.35);
}



.titulo-instalaciones::before{ top:0; }
.titulo-instalaciones::after{ bottom:0; }



/* ================= PROCESO INSTALACIÓN ================= */

.instalacion-proceso{
    margin-top: 70px;
}

.titulo-proceso{
    font-family: 'Raleway', sans-serif;
    font-weight: 800;
    font-size: 2.4rem;
    color: #fad201;

    text-shadow:
        3px 3px 0 #000,
        6px 6px 12px rgba(0,0,0,.45);
}


/* ==========================
   CUADRO PRINCIPAL
========================== */

/* ============ LINEAS SUPERIOR E INFERIOR ============ */

.step-box{
    position:relative;
    overflow:hidden;

    padding:30px 50px;

    width:fit-content;
    margin:0 auto;

    background:linear-gradient(145deg,#0d0d0d,#151515);
    border-radius:22px;

    text-align:center;   /* 🔥 en vez de flex */

    box-shadow:
        inset 0 0 0 1px rgba(250,210,1,.15),
        0 20px 50px rgba(0,0,0,.45);
}




/* arriba */
.step-box::before,
/* abajo */
.step-box::after{
    content:"";
    position:absolute;
    left:0;
    width:100%;            /* 🔥 llega hasta el final */
    height:4px;
    border-radius:20px;

    background:linear-gradient(
        90deg,
        transparent,
        rgba(250,210,1,1),
        transparent
    );

    background-size:300px 100%;
    animation: waveIdle 3s linear infinite;
}

.step-box::before{ top:0; }
.step-box::after{ bottom:0; }


@keyframes waveIdle{
    0%{ background-position:-300px 0; }
    100%{ background-position:300px 0; }
}


 
@keyframes waveGlow{
    0%{ transform: rotate(0deg) scale(1); }
    50%{ transform: rotate(180deg) scale(1.1); }
    100%{ transform: rotate(360deg) scale(1); }
}

.step-box h3{
    position: relative;
    z-index: 2;
}


/* ==========================
   STEP CONTENEDOR
========================== */

.step{
    text-align: center;
    margin-bottom: 65px;
    position: relative;
}

/* ===== VENTANA DE LUZ ===== */
.step-light{
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center,
        rgba(250,210,1,0.25),
        rgba(0,0,0,0.95)
    );
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: .5s ease;
    z-index: 9999;
}

.step.open .step-light{
    opacity: 1;
    pointer-events: auto;
}

.light-content{
    background: #111;
    padding: 50px;
    border-radius: 25px;
    max-width: 800px;
    text-align: center;
    color: #fff;
    box-shadow:
        0 0 30px rgba(250,210,1,.6),
        0 0 90px rgba(250,210,1,.4);
    transform: scale(.8);
    transition: .4s ease;
}

.step.open .light-content{
    transform: scale(1);
}

.light-content img{
    width: 100%;
    border-radius: 18px;
    margin-bottom: 25px;
}

.close-step{
    position: absolute;
    top: 30px;
    right: 40px;
    background: none;
    border: none;
    font-size: 28px;
    color: #fad201;
    cursor: pointer;
}
/* CONTENIDO */
.step-light img{
    max-width: 420px;
    border-radius: 14px;
    box-shadow: 0 0 40px rgba(250,210,1,.6);
    margin-bottom: 20px;
}

.step-light p{
    max-width: 520px;
    text-align: center;
    color: #fff;
    font-size: 1.1rem;
}

/* BOTÓN CERRAR */
.close-step{
    position: absolute;
    top: 30px;
    right: 40px;
    background: none;
    border: 2px solid #fad201;
    color: #fad201;
    font-size: 22px;
    padding: 6px 14px;
    border-radius: 50%;
    cursor: pointer;
}

.step.open .step-light{
    opacity: 1;
    transform: scale(1);
}

.step-arrow{
    display:block;
    margin:25px auto 0;
    text-align:center;
    font-size:60px;
    color:#fad201;
}


@keyframes bounce{
    0%,100%{ transform: translateY(0); }
    50%{ transform: translateY(12px); }
}


/* CIERRE */
.step.closing .step-box::before{
    animation: focoOff .5s forwards;
}

/* Animaciones (igual que ventas) */

@keyframes focoOn {
    0% { opacity: 0; }
    20% { opacity: 1; }
    40% { opacity: 0.4; }
    60% { opacity: 1; }
    80% { opacity: 0.8; }
    100% { opacity: 1; }
}

@keyframes focoIdle {
    0%,100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes focoOff {
    0% { opacity: 1; }
    100% { opacity: 0; }
}


/* ==========================
   MINI LUCES (CHISPAS)
========================== */

.step-box span.spark{
    position:absolute;
    top:-8px;
    width:6px;
    height:6px;
    background:#fad201;
    border-radius:50%;
    box-shadow:
        0 0 10px rgba(250,210,1,1),
        0 0 20px rgba(250,210,1,.8);
    animation: sparkTravel 4s linear infinite;
}

@keyframes sparkTravel{
    0%{
        left:0%;
        opacity:0;
    }
    5%{ opacity:1; }
    45%{
        left:100%;
        opacity:1;
    }
    50%{ opacity:0; }
    100%{
        left:0%;
        opacity:0;
    }
}

/* ==========================
   FLASHES FUERTES PRE-APERTURA
========================== */

@keyframes flicker-on {
    0% { opacity: 0; }
    10% { opacity: 1; }
    20% { opacity: 0.2; }
    30% { opacity: 1; }
    40% { opacity: 0.3; }
    50% { opacity: 1; }
    65% { opacity: 0.6; }
    80% { opacity: 1; }
    100% { opacity: 1; }
}


/* ==========================
   FLECHA LUMINOSA
========================== */


/* barrido con aceleración real */
@keyframes lightSweep{
    0%   { background-position:-150% 0; opacity:0; }
    10%  { opacity:1; }
    70%  { background-position:50% 0; }
    100% { background-position:150% 0; opacity:1; }
}

/* cuando clic → acelera */
.step.flash .step-box::before,
.step.flash .step-box::after{
    animation: waveIdle .35s linear infinite;
    z-index: 1;
}

/* halo completo alrededor */
.step-box .flash-light{
    position:absolute;
    inset:-10px;
    border-radius:26px;
    pointer-events:none;
    opacity:0;
    box-shadow:
        0 0 0 2px rgba(250,210,1,.9),
        0 0 30px rgba(250,210,1,.9),
        0 0 80px rgba(250,210,1,.7),
        0 0 140px rgba(250,210,1,.4);
}

/* flash fuerte */
.step.flash .flash-light{
    animation:focoOn .8s forwards;
}

/* encendido fijo */
.step.hold .flash-light{
    opacity:1;
}

.step.open .step-box::before,
.step.open .step-box::after{
    animation:none;
    background:rgba(250,210,1,1);
}

.step-box:hover{
    transform: scale(1.02);
    box-shadow:
        inset 0 0 0 1px rgba(250,210,1,.35),
        0 30px 80px rgba(0,0,0,.6);
}

/* ==============================
   TARJETAS PROCESO (6 BLOQUES)
============================== */

.step-card{
    background: linear-gradient(145deg,#0d0d0d,#151515);
    border-radius: 18px;

    padding: 30px;
    margin-bottom: 40px;

    color:#fff;

    box-shadow:
        inset 0 0 0 1px rgba(250,210,1,.15),
        0 15px 40px rgba(0,0,0,.45);

    transition:.35s ease;

    text-align:left;
}

/* hover suave */
.step-card:hover{
    transform: translateY(-6px);
    box-shadow:
        inset 0 0 0 1px rgba(250,210,1,.35),
        0 25px 70px rgba(0,0,0,.6);
}


/* TITULOS */
.step-card h4{
    color:#fad201;
    font-weight:800;
    margin-top:15px;
    margin-bottom:15px;
}


/* TEXTO */
.step-card p,
.step-card li{
    color:#ddd;
    font-size:0.95rem;
}


/* IMAGEN */
.step-card img{
    border-radius:12px;
    margin-bottom:15px;
}

.step-card{
    opacity:0;
    transform: translateY(30px);
    animation: fadeUp .8s ease forwards;
}

@keyframes fadeUp{
    to{
        opacity:1;
        transform:translateY(0);
    }
}

/* tamaños progresivos por importancia */
.step[data-step="1"] .titulo-instalaciones{ font-size:2.8rem; }
.step[data-step="2"] .titulo-instalaciones{ font-size:2.5rem; }
.step[data-step="3"] .titulo-instalaciones{ font-size:2.3rem; }
.step[data-step="4"] .titulo-instalaciones{ font-size:2.2rem; }
.step[data-step="5"] .titulo-instalaciones{ font-size:2.1rem; }
.step[data-step="6"] .titulo-instalaciones{ font-size:2.0rem; }

.step-light ul{
    list-style:none;
    padding:0;
    margin:25px 0;
}

.step-light li{
    position:relative;
    padding:14px 20px 14px 50px;
    margin-bottom:12px;

    background:rgba(250,210,1,.08);
    border-left:4px solid #fad201;
    border-radius:10px;

    font-size:1.05rem;
    color:#fff;

    box-shadow:
        inset 0 0 15px rgba(250,210,1,.08),
        0 5px 15px rgba(0,0,0,.4);

    /* estado base visible */
    opacity:1;
    transform:translateX(0);

    /* animación solo visual */
    transition:.35s cubic-bezier(.2,.8,.2,1);
}

/* icono eléctrico */
.step-light li::before{
    content:"⚡";
    position:absolute;
    left:15px;
    top:50%;
    transform:translateY(-50%);
    font-size:18px;
    color:#fad201;
    text-shadow:0 0 10px #fad201;
    transition:.35s ease;
}

/* hover potente */
.step-light li:hover{
    transform:translateX(8px) scale(1.02);
    background:rgba(250,210,1,.18);

    box-shadow:
        inset 0 0 25px rgba(250,210,1,.25),
        0 10px 30px rgba(0,0,0,.6);
}

.step-light li:hover::before{
    color:#fff;
    text-shadow:
        0 0 15px #fad201,
        0 0 30px #fad201,
        0 0 60px rgba(250,210,1,.8);
    transform:translateY(-50%) scale(1.25);
}


@keyframes listIn{
    from{
        opacity:0;
        transform:translateX(-20px);
    }
    to{
        opacity:1;
        transform:translateX(0);
    }
}

.step-light p strong{
    display:block;
    margin-top:30px;

    font-size:1.2rem;
    letter-spacing:3px;
    text-transform:uppercase;

    color:#000;

    background:linear-gradient(90deg,#fad201,#fff1a8);
    padding:16px 25px;
    border-radius:14px;

    /* caja limpia */
    box-shadow:
        0 0 10px rgba(0,0,0,.3);

    text-align:center;
}

/* 🔥 brillo SOLO en la palabra OBJETIVO */
.step-light p strong::first-letter,
.step-light p strong span{
    animation: objetivoGlow 2s infinite;
}

/* si no usas span, aplicamos al texto entero */
.step-light p strong{
    animation: objetivoGlow 2s infinite;
}

@keyframes objetivoGlow{
    0%,100%{
        text-shadow:
            0 0 8px rgba(250,210,1,.6),
            0 0 18px rgba(250,210,1,.4);
    }
    50%{
        text-shadow:
            0 0 18px rgba(250,210,1,1),
            0 0 40px rgba(250,210,1,.8),
            0 0 70px rgba(250,210,1,.5);
    }
}

/* animación del objetivo */
@keyframes objetivoPulse{
    0%,100%{
        transform:scale(1);
        box-shadow:
            0 0 25px rgba(250,210,1,.6),
            0 0 60px rgba(250,210,1,.4);
    }
    50%{
        transform:scale(1.03);
        box-shadow:
            0 0 40px rgba(250,210,1,.9),
            0 0 90px rgba(250,210,1,.6);
    }
}

/* ===============================
   BLOQUE FINAL GARANTÍA
=============================== */

.garantia-final{
    margin:120px auto 140px;
    text-align:center;
    max-width:900px;
    padding:60px 30px;

    position:relative;
}

/* título */
.garantia-titulo{
    font-family:'Raleway',sans-serif;
    font-size:2.8rem;
    font-weight:900;
    letter-spacing:4px;
    text-transform:uppercase;

    color:#fad201;

    text-shadow:
        0 0 15px rgba(250,210,1,.7),
        0 0 40px rgba(250,210,1,.4);

    animation: garantiaTitleIn 1s ease forwards;
}

/* subtítulo */
.garantia-sub{
    margin-top:12px;
    margin-bottom:55px;

    font-size:1.25rem;
    font-weight:600;
    letter-spacing:2px;
    text-transform:uppercase;

    color:#fad201;

    text-shadow:
        0 0 10px rgba(250,210,1,.6),
        0 0 25px rgba(250,210,1,.3);

    opacity:0;
    animation: garantiaSubIn 1.1s cubic-bezier(.2,.8,.2,1) forwards;
    animation-delay:.5s;
}


/* lista */
.garantia-lista{
    list-style:none;
    padding:0;
    margin:0;
}

/* items */
.garantia-lista li{
    opacity:0;
    transform:translateY(60px) scale(.9);

    margin:20px auto;
    max-width:720px;

    padding:20px 35px;

    font-size:1.25rem;
    font-weight:700;
    letter-spacing:.5px;

    color:#fff;

    background:linear-gradient(145deg,#0b0b0b,#161616);
    border-radius:18px;

    border-left:6px solid #fad201;

    box-shadow:
        inset 0 0 0 1px rgba(250,210,1,.15),
        0 20px 50px rgba(0,0,0,.55);

    animation: garantiaItemIn 1s cubic-bezier(.2,.8,.2,1) forwards;

    transition:.4s cubic-bezier(.2,.8,.2,1);
}


/* icono */
.garantia-lista li::before{
    content:"✔";
    color:#fad201;
    font-size:20px;
    font-weight:900;

    margin-right:16px;

    text-shadow:
        0 0 10px rgba(250,210,1,.8),
        0 0 25px rgba(250,210,1,.6);

    transition:.35s ease;
}

.garantia-lista li:hover{
    transform:translateY(-6px) scale(1.02);
    box-shadow:
        inset 0 0 0 1px rgba(250,210,1,.35),
        0 30px 80px rgba(0,0,0,.75);
}

.garantia-lista li:hover::before{
    color:#fff;
    text-shadow:
        0 0 15px #fad201,
        0 0 40px #fad201,
        0 0 80px rgba(250,210,1,.8);
    transform:scale(1.2);
}


/* animaciones secuenciales */
.garantia-lista li:nth-child(1){ animation-delay:.3s; }
.garantia-lista li:nth-child(2){ animation-delay:.6s; }
.garantia-lista li:nth-child(3){ animation-delay:.9s; }
.garantia-lista li:nth-child(4){ animation-delay:1.2s; }
.garantia-lista li:nth-child(5){ animation-delay:1.5s; }

/* animaciones */

@keyframes garantiaTitleIn{
    from{
        opacity:0;
        transform:translateY(-30px);
        filter:blur(6px);
    }
    to{
        opacity:1;
        transform:translateY(0);
        filter:blur(0);
    }
}

@keyframes garantiaSubIn{
    from{
        opacity:0;
        transform:translateY(15px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

@keyframes garantiaItemIn{
    0%{
        opacity:0;
        transform:translateY(40px) scale(.9);
    }
    60%{
        opacity:1;
        transform:translateY(-6px) scale(1.02);
    }
    100%{
        transform:translateY(0) scale(1);
    }
}

/* =========================================
   BLOQUEO TOTAL ANTI-DESAPARICIÓN GARANTÍA
========================================= */

.garantia-final,
.garantia-final *{
    animation-fill-mode: forwards !important;
}

.garantia-lista li{
    opacity:1 !important;
    transform: translateY(0) scale(1) !important;
    visibility: visible !important;
}

 