/* LVNG · páginas de programas y comparativa (se carga después de lvng.css) */

/* ============ PORTADA CON BARAJA ============ */
.phero { padding: calc(var(--hdr) + clamp(56px, 7vw, 110px)) 0 clamp(70px, 8vw, 120px); text-align: center; overflow: hidden; }
.phero__h { font-size: clamp(42px, 4.6vw, 72px); line-height: 1; font-weight: 400; letter-spacing: -.03em; }
.phero .lead { margin-top: 20px; }
.deck { position: relative; height: clamp(440px, 36vw, 520px); margin: clamp(40px, 5vw, 64px) auto 0; max-width: 1000px; }
.deck__c {
  --rel: 0; --abs: 0;
  position: absolute; left: 50%; top: 0; width: clamp(260px, 22vw, 320px); height: clamp(400px, 33vw, 480px); padding: 20px; border-radius: 18px;
  display: flex; flex-direction: column; text-align: left; cursor: pointer; overflow: hidden; isolation: isolate;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 60px rgba(0, 0, 0, .08);
  transform: translateX(calc(-50% + var(--rel) * clamp(120px, 13vw, 210px))) translateY(calc(var(--abs) * 16px)) scale(calc(1 - var(--abs) * .07)) rotate(calc(var(--rel) * 3deg));
  filter: saturate(calc(1 - var(--abs) * .25)); opacity: calc(1 - var(--abs) * .18);
  transition: transform .9s var(--ease), opacity .9s var(--ease), filter .9s var(--ease), box-shadow .9s var(--ease);
}
.deck__c.is-front { box-shadow: 0 50px 100px rgba(0, 0, 0, .16); }
.deck__c--dark { background: #0d0d0f; color: #fff; border-color: rgba(255, 255, 255, .08); }
.deck__c header h2 { font-size: 22px; font-weight: 400; letter-spacing: -.02em; }
.deck__c header p { font-size: 14px; color: var(--muted); margin-top: 2px; }
.deck__c--dark header p { color: rgba(255, 255, 255, .6); }
.deck__art { flex: 1; margin: 16px -20px; background: var(--img) center/cover; position: relative; }
.deck__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,0) 60%, #fff); }
.deck__c--dark .deck__art::after { background: linear-gradient(180deg, rgba(13,13,15,0) 60%, #0d0d0f); }
.deck__k { font-size: 13px; font-weight: 500; margin-bottom: 8px; }
.deck__c ul { display: grid; gap: 6px; }
.deck__c li { position: relative; padding-left: 18px; font-size: 13px; color: var(--muted); line-height: 1.4; }
.deck__c--dark li { color: rgba(255, 255, 255, .65); }
.deck__c li::before { content: ""; position: absolute; left: 0; top: 6px; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .5; }
.pips { display: flex; justify-content: center; gap: 6px; margin-top: 28px; }
.pips button { width: 6px; height: 4px; border-radius: 2px; background: rgba(17, 18, 20, .15); transition: width .5s var(--ease), background .5s; }
.pips button.is-on { width: 28px; background: var(--ink); }
.phero__btns { display: flex; justify-content: center; gap: 10px; margin-top: 28px; flex-wrap: wrap; }

/* ============ PRIMERA CONSULTA ============ */
.first { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 4vw, 72px); padding: clamp(28px, 3.4vw, 56px); border-radius: 22px; background: var(--soft); }
.first__l { display: flex; flex-direction: column; align-items: flex-start; }
.first__p { margin: 18px 0 28px; font-size: clamp(16px, 1.15vw, 18px); line-height: 1.6; color: var(--muted); max-width: 520px; }
.first__stats { display: flex; margin-bottom: 32px; }
.first__stats li { padding: 0 24px; border-left: 1px solid var(--line); }
.first__stats li:first-child { padding-left: 0; border-left: 0; }
.first__stats b { display: block; font-size: clamp(30px, 2.6vw, 42px); font-weight: 400; letter-spacing: -.03em; }
.first__stats span { font-size: 14px; color: var(--muted); }
.first__r { display: grid; gap: 4px; }
.first__r li { display: flex; gap: 16px; align-items: flex-start; padding: 14px; border-radius: 14px; background: #fff; }
.first__r img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: none; }
.first__r b { display: block; font-size: 15.5px; font-weight: 500; }
.first__r p { margin-top: 3px; font-size: 14.5px; color: var(--muted); line-height: 1.5; }

/* ============ BLOQUE DE CADA PROGRAMA ============ */
.pplan { padding: clamp(40px, 5vw, 70px) 0; }
.pplan--dark { background: var(--dark); color: #fff; }
.pban {
  position: relative; display: grid; grid-template-columns: 1.1fr 1fr; align-items: end; min-height: clamp(380px, 34vw, 540px);
  padding: clamp(28px, 3.4vw, 56px); border-radius: 22px; background: var(--soft); overflow: hidden; isolation: isolate;
}
.pban--dark { background: #0d0d0f; border: 1px solid rgba(255, 255, 255, .06); }
.pban__txt { position: relative; z-index: 2; align-self: center; }
.pban__txt .eyebrow { display: flex; align-items: center; gap: 8px; }
.pban h2 span { color: var(--muted-2); }
.pban--dark h2 span { color: rgba(255, 255, 255, .45); }
.pban__art { position: absolute; right: -6%; top: 50%; width: min(52%, 640px); aspect-ratio: 1; border-radius: 50%; translate: 0 -50%; background: var(--img) center/cover; filter: saturate(1.2); box-shadow: 0 60px 120px rgba(0, 0, 0, .18); animation: drift 16s ease-in-out infinite alternate; }
.pban__art::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.45), rgba(255,255,255,0) 40%), radial-gradient(circle at 70% 80%, rgba(0,0,0,.35), rgba(0,0,0,0) 60%); }
.pban__stats { position: relative; z-index: 2; grid-column: 1; display: flex; gap: 0; margin-top: 36px; }
.pban__stats li { padding: 0 24px; border-left: 1px solid var(--line); }
.pban--dark .pban__stats li { border-color: rgba(255, 255, 255, .14); }
.pban__stats li:first-child { padding-left: 0; border-left: 0; }
.pban__stats b { display: block; font-size: 20px; font-weight: 500; }
.pban__stats span { font-size: 13.5px; color: var(--muted); }
.pban--dark .pban__stats span { color: rgba(255, 255, 255, .55); }

.pgrid { display: grid; grid-template-columns: minmax(280px, 1fr) 1.5fr; gap: 12px; margin-top: 12px; align-items: start; }
.pcard { position: sticky; top: calc(var(--hdr) + 16px); padding: 28px; border-radius: 18px; background: var(--soft); text-align: center; }
.pcard--dark { background: #0d0d0f; border: 1px solid rgba(255, 255, 255, .06); }
.pcard__art { width: 64%; aspect-ratio: 1.4; margin: 6px auto 20px; border-radius: 14px; background: var(--img) center/cover; box-shadow: 0 20px 40px rgba(0, 0, 0, .14); }
.pcard h3 { font-size: 26px; font-weight: 400; letter-spacing: -.02em; }
.pcard__price { margin-top: 6px; font-size: 15px; color: var(--muted); }
.pcard__price b { font-size: 22px; font-weight: 500; color: var(--ink); }
.pcard--dark .pcard__price { color: rgba(255, 255, 255, .6); }
.pcard--dark .pcard__price b { color: #fff; }
.pcard__note { font-size: 13px; color: var(--muted-2); margin-top: 2px; }
.pcard--dark .pcard__note { color: rgba(255, 255, 255, .45); }
.pcard__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 24px; }
.pcol { display: grid; gap: 12px; }
.pbox { padding: clamp(24px, 2.6vw, 40px); border-radius: 18px; background: var(--soft); }
.pplan--dark .pbox { background: #0d0d0f; border: 1px solid rgba(255, 255, 255, .06); }
.pbox--lead { min-height: 260px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.pbox__big { font-size: clamp(22px, 2vw, 30px); line-height: 1.25; letter-spacing: -.02em; }
.pbox--lead p:not(.pbox__big) { font-size: 15px; color: var(--muted); max-width: 560px; }
.pplan--dark .pbox--lead p:not(.pbox__big) { color: rgba(255, 255, 255, .6); }
.pbox h3 { font-size: 20px; font-weight: 400; letter-spacing: -.01em; margin-bottom: 18px; }
.rec li { display: flex; align-items: center; gap: 14px; padding: 16px 0; font-size: 15px; border-top: 1px solid var(--line); }
.pplan--dark .rec li { border-color: rgba(255, 255, 255, .08); }
.rec svg { width: 20px; height: 20px; flex: none; opacity: .7; }
.inc li { display: flex; align-items: center; gap: 14px; padding: 10px 0; font-size: 15px; border-top: 1px solid var(--line); }
.pplan--dark .inc li { border-color: rgba(255, 255, 255, .08); }
.inc li > img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; flex: none; }
.inc .sub { display: grid; gap: 4px; margin-top: 8px; }
.inc .sub li { padding: 0 0 0 22px; border: 0; font-size: 14px; color: var(--muted); position: relative; }
.pplan--dark .inc .sub li { color: rgba(255, 255, 255, .6); }
.inc .sub li::before { content: ""; position: absolute; left: 0; top: 4px; width: 13px; height: 13px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 8.5 3 3 7-7' fill='none' stroke='%235a7bff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }

/* ============ RECORRIDO ============ */
.tl { position: relative; display: grid; gap: 12px; }
.tl::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; border-left: 1px dashed rgba(17, 18, 20, .18); }
.tl li { position: relative; display: grid; grid-template-columns: 120px 120px 1fr; gap: 20px; align-items: center; padding-left: 26px; }
.tl li::before { content: ""; position: absolute; left: 2px; top: 50%; width: 9px; height: 9px; border-radius: 50%; background: #fff; border: 1px solid rgba(17, 18, 20, .3); translate: 0 -50%; }
.tl__when { font-size: 12px; font-weight: 500; letter-spacing: .02em; color: var(--muted); }
.tl img { width: 120px; height: 84px; border-radius: 12px; object-fit: cover; }
.tl b { display: block; font-size: 16px; font-weight: 500; }
.tl p { margin-top: 4px; font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.tag { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 6px; padding: 3px 9px; border-radius: 6px; font: normal 500 11.5px/1.4 var(--f); color: #4b3cc9; background: rgba(110, 90, 255, .1); }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag--soft { color: #8a5a00; background: rgba(255, 170, 40, .14); }
.tl p .tag { margin: 0 4px 0 0; vertical-align: 1px; }

/* ============ Y DESPUÉS ============ */
.next { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.next__c { padding: 14px 14px 26px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.next__v { position: relative; height: 260px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; isolation: isolate; }
.next__v::before { content: ""; position: absolute; inset: -20%; z-index: -1; background: var(--img) center/cover; filter: blur(30px) saturate(1.3); animation: drift 14s ease-in-out infinite alternate; }
.gl { width: 76%; padding: 16px; border-radius: 12px; color: #fff; background: rgba(20, 20, 24, .28); border: 1px solid rgba(255, 255, 255, .2); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.gl small { display: block; font-size: 11px; color: rgba(255, 255, 255, .7); margin-bottom: 10px; }
.gl li { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13px; }
.gl li + li { border-top: 1px solid rgba(255, 255, 255, .1); }
.gl--big { text-align: center; }
.gl--big b.lvng { height: 30px; width: calc(30px * 230 / 70); margin: 4px auto 0; display: block; }
.gl--big span { display: block; font-size: 22px; letter-spacing: -.01em; margin-top: 6px; }
.gl--big em { display: inline-block; margin-top: 12px; padding: 4px 10px; border-radius: 6px; font-style: normal; font-size: 12px; background: rgba(255, 255, 255, .8); color: var(--ink); }
.chart { width: 100%; height: auto; margin: 4px 0 8px; overflow: visible; }
.chart__lim { stroke: rgba(255, 255, 255, .5); stroke-dasharray: 4 4; }
.chart__line { stroke: #fff; stroke-width: 2; }
.chart circle { fill: #fff; stroke: none; }
.gl__alert { display: inline-block; padding: 3px 8px; border-radius: 6px; font-size: 11px; background: rgba(255, 255, 255, .85); color: var(--ink); }
.next__c h3 { margin: 22px 12px 8px; font-size: 18px; font-weight: 500; letter-spacing: -.01em; }
.next__c p { margin: 0 12px; font-size: 15px; color: var(--muted); line-height: 1.55; }

/* ============ ELEGIR ============ */
.price { margin: 0 0 4px; display: flex; align-items: baseline; justify-content: center; gap: 6px; }
.price b { font-size: 40px; font-weight: 400; letter-spacing: -.03em; }
.price span { font-size: 14px; color: var(--muted); }
.plan-c--dark .price span { color: rgba(255, 255, 255, .6); }
.price__n { font-size: 12.5px; color: var(--muted-2); margin-bottom: 20px; }
.plan-c--dark .price__n { color: rgba(255, 255, 255, .45); }
.cont { display: flex; align-items: center; gap: 16px; margin-top: 12px; padding: 20px 24px; border-radius: 16px; background: var(--soft); }
.cont b { font-weight: 500; font-size: 16px; }
.cont p { font-size: 14.5px; color: var(--muted); margin-top: 2px; }
.fine { margin-top: 18px; font-size: 12.5px; color: var(--muted-2); max-width: 900px; }
.unsure { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 56px; padding: clamp(28px, 3vw, 48px); border-radius: 22px; color: #fff; background: radial-gradient(120% 140% at 0% 0%, #2a2b31, #0d0d0f 60%); }
.unsure h3 { font-size: clamp(24px, 2.4vw, 36px); font-weight: 400; letter-spacing: -.02em; }
.unsure p { margin-top: 6px; color: rgba(255, 255, 255, .65); }

/* ============ COMPARAR ============ */
.cmp { padding: calc(var(--hdr) + clamp(48px, 6vw, 96px)) 0 clamp(70px, 8vw, 120px); }
.cmp__head { text-align: center; margin-bottom: 44px; }
.cmp__head h1 { font-size: clamp(42px, 4.6vw, 72px); line-height: 1; font-weight: 400; letter-spacing: -.03em; }
.cmp__head button { margin-top: 18px; font-size: 14px; color: #3d63ff; text-decoration: underline; text-underline-offset: 3px; }
.cmp__table { min-width: 0; }
.crow { display: grid; grid-template-columns: 1.7fr repeat(4, 1fr); align-items: center; min-height: 52px; border-bottom: 1px solid var(--line); }
.crow > * { padding: 12px 16px; }
.crow > :not(:first-child) { text-align: center; display: flex; justify-content: center; align-items: center; }
.cbar { position: sticky; top: var(--hdr); z-index: 5; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.ctabs { display: inline-flex; padding: 4px; border-radius: 10px; background: var(--soft); }
.ctabs button { height: 34px; padding: 0 14px; white-space: nowrap; border-radius: 7px; font-size: 14px; color: var(--muted); transition: background .3s, color .3s, box-shadow .3s; }
.ctabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(0, 0, 0, .06); }
.ccol { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 14.5px; font-weight: 500; }
.ccol i { width: 22px; height: 22px; border-radius: 6px; background: var(--img) center/cover; margin-bottom: 4px; }
.ccol small { font-weight: 400; font-size: 12.5px; color: var(--muted); }
.cgroup__h { display: flex; align-items: center; gap: 10px; width: 100%; padding: 16px; margin-top: 10px; border-radius: 10px; background: var(--soft-2); font-size: 15px; font-weight: 500; }
.cgroup__h::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c, #999); }
.cgroup__h::after { content: ""; margin-left: auto; width: 10px; height: 10px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; rotate: 45deg; translate: 0 -2px; transition: rotate .4s var(--ease); }
.cgroup.is-closed .cgroup__h::after { rotate: -45deg; }
.cgroup__b { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .5s var(--ease); }
.cgroup__b > div { overflow: hidden; }
.cgroup.is-closed .cgroup__b { grid-template-rows: 0fr; }
.clab { display: flex; align-items: center; gap: 8px; font-size: 14.5px; }
.ctxt { font-size: 13.5px; color: var(--muted); line-height: 1.35; }
.tip { position: relative; width: 16px; height: 16px; flex: none; border-radius: 50%; border: 1px solid rgba(17, 18, 20, .3); display: grid; place-items: center; font: 500 10px/1 var(--f); color: var(--muted); cursor: help; }
.tip::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 10px); translate: -50% 4px; width: 260px; padding: 10px 12px; border-radius: 10px; background: var(--ink); color: #fff; font: 400 13px/1.45 var(--f); text-align: left; opacity: 0; visibility: hidden; transition: .25s var(--ease); z-index: 10; pointer-events: none; }
.tip:hover::after, .tip:focus::after { opacity: 1; visibility: visible; translate: -50% 0; }
.y, .n { width: 20px; height: 20px; border-radius: 50%; }
.y { background: #3fb984 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.2 2.2 4.8-4.8' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.n { background: #e5484d url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m5.5 5.5 5 5m0-5-5 5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.chip-s { padding: 3px 9px; border-radius: 6px; font-size: 12px; font-weight: 500; background: rgba(110, 90, 255, .1); color: #4b3cc9; }
.chip-s--o { background: var(--soft); color: var(--muted); }
.crow--price b { font-size: 18px; font-weight: 500; }
.crow--price small { font-size: 12.5px; color: var(--muted); margin-left: 3px; }
.cmp__foot { display: flex; justify-content: center; gap: 10px; margin-top: 48px; flex-wrap: wrap; }

/* ============ MÓVIL ============ */
@media (max-width: 1000px) {
  .first { grid-template-columns: 1fr; }
  .pban { grid-template-columns: 1fr; }
  .pban__art { width: 70%; right: -20%; top: 30%; opacity: .9; }
  .pgrid { grid-template-columns: 1fr; }
  .pcard { position: relative; top: 0; }
  .next { grid-template-columns: 1fr; }
  .unsure { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 900px) {
  .cmp__scroll { overflow-x: auto; margin: 0 calc(var(--gut) * -1); }
  .cmp__table { min-width: 0; width: max-content; }
  .cbar { position: static; }
  .crow { grid-template-columns: 158px repeat(4, 112px); }
  .crow > :first-child { position: sticky; left: 0; z-index: 2; background: #fff; padding-left: var(--gut); box-shadow: 8px 0 12px -10px rgba(0,0,0,.25); }
  .crow > * { padding: 10px 8px; }
  .clab { font-size: 13px; }
  .ctabs { flex-direction: column; }
  .ctabs button { height: 28px; font-size: 12.5px; padding: 0 10px; }
  .cgroup__h { margin-left: var(--gut); }
  .cgroup__h { position: sticky; left: var(--gut); width: calc(100vw - var(--gut) * 2); }
  /* En móvil el plegado no usa overflow, que anularía la columna fija */
  .cgroup__b { display: block; }
  .cgroup__b > div { overflow: visible; }
  .cgroup.is-closed .cgroup__b { display: none; }
}
@media (max-width: 809px) {
  .deck { height: 470px; }
  .deck__c { width: 250px; height: 410px; transform: translateX(calc(-50% + var(--rel) * 54px)) translateY(calc(var(--abs) * 14px)) scale(calc(1 - var(--abs) * .07)) rotate(calc(var(--rel) * 3deg)); }
  .pban { min-height: 420px; }
  .pban__stats { flex-wrap: wrap; gap: 14px 0; }
  .tl li { grid-template-columns: 1fr; gap: 8px; }
  .tl img { width: 100%; height: 140px; }
  .tl__when:empty { display: none; }
}
