/* LVNG · páginas interiores: sobre nosotros, sedes, cómo funciona, journal, preguntas y longevity. Usa los tokens de lvng.css. */

.wrap--mid { max-width: 1100px; }
.lead--l { margin-left: 0; margin-right: 0; }
.refs-i { margin-top: 18px; font-size: 12.5px; line-height: 1.6; color: var(--muted-2); }
.refs-i + .btn, .lead--l + .btn { margin-top: 28px; }

/* ---------- Portada de página ---------- */
.pg-hero { padding: calc(var(--hdr) + clamp(56px, 7vw, 110px)) 0 clamp(48px, 6vw, 90px); text-align: center; }
.pg-hero__h { font-size: clamp(44px, 5.2vw, 84px); line-height: 1; font-weight: 400; letter-spacing: -.035em; }
.pg-hero__h .lvng { height: .68em; }
.pg-hero__img { margin-top: clamp(40px, 5vw, 72px); border-radius: var(--r); overflow: hidden; aspect-ratio: 21 / 9; }
.pg-hero__img img { width: 100%; height: 100%; object-fit: cover; }
.pg-hero--c .lead { max-width: 640px; }
.pg-hero--c { padding-bottom: clamp(24px, 3vw, 48px); }

/* ---------- Valores ---------- */
.vals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.val { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; min-height: 320px; padding: 28px 26px; border-radius: var(--r); background: var(--soft-2); transition: color .6s var(--ease), transform .6s var(--ease); }
.val::before { content: ""; position: absolute; inset: -20%; z-index: -1; background: var(--img) center / cover; filter: blur(30px) saturate(1.2); opacity: 0; transform: scale(1.2); transition: opacity .8s var(--ease), transform 1.2s var(--ease); }
.val__n { font: 400 15px/1 var(--f); color: var(--muted-2); letter-spacing: .1em; margin-bottom: auto; transition: color .6s var(--ease); }
.val h3 { margin-top: 48px; font-size: clamp(22px, 1.7vw, 27px); font-weight: 400; letter-spacing: -.02em; line-height: 1.15; }
.val p { margin-top: 12px; font-size: 15px; line-height: 1.55; color: var(--muted); transition: color .6s var(--ease); }
.val:hover, .val.is-lit { color: #fff; transform: translateY(-4px); }
.val:hover::before, .val.is-lit::before { opacity: 1; transform: scale(1); }
.val:hover p, .val:hover .val__n, .val.is-lit p, .val.is-lit .val__n { color: rgba(255, 255, 255, .8); }

/* ---------- Equipo ---------- */
.team { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.tm { display: block; width: 100%; text-align: left; }
.tm__img { position: relative; overflow: hidden; aspect-ratio: 3 / 4; border-radius: var(--r); background: #e9e9e9; margin-bottom: 18px; }
.tm__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter 1.2s var(--ease); }
.tm__plus { position: absolute; right: 16px; bottom: 16px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .9); color: var(--ink); font-size: 22px; font-weight: 300; line-height: 1; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: transform .6s var(--ease), background .3s; }
.tm b { display: block; font-size: 17px; font-weight: 500; letter-spacing: -.01em; }
.tm small { display: block; margin-top: 3px; font-size: 14.5px; color: var(--muted); line-height: 1.45; }
.tm__more { display: inline-flex; margin-top: 12px; font-size: 14px; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
button.tm:hover .tm__img img, button.tm.is-active .tm__img img { transform: scale(1.05); }
button.tm:hover .tm__plus { transform: rotate(90deg); background: #fff; }
.tm--role .tm__img { display: grid; place-items: center; }
.tm__art { position: absolute; inset: 0; background: var(--img) center / cover; filter: blur(18px) saturate(1.1); transform: scale(1.3); opacity: .55; }
.tm--role .tm__img::after { content: ""; position: relative; width: 26%; aspect-ratio: 5 / 7; background: rgba(255, 255, 255, .85); -webkit-mask: url(/assets/img/lvng-stack.svg) center / contain no-repeat; mask: url(/assets/img/lvng-stack.svg) center / contain no-repeat; }
.drawer .bio__lead { color: var(--ink); font-size: clamp(19px, 1.5vw, 22px); line-height: 1.45; letter-spacing: -.01em; }

/* ---------- Trayectoria ---------- */
.path { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 110px); align-items: start; }
.path__img { position: sticky; top: calc(var(--hdr) + 32px); border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 5; }
.path__img img { width: 100%; height: 100%; object-fit: cover; }
.path__list li, .steps-v li { display: grid; grid-template-columns: 110px 1fr; gap: 24px; padding: 30px 0; border-top: 1px solid var(--line); }
.path__list li:last-child, .steps-v li:last-child { border-bottom: 1px solid var(--line); }
.path__list span, .steps-v span { font: 400 30px/1 var(--serif); color: var(--muted-2); }
.path__list b, .steps-v b { display: block; font-size: 18px; font-weight: 500; letter-spacing: -.01em; margin-bottom: 6px; }
.path__list p, .steps-v p { color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.steps-v span { font-size: 22px; padding-top: 2px; }
.steps-v li { grid-template-columns: 140px 1fr; }
.locs--light .loc { aspect-ratio: 4 / 3.4; }

/* ---------- Sede: portada ---------- */
.sd-hero { position: relative; min-height: 88vh; min-height: 88svh; display: flex; align-items: flex-end; overflow: hidden; background: #0b0b0c; color: #fff; }
.sd-hero__media { position: absolute; inset: 0; overflow: hidden; }
.sd-hero__media img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.72); transform: translateY(var(--py, 0px)) scale(var(--ps, 1.05)); will-change: transform; }
.sd-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.25) 55%, rgba(0,0,0,.85) 100%); }
.sd-hero__in { position: relative; padding-bottom: clamp(40px, 7vh, 80px); }
.sd-hero__h { font-size: clamp(46px, 5.6vw, 92px); line-height: 1; font-weight: 400; letter-spacing: -.035em; }
.sd-hero__h .lvng { height: .68em; margin-left: 0; }
.sd-hero__p { margin-top: 18px; max-width: 620px; color: rgba(255, 255, 255, .78); font-size: clamp(16px, 1.15vw, 18px); line-height: 1.55; }
.sd-hero__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

.sd-info { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sd-info li { padding: 28px 24px 30px; border-left: 1px solid var(--line); }
.sd-info li:first-child { border-left: 0; padding-left: 0; }
.sd-info span { display: block; font-size: 11px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 14px; }
.sd-info b { display: block; font-size: 18px; font-weight: 500; letter-spacing: -.01em; }
.sd-info small { display: block; margin-top: 4px; font-size: 14.5px; color: var(--muted); }

/* ---------- Galería ---------- */
.gal { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, clamp(200px, 20vw, 340px)); grid-template-areas: "a b c" "a d e"; gap: 12px; }
.gal figure { margin: 0; overflow: hidden; border-radius: var(--r); }
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.gal figure:hover img { transform: scale(1.05); }
.gal__a { grid-area: a; } .gal__b { grid-area: b; } .gal__c { grid-area: c; } .gal__d { grid-area: d; } .gal__e { grid-area: e; }

/* ---------- Dos columnas ---------- */
.sd-two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 110px); align-items: center; }
.sd-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 22px 0; border-top: 1px solid var(--line); }
.sd-list li:last-child { border-bottom: 1px solid var(--line); }
.sd-list b { font-size: 16.5px; font-weight: 500; }
.sd-list span { font-size: 15px; color: var(--muted); text-align: right; }
.sd-fig { margin: 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 5; }
.sd-fig img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Cómo funciona ---------- */
.how { display: grid; gap: clamp(64px, 9vw, 140px); }
.how__s { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(36px, 6vw, 110px); align-items: center; }
.how__s--rev figure { order: 2; }
.how__s figure { position: relative; margin: 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 5 / 4; }
.how__s figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.how__s:hover figure img { transform: scale(1.04); }
.how__s figure span { position: absolute; left: 22px; bottom: 16px; font: 400 clamp(64px, 7vw, 120px)/1 var(--serif); color: #fff; text-shadow: 0 8px 30px rgba(0, 0, 0, .25); }
.ticks { display: grid; gap: 12px; margin-top: 28px; }
.ticks li { position: relative; padding-left: 28px; font-size: 15.5px; color: var(--muted); line-height: 1.5; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 15px; height: 15px; 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; }

.vs { text-align: left; border-radius: var(--r); overflow: hidden; background: #fff; border: 1px solid var(--line); }
.vs__row { display: grid; grid-template-columns: 1fr 1.25fr 1.5fr; border-top: 1px solid var(--line); }
.vs__row:first-child { border-top: 0; }
.vs__row > * { padding: 22px 26px; font-size: 15.5px; line-height: 1.5; }
.vs__row > span { font-weight: 500; }
.vs__row > p:first-of-type { color: var(--muted-2); }
.vs__row > p:last-child { background: rgba(90, 123, 255, .05); }
.vs__row--h > b { font-size: 14px; font-weight: 500; color: var(--muted); }
.vs__row--h > b:last-child { background: var(--ink); color: #fff; display: flex; align-items: center; }

/* ---------- Preguntas frecuentes ---------- */
.fq { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 96px); max-width: 1180px; margin: 0 auto; }
.fq__nav { position: sticky; top: calc(var(--hdr) + 32px); align-self: start; display: grid; gap: 2px; }
.fq__nav a { padding: 10px 14px; border-radius: 10px; font-size: 15px; color: var(--muted); transition: background .3s, color .3s; }
.fq__nav a:hover, .fq__nav a.is-on { background: var(--soft); color: var(--ink); }
.fq__g + .fq__g { margin-top: 72px; }
.fq__g h2 { font-size: clamp(26px, 2.2vw, 34px); font-weight: 400; letter-spacing: -.022em; margin-bottom: 20px; scroll-margin-top: calc(var(--hdr) + 24px); }
.fq__g .qa__b p + p { margin-top: 12px; }

/* ---------- LVNG Longevity ---------- */
.lg-hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; overflow: hidden; color: #fff; background: radial-gradient(90% 70% at 50% 40%, #23252d 0%, #0b0b0c 70%); }
.lg-hero__in { position: relative; padding: calc(var(--hdr) + 40px) var(--gut) 80px; }
.lg-hero__logo.lvng { height: clamp(40px, 6vw, 90px); width: calc(clamp(40px, 6vw, 90px) * 230 / 70); margin: 0 auto 28px; display: block; }
.lg-hero h1 { font-size: clamp(40px, 4.8vw, 76px); line-height: 1.02; font-weight: 400; letter-spacing: -.034em; }
.lg-hero p { margin: 20px auto 0; max-width: 620px; color: rgba(255, 255, 255, .66); font-size: clamp(16px, 1.15vw, 18px); line-height: 1.6; }
.lg-hero .pill { display: inline-flex; margin-bottom: 26px; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18); font-size: 13px; color: rgba(255, 255, 255, .78); }
.lg-dots { position: absolute; inset: 0; opacity: .5; background: radial-gradient(circle, rgba(255,255,255,.22) 1.2px, transparent 1.6px) 0 0 / 22px 22px; -webkit-mask: radial-gradient(60% 55% at 50% 50%, #000 0%, transparent 75%); mask: radial-gradient(60% 55% at 50% 50%, #000 0%, transparent 75%); animation: lgDots 30s linear infinite; }
@keyframes lgDots { to { background-position: 22px 44px; } }
.lg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.lg-c { padding: 28px 26px; border-radius: var(--r); background: var(--soft-2); }
.lg-c b { display: block; font-size: 18px; font-weight: 500; letter-spacing: -.01em; margin-bottom: 8px; }
.lg-c p { font-size: 15px; line-height: 1.55; color: var(--muted); }
.lg-c small { display: inline-block; margin-top: 14px; font-size: 12.5px; color: var(--muted-2); }

/* ---------- Móvil y tableta ---------- */
@media (max-width: 1100px) {
  .vals { grid-template-columns: repeat(2, 1fr); }
  .team { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .team { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 12px; padding-bottom: 4px; }
  .team::-webkit-scrollbar { display: none; }
  .team .tm { flex: none; width: min(72vw, 300px); scroll-snap-align: start; scroll-margin-left: var(--gut); }
  .path, .sd-two, .how__s { grid-template-columns: 1fr; }
  .path__img { position: relative; top: 0; aspect-ratio: 4 / 3; }
  .how__s--rev figure { order: 0; }
  .sd-info { grid-template-columns: 1fr 1fr; }
  .sd-info li:nth-child(3) { border-left: 0; padding-left: 0; }
  .sd-info li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .gal { grid-template-columns: 1fr 1fr; grid-template-rows: 56vw repeat(2, 38vw); grid-template-areas: "a a" "b c" "d e"; }
  .lg-grid { grid-template-columns: 1fr 1fr; }
  .fq { grid-template-columns: 1fr; }
  .fq__nav { position: sticky; top: var(--hdr); z-index: 5; display: flex; overflow-x: auto; scrollbar-width: none; gap: 6px; margin: 0 calc(var(--gut) * -1); padding: 10px var(--gut); background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
  .fq__nav::-webkit-scrollbar { display: none; }
  .fq__g h2 { scroll-margin-top: calc(var(--hdr) + 76px); }
  .fq__nav a { flex: none; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; }
  .vs__row { grid-template-columns: 1fr 1fr; }
  .vs__row > span { grid-column: 1 / -1; padding-bottom: 0; }
  .vs__row--h > span { display: none; }
  .vs__row > * { padding: 16px 18px; font-size: 14.5px; }
}
@media (max-width: 600px) {
  .vals, .lg-grid { grid-template-columns: 1fr; }
  .val { min-height: 240px; }
  .pg-hero__img { aspect-ratio: 4 / 3; }
  .sd-info { grid-template-columns: 1fr; }
  .sd-info li, .sd-info li:nth-child(3) { border-left: 0; padding: 20px 0; }
  .sd-info li + li { border-top: 1px solid var(--line); }
  .path__list li, .steps-v li { grid-template-columns: 1fr; gap: 10px; padding: 24px 0; }
  .sd-list li { flex-direction: column; gap: 4px; }
  .sd-list span { text-align: left; }
}

/* ---------- Cómo llegar y mapa ---------- */
.how-to { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(32px, 5vw, 90px); align-items: stretch; }
.getto { margin: 32px 0 30px; border-top: 1px solid var(--line); }
.getto li { display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.getto__i { display: grid; place-items: center; width: 52px; height: 32px; border-radius: 8px; background: var(--soft); font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.getto__i--fgc { background: #f26522; color: #fff; }
.getto b { display: block; font-size: 16px; font-weight: 500; }
.getto p { margin-top: 3px; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.map { position: relative; min-height: 520px; border-radius: var(--r); overflow: hidden; background: #eceeef; isolation: isolate; }
.map .maplibregl-ctrl-group { border-radius: 10px; box-shadow: 0 6px 18px rgba(0, 0, 0, .12); }
.map .maplibregl-ctrl-attrib { font-size: 10px; }
.map .maplibregl-popup-content { border-radius: 10px; font: 500 13px/1.3 var(--f); padding: 8px 12px; }
.pin { position: relative; width: 0; height: 0; }
.pin__dot { position: absolute; left: -26px; top: -26px; width: 52px; height: 52px; border-radius: 14px; background: var(--ink); display: grid; place-items: center; box-shadow: 0 14px 30px rgba(0, 0, 0, .3); }
.pin__dot::before { content: ""; width: 20px; height: 26px; background: #fff; -webkit-mask: url(/assets/img/lvng-stack.svg) center / contain no-repeat; mask: url(/assets/img/lvng-stack.svg) center / contain no-repeat; }
.pin__dot::after { content: ""; position: absolute; inset: -10px; border-radius: 20px; border: 2px solid rgba(17, 18, 20, .35); animation: pinPulse 2.4s var(--ease) infinite; }
@keyframes pinPulse { from { transform: scale(.8); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.pin__lab { position: absolute; left: 36px; top: -24px; white-space: nowrap; padding: 8px 12px; border-radius: 10px; background: #fff; box-shadow: 0 10px 26px rgba(0, 0, 0, .14); font: 500 13.5px/1.3 var(--f); color: var(--ink); }
.pin__lab small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; }
.poi { width: 26px; height: 26px; border-radius: 7px; cursor: pointer; display: grid; place-items: center; font: 700 9.5px/1 var(--f); color: #fff; background: #3a7bd5; box-shadow: 0 6px 14px rgba(0, 0, 0, .2); }
.poi--fgc { background: #f26522; }
.faq--after { max-width: 820px; margin: clamp(56px, 6vw, 96px) auto 0; }
@media (max-width: 900px) {
  .how-to { grid-template-columns: 1fr; }
  .map { min-height: 380px; }
  .pin__lab { display: none; }
}

/* ---------- Preguntas de cada sede: título a la izquierda, preguntas a la derecha ---------- */
.sfaq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
.sfaq__h { position: sticky; top: calc(var(--hdr) + 40px); }
.sfaq__all { display: inline-flex; gap: 6px; margin-top: 26px; font-size: 15px; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.sfaq__all span { transition: transform .4s var(--ease); }
.sfaq__all:hover span { transform: translateX(4px); }
@media (max-width: 900px) { .sfaq { grid-template-columns: 1fr; } .sfaq__h { position: static; } }

/* ---------- Texto largo en páginas claras (páginas locales) ---------- */
.prose-l { font-size: 17px; line-height: 1.75; color: var(--ink-2); }
.prose-l > * + * { margin-top: 1.05em; }
.prose-l h2 { margin-top: 2em; font-size: clamp(24px, 2vw, 30px); line-height: 1.2; font-weight: 400; letter-spacing: -.02em; color: var(--ink); scroll-margin-top: calc(var(--hdr) + 24px); }
.prose-l h2:first-child { margin-top: 0; }
.prose-l ul { padding-left: 1.2em; list-style: disc; }
.prose-l li + li { margin-top: .4em; }
.prose-l a { color: #3d63ff; text-decoration: underline; text-underline-offset: 3px; }
.sfaq__read { margin-top: 22px; display: grid; gap: 8px; }
.sfaq__read a { font-size: 15px; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 6px; display: block; transition: color .3s; }
.sfaq__read a:hover { color: var(--ink); }
