/**
 * Letras de Neón Landing — CSS Phase 3.6
 *
 * Scope: body.en-preview.single-product-letras-neon
 *
 * homepage.css se carga ANTES (ver enqueue en astra-overrides.php bloque 9d)
 * y aporta los bloques reutilizados: .steps, .step__*, .slider, .slider__*,
 * .reviews, .rcard, .colors, .colors__*, .faq, .faq__*, .divider, .iw, .ey,
 * .btn, .btn--am, .btn--mg, .c
 *
 * Phase 3.6 (2026-04-28) — Reusar bloques v2 (sp2__*):
 *   - HERO: H1 1-line desktop + sub más ancho + gradient bridge embed
 *   - SPECS: tabla v2 (icon + label + value) — clases sp2__specs-*
 *   - QUÉ INCLUYE: witb v2 animation + inbox v2 (4 imgs Incluido/Opcional)
 *
 * @package astra-child
 * @since 2026-04-28
 */

/* ────── Reset Astra container ────── */
.en-preview.single-product-letras-neon .ast-container {
    display: block;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.en-preview.single-product-letras-neon #content {
    padding: 0;
    margin: 0;
}

.en-preview.single-product-letras-neon .lnl-wrap {
    display: block;
    width: 100%;
}

/* ────── Secciones genéricas ────── */
.en-preview.single-product-letras-neon .lnl-section {
    width: 100%;
    padding: clamp(56px, 7vw, 100px) 0;
    background: var(--ne);
    color: var(--bl);
}

.en-preview.single-product-letras-neon .lnl-section--light {
    background: var(--bl);
    color: var(--ne);
}

/* ────── H1 / H2 base ────── */
.en-preview.single-product-letras-neon .lnl-h1 {
    font-family: var(--ft);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.012em;
    margin: 0 0 14px;
    color: var(--bl);
    /* clamp() reducido para que quepa en 1 línea desktop */
    font-size: clamp(28px, 3.6vw, 44px);
    text-wrap: balance;
}

.en-preview.single-product-letras-neon .lnl-h2 {
    font-family: var(--ft);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 14px;
    color: var(--bl);
    font-size: clamp(24px, 3.2vw, 42px);
}

/* H2 single-line desktop, wrap mobile */
.en-preview.single-product-letras-neon section h2,
.en-preview.single-product-letras-neon .lnl-section h2 {
    text-wrap: balance;
    line-height: 1.1;
}

@media (min-width: 1024px) {
    .en-preview.single-product-letras-neon section h2,
    .en-preview.single-product-letras-neon .lnl-section h2 {
        white-space: nowrap;
        font-size: clamp(28px, 3.2vw, 42px);
    }
}

@media (max-width: 1023px) {
    .en-preview.single-product-letras-neon section h2,
    .en-preview.single-product-letras-neon .lnl-section h2 {
        font-size: clamp(22px, 5vw, 32px);
    }
}

.en-preview.single-product-letras-neon .lnl-shead {
    text-align: center;
    max-width: 760px;
    margin: 0 auto clamp(36px, 4.5vw, 56px);
}

.en-preview.single-product-letras-neon .lnl-shead__sub {
    font-size: clamp(15px, 1.15vw, 18px);
    line-height: 1.6;
    color: rgba(255, 255, 255, .65);
    margin: 8px auto 0;
    max-width: 620px;
}

/* ════════════════════════════════════════════
 * MODIFIERS DE FONDO — alternancia Phase 3.6
 * ════════════════════════════════════════════ */

/* 4 PASOS — claro */
.en-preview.single-product-letras-neon .lnl-section--steps-light,
.en-preview.single-product-letras-neon .lnl-section--steps-light.steps {
    background: var(--bl);
    color: var(--ne);
}
.en-preview.single-product-letras-neon .lnl-section--steps-light .steps__hd .ey { color: var(--mg); }
.en-preview.single-product-letras-neon .lnl-section--steps-light .steps__hd h2,
.en-preview.single-product-letras-neon .lnl-section--steps-light .step__title { color: var(--ne); }
.en-preview.single-product-letras-neon .lnl-section--steps-light .step__desc { color: #555; }
.en-preview.single-product-letras-neon .lnl-section--steps-light .step__num { color: rgba(22, 22, 22, .55); }

/* COLORES — oscuro */
.en-preview.single-product-letras-neon .lnl-section--colors-dark,
.en-preview.single-product-letras-neon .lnl-section--colors-dark.colors {
    background: var(--ne) !important;
    color: var(--bl);
}
.en-preview.single-product-letras-neon .lnl-section--colors-dark .colors__hd .ey { color: var(--am); }
.en-preview.single-product-letras-neon .lnl-section--colors-dark .colors__hd h2 { color: var(--bl); }
.en-preview.single-product-letras-neon .lnl-section--colors-dark .colors__hd p { color: rgba(255, 255, 255, .72); }
.en-preview.single-product-letras-neon .lnl-section--colors-dark .colors__card {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
}
.en-preview.single-product-letras-neon .lnl-section--colors-dark .colors__name { color: var(--bl); }

/* SPECS — claro */
.en-preview.single-product-letras-neon .lnl-section--specs-light {
    background: #FFFFFF;
    color: var(--ne);
}
.en-preview.single-product-letras-neon .lnl-section--specs-light .lnl-shead .ey { color: var(--mg); }
.en-preview.single-product-letras-neon .lnl-section--specs-light .lnl-h2 { color: var(--ne); }

/* QUÉ INCLUYE — oscuro */
.en-preview.single-product-letras-neon .lnl-section--included-dark { background: var(--ne); color: var(--bl); }

/* APLICACIONES — claro */
.en-preview.single-product-letras-neon .lnl-section--applications-light {
    background: var(--bl);
    color: var(--ne);
}
.en-preview.single-product-letras-neon .lnl-section--applications-light .lnl-shead .ey { color: var(--mg); }
.en-preview.single-product-letras-neon .lnl-section--applications-light .lnl-h2 { color: var(--ne); }
.en-preview.single-product-letras-neon .lnl-section--applications-light .lnl-shead__sub { color: #555; }

/* RESEÑAS — oscuro */
.en-preview.single-product-letras-neon .lnl-section--reviews-dark,
.en-preview.single-product-letras-neon .lnl-section--reviews-dark.reviews {
    background: var(--ne) !important;
    color: var(--bl);
}
.en-preview.single-product-letras-neon .lnl-section--reviews-dark .reviews__hd h2 { color: var(--bl); }
.en-preview.single-product-letras-neon .lnl-section--reviews-dark .reviews__score { color: var(--am); }

/* FAQ — claro */
.en-preview.single-product-letras-neon .lnl-section--faq-light,
.en-preview.single-product-letras-neon .lnl-section--faq-light.faq {
    background: var(--bl) !important;
    color: var(--ne);
}
.en-preview.single-product-letras-neon .lnl-section--faq-light .faq__hd .ey { color: var(--mg); }
.en-preview.single-product-letras-neon .lnl-section--faq-light .faq__hd h2 { color: var(--ne); }

/* ════════════════════════════════════════════
 * 1. HERO — H1 1-línea + sub ancho + embed con bridge gradient
 * ════════════════════════════════════════════ */
.en-preview.single-product-letras-neon .lnl-hero {
    padding: clamp(20px, 2.5vw, 32px) 0 0;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(123, 45, 142, .25), transparent 60%),
        radial-gradient(ellipse at 80% 90%, rgba(230, 0, 126, .18), transparent 60%),
        var(--ne);
    overflow: hidden;
}

.en-preview.single-product-letras-neon .lnl-hero__head {
    text-align: center;
    /* Más ancho para que el sub no obligue 3 líneas */
    max-width: 960px;
    margin: 0 auto;
    padding: clamp(8px, 1.2vw, 16px) 24px clamp(16px, 2vw, 24px);
}

.en-preview.single-product-letras-neon .lnl-hero__ey {
    color: var(--am);
    margin-bottom: 10px;
    font-size: 12.5px;
    letter-spacing: 0.16em;
}

.en-preview.single-product-letras-neon .lnl-hero__sub {
    font-size: clamp(14px, 1.05vw, 16px);
    line-height: 1.55;
    color: rgba(255, 255, 255, .72);
    margin: 12px auto 0;
    max-width: 920px;
    /* desktop: 2 líneas máximo. text-wrap balance reparte para evitar viuda. */
    text-wrap: balance;
}

/* ────── EMBED WRAPPER — limpio, sin bridges encima del personalizador ────── */
/* 2026-04-28: bridges eliminados (oscurecían botón Añadir al Carrito + zona superior).
   El difuminado hacia fuera lo aporta box-shadow inset del wrapper para suavizar el
   corte sin tapar contenido del embed. */
.en-preview.single-product-letras-neon .lnl-hero__embed-wrap {
    position: relative;
    width: 100%;
    isolation: isolate;
    box-shadow: inset 0 24px 32px -16px rgba(22, 22, 22, .55), inset 0 -24px 32px -16px rgba(22, 22, 22, .55);
}

@media (max-width: 768px) {
    /* Mobile: ocultar eyebrow + sub para que el embed quede más arriba */
    .en-preview.single-product-letras-neon .lnl-hero__ey,
    .en-preview.single-product-letras-neon .lnl-hero__sub {
        display: none;
    }
    .en-preview.single-product-letras-neon .lnl-hero__head {
        padding: clamp(8px, 1.2vw, 14px) 16px 8px;
    }
    /* Mobile: shortdesc visible pero compacta (collapsible <details>, no afecta SEO) */
    .en-preview.single-product-letras-neon .lnl-hero__shortdesc {
        margin-top: 16px;
    }
    .en-preview.single-product-letras-neon .lnl-hero__shortdesc-toggle {
        font-size: 11px;
        padding: 5px 12px;
    }
    /* Mobile: shadow inset más sutil para no tapar contenido en pantalla pequeña */
    .en-preview.single-product-letras-neon .lnl-hero__embed-wrap {
        box-shadow: inset 0 12px 20px -10px rgba(22, 22, 22, .5);
    }
}

.en-preview.single-product-letras-neon .lnl-hero__embed {
    width: 100%;
    height: 95vh;
    contain: layout;
    margin: 0;
    padding: 0;
    background: transparent;
    position: relative;
    z-index: 1;
}

.en-preview.single-product-letras-neon .lnl-hero__embed sign-customiser-embed:not(:defined) {
    display: block !important;
    width: 100% !important;
    height: 95vh !important;
    min-height: 95vh !important;
    contain-intrinsic-size: 100% 95vh !important;
    background: rgba(255, 255, 255, .02);
}

.en-preview.single-product-letras-neon .lnl-hero__embed sign-customiser-embed {
    display: block;
    width: 100%;
}

@media (max-width: 768px) {
    /* S7-v2 (30 abr 2026 PM): reorder visual + más espacio para el personalizador.
       - Embed primero (más zona de diseño), H1+ey+sub después (asoman como scent).
       - DOM order intacto (H1 sigue siendo el primer hijo del HTML para SEO/AT).
       - 85dvh = 85% del viewport dinámico → ~570px en iPhone 670, hueco para
         que el cliente vea opciones de color/tamaño/texto sin agobio.
       - dvh (no vh) evita rebote URL bar Safari.
       - Cero CLS porque el wrapper sigue dimensionado. */

    /* Reorder visual sin tocar DOM */
    .en-preview.single-product-letras-neon .lnl-hero {
        display: flex;
        flex-direction: column;
        padding-top: 0; /* el padding superior original lo absorbía el head; ahora va abajo */
    }
    .en-preview.single-product-letras-neon .lnl-hero__embed-wrap { order: 1; }
    .en-preview.single-product-letras-neon .lnl-hero__head {
        order: 2;
        padding-top: clamp(20px, 4vw, 28px); /* respiro del iframe arriba */
        padding-bottom: clamp(12px, 2vw, 16px);
    }
    .en-preview.single-product-letras-neon .lnl-hero__shortdesc { order: 3; }
    .en-preview.single-product-letras-neon .lnl-trustbar { order: 4; }
    .en-preview.single-product-letras-neon .lnl-hero__logos { order: 5; }

    /* Embed: 80svh — ESTABLE + zona neutra suficiente abajo.
       S7-v4 (30 abr 2026): de 85svh → 80svh para que el cliente tenga al
       menos ~75 px de zona neutra DEBAJO del iframe (incluido peek del H1)
       donde tocar para hacer scroll de página sin disparar el iframe.
       Cuentas iPhone 12 (svh ~779): iframe = 623, header ~80 → zona neutra
       debajo ~76 px (URL bar visible) y ~141 px (URL bar colapsada). svh
       sigue siendo estable (no rebote en URL bar toggle) — heredado de S7-v3. */
    .en-preview.single-product-letras-neon .lnl-hero__embed,
    .en-preview.single-product-letras-neon .lnl-hero__embed sign-customiser-embed:not(:defined) {
        height: 80vh;
        height: 80svh;
        min-height: 80vh;
        min-height: 80svh;
    }

    /* S7-v3: overrides al slider de logos para eliminar jitter en scroll mobile.
       homepage.css aplica content-visibility:auto + 3 drop-shadows pesados +
       animación translateX 160s. La combinación causa rasterización GPU
       costosa al entrar/salir del viewport. En mobile:
       - quitamos content-visibility para que el slider esté pre-rasterizado
       - reducimos los 3 drop-shadows a 1 más sutil (menos capas blur)
       - will-change: transform en el track para promover a GPU layer
       Desktop sigue intacto (la regla está dentro del media query). */
    .en-preview.single-product-letras-neon .lnl-hero__logos .slider {
        content-visibility: visible !important;
        contain-intrinsic-size: auto !important;
    }
    .en-preview.single-product-letras-neon .lnl-hero__logos .slider__track {
        will-change: transform;
        transform: translateZ(0); /* fuerza compositing layer */
    }
    .en-preview.single-product-letras-neon .lnl-hero__logos .slider__track img,
    .en-preview.single-product-letras-neon .lnl-hero__logos .slider__track picture {
        filter: grayscale(100%) brightness(3.5)
                drop-shadow(0 0 6px rgba(255, 255, 255, .55)) !important;
    }
}

/* R30: Skeleton loader del embed mientras IntersectionObserver no dispara.
   Cero CLS porque el wrapper .lnl-hero__embed ya tiene 95vh/90vh fijo. */
.en-preview.single-product-letras-neon #lnl-sc-embed-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 100%);
    border-radius: 12px;
    overflow: hidden;
}
.en-preview.single-product-letras-neon #lnl-sc-embed-container[data-sc-loaded="1"] .lnl-sc-skeleton {
    display: none;
}
.en-preview.single-product-letras-neon .lnl-sc-skeleton {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.en-preview.single-product-letras-neon .lnl-sc-skeleton__bar {
    width: 60%;
    max-width: 320px;
    height: 4px;
    background: rgba(255, 237, 0, 0.2);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}
.en-preview.single-product-letras-neon .lnl-sc-skeleton__shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 237, 0, 0.6), transparent);
    animation: lnl-sc-shimmer 1.4s ease-in-out infinite;
}
@keyframes lnl-sc-shimmer {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
@media (prefers-reduced-motion: reduce) {
    .en-preview.single-product-letras-neon .lnl-sc-skeleton__shimmer { animation: none; }
}

/* ────── Trust bar — 1 fila horizontal hue-rotate ────── */
.en-preview.single-product-letras-neon .lnl-trustbar {
    list-style: none;
    margin: 0;
    padding: clamp(14px, 1.6vw, 20px) clamp(20px, 3vw, 48px);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: clamp(16px, 3vw, 40px);
    background: linear-gradient(180deg, rgba(255, 237, 0, 0) 0%, rgba(255, 237, 0, .05) 50%, rgba(255, 237, 0, 0) 100%);
    border-top: 1px solid rgba(255, 237, 0, .25);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.en-preview.single-product-letras-neon .lnl-trustbar__item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--bl);
    font-family: var(--fb);
    font-weight: 700;
    font-size: clamp(12.5px, 1vw, 15px);
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.en-preview.single-product-letras-neon .lnl-trustbar__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: var(--am);
    animation: lnl-hue 8s linear infinite;
    animation-delay: calc(var(--lnl-i, 0) * -1.6s);
    will-change: filter;
}

.en-preview.single-product-letras-neon .lnl-trustbar__icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 4px currentColor);
}

@keyframes lnl-hue {
    0%   { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

@media (max-width: 540px) {
    .en-preview.single-product-letras-neon .lnl-trustbar { gap: 14px 22px; padding: 14px 16px; }
    .en-preview.single-product-letras-neon .lnl-trustbar__item { font-size: 12px; }
    .en-preview.single-product-letras-neon .lnl-trustbar__icon { width: 18px; height: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    .en-preview.single-product-letras-neon .lnl-trustbar__icon { animation: none; filter: none; }
}

/* ────── Logos integrados al hero ────── */
.en-preview.single-product-letras-neon .lnl-hero__logos {
    background: transparent;
    padding: clamp(28px, 3.5vw, 48px) 0 clamp(36px, 4.5vw, 56px);
    margin-top: 0;
}

.en-preview.single-product-letras-neon .lnl-hero__logos .slider__label {
    color: rgba(255, 255, 255, .72);
    text-align: center;
    margin-bottom: clamp(16px, 1.8vw, 22px);
    font-size: clamp(13px, 1vw, 15px);
    letter-spacing: .02em;
    padding: 0 24px;
}

/* Efecto neón heredado de homepage.css — drop-shadow blanco con glow magenta hover.
   NO sobreescribimos el filter aquí para mantener el efecto. */

/* ════════════════════════════════════════════════════════════════════════════
   ERR-038 Fallback (04 may 2026): cuando el toggle
   `espacioneon_letras_neon_fallback` está activo, el hero muestra un form
   de captura de leads en lugar del SC embed. Este bloque estiliza:
   1. El aviso superior "Estamos mejorando…"
   2. El wrapper que contiene el form para que respire dentro del hero oscuro.
   El form en sí (lead-form-shell) hereda el CSS .lpl-* de
   single-product-logotipo-critical.css (cargado condicionalmente desde
   astra-overrides.php gracias al body class `single-product-logotipo`
   añadido cuando el fallback está activo).
   ═══════════════════════════════════════════════════════════════════════════ */

.en-preview.single-product-letras-neon--fallback .lnl-hero__embed-wrap {
    box-shadow: none;
    background: transparent;
    padding-top: clamp(8px, 1.5vw, 16px);
    padding-bottom: clamp(40px, 5vw, 64px);
}

.en-preview.single-product-letras-neon--fallback .lnl-hero__fallback {
    width: min(680px, 100% - 32px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: clamp(20px, 2.5vw, 28px);
}

.en-preview.single-product-letras-neon--fallback .lnl-fallback-notice {
    text-align: center;
    background: linear-gradient(180deg, rgba(255, 237, 0, .06) 0%, rgba(255, 237, 0, 0) 100%);
    border: 1px solid rgba(255, 237, 0, .25);
    border-radius: 14px;
    padding: clamp(20px, 2.4vw, 28px) clamp(20px, 2.6vw, 28px);
    color: #fff;
}

.en-preview.single-product-letras-neon--fallback .lnl-fallback-notice__ey {
    font-family: 'Raleway', sans-serif;
    font-weight: 800;
    font-size: 11px;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: #FFED00;
    margin: 0 0 10px;
    text-shadow: 0 0 10px rgba(255, 237, 0, .55);
}

.en-preview.single-product-letras-neon--fallback .lnl-fallback-notice__title {
    font-family: 'Raleway', sans-serif;
    font-weight: 800;
    font-size: clamp(20px, 2.4vw, 26px);
    line-height: 1.25;
    color: #fff;
    margin: 0 0 10px;
}

.en-preview.single-product-letras-neon--fallback .lnl-fallback-notice__sub {
    font-family: 'Nunito', sans-serif;
    font-size: clamp(14px, 1.1vw, 15px);
    line-height: 1.55;
    color: rgba(255, 255, 255, .8);
    margin: 0;
    max-width: 540px;
    margin-inline: auto;
}

/* Wrapper del form: fondo claro para contraste con el hero oscuro.
   El lead-form interno aplica sus propios estilos .lpl-formwrap__form/.lead-form. */
.en-preview.single-product-letras-neon--fallback .lnl-hero__fallback-form {
    background: #ffffff;
    border-radius: 18px;
    padding: clamp(20px, 2.6vw, 32px);
    box-shadow:
        0 0 0 1px rgba(255, 237, 0, .12),
        0 18px 48px -16px rgba(0, 0, 0, .55);
}

.en-preview.single-product-letras-neon--fallback .lnl-hero__fallback-wa {
    text-align: center;
    margin: clamp(14px, 1.6vw, 18px) 0 0;
}

.en-preview.single-product-letras-neon--fallback .lnl-hero__fallback-wa .lnl-btn--whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Hide elementos que asumen el SC embed (skeleton, embed wrap-only styles) cuando fallback activo */
.en-preview.single-product-letras-neon--fallback .lnl-sc-skeleton,
.en-preview.single-product-letras-neon--fallback #lnl-sc-embed-container {
    display: none !important;
}

@media (max-width: 600px) {
    .en-preview.single-product-letras-neon--fallback .lnl-hero__fallback-form {
        padding: 18px 14px;
        border-radius: 14px;
    }
    .en-preview.single-product-letras-neon--fallback .lnl-fallback-notice {
        padding: 18px 16px;
    }
}

