/* ============================================================================
   public/css/login_escena.css
   Escena vectorial del login (views/partials/login/escena.php).
   Todo es SVG y texto: se ve nítido en cualquier resolución.
   ============================================================================ */

.esc {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #041544;
    z-index: 0;
}

.esc-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

/* Pulsos de luz que recorren los circuitos */
.esc-pulse path {
    stroke-dasharray: 8 92;
    stroke-dashoffset: 100;
    animation: escPulso 5s linear infinite;
    filter: drop-shadow(0 0 4px #7DD3FC);
}
.esc-pulse path:nth-child(2) { animation-delay: 1.6s; animation-duration: 6s; }
.esc-pulse path:nth-child(3) { animation-delay: 3.1s; }
@keyframes escPulso {
    to { stroke-dashoffset: 0; }
}
.esc-circ {
    opacity: 0.35;
}

/* Ondas con un leve movimiento */
.esc-waves {
    animation: escOnda 9s ease-in-out infinite alternate;
    transform-origin: 100% 100%;
}
@keyframes escOnda {
    from { transform: translateY(0); }
    to   { transform: translateY(-10px); }
}

/* ─── Marca: logo, eslogan y servicios ─── */
.esc-brand {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: calc(var(--lg-card-w, 400px) + var(--lg-card-right, 4.5vw) + 2rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem 5rem;
    box-sizing: border-box;
    text-align: center;
    z-index: 2;
}
.lg-shell.lg-pos-left .esc-brand {
    left: calc(var(--lg-card-w, 400px) + var(--lg-card-right, 4.5vw) + 2rem);
    right: 0;
}

.esc-logo {
    width: clamp(260px, 30vw, 560px);
    height: auto;
    filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 30px rgba(31, 107, 255, 0.25));
    animation: escEntrada 0.9s cubic-bezier(0.23, 1, 0.32, 1) both;
}

.esc-slogan {
    margin: clamp(0.9rem, 2vh, 1.5rem) 0 0;
    font-size: clamp(1.15rem, 2.1vw, 2.1rem);
    font-weight: 800;
    font-style: italic;
    letter-spacing: -0.01em;
    color: #FFFFFF;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
    animation: escEntrada 0.9s 0.1s cubic-bezier(0.23, 1, 0.32, 1) both;
}

.esc-line {
    display: block;
    width: clamp(180px, 24vw, 460px);
    height: 4px;
    margin-top: 0.8rem;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, #00A8E4 18%, #FFD60A 50%, #FF2D9A 82%, transparent);
    box-shadow: 0 0 18px rgba(255, 45, 154, 0.35);
    animation: escEntrada 0.9s 0.2s cubic-bezier(0.23, 1, 0.32, 1) both;
}

.esc-servicios {
    list-style: none;
    margin: clamp(1.6rem, 5vh, 3.2rem) 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    animation: escEntrada 0.9s 0.3s cubic-bezier(0.23, 1, 0.32, 1) both;
}
.esc-servicios li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    width: clamp(110px, 10vw, 170px);
    padding: 0 0.8rem;
    color: #E6F1FF;
    font-size: clamp(0.78rem, 0.95vw, 0.98rem);
    font-weight: 600;
    line-height: 1.25;
    position: relative;
}
.esc-servicios li + li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.45), transparent);
}
.esc-servicios svg {
    width: clamp(34px, 3vw, 48px);
    height: clamp(34px, 3vw, 48px);
    color: #7DD3FC;
    filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.55));
}

@keyframes escEntrada {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .esc-pulse path,
    .esc-waves,
    .esc-logo,
    .esc-slogan,
    .esc-line,
    .esc-servicios {
        animation: none !important;
    }
}

/* ─── Móvil: escena arriba (logo y eslogan), sin servicios ─── */
@media (max-width: 900px) {
    .esc-brand,
    .lg-shell.lg-pos-left .esc-brand {
        left: 0;
        right: 0;
        padding: 1.5rem 1rem 2.5rem;
    }
    .esc-logo {
        width: min(62vw, 300px);
    }
    .esc-slogan {
        font-size: 1.02rem;
    }
    .esc-servicios {
        display: none;
    }
    /* Escena más alta para que el eslogan no quede bajo la tarjeta */
    .lg-visual {
        aspect-ratio: auto !important;
        height: 300px !important;
        max-height: none !important;
    }
    /* El logo ya está en la escena: no se repite en la tarjeta */
    .lg-panel .lg-logo {
        display: none !important;
    }
}
