/* ============================================================
   ClickBox — Página Publicidad ATL  |  v1
   Depende de header.css (variables --cbh-* ya definidas ahí)
   ============================================================ */

/* ── Variables locales ── */
:root {
    --atl-verde:   #51d728;
    --atl-verde-d: #3fb31e;
    --atl-morado:  #3b2de0;
    --atl-dark:    #060927;
    --atl-gray:    #f4f5fb;
    --atl-text:    #1a1a3e;
    --atl-muted:   #5a5a8a;
    --atl-ease:    cubic-bezier(.4,0,.2,1);
    --atl-max:     960px;
}

/* ── Reset scoped ── */
.cb-atl *, .cb-atl *::before, .cb-atl *::after { box-sizing: border-box; }
.cb-atl { font-family: 'Montserrat', sans-serif; color: var(--atl-text); overflow-x: hidden; }

/* ── Contenedor ── */
.atl-container { max-width: var(--atl-max); margin: 0 auto; }

/* ============================================================
   HERO — gestionado por home.css (cb-hero, cb-hero__inner, etc.)
   Solo sobreescribimos el subtítulo para el texto ATL
   ============================================================ */
/* (sin reglas hero aquí — todo viene de home.css) */

/* ============================================================
   PLACEHOLDER ELIMINADO — inicio secciones ATL
   ============================================================ */
.atl-hero--unused {
    position: relative;
    overflow: hidden;
    display: block;
    background: var(--atl-dark);
    line-height: 0;          /* elimina espacio inline bajo la imagen */
}

/* ── Imagen de fondo ── */
.atl-hero__img-wrap {
    position: relative;
    width: 100%;
    line-height: 0;
}
.atl-hero__img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Overlay oscuro izquierda → transparente derecha */
.atl-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(6,9,39,.88) 30%,
        rgba(6,9,39,.45) 60%,
        rgba(6,9,39,.10) 100%
    );
    z-index: 1;
}

/* ── Rejilla neon ── */
.atl-hero__grid {
    position: absolute;
    inset: 0;
    z-index: 2;
    background-image:
        linear-gradient(rgba(81,215,40,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(81,215,40,.04) 1px, transparent 1px);
    background-size: 48px 48px;
    animation: atl-gridDrift 22s linear infinite;
    pointer-events: none;
}
@keyframes atl-gridDrift {
    from { background-position: 0 0; }
    to   { background-position: 48px 48px; }
}

/* ── Glow radial ── */
.atl-hero__glow {
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 480px; height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(81,215,40,.15) 0%, transparent 70%);
    z-index: 3;
    animation: atl-glowPulse 4s ease-in-out infinite;
    pointer-events: none;
}
@keyframes atl-glowPulse {
    0%,100% { transform: translateY(-50%) scale(1);    opacity: .7; }
    50%      { transform: translateY(-50%) scale(1.2);  opacity: 1;  }
}

/* ── Partículas ── */
.atl-hero__particles {
    position: absolute;
    inset: 0;
    z-index: 3;
    overflow: hidden;
    pointer-events: none;
}
.atl-particle {
    position: absolute;
    border-radius: 50%;
    animation: atl-particleRise linear infinite;
}
.atl-particle:nth-child(1){width:4px;height:4px;background:var(--atl-verde);left:5%;top:80%;animation-duration:7s;animation-delay:0s}
.atl-particle:nth-child(2){width:5px;height:5px;background:rgba(91,74,255,.9);left:15%;top:65%;animation-duration:9s;animation-delay:1.2s}
.atl-particle:nth-child(3){width:3px;height:3px;background:var(--atl-verde);left:28%;top:90%;animation-duration:6s;animation-delay:2.5s}
.atl-particle:nth-child(4){width:4px;height:4px;background:rgba(59,45,224,.8);left:50%;top:75%;animation-duration:8s;animation-delay:.7s}
.atl-particle:nth-child(5){width:3px;height:3px;background:var(--atl-verde);left:70%;top:85%;animation-duration:10s;animation-delay:3s}
.atl-particle:nth-child(6){width:6px;height:6px;background:rgba(255,255,255,.2);left:85%;top:70%;animation-duration:7.5s;animation-delay:1.8s}
.atl-particle:nth-child(7){width:3px;height:3px;background:var(--atl-verde);left:42%;top:55%;animation-duration:5.5s;animation-delay:4s}
.atl-particle:nth-child(8){width:4px;height:4px;background:rgba(81,215,40,.6);left:22%;top:40%;animation-duration:8.5s;animation-delay:.4s}
@keyframes atl-particleRise {
    0%   { transform: translateY(0) scale(1);       opacity: .9; }
    100% { transform: translateY(-110vh) scale(.4);  opacity: 0;  }
}

/* ── Texto — posición absoluta sobre la imagen ── */
.atl-hero__content {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    z-index: 10;
    line-height: normal;
}
.atl-hero__pre {
    font-family: 'Qandaru', 'Pacifico', cursive;
    font-size: clamp(40px, 6vw, 76px);
    color: var(--atl-verde);
    line-height: 1;
    text-shadow: 0 0 40px rgba(81,215,40,.6), 0 0 80px rgba(81,215,40,.3);
    animation: atl-slideLeft .9s var(--atl-ease) .2s both;
}
.atl-hero__title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(48px, 8vw, 104px);
    font-weight: 900;
    color: #fff;
    line-height: .9;
    letter-spacing: -.02em;
    margin-top: -4px;
    text-shadow: 0 0 60px rgba(255,255,255,.2);
    animation: atl-slideLeft .9s var(--atl-ease) .45s both;
}
@keyframes atl-slideLeft {
    from { opacity: 0; transform: translateX(-60px) translateY(0); }
    to   { opacity: 1; transform: translateX(0)     translateY(0); }
}

/* ============================================================
   SECCIÓN BASE
   ============================================================ */
.atl-section { padding: 80px 24px; }

/* ============================================================
   INTRO
   ============================================================ */
.atl-intro {
    background: var(--atl-gray);
    padding: 80px 24px;
    text-align: center;
}
.atl-intro__heading {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(26px, 4vw, 42px);
    font-weight: 800;
    color: var(--atl-text);
    line-height: 1.2;
}
.atl-intro__heading em {
    font-style: normal;
    color: var(--atl-morado);
}
.atl-intro__sub {
    font-style: italic;
    color: var(--atl-muted);
    font-size: 1.1rem;
    margin-top: 18px;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* ============================================================
   GRID DOS COLUMNAS
   Texto 36% | Imagen 64% — imagen siempre dominante
   ============================================================ */
.atl-split {
    display: grid;
    grid-template-columns: 36% 1fr;
    gap: 48px;
    align-items: center;
}

/* Cuando la imagen va primero (sección Proceso: img izq, texto der) */
.atl-split--img-first {
    grid-template-columns: 1fr 36%;
}

/* Label de sección */
.atl-label {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(16px, 2vw, 22px);
    font-weight: 900;
    color: var(--atl-verde);
    margin-bottom: 16px;
    letter-spacing: .03em;
    text-transform: uppercase;
}
.atl-label--purple { color: var(--atl-morado); }

.atl-body {
    color: var(--atl-muted);
    font-size: .95rem;
    line-height: 1.75;
}

/* ── Imagen real en secciones ── */
.atl-section-img {
    width: 100%;
    border-radius: 16px;
    display: block;
    box-shadow: 0 8px 40px rgba(59,45,224,.15);
    transition: transform .45s var(--atl-ease), box-shadow .45s var(--atl-ease);
}
.atl-section-img:hover {
    transform: translateY(-8px) scale(1.015);
    box-shadow: 0 20px 60px rgba(59,45,224,.28);
}

/* ============================================================
   ¿QUÉ INCLUYE?
   ============================================================ */
.atl-incluye {
    background: var(--atl-gray);
    text-align: center;
}
.atl-section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(20px, 3vw, 30px);
    font-weight: 800;
    color: var(--atl-morado);
    margin-bottom: 52px;
}
.atl-icons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}
.atl-icon-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.atl-icon-wrap {
    width: 90px; height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.atl-icon-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 6px 16px rgba(59,45,224,.25));
    transition: filter .3s;
}
.atl-icon-card:hover .atl-icon-img {
    filter: drop-shadow(0 10px 24px rgba(59,45,224,.45));
}

/* Animación float con delays escalonados */
@keyframes atl-iconFloat {
    0%,100% { transform: translateY(0);    }
    50%      { transform: translateY(-12px); }
}
.atl-float-1 { animation: atl-iconFloat 3.2s ease-in-out infinite;        }
.atl-float-2 { animation: atl-iconFloat 3.2s ease-in-out .5s infinite;    }
.atl-float-3 { animation: atl-iconFloat 3.2s ease-in-out 1s infinite;     }
.atl-float-4 { animation: atl-iconFloat 3.2s ease-in-out 1.5s infinite;   }

.atl-icon-label {
    font-size: .875rem;
    font-weight: 700;
    color: var(--atl-text);
    line-height: 1.4;
    max-width: 130px;
}

/* ============================================================
   PROCESO
   ============================================================ */
.atl-proceso-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 900;
    color: var(--atl-morado);
    margin-bottom: 28px;
}
.atl-steps { list-style: none; }
.atl-step {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 14px 0;
    border-bottom: 1px solid #ebebf8;
    font-size: 1.05rem;
    color: var(--atl-text);
    font-weight: 500;
}
.atl-step:last-child { border-bottom: none; }
.atl-step-num {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--atl-morado);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: .9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(59,45,224,.35);
    transition: transform .3s, box-shadow .3s;
}
.atl-step:hover .atl-step-num {
    transform: scale(1.15);
    box-shadow: 0 6px 24px rgba(59,45,224,.5);
}

/* ============================================================
   RESULTADO
   ============================================================ */
.atl-resultado {
    background: var(--atl-gray);
    text-align: center;
    padding: 80px 24px;
}
.atl-resultado__title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 900;
    color: var(--atl-text);
    letter-spacing: .04em;
}
.atl-resultado__text {
    font-style: italic;
    font-size: 1.2rem;
    color: var(--atl-muted);
    margin-top: 14px;
}

/* ============================================================
   CTA
   ============================================================ */
.atl-cta-wrap { margin-top: 48px; }
.atl-cta {
    display: inline-block;
    background: var(--atl-verde);
    color: #fff;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 20px 64px;
    border-radius: 60px;
    transition: background .3s, transform .3s, box-shadow .3s;
    animation: atl-ctaPulse 2.5s ease-in-out infinite;
    box-shadow: 0 10px 40px rgba(81,215,40,.45);
}
.atl-cta:hover {
    background: var(--atl-verde-d);
    animation: none;
    transform: scale(1.05);
    box-shadow: 0 14px 50px rgba(81,215,40,.6);
    color: #fff;
}
@keyframes atl-ctaPulse {
    0%,100% { box-shadow: 0 10px 40px rgba(81,215,40,.45); transform: scale(1);    }
    50%      { box-shadow: 0 16px 56px rgba(81,215,40,.65); transform: scale(1.03); }
}

/* ============================================================
   ANIMACIONES DE SCROLL
   ============================================================ */
.atl-up    { opacity: 0; transform: translateY(48px);  transition: opacity .75s var(--atl-ease), transform .75s var(--atl-ease); }
.atl-left  { opacity: 0; transform: translateX(-56px); transition: opacity .75s var(--atl-ease), transform .75s var(--atl-ease); }
.atl-right { opacity: 0; transform: translateX(56px);  transition: opacity .75s var(--atl-ease), transform .75s var(--atl-ease); }
.atl-in    { opacity: 1 !important; transform: translate(0) !important; }
.atl-d1 { transition-delay: .10s !important; }
.atl-d2 { transition-delay: .22s !important; }
.atl-d3 { transition-delay: .34s !important; }
.atl-d4 { transition-delay: .46s !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .atl-split,
    .atl-split--img-first { grid-template-columns: 1fr; gap: 32px; }
    .atl-icons             { grid-template-columns: repeat(2, 1fr); }
    .atl-section           { padding: 56px 20px; }
    .atl-intro             { padding: 56px 20px; }
    .atl-resultado         { padding: 56px 20px; }
}
@media (max-width: 480px) {
    .atl-icons { gap: 18px; }
}
