/* LVNG Lab · índice y calculadoras (se carga después de lvng.css) */

/* ============ ÍNDICE ============ */
.lab-hero { padding: calc(var(--hdr) + clamp(56px, 7vw, 110px)) 0 clamp(20px, 3vw, 40px); text-align: center; }
.lab-hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.lab-hero__h { font-size: clamp(42px, 4.6vw, 72px); line-height: 1.02; font-weight: 400; letter-spacing: -.03em; }
.ltgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ltc {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; min-height: 260px; padding: 26px; border-radius: 18px;
  background: var(--soft-2); overflow: hidden; isolation: isolate; transition: transform .6s var(--ease), box-shadow .6s var(--ease), color .5s var(--ease);
}
.ltc__art { position: absolute; right: -40px; top: -40px; width: 200px; aspect-ratio: 1; border-radius: 50%; background: var(--img) center/cover; z-index: -1; transition: transform 1.2s var(--ease), filter 1s var(--ease); box-shadow: 0 30px 60px rgba(0,0,0,.12); }
.ltc::before { content: ""; position: absolute; inset: -20%; z-index: -2; background: var(--img) center/cover; filter: blur(60px) saturate(1.4); opacity: 0; transition: opacity .8s var(--ease); }
.ltc b { font: 400 clamp(36px, 3vw, 48px)/1 var(--serif); letter-spacing: -.01em; }
.ltc > span:not(.ltc__art) { font-size: 15px; color: var(--muted); transition: color .5s var(--ease); }
.ltc i { position: absolute; right: 24px; bottom: 22px; font-style: normal; transition: transform .5s var(--ease); }
.ltc:hover { transform: translateY(-4px); box-shadow: 0 30px 60px rgba(0,0,0,.08); color: #fff; }
.ltc:hover::before { opacity: 1; }
.ltc:hover > span:not(.ltc__art) { color: rgba(255,255,255,.8); }
.ltc:hover .ltc__art { transform: scale(1.15) rotate(20deg); }
.ltc:hover i { transform: translateX(4px); }

/* ============ CALCULADORA ============ */
.lt { padding: calc(var(--hdr) + clamp(28px, 4vw, 60px)) 0 clamp(60px, 7vw, 110px); }
.crumbs { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); margin-bottom: clamp(20px, 3vw, 40px); }
.crumbs a:hover { color: var(--ink); }
.lt__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 72px); align-items: start; }
.lt__h { font-size: clamp(36px, 3.6vw, 56px); line-height: 1.04; font-weight: 400; letter-spacing: -.03em; }
.lt__intro { margin-top: 18px; font-size: clamp(16px, 1.15vw, 18px); line-height: 1.6; color: var(--muted); max-width: 620px; }
.lt__form { margin-top: 32px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 14px; }
.lt__fine { margin-top: 22px; font-size: 12.5px; color: var(--muted-2); max-width: 620px; }
.lt__fine--c { text-align: center; margin: 28px auto 0; }

/* Resultado */
.res {
  position: sticky; top: calc(var(--hdr) + 24px); padding: clamp(26px, 2.6vw, 40px); border-radius: 22px; color: #fff; overflow: hidden; isolation: isolate;
  background: #0d0d0f; box-shadow: 0 40px 90px rgba(0, 0, 0, .18);
}
.res__bg { position: absolute; inset: -30%; z-index: -1; background: var(--img) center/cover; filter: blur(60px) saturate(1.4); opacity: .55; animation: drift 14s ease-in-out infinite alternate; }
.res::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(13,13,15,.15), rgba(13,13,15,.65)); }
.res__k { font-size: 12px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.res__n { display: flex; align-items: baseline; gap: 10px; margin-top: 14px; font-size: clamp(64px, 6.4vw, 104px); line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.res__n small { font-size: 18px; letter-spacing: 0; color: rgba(255, 255, 255, .7); }
.odo { display: inline-flex; }
.odo__d { display: inline-block; height: 1em; overflow: hidden; }
.odo__c { display: flex; flex-direction: column; transition: transform .9s var(--ease); }
.odo__c i { font-style: normal; height: 1em; line-height: 1; }
.odo__s { display: inline-block; }
.res__tag { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 6px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; background: rgba(255, 255, 255, .14); }
.res__tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tone, #fff); box-shadow: 0 0 12px var(--tone, #fff); }
.gauge { position: relative; margin: 26px 0 8px; }
.gauge__bands { display: flex; gap: 3px; height: 8px; }
.gauge__bands span { border-radius: 4px; background: var(--c); opacity: .85; }
.gauge__dot { position: absolute; top: -5px; left: var(--x, 0%); width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid #0d0d0f; translate: -50% 0; box-shadow: 0 0 0 2px rgba(255,255,255,.6); transition: left .9s var(--ease); }
.gauge__ticks { position: relative; height: 18px; margin-top: 8px; font-size: 11.5px; color: rgba(255, 255, 255, .55); }
.gauge__ticks span { position: absolute; translate: -50% 0; }
.res__sub { margin-top: 18px; }
.res__sub li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 15px; }
.res__sub li span { color: rgba(255, 255, 255, .65); }
.res__sub li b { font-weight: 500; text-align: right; }
.res__note { margin: 16px 0 22px; font-size: 14px; line-height: 1.55; color: rgba(255, 255, 255, .72); }
.res__note:empty { display: none; }

/* Texto de la calculadora */
.lt-body__grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(32px, 5vw, 96px); align-items: start; }
.lt-art h2 { font-size: clamp(26px, 2.2vw, 34px); font-weight: 400; letter-spacing: -.02em; margin: 48px 0 16px; }
.lt-art h2:first-child { margin-top: 0; }
.lt-art p { font-size: 17px; line-height: 1.7; color: var(--muted); margin-bottom: 14px; }
.lt-art p b { color: var(--ink); font-weight: 500; }
.lt-art a { color: #3d63ff; text-decoration: underline; text-underline-offset: 3px; }
.src { list-style: decimal; padding-left: 18px; display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.src a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.lt-more { position: sticky; top: calc(var(--hdr) + 24px); }
.lt-more__list { display: grid; gap: 8px; }
.lt-more .ltc { min-height: 0; padding: 16px 18px; flex-direction: row; align-items: center; justify-content: flex-start; gap: 14px; }
.lt-more .ltc__art { position: static; width: 40px; height: 40px; box-shadow: none; flex: none; }
.lt-more .ltc b { font-size: 24px; }
.lt-more .ltc > span:not(.ltc__art) { font-size: 14px; }
.lt-more .ltc i { bottom: 50%; translate: 0 50%; }

@media (max-width: 1000px) {
  .lt__grid, .lt-body__grid { grid-template-columns: minmax(0, 1fr); }
  .res, .lt-more { position: relative; top: 0; }
  .ltgrid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .ltgrid { grid-template-columns: 1fr; }
  .ltc { min-height: 200px; }
  .lt__form { grid-template-columns: minmax(0, 1fr); }
  .yn legend { max-width: 60%; font-size: 15px; }
  .res__n { font-size: 68px; }
}
