/* Landing /inversionistas/ como portafolio emocional: portada en movimiento, ruta de destinos y un capítulo a pantalla completa por proyecto. */
.pf { background: #070b0f; color: var(--marfil, #f8f7f3); }
.pf * { box-sizing: border-box; }

/* ---------- portada ---------- */
.pf-hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; display: flex; align-items: flex-end; }
.pf-hero-fotos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.14); transition: opacity 1.6s ease, transform 9s linear; }
.pf-hero-fotos img.activa { opacity: 1; transform: scale(1); }
.pf-hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 90% at 20% 100%, rgb(7 11 15 / .92) 10%, rgb(7 11 15 / .35) 55%, rgb(7 11 15 / .15) 100%); }
.pf-hero-texto { position: relative; z-index: 1; width: 100%; max-width: var(--contenedor-max, 1440px); margin-inline: auto; padding: 0 var(--contenedor-padding-inline, 20px) clamp(40px, 8vh, 88px); }
.pf-hero h1 { margin: 14px 0 0; font: 700 clamp(38px, min(6.4vw, 10vh), 104px)/.98 var(--f-display, inherit); text-transform: uppercase; letter-spacing: -.005em; max-width: 14ch; }
.pf-hero h1 em { display: block; font-style: normal; color: var(--acento, #8fb55a); }
.pf-hero-pie { margin-top: clamp(22px, 4vh, 40px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.pf-cifras { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0; padding: 0; list-style: none; }
.pf-cifras li { font: 600 15px/1.2 var(--f-display, inherit); letter-spacing: .04em; }
.pf-cifras b { font-size: clamp(26px, 2.6vw, 36px); margin-right: 6px; color: #fff; }
.pf-ahora { display: flex; align-items: center; gap: 12px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: rgb(248 247 243 / .8); }
.pf-ahora i { display: block; width: 46px; height: 2px; background: rgb(248 247 243 / .25); position: relative; overflow: hidden; }
.pf-ahora i::after { content: ''; position: absolute; inset: 0; background: var(--acento, #8fb55a); transform-origin: left; animation: pf-barra 5s linear infinite; }
@keyframes pf-barra { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.pf-baja { position: absolute; z-index: 1; left: 50%; bottom: 18px; transform: translateX(-50%); width: 1px; height: 38px; background: linear-gradient(rgb(248 247 243 / .8), transparent); animation: pf-baja 2s ease-in-out infinite; }
@keyframes pf-baja { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }

/* ---------- ruta de destinos ---------- */
.pf-ruta { padding: clamp(56px, 8vw, 110px) 0 clamp(40px, 6vw, 80px); }
.pf-ruta .inv-cabeza { max-width: 40rem; }
.pf-destinos { position: relative; list-style: none; margin: clamp(32px, 5vw, 56px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.pf-destinos::before { content: ''; position: absolute; left: 4%; right: 4%; top: 58px; height: 1px; background: repeating-linear-gradient(90deg, rgb(248 247 243 / .35) 0 6px, transparent 6px 12px); }
.pf-destinos a { position: relative; display: block; text-decoration: none; color: inherit; text-align: center; }
.pf-destinos .pf-mini { display: block; width: 116px; height: 116px; max-width: 100%; aspect-ratio: 1; margin: 0 auto; border-radius: 50%; overflow: hidden; border: 2px solid rgb(248 247 243 / .25); transition: border-color .3s ease, transform .4s cubic-bezier(.22, .9, .28, 1); background: #111; }
.pf-destinos .pf-mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-destinos a:hover .pf-mini, .pf-destinos a:focus-visible .pf-mini { border-color: var(--acento, #8fb55a); transform: scale(1.06); }
.pf-destinos strong { display: block; margin-top: 14px; font: 600 15px/1.25 var(--f-display, inherit); }
.pf-destinos span { display: block; margin-top: 3px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgb(248 247 243 / .6); }

/* ---------- capítulos ---------- */
.pf-cap { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.pf-fondo { position: absolute; inset: -6% 0; z-index: -2; }
.pf-fondo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s ease; transform: translateY(calc(var(--p, 0) * -5%)) scale(calc(1.1 - var(--p, 0) * .08)); }
.pf-fondo img.activa { opacity: 1; }
.pf-cap::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(7 11 15 / .95) 8%, rgb(7 11 15 / .55) 42%, rgb(7 11 15 / .05) 78%), linear-gradient(to right, rgb(7 11 15 / .55), rgb(7 11 15 / 0) 60%); }
.pf-cap--der::after { background: linear-gradient(to top, rgb(7 11 15 / .95) 8%, rgb(7 11 15 / .55) 42%, rgb(7 11 15 / .05) 78%), linear-gradient(to left, rgb(7 11 15 / .55), rgb(7 11 15 / 0) 60%); }
.pf-cuerpo { width: 100%; max-width: var(--contenedor-max, 1440px); margin-inline: auto; padding: calc(var(--barra-alto, 56px) + 80px) var(--contenedor-padding-inline, 20px) clamp(36px, 7vh, 80px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 48px; align-items: end; }
.pf-cap--der .pf-cuerpo > .pf-relato { grid-column: 2; grid-row: 1; }
.pf-cap--der .pf-cuerpo > .pf-lado { grid-column: 1; grid-row: 1; }
.pf-num { position: absolute; top: calc(var(--barra-alto, 56px) + 28px); right: var(--contenedor-padding-inline, 20px); font: 700 clamp(64px, 11vw, 170px)/1 var(--f-display, inherit); color: rgb(248 247 243 / .07); pointer-events: none; }
.pf-cap--der .pf-num { right: auto; left: var(--contenedor-padding-inline, 20px); }
.pf-etiqueta { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px; border-radius: 999px; background: rgb(7 11 15 / .55); border: 1px solid rgb(248 247 243 / .18); font: 600 12px/1 var(--f-display, inherit); letter-spacing: .14em; text-transform: uppercase; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pf-etiqueta::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--acento, #8fb55a); box-shadow: 0 0 0 4px rgb(143 181 90 / .25); }
.pf-relato h2 { margin: 18px 0 0; font: 700 clamp(40px, 6vw, 92px)/.95 var(--f-display, inherit); text-transform: uppercase; letter-spacing: -.01em; }
.pf-relato h2.largo { font-size: clamp(34px, 4.6vw, 72px); }
.pf-lugar { margin: 12px 0 0; display: flex; align-items: center; gap: 8px; font-size: 15px; letter-spacing: .06em; color: rgb(248 247 243 / .8); }
.pf-lugar svg { width: 16px; height: 16px; fill: none; stroke: var(--acento, #8fb55a); stroke-width: 1.8; }
.pf-frase { margin: 18px 0 0; max-width: 32ch; font: 400 clamp(19px, 1.9vw, 26px)/1.35 var(--f-display, inherit); color: #fff; }
.pf-acciones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.pf-datos { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; border-radius: var(--r-tarjeta, 10px); overflow: hidden; background: rgb(248 247 243 / .14); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.pf-datos li { padding: 16px 20px; background: rgb(7 11 15 / .62); }
.pf-datos b { display: block; font: 700 clamp(26px, 2.6vw, 38px)/1 var(--f-display, inherit); color: #fff; }
.pf-datos span { display: block; margin-top: 6px; font-size: 14px; line-height: 1.35; color: rgb(248 247 243 / .72); }
.pf-miniaturas { display: flex; gap: 8px; margin-top: 12px; }
.pf-miniaturas button { flex: 1; aspect-ratio: 16 / 10; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: #111; opacity: .65; transition: opacity .3s ease, border-color .3s ease; }
.pf-miniaturas button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-miniaturas button[aria-pressed="true"], .pf-miniaturas button:hover { opacity: 1; border-color: var(--acento, #8fb55a); }
.pf-nota { position: absolute; z-index: 1; bottom: 10px; right: var(--contenedor-padding-inline, 20px); font-size: 11px; letter-spacing: .06em; color: rgb(248 247 243 / .5); }
.pf-cap--der .pf-nota { right: auto; left: var(--contenedor-padding-inline, 20px); }

/* aparición */
.pf [data-sube] { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.22, .9, .28, 1), transform .9s cubic-bezier(.22, .9, .28, 1); }
.pf [data-sube].visto { opacity: 1; transform: none; }
.pf [data-sube]:nth-child(2) { transition-delay: .12s; }

/* ---------- cierre ---------- */
.pf-final { padding-block: clamp(72px, 10vw, 140px); }
.pf-aviso { margin: 28px 0 0; font-size: 13px; line-height: 1.5; color: rgb(248 247 243 / .5); max-width: 70ch; }

@media (max-width: 61.99em) {
  .pf-destinos { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
  .pf-destinos::before { display: none; }
  .pf-cuerpo, .pf-cap--der .pf-cuerpo { grid-template-columns: 1fr; }
  .pf-cap--der .pf-cuerpo > .pf-relato, .pf-cap--der .pf-cuerpo > .pf-lado { grid-column: 1; grid-row: auto; }
}
@media (max-width: 47.99em) {
  .pf-destinos .pf-mini { width: 86px; height: 86px; }
  .pf-datos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pf-datos li { padding: 12px 10px; }
  .pf-datos b { font-size: 20px; }
  .pf-datos span { font-size: 11.5px; }
  .pf-frase { font-size: 17px; }
  .pf-cuerpo { padding-bottom: 92px; } /* deja libre el botón de WhatsApp */
  .pf-nota { bottom: 70px; }
  .pf-ahora { display: none; }
  .pf-hero-texto { padding-bottom: 92px; }
  .pf-cifras li:nth-child(3) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pf-hero-fotos img, .pf-fondo img, .pf [data-sube] { transition: none; }
  .pf-ahora i::after, .pf-baja { animation: none; }
}
