/* Página pública y acceso de ESQUIDOM — estilos propios (no dependen del build de Vite).
   Modo oscuro: clase .dark en <html>, misma preferencia que la app (localStorage.darkMode). */
:root {
    --blue-900: #0a3a85;
    --blue: #0d47a1;
    --sky: #1e88e5;
    --ok: #0f9d58;
    --radius: 16px;

    --bg: #ffffff;
    --tint: #f5f9fe;
    --surface: #ffffff;
    --surface-2: #f5f9fe;
    --ink: #10223f;
    --muted: #4a6285;
    --line: #dbe6f3;
    --accent-soft: #eaf3fd;
    --heading: #0d47a1;
    --link: #0d47a1;
    --header-bg: rgba(255, 255, 255, .92);
    --shadow: 0 10px 30px rgba(13, 71, 161, .08);
    --shadow-lg: 0 30px 60px rgba(13, 71, 161, .18);
    --band: #0d47a1;
    --footer: #0a3a85;
    color-scheme: light;
}

html.dark {
    --bg: #0b1220;
    --tint: #0f1a2e;
    --surface: #131f35;
    --surface-2: #182740;
    --ink: #e6edf7;
    --muted: #9fb2cc;
    --line: #253756;
    --accent-soft: #17325a;
    --heading: #8cc4ff;
    --link: #8cc4ff;
    --header-bg: rgba(11, 18, 32, .9);
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
    --shadow-lg: 0 30px 60px rgba(0, 0, 0, .5);
    --band: #0f2f66;
    --footer: #08101d;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body.lp { margin: 0; font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; transition: background-color .25s, color .25s; }
.lp img { max-width: 100%; display: block; }
.lp a { color: var(--link); }
.lp h1, .lp h2, .lp h3 { margin: 0; line-height: 1.15; color: var(--ink); letter-spacing: -.01em; }
.lp p { margin: 0; }
.lp svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lp .only-dark { display: none !important; }
html.dark .lp .only-light { display: none !important; }
html.dark .lp .only-dark { display: block !important; }

.lp-wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.lp-wrap--narrow { max-width: 820px; }

/* Botones */
.lp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 12px; font-weight: 600; font-size: 15px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s, transform .2s, border-color .2s; font-family: inherit; }
.lp-btn svg { width: 18px; height: 18px; }
.lp-btn--primary { background: var(--blue); color: #fff !important; box-shadow: 0 6px 16px rgba(13, 71, 161, .25); }
.lp-btn--primary:hover { background: var(--blue-900); transform: translateY(-1px); }
html.dark .lp-btn--primary { background: var(--sky); box-shadow: 0 6px 16px rgba(0, 0, 0, .35); }
html.dark .lp-btn--primary:hover { background: #3796ea; }
.lp-btn--ghost { background: var(--surface); color: var(--link) !important; border-color: var(--line); }
.lp-btn--ghost:hover { border-color: var(--sky); }
.lp-btn--light { background: #fff; color: var(--blue) !important; margin-top: 28px; }
.lp-btn--light:hover { background: #eaf3fd; }
.lp-btn--lg { padding: 14px 26px; font-size: 16px; }
.lp-btn--block { width: 100%; }
.lp-btn:focus-visible, .lp a:focus-visible, .lp summary:focus-visible, .lp button:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

.lp-theme { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.lp-theme:hover { color: var(--link); border-color: var(--sky); }
.lp-theme svg { width: 20px; height: 20px; }
.lp-theme .icon-sun { display: none; }
html.dark .lp-theme .icon-sun { display: block; }
html.dark .lp-theme .icon-moon { display: none; }

/* Encabezado */
.lp-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.lp-header__bar { display: flex; align-items: center; gap: 20px; height: 72px; }
.lp-logo img { height: 32px; width: auto; }
.lp-nav { display: flex; gap: 26px; margin-left: auto; }
.lp-nav a { color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.lp-nav a:hover { color: var(--link); }
.lp-header__actions { display: flex; align-items: center; gap: 10px; }
.lp-header__login { padding: 12px 22px; font-size: 15px; }

/* Portada con presentación */
.lp-hero { background: radial-gradient(900px 480px at 85% 10%, var(--accent-soft), transparent 70%), var(--tint); padding: 64px 0 96px; overflow: hidden; }
.lp-slides { position: relative; display: grid; }
.lp-slide { grid-area: 1 / 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; opacity: 0; visibility: hidden; transform: translateX(24px); transition: opacity .55s ease, transform .55s ease, visibility 0s linear .55s; }
.lp-slide.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .55s ease, transform .55s ease, visibility 0s; }
.lp-eyebrow { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--sky); margin-bottom: 14px !important; }
.lp-eyebrow--light { color: #9ccaf6; }
.lp-slide__title { font-size: clamp(32px, 4.4vw, 52px); font-weight: 700; color: var(--heading) !important; line-height: 1.12; letter-spacing: -.01em; margin: 0; }
.lp-slide__title span { color: var(--sky); }
.lp-lead { font-size: 18px; color: var(--muted); margin-top: 20px !important; max-width: 560px; }
.lp-points { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lp-points li { font-size: 13.5px; font-weight: 500; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.lp-hero__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 36px; }
.lp-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.lp-slider-nav { display: flex; align-items: center; gap: 10px; }
.lp-dots { display: flex; gap: 8px; }
.lp-dot { width: 10px; height: 10px; border-radius: 999px; border: 0; padding: 0; background: var(--line); cursor: pointer; transition: width .3s, background .3s; }
.lp-dot.is-active { width: 28px; background: var(--sky); }
.lp-arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.lp-arrow:hover { border-color: var(--sky); color: var(--link); }
.lp-arrow svg { width: 18px; height: 18px; }
.lp-arrow .icon-play { display: none; }
.lp-hero.is-paused .lp-arrow .icon-play { display: block; }
.lp-hero.is-paused .lp-arrow .icon-pause { display: none; }

/* Ilustraciones de cada diapositiva */
.lp-art { position: relative; padding: 24px 12px; }
.lp-window { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--line); }
.lp-window__top { display: flex; align-items: center; gap: 6px; padding: 12px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.lp-window__top span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.lp-window__top b { margin-left: 10px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.lp-window__body { padding: 20px; display: grid; gap: 14px; min-height: 280px; align-content: start; }
.lp-bar { height: 10px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); }
.lp-bar--dark { background: var(--ink); opacity: .8; border: 0; height: 12px; }
.lp-bar--accent { background: var(--sky); border: 0; }
.w-90 { width: 90%; } .w-75 { width: 75%; } .w-60 { width: 60%; } .w-45 { width: 45%; } .w-35 { width: 35%; }

.lp-doc { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: start; }
.lp-doc__lines { display: grid; gap: 10px; }
.lp-doc__tag { justify-self: start; font-size: 11.5px; font-weight: 600; color: #fff; background: var(--sky); border-radius: 999px; padding: 3px 10px; margin-bottom: 4px; }
.lp-qr { width: 74px; height: 74px; border: 4px solid var(--ink); border-radius: 8px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 6px; }
.lp-qr i { background: var(--ink); border-radius: 2px; }
.lp-qr i:nth-child(2), .lp-qr i:nth-child(6), .lp-qr i:nth-child(7) { opacity: .25; }
.lp-sign { display: flex; justify-content: flex-end; margin-top: 8px; }
.lp-sign span { font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 6px; width: 45%; text-align: center; }

.lp-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lp-spec { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 14px; font-weight: 600; color: var(--ink); }
.lp-spec i { width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--link); display: grid; place-items: center; font-style: normal; flex-shrink: 0; }
.lp-spec i svg { width: 18px; height: 18px; }

.lp-queue { display: grid; grid-template-columns: 1.1fr .9fr; gap: 14px; }
.lp-queue__now { background: var(--blue); color: #fff; border-radius: 14px; padding: 18px; display: grid; align-content: center; text-align: center; }
html.dark .lp-queue__now { background: #1565c0; }
.lp-queue__now small { font-size: 12px; opacity: .85; }
.lp-queue__now strong { font-size: 42px; line-height: 1.1; letter-spacing: .02em; }
.lp-queue__now em { font-style: normal; font-size: 13px; opacity: .9; }
.lp-queue__list { display: grid; gap: 8px; }
.lp-queue__list div { display: flex; justify-content: space-between; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink); }
.lp-queue__list span { color: var(--muted); font-weight: 500; }

.lp-results { display: grid; gap: 8px; }
.lp-results div { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-size: 13.5px; font-weight: 500; color: var(--ink); }
.lp-pill { font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.lp-pill--ok { background: rgba(15, 157, 88, .14); color: #0b7a45; }
.lp-pill--wait { background: rgba(245, 158, 11, .16); color: #a36508; }
.lp-pill--info { background: var(--accent-soft); color: var(--link); }
html.dark .lp-pill--wait { color: #f6c26b; }
html.dark .lp-pill--ok { color: #5fd39a; }

.lp-ecf-card { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); }
.lp-ecf-card .lp-check-circle { width: 46px; height: 46px; }
.lp-ecf-card strong { display: block; font-size: 15px; color: var(--ink); }
.lp-ecf-card small { color: var(--muted); font-size: 12.5px; }
.lp-totals { display: grid; gap: 8px; }
.lp-totals div { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13.5px; color: var(--muted); }
.lp-totals div:last-child { color: var(--ink); font-weight: 700; border-top: 1px solid var(--line); padding-top: 8px; }

.lp-chart { height: 120px; display: flex; align-items: flex-end; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.lp-chart em { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(var(--sky), var(--blue)); opacity: .9; }
.lp-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.lp-kpis b { height: 54px; border-radius: 10px; background: var(--accent-soft); border: 1px solid var(--line); }
.lp-kpis b:first-child { background: var(--sky); border-color: var(--sky); }

.lp-badge { position: absolute; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow); font-size: 13px; line-height: 1.3; }
.lp-badge strong { display: block; font-size: 13.5px; color: var(--ink); }
.lp-badge small { color: var(--muted); font-size: 12px; }
.lp-badge--bl { left: -14px; bottom: 26px; }
.lp-badge--tr { right: -6px; top: 4px; }
.lp-check-circle { width: 34px; height: 34px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.lp-check-circle svg { width: 18px; height: 18px; stroke-width: 2.6; }

/* Secciones */
.lp-section { padding: 88px 0; }
.lp-section--tint { background: var(--tint); }
.lp-audience { padding: 0; margin-top: -48px; position: relative; }
.lp-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.lp-head h2 { font-size: clamp(28px, 3.2vw, 38px); font-weight: 700; color: var(--heading); }
.lp-head p:not(.lp-eyebrow) { color: var(--muted); margin-top: 14px !important; font-size: 16.5px; }

.lp-cards { display: grid; gap: 22px; }
.lp-cards--3 { grid-template-columns: repeat(3, 1fr); }
.lp-cards--4 { grid-template-columns: repeat(4, 1fr); }
.lp-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.lp-card--flat { box-shadow: none; transition: border-color .2s, box-shadow .2s; }
.lp-card--flat:hover { border-color: var(--sky); box-shadow: var(--shadow); }
.lp-card h3 { font-size: 18.5px; font-weight: 600; margin: 16px 0 8px; }
.lp-card p { color: var(--muted); font-size: 15px; }
.lp-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--accent-soft); color: var(--link); display: grid; place-items: center; }
.lp-icon svg { width: 24px; height: 24px; }

.lp-feature { padding: 4px 0 0 18px; border-left: 3px solid var(--sky); }
.lp-feature h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.lp-feature p { color: var(--muted); font-size: 14.5px; }

/* Banda e-CF */
.lp-ecf { background: var(--band); color: #fff; }
.lp-ecf__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.lp-ecf h2 { color: #fff; font-size: clamp(28px, 3.2vw, 38px); font-weight: 700; }
.lp-ecf p { color: #d6e6fb; margin-top: 16px !important; font-size: 16.5px; }
.lp-checks { list-style: none; margin: 0; padding: 28px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius); display: grid; gap: 16px; }
.lp-checks li { position: relative; padding-left: 34px; font-size: 15.5px; }
.lp-checks li::before, .lg-brand li::before { content: ''; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--sky) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* Planes */
.lp-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; align-items: stretch; }
.lp-plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.lp-plan--featured { border: 2px solid var(--sky); box-shadow: var(--shadow); }
.lp-plan__audience { font-size: 12.5px; font-weight: 600; color: var(--sky); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px !important; }
.lp-plan h3 { font-size: 20px; font-weight: 600; }
.lp-plan__price { margin: 14px 0 6px !important; color: var(--heading); }
.lp-plan__price span { font-size: 34px; font-weight: 700; }
.lp-plan__price small { color: var(--muted); font-size: 14px; }
.lp-plan__desc { color: var(--muted); font-size: 14.5px; }
.lp-plan__list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; font-size: 14.5px; }
.lp-plan__list li { padding-left: 24px; position: relative; }
.lp-plan__list li::before { content: ''; position: absolute; left: 0; top: 8px; width: 12px; height: 7px; border-left: 2px solid var(--sky); border-bottom: 2px solid var(--sky); transform: rotate(-45deg); }
.lp-plan__trial { margin-top: 14px !important; font-size: 13.5px; color: var(--ok); font-weight: 600; }
.lp-plan .lp-btn { margin-top: auto; }
.lp-plan__list + .lp-btn, .lp-plan__desc + .lp-btn, .lp-plan__trial + .lp-btn { margin-top: 24px; }
.lp-note { text-align: center; color: var(--muted); margin-top: 32px !important; font-size: 15px; }

/* Centros */
.lp-centers { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.lp-centers li { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.lp-centers strong { font-weight: 600; font-size: 14.5px; }
.lp-centers span { font-size: 13.5px; color: var(--muted); overflow-wrap: anywhere; }

/* Preguntas */
.lp-faq { display: grid; gap: 12px; }
.lp-faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; }
.lp-faq summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 600; position: relative; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: '+'; position: absolute; right: 0; top: 14px; font-size: 24px; font-weight: 400; color: var(--sky); }
.lp-faq details[open] summary::after { content: '−'; }
.lp-faq details p { padding-bottom: 18px; color: var(--muted); font-size: 15px; }

/* Contacto */
.lp-contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.lp-contact h2 { font-size: clamp(28px, 3.2vw, 38px); font-weight: 700; color: var(--heading); }
.lp-contact > div > p:not(.lp-eyebrow) { color: var(--muted); margin-top: 14px !important; }
.lp-contact__list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.lp-contact__list li { display: grid; grid-template-columns: 96px 1fr; font-size: 15px; }
.lp-contact__list span { color: var(--muted); font-size: 13.5px; }
.lp-form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 30px; box-shadow: var(--shadow); }
.lp-form { display: grid; gap: 16px; }
.lp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lp-field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.lp-field input, .lp-field select, .lp-field textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; font-size: 15px; color: var(--ink); background: var(--bg); }
.lp-field input:focus, .lp-field select:focus, .lp-field textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px rgba(30, 136, 229, .2); }
.lp-error { color: #e53935; font-size: 13px; margin-top: 4px !important; }
.lp-alert { border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; font-size: 15px; }
.lp-alert--ok { background: rgba(15, 157, 88, .12); color: #0b7a45; border: 1px solid rgba(15, 157, 88, .3); }
html.dark .lp-alert--ok { color: #7fe0ae; }
.lp-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Pie */
.lp-footer { background: var(--footer); color: #c9dbf5; padding: 56px 0 28px; }
.lp-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr .8fr; gap: 40px; }
.lp-footer img { height: 27px; width: auto; margin-bottom: 14px; }
.lp-footer p { font-size: 14px; max-width: 360px; }
.lp-footer nav, .lp-social { display: grid; gap: 8px; align-content: start; }
.lp-footer a { color: #fff; text-decoration: none; font-size: 14.5px; }
.lp-footer a:hover { text-decoration: underline; }
.lp-footer__legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 13px; color: #9fb9de; }

@media (max-width: 1020px) {
    .lp-nav { display: none; }
    .lp-header__actions { margin-left: auto; }
    .lp-slide, .lp-ecf__grid, .lp-contact { grid-template-columns: 1fr; gap: 40px; }
    .lp-art { max-width: 560px; }
    .lp-cards--3, .lp-cards--4 { grid-template-columns: 1fr 1fr; }
    .lp-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .lp-header__bar { height: 64px; gap: 10px; }
    .lp-logo img { height: 24px; }
    .lp-header__login { padding: 10px 14px; font-size: 14px; }
    .lp-header__login svg { display: none; }
    .lp-theme { width: 38px; height: 38px; }
    .lp-hero { padding: 40px 0 72px; }
    .lp-lead { font-size: 16px; }
    .lp-art { display: none; }
    .lp-hero__bottom { flex-direction: column; align-items: stretch; }
    .lp-actions .lp-btn { flex: 1 1 100%; }
    .lp-slider-nav { justify-content: center; }
    .lp-section { padding: 64px 0; }
    .lp-audience { margin-top: -36px; padding: 0; }
    .lp-cards--3, .lp-cards--4, .lp-row, .lp-footer__grid { grid-template-columns: 1fr; }
    .lp-form-card { padding: 22px; }
    .lp-contact__list li { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .lp-btn, .lp-slide, .lp-slide.is-active, .lp-dot { transition: none; }
    .lp-slide { transform: none; }
}

/* ---------- Inicio de sesión ---------- */
body.lg { background: var(--tint); }
.lg-grid { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, 44%) 1fr; }
.lg-brand { background: radial-gradient(700px 420px at 10% 0%, rgba(30, 136, 229, .45), transparent 60%), var(--band); color: #fff; padding: 36px 56px; display: flex; flex-direction: column; }
.lg-back { display: inline-flex; align-items: center; gap: 6px; color: #d6e6fb !important; text-decoration: none; font-size: 14px; font-weight: 500; }
.lg-back svg { width: 18px; height: 18px; }
.lg-back:hover { color: #fff !important; }
.lg-brand__body { margin: auto 0; max-width: 460px; }
.lg-brand__logo { height: 40px; width: auto; margin-bottom: 36px; }
.lg-brand h1 { color: #fff; font-size: clamp(28px, 2.8vw, 38px); font-weight: 700; }
.lg-brand p { color: #d6e6fb; margin-top: 16px !important; font-size: 16px; }
.lg-brand ul { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.lg-brand li { position: relative; padding-left: 32px; font-size: 15px; color: #eef5fe; }
.lg-brand__foot { font-size: 13px; color: #9fc3ee !important; }
.lg-main { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 20px; }
.lg-main .lp-theme { position: absolute; top: 20px; right: 20px; }
.lg-card { width: 100%; max-width: 430px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 36px; box-shadow: var(--shadow); }
.lg-card__logo { display: none; }
.lg-card__logo img { height: 32px; width: auto; margin: 0 auto 24px; }
.lg-card h2 { font-size: 26px; font-weight: 700; color: var(--heading); }
.lg-sub { color: var(--muted); margin: 6px 0 26px !important; font-size: 15px; }
.lg-password { position: relative; }
.lg-password input { padding-right: 48px; }
.lg-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; background: transparent; color: var(--muted); border-radius: 8px; cursor: pointer; display: grid; place-items: center; }
.lg-eye:hover, .lg-eye[aria-pressed="true"] { color: var(--link); }
.lg-eye svg { width: 20px; height: 20px; }
.lg-options { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; flex-wrap: wrap; }
.lg-options a { font-weight: 500; text-decoration: none; }
.lg-check { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); cursor: pointer; }
.lg-check input { width: 16px; height: 16px; accent-color: var(--sky); }
#login-submit:disabled { opacity: .75; cursor: progress; transform: none; }
.lg-request { text-align: center; margin-top: 22px !important; font-size: 14.5px; color: var(--muted); }
.lg-request a { font-weight: 600; text-decoration: none; }
.lg-legal { margin-top: 24px !important; font-size: 12.5px; color: var(--muted); }

@media (max-width: 900px) {
    .lg-grid { grid-template-columns: 1fr; }
    .lg-brand { display: none; }
    .lg-card__logo { display: block; }
    .lg-card { padding: 28px 22px; }
    .lg-main { padding-top: 76px; }
}

/* ---------- Ver más y ventanas (módulos, centros) ---------- */
.lp-more { display: flex; justify-content: center; margin-top: 32px; }
.lp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.lp-modal-open { overflow: hidden; }
.lp-dialog { width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); font-family: inherit; overflow: hidden; }
.lp-dialog[open] { display: flex; flex-direction: column; }
.lp-dialog--wide { width: min(1040px, calc(100vw - 32px)); }
.lp-dialog::backdrop { background: rgba(8, 16, 29, .55); backdrop-filter: blur(3px); }
.lp-dialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 24px 28px 16px; border-bottom: 1px solid var(--line); }
.lp-dialog__head .lp-eyebrow { margin-bottom: 6px !important; }
.lp-dialog__head h2 { font-size: 22px; font-weight: 700; color: var(--heading); }
.lp-dialog__close { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.lp-dialog__close:hover { color: var(--link); border-color: var(--sky); }
.lp-dialog__close svg { width: 20px; height: 20px; }
.lp-dialog__body { padding: 24px 28px; overflow-y: auto; }
.lp-dialog__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 28px; border-top: 1px solid var(--line); background: var(--surface-2); }
.lp-dialog__foot p { color: var(--muted); font-size: 13.5px; }
.lp-dialog__search { padding: 16px 28px 0; }
.lp-dialog__search input { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; font-size: 15px; color: var(--ink); background: var(--bg); }
.lp-dialog__search input:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px rgba(30, 136, 229, .2); }
.lp-catalog { columns: 3 260px; column-gap: 32px; }
.lp-catalog section { break-inside: avoid; margin-bottom: 26px; }
.lp-catalog h3 { font-size: 15px; font-weight: 600; color: var(--heading); margin-bottom: 10px; padding-bottom: 8px; border-bottom: 2px solid var(--accent-soft); }
.lp-catalog ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.lp-catalog li { position: relative; padding-left: 18px; font-size: 14px; color: var(--ink); }
.lp-catalog li::before { content: ''; position: absolute; left: 2px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--sky); }
.lp-centers--list { grid-template-columns: 1fr 1fr; }
.lp-centers li[hidden] { display: none; }
.lp-empty { text-align: center; color: var(--muted); padding: 24px 0; }

@media (max-width: 640px) {
    .lp-dialog { max-height: calc(100vh - 24px); border-radius: 16px; }
    .lp-dialog__head, .lp-dialog__body { padding-left: 18px; padding-right: 18px; }
    .lp-dialog__search { padding: 14px 18px 0; }
    .lp-dialog__foot { flex-direction: column; align-items: stretch; padding: 14px 18px; }
    .lp-centers--list { grid-template-columns: 1fr; }
    .lp-more .lp-btn { width: 100%; }
}

/* ---------- Planes: ciclo, costo por médico y calculadora ---------- */
.lp-cycle { display: flex; width: max-content; margin: 0 auto 32px; padding: 4px; gap: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.lp-cycle button { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 14.5px; font-weight: 600; padding: 9px 28px; border-radius: 9px; cursor: pointer; }
.lp-cycle button.is-active { background: var(--blue); color: #fff; }
html.dark .lp-cycle button.is-active { background: var(--sky); }
.lp-plan__top { text-align: center; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.lp-plan__top h3 { font-size: 19px; }
.lp-plan__range { color: var(--muted); font-size: 14px; font-weight: 500; margin-top: 4px !important; }
.lp-plan__top .lp-plan__price { margin: 14px 0 2px !important; }
.lp-plan__price b { font-weight: 700; }
.lp-plan__price em { font-style: normal; }
.lp-plan__per { color: var(--ok); font-size: 14px; font-weight: 600; }
html.dark .lp-plan__per { color: #5fd39a; }
.lp-plan__per b { font-weight: 600; }
.lp-plan__only { margin-top: 8px !important; font-size: 12.5px; color: var(--muted); background: var(--surface-2); border-radius: 8px; padding: 4px 8px; }
.lp-calc { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.lp-calc label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink); }
.lp-calc input { width: 96px; padding: 9px 10px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; font-size: 15px; text-align: center; color: var(--ink); background: var(--bg); }
.lp-calc input:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px rgba(30, 136, 229, .2); }
.lp-calc__total { text-align: right; display: grid; gap: 2px; }
.lp-calc__total span { font-size: 13px; color: var(--muted); }
.lp-calc__total strong { font-size: 17px; color: var(--heading); }
.lp-calc__total b { font-weight: 700; }
.lp-plan .lp-plan__desc { margin-top: 16px !important; }
.lp-plan__list { margin-top: 16px; }
.lp-plan__list li::before { content: ''; left: 0; top: 3px; width: 18px; height: 18px; border: 0; border-radius: 50%; transform: none; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat; }
html.dark .lp-plan__list li::before { background-color: var(--sky); }
.lp-plan__list li { padding-left: 28px; }
.lp-note--small { font-size: 13px; margin-top: 18px !important; }

/* Planes: «ver todas» las características */
.lp-plan__more { margin-top: 12px; padding: 0; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--link); cursor: pointer; text-align: left; }
.lp-plan__more:hover { text-decoration: underline; }
.lp-catalog--checks li { padding-left: 26px; }
.lp-catalog--checks li::before { left: 0; top: 3px; width: 17px; height: 17px; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 10px no-repeat; }
html.dark .lp-catalog--checks li::before { background-color: var(--sky); }
.lp-plan__more { margin-bottom: 20px; }

/* ---------- Carrusel de planes: 3 / 2 / 1 por vista ---------- */
.lp-carousel { position: relative; }
.lp-carousel .lp-plans { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 6px 4px 18px; margin: -6px -4px 0; scrollbar-width: none; overscroll-behavior-x: contain; }
.lp-carousel .lp-plans::-webkit-scrollbar { display: none; }
.lp-carousel .lp-plans:focus-visible { outline: 3px solid var(--sky); outline-offset: 4px; border-radius: var(--radius); }
.lp-carousel .lp-plan { flex: 0 0 calc((100% - 44px) / 3); scroll-snap-align: start; }
.lp-carousel__btn { position: absolute; top: 160px; z-index: 5; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--link); box-shadow: var(--shadow); display: grid; place-items: center; cursor: pointer; transition: transform .2s, border-color .2s; }
.lp-carousel__btn:hover { border-color: var(--sky); transform: scale(1.05); }
.lp-carousel__btn svg { width: 22px; height: 22px; stroke-width: 2.2; }
.lp-carousel__btn[hidden] { display: none; }
.lp-carousel__btn--prev { left: -24px; }
.lp-carousel__btn--next { right: -24px; }
.lp-carousel__status { text-align: center; color: var(--muted); font-size: 13.5px; min-height: 20px; }

@media (max-width: 1020px) {
    .lp-carousel .lp-plan { flex-basis: calc((100% - 22px) / 2); }
    .lp-carousel__btn--prev { left: -8px; }
    .lp-carousel__btn--next { right: -8px; }
}

@media (max-width: 640px) {
    .lp-carousel .lp-plans { gap: 16px; }
    .lp-carousel .lp-plan { flex-basis: 100%; scroll-snap-align: center; }
    .lp-carousel__btn { top: 120px; width: 42px; height: 42px; }
    .lp-carousel__btn--prev { left: -12px; }
    .lp-carousel__btn--next { right: -12px; }
}

@media (prefers-reduced-motion: reduce) {
    .lp-carousel .lp-plans { scroll-behavior: auto; }
}

/* ---------- Términos de uso ---------- */
.lp-form__legal { font-size: 12.5px; color: var(--muted); text-align: center; }
.lp-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.lp-footer__legal a { font-size: 13px; color: #c9dbf5 !important; }
.lg-legal-hero { background: radial-gradient(800px 360px at 85% 0%, var(--accent-soft), transparent 70%), var(--tint); padding: 56px 0 40px; border-bottom: 1px solid var(--line); }
.lg-legal-hero h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 700; color: var(--heading); }
.lg-legal-hero__meta { color: var(--muted); margin-top: 10px !important; font-size: 15px; }
.lg-legal-hero__actions { margin-top: 22px; }
.lg-legal { display: grid; grid-template-columns: 260px 1fr; gap: 56px; padding-top: 48px; padding-bottom: 88px; align-items: start; }
.lg-legal__toc { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow-y: auto; padding: 18px 18px 18px 0; border-right: 1px solid var(--line); }
.lg-legal__toc > p { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--sky); margin-bottom: 10px !important; }
.lg-legal__toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.lg-legal__toc a { display: block; font-size: 13.5px; color: var(--muted); text-decoration: none; padding: 4px 8px; border-radius: 8px; line-height: 1.35; }
.lg-legal__toc a:hover { background: var(--accent-soft); color: var(--link); }
.lg-legal__body { max-width: 780px; min-width: 0; }
.lg-legal__body section { padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.lg-legal__body section:last-child { border-bottom: 0; }
.lg-legal__body h2 { font-size: 21px; font-weight: 700; color: var(--heading); margin-bottom: 12px; }
.lg-legal__body h3 { font-size: 16px; font-weight: 600; margin: 18px 0 6px; }
.lg-legal__body p, .lg-legal__body li, .lg-legal__body dd { font-size: 15.5px; color: var(--ink); line-height: 1.75; }
.lg-legal__body p + p { margin-top: 12px !important; }
.lg-legal__body ul { margin: 12px 0; padding-left: 22px; display: grid; gap: 6px; }
.lg-legal__body dl { margin: 0; display: grid; gap: 4px; }
.lg-legal__body dt { font-weight: 600; margin-top: 10px; }
.lg-legal__body dd { margin: 0; color: var(--muted); }
.lg-legal__body .lg-emphasis { padding: 16px 18px; border-left: 3px solid var(--sky); background: var(--surface-2); border-radius: 0 10px 10px 0; }

@media (max-width: 900px) {
    .lg-legal { grid-template-columns: 1fr; gap: 28px; padding-top: 28px; }
    .lg-legal__toc { position: static; max-height: none; border-right: 0; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
    .lg-legal__toc ol { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .lg-legal__toc ol { grid-template-columns: 1fr; }
}

@media print {
    .lp-header, .lp-footer, .lg-legal__toc, .lg-legal-hero__actions, .lp-theme { display: none !important; }
    body.lp { background: #fff; color: #000; }
    .lg-legal-hero { background: none; padding: 0 0 12px; border: 0; }
    .lg-legal { display: block; padding: 0; }
    .lg-legal__body { max-width: none; }
    .lg-legal__body section { break-inside: avoid-page; }
    html.dark { --ink: #000; --muted: #333; --heading: #0d47a1; --line: #ccc; --surface-2: #f5f5f5; }
}

/* ---------- Sobre nosotros ---------- */
.ab-hero { padding: 64px 0 72px; }
.ab-hero__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: center; }
.ab-hero .lp-lead + .lp-lead { margin-top: 14px !important; }
.ab-hero .lp-actions { margin-top: 30px; }
.ab-hero__card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 40px; box-shadow: var(--shadow); display: grid; place-items: center; }
.ab-hero__card img { width: 100%; max-width: 260px; height: auto; }
.ab-videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ab-video { display: flex; flex-direction: column; gap: 10px; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; font: inherit; color: var(--ink); }
.ab-video__thumb { position: relative; display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--blue), var(--sky)); }
.ab-video__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.ab-video:hover .ab-video__thumb img { transform: scale(1.04); }
.ab-video__play { position: absolute; inset: 0; margin: auto; width: 58px; height: 58px; border-radius: 50%; background: rgba(13, 71, 161, .9); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0, 0, 0, .3); }
.ab-video__play svg { width: 24px; height: 24px; fill: #fff; stroke: none; margin-left: 3px; }
.ab-video__title { font-size: 15px; font-weight: 600; }
.ab-player__frame { aspect-ratio: 16 / 9; background: #000; }
.ab-player__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.ab-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.ab-cta h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; color: var(--heading); }
.ab-cta p { color: var(--muted); margin-top: 8px !important; }
.lp-head p a { font-weight: 600; }
@media (max-width: 1020px) {
    .ab-hero__grid { grid-template-columns: 1fr; }
    .ab-hero__card { display: none; }
    .ab-videos { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .ab-videos { grid-template-columns: 1fr; }
}

/* ---------- Diapositivas: telemedicina, dictado e IA ---------- */
.lp-video { gap: 12px; }
.lp-video__main { position: relative; height: 210px; border-radius: 14px; background: linear-gradient(135deg, #0a3a85, #1e88e5); display: grid; place-items: center; color: #fff; overflow: hidden; }
.lp-video__main > em { position: absolute; left: 12px; bottom: 10px; font-style: normal; font-size: 12px; background: rgba(0, 0, 0, .35); padding: 2px 8px; border-radius: 6px; }
.lp-video__avatar { width: 84px; height: 84px; border-radius: 50%; background: rgba(255, 255, 255, .18); display: grid; place-items: center; }
.lp-video__avatar svg { width: 44px; height: 44px; stroke: #fff; }
.lp-video__avatar--sm { width: 44px; height: 44px; }
.lp-video__avatar--sm svg { width: 24px; height: 24px; }
.lp-video__self { position: absolute; right: 12px; bottom: 12px; width: 120px; height: 82px; border-radius: 10px; background: #0b1220; border: 2px solid rgba(255, 255, 255, .5); display: grid; place-items: center; }
.lp-video__self em { position: absolute; left: 6px; bottom: 4px; font-style: normal; font-size: 10.5px; opacity: .85; }
.lp-video__controls { display: flex; justify-content: center; gap: 12px; }
.lp-video__controls span { width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); display: grid; place-items: center; }
.lp-video__controls span svg { width: 18px; height: 18px; }
.lp-video__controls .is-end { background: #e53935; border-color: #e53935; color: #fff; }

.lp-dictation { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); border: 1px solid var(--line); }
.lp-dictation small { margin-left: auto; color: var(--link); font-weight: 600; font-size: 12.5px; }
.lp-dictation__mic { width: 38px; height: 38px; border-radius: 50%; background: #e53935; color: #fff; display: grid; place-items: center; flex-shrink: 0; box-shadow: 0 0 0 6px rgba(229, 57, 53, .18); }
.lp-dictation__mic svg { width: 18px; height: 18px; }
.lp-wave { display: flex; align-items: center; gap: 3px; height: 28px; }
.lp-wave i { width: 4px; border-radius: 2px; background: var(--sky); height: 30%; animation: lp-wave 1.1s ease-in-out infinite; }
.lp-wave i:nth-child(2n) { animation-delay: .15s; }
.lp-wave i:nth-child(3n) { animation-delay: .3s; }
.lp-wave i:nth-child(4n) { animation-delay: .45s; }
@keyframes lp-wave { 0%, 100% { height: 25%; } 50% { height: 100%; } }
.lp-field-mock { display: grid; gap: 6px; }
.lp-field-mock b { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.lp-field-mock__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lp-field-mock__row .lp-bar { flex: 1; }

.lp-chat { gap: 12px; }
.lp-chat__msg { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: 13.5px; }
.lp-chat__msg--me { justify-self: end; background: var(--blue); color: #fff; border-bottom-right-radius: 4px; }
html.dark .lp-chat__msg--me { background: #1565c0; }
.lp-chat__msg--ai { display: flex; gap: 10px; align-items: flex-start; width: 85%; background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.lp-chat__msg--ai > div { flex: 1; display: grid; gap: 8px; padding-top: 6px; }
.lp-chat__ai { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--sky), var(--blue)); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.lp-chat__ai svg { width: 16px; height: 16px; }
.lp-chat__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-chat__chips span { font-size: 12.5px; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--sky); color: var(--link); background: var(--surface); }

@media (prefers-reduced-motion: reduce) {
    .lp-wave i { animation: none; height: 60%; }
}

/* Pie: redes sociales con ícono */
.lp-social__link { display: inline-flex; align-items: center; gap: 10px; }
.lp-social__icon { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); display: grid; place-items: center; flex-shrink: 0; transition: background .2s, border-color .2s; }
.lp-social__icon svg { width: 17px; height: 17px; }
.lp-social__link:hover { text-decoration: none !important; }
.lp-social__link:hover .lp-social__icon { background: var(--sky); border-color: var(--sky); }
.lp-footer .lp-social { gap: 12px; }
