/* ============================================================================
   PrecioClaro — Landing Page Premium
   Paleta corporativa oscura con acentos brand y gráficas de fondo
   ============================================================================ */

/* Tokens locales en el árbol html→body para que body/footer puedan usar var(--lp-*).
   Antes vivían solo en .lp-page (hijo); las custom props no suben al padre y el body
   caía al tema Carbon (--bg blanco) + overscroll mostraba html sin pintar. */
html:has(body.page-landing) {
    --lp-bg-0:        #050810;
    --lp-bg-1:        #0a0f1c;
    --lp-bg-2:        #0e1626;
    --lp-bg-3:        #131f33;
    --lp-surface:     rgba(255, 255, 255, 0.03);
    --lp-surface-hi:  rgba(255, 255, 255, 0.06);
    --lp-border:      rgba(255, 255, 255, 0.08);
    --lp-border-hi:   rgba(255, 255, 255, 0.16);

    --lp-text:        #e6ecf5;
    --lp-text-dim:    #94a3b8;
    --lp-text-muted:  #64748b;

    --lp-accent:      #4f8cff;
    --lp-accent-hi:   #7aa9ff;
    --lp-accent-dim:  #1e3a8a;
    --lp-cyan:        #22d3ee;
    --lp-emerald:     #34d399;
    --lp-amber:       #fbbf24;
    --lp-rose:        #fb7185;
    --lp-violet:      #a78bfa;

    --lp-grid:        rgba(120, 169, 255, 0.06);
    --lp-grid-bold:   rgba(120, 169, 255, 0.12);

    /* Fondo del documento: mismo tono que el hero en overscroll / bounce */
    background-color: var(--lp-bg-0);
    overscroll-behavior: none;
}

.lp-page {
    background: var(--lp-bg-0);
    color: var(--lp-text);
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-feature-settings: 'ss01', 'cv11';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Cubrir tema claro del shell y evitar “rubber band” que destapa blanco arriba/abajo */
body.page-landing {
    background: var(--lp-bg-0);
    color: var(--lp-text);
    overscroll-behavior-y: none;
}

/* ============================================================================
   HEADER PREMIUM — solo cuando hay .lp-page en el body
   Estilo tipo Stripe/Linear: alto, glass, espaciado generoso
   ============================================================================ */
body.page-landing .shell-header {
    height: auto;
    min-height: 184px;
    padding: 0.75rem 0 1rem;
    background: transparent !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid transparent;
    color: var(--lp-text);
    transition:
        background .3s ease,
        border-color .3s ease,
        backdrop-filter .3s ease,
        min-height .35s ease,
        padding .35s ease;
}
body.page-landing .shell-header__inner {
    height: auto;
    min-height: 0;
    max-width: 1280px;
    padding: 0 2.5rem;
    gap: 0.75rem;
    display: flex;
    align-items: center;
}

/* Logo — sin separador vertical, sin feedback visual al pasar el mouse */
body.page-landing .shell-header__logo,
body.page-landing .shell-header__logo:hover,
body.page-landing .shell-header__logo:focus,
body.page-landing .shell-header__logo:active {
    border-right: none;
    padding: 0 1rem 0 0;
    gap: 0.625rem;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: -0.005em;
    color: #ffffff !important;
    background: transparent !important;
    box-shadow: none !important;
    opacity: 1 !important;
    text-decoration: none !important;
    border-radius: 0;
    outline: none;
}
/* 4× la altura de los CTAs (38px → 152px): “doble del doble” */
body.page-landing .shell-header__brand-img {
    height: 152px;
    max-height: 152px;
    width: auto;
    max-width: min(560px, 92vw);
    filter: drop-shadow(0 0 12px rgba(79, 140, 255, 0.2));
    transition: height .35s ease, max-height .35s ease, max-width .35s ease, filter .3s ease;
}

/* Nav central */
body.page-landing .shell-header__nav {
    margin-left: 1.25rem;
    gap: 0.125rem;
    align-items: center;
    height: auto;
}
body.page-landing .shell-header__link {
    height: 36px;
    padding: 0 0.875rem;
    color: var(--lp-text-dim);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.005em;
    border-bottom: none;
    border-radius: 6px;
    transition: color .2s ease, background .2s ease;
}
body.page-landing .shell-header__link:hover {
    color: var(--lp-text);
    background: var(--lp-surface);
}
body.page-landing .shell-header__link.active {
    color: var(--lp-text);
    background: var(--lp-surface);
    border-bottom: none;
    position: relative;
}
body.page-landing .shell-header__link.active::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -2px;
    width: 16px;
    height: 2px;
    background: linear-gradient(90deg, var(--lp-accent), var(--lp-cyan));
    border-radius: 2px;
    transform: translateX(-50%);
}

/* Acciones de la derecha */
body.page-landing .shell-header__actions {
    margin-left: auto;
    gap: 0.5rem;
    align-items: center;
}

/* En la landing siempre vamos en modo oscuro premium → ocultar el toggle de tema
   (cuando estás en dashboard, admin, etc. el toggle sí aparece y funciona) */
body.page-landing .theme-toggle { display: none; }

/* CTAs guest premium en la landing */
body.page-landing .shell-header__guest {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 100%;
}
body.page-landing .shell-header__signin,
body.page-landing .shell-header__signup {
    display: inline-flex;
    align-items: center;
    height: 38px;
    padding: 0 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.005em;
    text-decoration: none;
    transition: all .2s ease;
    white-space: nowrap;
    line-height: 1;
}
body.page-landing .shell-header__signin {
    color: #ffffff;
    border: 1px solid transparent;
    background: transparent;
}
body.page-landing .shell-header__signin:hover {
    color: #ffffff;
    background: var(--lp-surface);
    text-decoration: none;
}
body.page-landing .shell-header__signup {
    background: linear-gradient(135deg, #4f8cff 0%, #2563eb 100%);
    border: 1px solid transparent;
    box-shadow:
        0 6px 18px -6px rgba(79, 140, 255, 0.55),
        inset 0 1px 0 rgba(255,255,255,0.22);
    color: #fff;
    padding: 0 1.125rem;
}
body.page-landing .shell-header__signup:hover {
    background: linear-gradient(135deg, #5b95ff 0%, #2d6ce8 100%);
    box-shadow:
        0 10px 24px -6px rgba(79, 140, 255, 0.7),
        inset 0 1px 0 rgba(255,255,255,0.3);
    transform: translateY(-1px);
    color: #fff;
    text-decoration: none;
}

/* Bloque del usuario / botón salir */
body.page-landing .shell-header__user {
    gap: 0.75rem;
    padding-left: 0.75rem;
    margin-left: 0.25rem;
    border-left: 1px solid var(--lp-border);
    height: 36px;
}
body.page-landing .shell-header__user-name {
    color: var(--lp-text);
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 1;
}
body.page-landing .shell-header__user .btn,
body.page-landing .shell-header__user .btn--ghost {
    height: 36px;
    padding: 0 0.875rem;
    font-size: 0.8125rem;
    font-weight: 500;
    background: transparent;
    color: var(--lp-text-dim);
    border: 1px solid var(--lp-border);
    border-radius: 8px;
    transition: color .2s, background .2s, border-color .2s;
}
body.page-landing .shell-header__user .btn:hover,
body.page-landing .shell-header__user .btn--ghost:hover {
    color: var(--lp-text);
    background: var(--lp-surface);
    border-color: var(--lp-border-hi);
}

/* Estado scrolled — solo aquí aparece el glass + border, mientras estás
   en el hero el header es totalmente transparente y las gráficas pasan
   detrás sin interrupción visual */
body.page-landing .shell-header.is-scrolled {
    min-height: 64px;
    height: 64px;
    padding: 0;
    background: rgba(5, 8, 16, 0.78) !important;
    backdrop-filter: saturate(160%) blur(16px);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    border-bottom-color: var(--lp-border);
}
body.page-landing .shell-header.is-scrolled .shell-header__brand-img {
    height: 38px;
    max-height: 38px;
    max-width: min(280px, 72vw);
}

/* Mobile menu toggle integrado */
body.page-landing .mobile-menu-toggle {
    color: var(--lp-text);
}

/* Mobile nav overlay — dark theme on landing */
body.page-landing .mobile-nav-overlay {
    background: var(--lp-bg-1);
    border-top: 1px solid var(--lp-border);
}
body.page-landing .mobile-nav-overlay a {
    color: var(--lp-text);
    border-bottom-color: var(--lp-border);
}
body.page-landing .mobile-nav-overlay a:hover,
body.page-landing .mobile-nav-overlay a.active {
    background: var(--lp-surface-hi);
}
body.page-landing .mobile-nav__user {
    background: var(--lp-bg-2);
    border-bottom-color: var(--lp-border);
}
body.page-landing .mobile-nav__user-name { color: var(--lp-text); }
body.page-landing .mobile-nav__user-email { color: var(--lp-text-dim); }
body.page-landing .mobile-nav__children {
    background: var(--lp-bg-2);
}
body.page-landing .mobile-nav__children a {
    color: var(--lp-text-dim);
    border-bottom-color: var(--lp-border);
}
body.page-landing .mobile-nav__children a:hover {
    color: var(--lp-text);
}

/* El hero ya tiene padding interno suficiente para no tapar texto bajo el header fijo;
   dejamos el main sin padding y sin margin-top (style.css le pone 48px por default,
   eso causaba un GAP BLANCO entre el header y el hero). */
body.page-landing .main-content {
    padding: 0;
    margin-top: 0 !important;
    background: transparent;
}
/* Footer: franja ligeramente distinta al hero (--lp-bg-1), neutra, sin blanco puro del tema Carbon */
body.page-landing .shell-footer {
    background: var(--lp-bg-1);
    border-top: 1px solid var(--lp-border);
    color: var(--lp-text-dim);
    padding: 2rem;
}
body.page-landing .shell-footer__inner {
    color: var(--lp-text-muted);
    max-width: 1200px;
    text-align: center;
    font-size: 0.8125rem;
    letter-spacing: 0.01em;
}

/* ============================================================================
   HERO — gradiente + grid + gráfica animada
   ============================================================================ */
.lp-hero {
    position: relative;
    overflow: hidden;
    padding: 7rem 2rem 6rem;
    background:
        radial-gradient(ellipse 60% 50% at 80% 0%, rgba(79, 140, 255, 0.18) 0%, transparent 60%),
        radial-gradient(ellipse 70% 60% at 20% 100%, rgba(34, 211, 238, 0.10) 0%, transparent 60%),
        linear-gradient(180deg, var(--lp-bg-0) 0%, var(--lp-bg-1) 100%);
    isolation: isolate;
}

.lp-hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--lp-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--lp-grid) 1px, transparent 1px);
    background-size: 56px 56px;
    background-position: -1px -1px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
    z-index: 0;
    pointer-events: none;
}

.lp-hero__chart {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.55;
    pointer-events: none;
}
.lp-hero__chart svg {
    width: 100%;
    height: 100%;
    display: block;
}
.lp-hero__chart .lp-line {
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 8px currentColor);
    stroke-dasharray: 1600;
    stroke-dashoffset: 1600;
    animation: lp-draw 4.5s ease-out forwards;
}
.lp-hero__chart .lp-line--a { color: #4f8cff; animation-delay: .1s; }
.lp-hero__chart .lp-line--b { color: #22d3ee; animation-delay: .35s; }
.lp-hero__chart .lp-line--c { color: #34d399; animation-delay: .6s; opacity: .7; }
.lp-hero__chart .lp-line--d { color: #a78bfa; animation-delay: .85s; opacity: .55; }

@keyframes lp-draw {
    to { stroke-dashoffset: 0; }
}

.lp-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.lp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(79, 140, 255, 0.12), rgba(34, 211, 238, 0.08));
    border: 1px solid var(--lp-border-hi);
    color: var(--lp-accent-hi);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
}
.lp-eyebrow__pulse {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--lp-emerald);
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
    animation: lp-pulse 2s infinite;
}
@keyframes lp-pulse {
    0%   { box-shadow: 0 0 0 0   rgba(52, 211, 153, 0.6); }
    70%  { box-shadow: 0 0 0 12px rgba(52, 211, 153, 0); }
    100% { box-shadow: 0 0 0 0   rgba(52, 211, 153, 0); }
}

.lp-hero h1 {
    font-size: clamp(2.5rem, 5.6vw, 4.5rem);
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0 0 1.5rem;
    color: var(--lp-text);
}
.lp-hero h1 .lp-grad {
    background: linear-gradient(135deg, #4f8cff 0%, #22d3ee 50%, #34d399 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 500;
}

.lp-hero__sub {
    max-width: 720px;
    margin: 0 auto 2.5rem;
    color: var(--lp-text-dim);
    font-size: clamp(1rem, 1.4vw, 1.25rem);
    line-height: 1.6;
    font-weight: 400;
}

.lp-hero__cta {
    display: flex;
    gap: 0.875rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

/* Acceso demo: fuera del hero (evita overflow:hidden) */
.lp-dev-demo-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 1.5rem;
    text-align: center;
}

/* Acceso demo: solo se muestra en index cuando HTTP_HOST es localhost (ver index.php) */
.lp-dev-demo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin: 0 auto 3rem;
    max-width: 520px;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    background: var(--lp-surface);
    border: 1px dashed var(--lp-border-hi);
}
.lp-dev-demo__label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--lp-text-muted);
}
.lp-dev-demo__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}
.lp-dev-demo__form {
    margin: 0;
}
.lp-dev-demo__btn {
    font-size: 0.8125rem;
    height: 2.375rem;
    padding: 0 1rem;
    border-style: dashed;
}

.lp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    height: 3rem;
    padding: 0 1.5rem;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .25s ease, background .2s ease, border-color .2s ease;
    cursor: pointer;
    border: 1px solid transparent;
    white-space: nowrap;
}
.lp-btn:hover {
    transform: translateY(-1px);
}
.lp-btn--primary {
    background: linear-gradient(135deg, #4f8cff 0%, #2563eb 100%);
    color: #fff;
    box-shadow: 0 8px 24px -8px rgba(79, 140, 255, 0.55), inset 0 1px 0 rgba(255,255,255,0.18);
}
.lp-btn--primary:hover {
    box-shadow: 0 12px 32px -8px rgba(79, 140, 255, 0.7), inset 0 1px 0 rgba(255,255,255,0.25);
}
.lp-btn--ghost {
    background: var(--lp-surface);
    color: var(--lp-text);
    border-color: var(--lp-border-hi);
    backdrop-filter: blur(8px);
}
.lp-btn--ghost:hover {
    background: var(--lp-surface-hi);
    border-color: var(--lp-text-muted);
}
.lp-btn__arrow {
    transition: transform .2s ease;
}
.lp-btn:hover .lp-btn__arrow {
    transform: translateX(3px);
}

/* CTA showcase “Panel administrativo”: sin lift, sombra ni flecha animada al pasar el mouse */
.lp-btn--static-hover {
    transition: background .2s ease, border-color .2s ease;
}
.lp-btn--static-hover:hover,
.lp-btn--static-hover:focus-visible {
    transform: none;
}
.lp-btn--static-hover.lp-btn--primary:hover,
.lp-btn--static-hover.lp-btn--primary:focus-visible {
    box-shadow: 0 8px 24px -8px rgba(79, 140, 255, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.lp-btn--static-hover:hover .lp-btn__arrow,
.lp-btn--static-hover:focus-visible .lp-btn__arrow {
    transform: none;
}
.lp-btn--static-hover:focus-visible {
    outline: 2px solid var(--lp-accent-hi);
    outline-offset: 3px;
}

/* Logos / trust bar */
.lp-trust {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}
.lp-trust__label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--lp-text-muted);
    font-weight: 500;
}
.lp-trust__brands {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 2.5rem;
    justify-content: center;
    align-items: center;
    color: var(--lp-text-dim);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.04em;
    opacity: 0.8;
}
.lp-trust__brands span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: color .2s ease, opacity .2s ease;
}
.lp-trust__brands span:hover {
    color: var(--lp-text);
    opacity: 1;
}
.lp-trust__brands .lp-flag {
    font-size: 1rem;
}

/* ============================================================================
   STATS BAR — métricas en vivo
   ============================================================================ */
.lp-stats {
    position: relative;
    padding: 3rem 2rem;
    background: linear-gradient(180deg, var(--lp-bg-1) 0%, var(--lp-bg-2) 100%);
    border-top: 1px solid var(--lp-border);
    border-bottom: 1px solid var(--lp-border);
}
.lp-stats__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}
.lp-stat {
    padding: 1rem 1.5rem;
    border-right: 1px solid var(--lp-border);
    text-align: left;
}
.lp-stat:last-child { border-right: none; }
.lp-stat__value {
    font-size: clamp(1.875rem, 3vw, 2.5rem);
    font-weight: 300;
    color: var(--lp-text);
    letter-spacing: -0.02em;
    line-height: 1;
    font-family: 'IBM Plex Sans', sans-serif;
}
.lp-stat__value .lp-stat__suffix {
    color: var(--lp-accent-hi);
    font-weight: 500;
}
.lp-stat__label {
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: var(--lp-text-muted);
    letter-spacing: 0.02em;
}

/* ============================================================================
   SECTION GENERIC
   ============================================================================ */
.lp-section {
    padding: 6rem 2rem;
    position: relative;
}
.lp-section--alt {
    background:
        radial-gradient(ellipse 50% 80% at 100% 50%, rgba(79, 140, 255, 0.06) 0%, transparent 60%),
        var(--lp-bg-1);
    overflow: hidden;
}

/* Grid blueprint extendido a toda la sección "Cómo funciona" */
.lp-section--alt::before {
    content: '';
    position: absolute;
    inset: -8% -6%;
    background-image:
        linear-gradient(rgba(120, 169, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(120, 169, 255, 0.06) 1px, transparent 1px);
    background-size: 56px 56px;
    background-position: center center;
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 62%, #000 35%, rgba(0,0,0,.45) 65%, transparent 95%);
    mask-image: radial-gradient(ellipse 80% 80% at 50% 62%, #000 35%, rgba(0,0,0,.45) 65%, transparent 95%);
    pointer-events: none;
    z-index: 0;
}
/* Marcas más fuertes cada 4 celdas (~224px) tipo "minor/major" del blueprint */
.lp-section--alt::after {
    content: '';
    position: absolute;
    inset: -8% -6%;
    background-image:
        linear-gradient(rgba(120, 169, 255, 0.10) 1px, transparent 1px),
        linear-gradient(90deg, rgba(120, 169, 255, 0.10) 1px, transparent 1px);
    background-size: 224px 224px;
    background-position: center center;
    -webkit-mask-image: radial-gradient(ellipse 75% 75% at 50% 62%, #000 30%, transparent 90%);
    mask-image: radial-gradient(ellipse 75% 75% at 50% 62%, #000 30%, transparent 90%);
    pointer-events: none;
    z-index: 0;
}
.lp-section--alt > .lp-section__inner {
    position: relative;
    z-index: 1;
}
.lp-section__inner {
    max-width: 1200px;
    margin: 0 auto;
}
.lp-section__head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3.5rem;
}
.lp-section__kicker {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--lp-accent-hi);
    margin-bottom: 0.875rem;
    font-weight: 600;
}
.lp-section h2 {
    font-size: clamp(1.875rem, 3vw, 2.625rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: var(--lp-text);
    margin: 0 0 1rem;
}
.lp-section__sub {
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--lp-text-dim);
    margin: 0;
}

/* ============================================================================
   FEATURES GRID
   ============================================================================ */
.lp-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.lp-feature {
    position: relative;
    padding: 2rem;
    border-radius: 14px;
    background: linear-gradient(180deg, var(--lp-surface), rgba(255,255,255,0.01));
    border: 1px solid var(--lp-border);
    transition: transform .3s ease, border-color .3s ease, background .3s ease;
    overflow: hidden;
}
.lp-feature::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, transparent 30%, var(--lp-accent) 50%, transparent 70%);
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
}
.lp-feature:hover {
    transform: translateY(-3px);
    border-color: var(--lp-border-hi);
    background: linear-gradient(180deg, var(--lp-surface-hi), rgba(255,255,255,0.02));
}
.lp-feature:hover::before {
    opacity: 0.65;
}
.lp-feature h3 {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--lp-text);
    margin: 0 0 0.5rem;
    letter-spacing: -0.005em;
}
.lp-feature p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--lp-text-dim);
    margin: 0;
}

/* ============================================================================
   HOW IT WORKS — 3 steps con líneas conectoras
   ============================================================================ */
.lp-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    position: relative;
}
.lp-steps::before {
    content: '';
    position: absolute;
    top: 32px; left: 16.66%;
    right: 16.66%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--lp-border-hi) 20%, var(--lp-border-hi) 80%, transparent);
    z-index: 0;
}
.lp-step {
    padding: 0 1.5rem;
    text-align: center;
    position: relative;
    z-index: 1;
}
.lp-step__num {
    width: 64px; height: 64px;
    border-radius: 50%;
    margin: 0 auto 1.25rem;
    background:
        radial-gradient(circle at 30% 30%, rgba(79, 140, 255, 0.35), transparent 70%),
        var(--lp-bg-2);
    border: 1px solid var(--lp-border-hi);
    display: grid; place-items: center;
    color: var(--lp-text);
    font-size: 1.25rem;
    font-weight: 500;
    box-shadow: 0 0 0 6px var(--lp-bg-1);
}
.lp-step h4 {
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--lp-text);
    margin: 0 0 0.5rem;
}
.lp-step p {
    font-size: 0.9375rem;
    color: var(--lp-text-dim);
    line-height: 1.6;
    max-width: 280px;
    margin: 0 auto;
}

/* ============================================================================
   FLOW DIAGRAM — fuentes de datos → hub PrecioClaro (versión premium)
   ============================================================================ */
.lp-flow {
    margin: 4.5rem auto 0;
    max-width: 1100px;
    padding: 0 1rem;
    position: relative;
}

.lp-flow__head {
    text-align: center;
    margin-bottom: 1.75rem;
}

.lp-flow__title {
    font-size: 1.65rem;
    font-weight: 500;
    color: var(--lp-text);
    margin: 0 0 0.5rem;
    letter-spacing: -0.012em;
    line-height: 1.25;
}

.lp-flow__sub {
    font-size: 0.9375rem;
    color: var(--lp-text-dim);
    line-height: 1.6;
    max-width: 60ch;
    margin: 0 auto;
}

/* Canvas: solo halo radial. El grid blueprint vive en la sección padre */
.lp-flow__canvas {
    position: relative;
    padding: 1.5rem 0;
    background:
        radial-gradient(ellipse 60% 65% at 50% 50%, rgba(79, 140, 255, 0.10) 0%, transparent 70%);
}

.lp-flow__svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
    position: relative;
}

/* Hub central */
.lp-flow__hub-glow {
    filter: drop-shadow(0 0 32px rgba(79, 140, 255, 0.32));
}
.lp-flow__hub-name {
    fill: #ffffff;
    font-size: 18px;
    font-weight: 600;
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: -0.005em;
}
.lp-flow__hub-sub {
    fill: rgba(255, 255, 255, 0.7);
    font-size: 9px;
    font-weight: 500;
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.22em;
}

/* Nodos satélites */
.lp-flow__node-name {
    fill: var(--lp-text);
    font-size: 13px;
    font-weight: 500;
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: -0.005em;
}
.lp-flow__node-meta {
    fill: var(--lp-text-muted);
    font-size: 9.5px;
    font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.lp-flow__node-icon { color: var(--lp-accent-hi); }
.lp-flow__node circle { transition: stroke .3s ease, fill .3s ease; }

@media (max-width: 720px) {
    .lp-flow { margin-top: 3rem; }
    .lp-flow__title { font-size: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
    .lp-flow__svg animate,
    .lp-flow__svg animateMotion,
    .lp-flow__svg animateTransform { display: none; }
}

/* ============================================================================
   MARKETS — chips por país
   ============================================================================ */
.lp-markets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.lp-market {
    padding: 1.75rem;
    border-radius: 14px;
    background: var(--lp-surface);
    border: 1px solid var(--lp-border);
    transition: border-color .25s ease, background .25s ease;
}
.lp-market:hover {
    border-color: var(--lp-border-hi);
    background: var(--lp-surface-hi);
}
.lp-market__head {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 1rem;
}
.lp-market__flag {
    font-size: 1.375rem;
    line-height: 1;
}
.lp-market__country {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--lp-text);
    letter-spacing: 0.01em;
}
.lp-market__count {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--lp-text-muted);
    background: var(--lp-bg-2);
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    border: 1px solid var(--lp-border);
}
.lp-market__chips {
    display: flex; flex-wrap: wrap; gap: 0.45rem;
}
.lp-chip {
    display: inline-flex;
    align-items: center;
    height: 1.625rem;
    padding: 0 0.625rem;
    border-radius: 999px;
    background: var(--lp-bg-2);
    border: 1px solid var(--lp-border);
    color: var(--lp-text-dim);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}
.lp-chip--ok {
    color: var(--lp-emerald);
    border-color: rgba(52, 211, 153, 0.25);
    background: rgba(52, 211, 153, 0.08);
}
.lp-chip--soon {
    color: var(--lp-text-muted);
    border-style: dashed;
}

/* ============================================================================
   SHOWCASE — mock dashboard
   ============================================================================ */
.lp-showcase {
    position: relative;
    padding: 6rem 2rem;
    overflow: hidden;
}
.lp-showcase__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 50% 0%, rgba(79, 140, 255, 0.10) 0%, transparent 60%),
        var(--lp-bg-1);
    z-index: 0;
}
.lp-showcase__inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}
.lp-showcase__text h2 {
    font-size: clamp(1.75rem, 2.6vw, 2.375rem);
    font-weight: 400;
    color: var(--lp-text);
    margin: 0 0 1rem;
    line-height: 1.2;
    letter-spacing: -0.015em;
}
.lp-showcase__text p {
    color: var(--lp-text-dim);
    font-size: 1.0625rem;
    line-height: 1.65;
    margin: 0 0 1.5rem;
}
.lp-showcase__list {
    list-style: none;
    padding: 0; margin: 0 0 2rem;
}
.lp-showcase__list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.625rem 0;
    color: var(--lp-text);
    font-size: 0.9375rem;
}
.lp-showcase__list li svg {
    color: var(--lp-emerald);
    flex-shrink: 0;
    margin-top: 2px;
}

.lp-mock {
    position: relative;
    border-radius: 16px;
    background: linear-gradient(180deg, var(--lp-bg-2), var(--lp-bg-3));
    border: 1px solid var(--lp-border-hi);
    box-shadow:
        0 24px 60px -12px rgba(0,0,0,0.5),
        0 0 0 1px var(--lp-border),
        inset 0 1px 0 rgba(255,255,255,0.06);
    overflow: hidden;
}
.lp-mock__bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--lp-border);
    background: rgba(0,0,0,0.2);
}
.lp-mock__dot {
    width: 11px; height: 11px; border-radius: 50%;
    background: #475569;
}
.lp-mock__dot:nth-child(1) { background: #ef4444; }
.lp-mock__dot:nth-child(2) { background: #f59e0b; }
.lp-mock__dot:nth-child(3) { background: #22c55e; }
.lp-mock__title {
    margin-left: 0.75rem;
    font-size: 0.75rem;
    color: var(--lp-text-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.lp-mock__body {
    padding: 1.25rem 1.25rem 1.5rem;
}
.lp-mock__row {
    display: flex; align-items: center; gap: 1rem;
    padding-bottom: 0.875rem;
}
.lp-mock__kpi {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
}
.lp-mock__kpi-hint {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--lp-text-muted);
}
.lp-mock__price {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.875rem;
    font-weight: 500;
    color: var(--lp-text);
    letter-spacing: -0.01em;
}
.lp-mock__delta {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
    color: var(--lp-emerald);
    font-weight: 500;
    background: rgba(52, 211, 153, 0.10);
    border: 1px solid rgba(52, 211, 153, 0.25);
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
}
.lp-mock__chart {
    display: block;
    width: 100%;
    height: 200px;
    margin-top: 0.5rem;
}
.lp-mock__legend {
    display: flex;
    gap: 1rem;
    margin-top: 0.875rem;
    flex-wrap: wrap;
    font-size: 0.75rem;
    color: var(--lp-text-muted);
}
.lp-mock__legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.lp-mock__legend i {
    width: 10px; height: 2px; border-radius: 1px;
    display: inline-block;
}

/* ============================================================================
   CTA FINAL
   ============================================================================ */
.lp-cta {
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
}
.lp-cta__inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 3rem;
    border-radius: 20px;
    text-align: center;
    background:
        radial-gradient(ellipse 80% 80% at 50% 0%, rgba(79, 140, 255, 0.18), transparent 60%),
        linear-gradient(180deg, var(--lp-bg-2), var(--lp-bg-3));
    border: 1px solid var(--lp-border-hi);
    box-shadow: 0 24px 80px -20px rgba(79, 140, 255, 0.18);
    position: relative;
    overflow: hidden;
}
.lp-cta__inner::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--lp-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--lp-grid) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.4;
    mask-image: radial-gradient(ellipse 60% 80% at 50% 50%, #000, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 60% 80% at 50% 50%, #000, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.lp-cta__inner > * { position: relative; z-index: 1; }
.lp-cta h2 {
    font-size: clamp(1.75rem, 2.8vw, 2.375rem);
    font-weight: 400;
    color: var(--lp-text);
    letter-spacing: -0.015em;
    margin: 0 0 0.875rem;
    line-height: 1.2;
}
.lp-cta p {
    color: var(--lp-text-dim);
    margin: 0 auto 2rem;
    max-width: 560px;
    font-size: 1.0625rem;
    line-height: 1.6;
}
.lp-cta__buttons {
    display: flex; gap: 0.875rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (max-width: 960px) {
    .lp-hero { padding: 5rem 1.25rem 4rem; }
    .lp-section { padding: 4rem 1.25rem; }
    .lp-stats__inner { grid-template-columns: repeat(2, 1fr); }
    .lp-stat { border-right: none; border-bottom: 1px solid var(--lp-border); padding: 1.25rem; }
    .lp-stat:nth-child(2n) { border-right: none; }
    .lp-stat:nth-last-child(-n+2) { border-bottom: none; }
    .lp-features { grid-template-columns: 1fr 1fr; }
    .lp-steps { grid-template-columns: 1fr; gap: 2.5rem; }
    .lp-steps::before { display: none; }
    .lp-markets { grid-template-columns: 1fr 1fr; }
    .lp-showcase__inner { grid-template-columns: 1fr; gap: 2.5rem; }
    .lp-cta__inner { padding: 3rem 1.5rem; }
}

@media (max-width: 600px) {
    body.page-landing .shell-header:not(.is-scrolled) {
        min-height: 112px;
        padding: 0.5rem 0 0.75rem;
    }
    body.page-landing .shell-header:not(.is-scrolled) .shell-header__brand-img {
        height: 88px;
        max-height: 88px;
        max-width: min(300px, 82vw);
    }
    .lp-hero { padding: 4rem 1rem 3rem; }
    .lp-hero__cta { flex-direction: column; align-items: stretch; }
    .lp-btn { justify-content: center; }
    .lp-trust__brands { gap: 0.75rem 1.25rem; font-size: 0.8125rem; }
    .lp-section { padding: 3.5rem 1rem; }
    .lp-stats { padding: 2rem 1rem; }
    .lp-stats__inner { grid-template-columns: 1fr 1fr; }
    .lp-features, .lp-markets { grid-template-columns: 1fr; }
    .lp-cta { padding: 3rem 1rem; }
    .lp-cta__inner { padding: 2.5rem 1.25rem; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    .lp-hero__chart .lp-line { animation: none; stroke-dashoffset: 0; }
    .lp-eyebrow__pulse { animation: none; }
}
