/* MM-WEB-PREPUB-01B — Fuentes autoalojadas.
   Los binarios .woff2 deben colocarse en /assets/fonts/ desde la distribución oficial IBM Plex. */
@font-face {
  font-family: "IBM Plex Sans";
  src: url("assets/fonts/IBMPlexSans-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("assets/fonts/IBMPlexSans-SemiBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("assets/fonts/IBMPlexSans-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/IBMPlexMono-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/IBMPlexMono-SemiBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  --slate: #2E3B47;
  --teal: #2FBFA3;
  --gris-claro: #EFF2F5;
  --claro-tenue: #F8FAFB;
  --texto-apoyo: #5A6675;
  --texto-suave: #8FA0AD;
  --texto-sobre-slate: #C7D0D8;
  --blanco: #FFFFFF;
  --borde: #E1E6EB;
  --sans: "IBM Plex Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "Courier New", monospace;
  --ancho-contenido: 1120px;
  --margen-lateral: clamp(20px, 5vw, 56px);
  --aire-seccion: clamp(60px, 10vh, 108px);
  --radio: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  background: var(--blanco);
  color: var(--slate);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(39px, 5.7vw, 72px); line-height: 1.04; letter-spacing: -2px; }
h2 { font-size: clamp(29px, 3.4vw, 44px); line-height: 1.13; letter-spacing: -1.1px; }
h3 { font-size: 19px; line-height: 1.32; letter-spacing: -0.25px; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; }
strong { font-weight: 600; }

.contenedor { width: 100%; max-width: var(--ancho-contenido); margin-inline: auto; }
.contenedor--estrecho { max-width: 880px; }
.seccion { padding: var(--aire-seccion) var(--margen-lateral); }
.seccion--clara { background: var(--blanco); }
.seccion--tenue { background: var(--claro-tenue); border-block: 1px solid var(--borde); }
.seccion--slate { background: var(--slate); color: var(--texto-sobre-slate); }
.seccion--slate h1, .seccion--slate h2, .seccion--slate h3 { color: var(--blanco); }

.flujo { display: grid; gap: 30px; }
.flujo--centro { justify-items: start; }
.bloque-intro { display: grid; gap: 20px; }
.bloque-intro--ancho { max-width: 760px; }
.parrafo-grande { font-size: clamp(17px, 1.5vw, 20px); color: var(--texto-apoyo); }
.remate { font-weight: 600; }
.nota, .microcopy { font-size: 14px; color: var(--texto-apoyo); }
.frase-clave { padding-left: 18px; border-left: 3px solid var(--teal); font-size: 18px; font-weight: 600; }

.etiqueta {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.3px;
  text-transform: uppercase;
  color: var(--texto-apoyo);
}
.etiqueta .marca-acento { display: inline-block; width: 8px; height: 8px; margin-right: 10px; background: var(--teal); }
.seccion--slate .etiqueta { color: var(--teal); }

/* Header */
.cabecera {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 78px;
  padding: 12px var(--margen-lateral);
  background: rgba(46, 59, 71, 0.98);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.cabecera__marca { flex: 0 0 auto; text-decoration: none; }
.cabecera__lockup { width: clamp(126px, 18vw, 185px); }
.nav { display: flex; align-items: center; justify-content: flex-end; gap: clamp(14px, 2vw, 28px); }
.nav a { color: var(--texto-sobre-slate); text-decoration: none; font-size: 14px; font-weight: 600; }
.nav a:hover { color: var(--blanco); }
.nav__cta {
  padding: 11px 16px;
  border-radius: 8px;
  background: var(--teal);
  color: var(--slate) !important;
  white-space: nowrap;
}

/* Generic links/buttons */
a { color: var(--slate); text-decoration-color: var(--teal); text-underline-offset: 3px; }
.seccion--slate a { color: var(--blanco); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.boton {
  display: inline-block;
  padding: 16px 26px;
  border-radius: 10px;
  background: var(--teal);
  color: var(--slate) !important;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.boton:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(47,191,163,.25); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  display: grid;
  align-items: center;
  padding: clamp(72px, 12vh, 126px) var(--margen-lateral);
  isolation: isolate;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 84% 42%, rgba(47,191,163,.075), transparent 24%),
    linear-gradient(90deg, rgba(46,59,71,0) 46%, rgba(46,59,71,.16) 72%, rgba(46,59,71,.34) 100%);
}
.hero__fondo { position: absolute; z-index: -3; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__reticula { fill: none; stroke: var(--texto-sobre-slate); stroke-width: 1; opacity: .07; }

/* MM-WEB-HERO-01 — “De fragmentos a claridad”.
   Elementos abstractos: no representan métricas, gráficas ni resultados. */
.hero__claridad {
  position: absolute;
  z-index: -2;
  top: 8%;
  right: max(-54px, calc((100vw - 1540px) / 2));
  width: min(48vw, 760px);
  height: 84%;
  pointer-events: none;
  perspective: 1100px;
  transform-style: preserve-3d;
}
.hero__halo {
  position: absolute;
  right: 5%;
  top: 11%;
  width: 75%;
  height: 76%;
  background: radial-gradient(ellipse at 72% 50%, rgba(47,191,163,.105), rgba(47,191,163,.03) 43%, transparent 72%);
  filter: blur(7px);
  opacity: 1;
  animation: hero-halo 8.2s ease-in-out infinite alternate;
}
.hero__fragmentos,
.hero__paneles { position: absolute; inset: 0; transform-style: preserve-3d; }
.hero__fragmento {
  position: absolute;
  display: block;
  border: 1px solid rgba(199,208,216,.12);
  border-radius: 2px;
  background: linear-gradient(145deg, rgba(199,208,216,.15), rgba(199,208,216,.035));
  box-shadow: 0 8px 24px rgba(9,20,28,.08);
  animation: hero-fragmento 7.0s ease-in-out infinite alternate;
  will-change: transform, opacity;
}
.hero__fragmento:nth-child(3n) {
  background: linear-gradient(145deg, rgba(47,191,163,.25), rgba(47,191,163,.055));
  border-color: rgba(47,191,163,.14);
}
.hero__fragmento:nth-child(2n) { animation-duration: 8.7s; animation-direction: alternate-reverse; }
.hero__fragmento:nth-child(5n) { animation-duration: 10s; }

.f01 { left: 6%;  top: 19%; width: 44px; height: 27px; opacity: .23; transform: rotate(12deg); }
.f02 { left: 17%; top: 28%; width: 24px; height: 36px; opacity: .16; transform: rotate(-8deg); }
.f03 { left: 23%; top: 15%; width: 30px; height: 48px; opacity: .31; transform: rotate(7deg); }
.f04 { left: 30%; top: 37%; width: 48px; height: 34px; opacity: .22; transform: rotate(4deg); }
.f05 { left: 35%; top: 23%; width: 19px; height: 22px; opacity: .34; transform: rotate(-4deg); }
.f06 { left: 41%; top: 45%; width: 38px; height: 51px; opacity: .25; transform: rotate(7deg); }
.f07 { left: 46%; top: 33%; width: 18px; height: 18px; opacity: .42; transform: rotate(2deg); }
.f08 { left: 22%; top: 58%; width: 36px; height: 29px; opacity: .17; transform: rotate(-9deg); }
.f09 { left: 35%; top: 65%; width: 55px; height: 31px; opacity: .24; transform: rotate(-5deg); }
.f10 { left: 48%; top: 59%; width: 30px; height: 42px; opacity: .36; transform: rotate(3deg); }
.f11 { left: 54%; top: 71%; width: 18px; height: 24px; opacity: .28; transform: rotate(-2deg); }
.f12 { left: 55%; top: 46%; width: 22px; height: 20px; opacity: .39; transform: rotate(5deg); }
.f13 { left: 13%; top: 72%; width: 28px; height: 38px; opacity: .13; transform: rotate(11deg); }
.f14 { left: 44%; top: 78%; width: 42px; height: 23px; opacity: .14; transform: rotate(-7deg); }

.hero__panel {
  position: absolute;
  display: block;
  border-radius: 11px;
  border: 1px solid rgba(199,208,216,.22);
  background: linear-gradient(145deg, rgba(199,208,216,.12), rgba(199,208,216,.035));
  box-shadow: 0 24px 56px rgba(10,21,29,.17), inset 0 1px 0 rgba(255,255,255,.045);
  backdrop-filter: blur(1.5px);
  transform-origin: center;
  animation: hero-panel 8.4s ease-in-out infinite alternate;
  will-change: transform;
}
.hero__panel--01 { right: 32%; top: 39%; width: 116px; height: 176px; opacity: .28; transform: rotateY(-14deg) translateZ(-35px); animation-delay: -2.4s; }
.hero__panel--02 { right: 22%; top: 30%; width: 136px; height: 222px; opacity: .39; transform: rotateY(-14deg) translateZ(-15px); animation-delay: -5.2s; }
.hero__panel--03 { right: 10%; top: 23%; width: 158px; height: 280px; opacity: .48; transform: rotateY(-14deg) translateZ(5px); animation-delay: -7.3s; }
.hero__panel--04 {
  right: -7%; top: 16%; width: 186px; height: 360px; opacity: .72;
  border-color: rgba(47,191,163,.62);
  background: linear-gradient(145deg, rgba(47,191,163,.38), rgba(47,191,163,.12) 52%, rgba(47,191,163,.04));
  box-shadow: 0 34px 78px rgba(10,21,29,.22), 0 0 44px rgba(47,191,163,.11), inset 0 1px 0 rgba(255,255,255,.06);
  transform: rotateY(-14deg) translateZ(26px);
  animation: hero-panel 8.4s ease-in-out infinite alternate, hero-final-pulse 6.8s ease-in-out infinite;
  animation-delay: -3.7s, -1.2s;
}
@keyframes hero-fragmento {
  0%   { translate: -7px 8px; scale: .96; filter: brightness(.92); }
  45%  { opacity: .8; }
  100% { translate: 12px -9px; scale: 1.035; filter: brightness(1.08); }
}
@keyframes hero-panel {
  0%   { translate: -5px 5px; }
  100% { translate: 7px -6px; }
}
@keyframes hero-halo {
  0%   { opacity: .82; transform: scale(.985); filter: blur(7px) brightness(.98); }
  100% { opacity: 1; transform: scale(1.03); filter: blur(8px) brightness(1.06); }
}
@keyframes hero-final-pulse {
  0%, 100% {
    opacity: .68;
    box-shadow: 0 34px 78px rgba(10,21,29,.22), 0 0 34px rgba(47,191,163,.10), inset 0 1px 0 rgba(255,255,255,.06);
    filter: brightness(1);
  }
  50% {
    opacity: .78;
    box-shadow: 0 38px 86px rgba(10,21,29,.24), 0 0 62px rgba(47,191,163,.18), inset 0 1px 0 rgba(255,255,255,.065);
    filter: brightness(1.05);
  }
}
.hero__contenido { position: relative; z-index: 1; }
.hero__contenido .etiqueta { margin-bottom: 24px; }
.hero h1 { max-width: 18ch; color: var(--blanco); margin-bottom: 16px; }
.hero__bajada {
  max-width: 48ch;
  margin-bottom: 24px;
  color: var(--blanco);
  font-size: clamp(20px, 2.1vw, 29px);
  line-height: 1.32;
  font-weight: 500;
  letter-spacing: -.25px;
}
.hero__sub { max-width: 61ch; font-size: clamp(16.5px, 1.45vw, 19px); line-height: 1.55; color: var(--texto-sobre-slate); margin-bottom: 34px; }
.hero__acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.hero__sello { max-width: 38ch; font-family: var(--mono); font-size: 11.5px; letter-spacing: 1.35px; line-height: 1.58; text-transform: uppercase; color: var(--texto-sobre-slate); }

/* Content grids */
.reja-dos { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr); gap: clamp(38px, 7vw, 84px); align-items: start; }
.reja-dos--igual { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.panel { padding: clamp(24px, 3vw, 34px); border: 1px solid var(--borde); border-radius: 14px; background: var(--blanco); display: grid; gap: 18px; }
.panel--tenue { background: var(--claro-tenue); }
.panel--positivo { border-top: 4px solid var(--teal); }
.panel__titulo { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 1.7px; text-transform: uppercase; }
.panel__cierre { font-size: 14px; color: var(--texto-apoyo); }
.lista-senales { padding-left: 21px; display: grid; gap: 13px; }
.lista-senales li::marker { color: var(--teal); }

.tarjetas-cuatro { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.tarjeta-simple { min-height: 210px; padding: 25px 22px; border: 1px solid var(--borde); border-radius: var(--radio); display: grid; align-content: start; gap: 12px; }
.tarjeta-simple__numero, .paso__numero { font-family: var(--mono); font-size: 11px; letter-spacing: 1.6px; color: var(--texto-apoyo); }
.tarjeta-simple p:last-child, .paso p:last-child { color: var(--texto-apoyo); }

.pasos-seis { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.paso { padding: 25px 22px; min-height: 225px; border: 1px solid var(--borde); border-radius: var(--radio); background: var(--blanco); display: grid; align-content: start; gap: 12px; }

.confianza__reja { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px 28px; }
.confianza__item { padding: 22px 0 22px 18px; border-left: 2px solid rgba(47,191,163,.65); display: grid; gap: 9px; }
.confianza__item p { color: var(--texto-sobre-slate); }

/* CTA */
.cta-final { padding-block: clamp(64px, 11vh, 116px); }
.cta-final__contenido { display: grid; justify-items: center; gap: 24px; text-align: center; }
.cta-final__lockup { width: 245px; }
.cta-final h2 { max-width: 22ch; }
.cta-final__apoyo { max-width: 55ch; }
.cta-final__correo { font-size: 14.5px; color: var(--texto-apoyo); }



/* MM-WEB-UX-01 — Motion system: reveal sutil, una sola vez. */
.js [data-reveal],
.js [data-reveal-group] > * {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity 560ms cubic-bezier(.22,.61,.36,1),
    transform 620ms cubic-bezier(.22,.61,.36,1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.js [data-reveal].is-visible,
.js [data-reveal-group] > *.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.js .tarjeta-simple[data-reveal],
.js .paso[data-reveal],
.js .panel[data-reveal] {
  transform: translate3d(0, 15px, 0) scale(.992);
}
.js .tarjeta-simple[data-reveal].is-visible,
.js .paso[data-reveal].is-visible,
.js .panel[data-reveal].is-visible {
  transform: translate3d(0, 0, 0) scale(1);
}

/* Feedback discreto al navegar a una sección. */
.seccion-destino {
  animation: section-arrival 760ms cubic-bezier(.22,.61,.36,1) both;
}
@keyframes section-arrival {
  0% { box-shadow: inset 0 0 0 rgba(47,191,163,0); }
  45% { box-shadow: inset 0 2px 0 rgba(47,191,163,.30); }
  100% { box-shadow: inset 0 0 0 rgba(47,191,163,0); }
}

/* Footer */
.pie { padding: 42px var(--margen-lateral); }
.pie__contenido { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px 40px; align-items: flex-start; }
.pie__marca { display: flex; gap: 14px; align-items: flex-start; }
.pie__marca img { width: 32px; margin-top: 2px; }
.pie__marca div { display: grid; gap: 3px; }
.pie__marca strong { color: var(--blanco); }
.pie__marca span { font-size: 13.5px; color: var(--texto-sobre-slate); }
.pie__legales { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 22px; max-width: 620px; font-size: 13px; }
.pie__impi { font-family: var(--mono); font-size: 10.5px; letter-spacing: .8px; }

@media (max-width: 900px) {
  .nav__enlace { display: none; }
  .hero__claridad { display: none; }
  .reja-dos, .reja-dos--igual { grid-template-columns: 1fr; }
  .tarjetas-cuatro { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .pasos-seis { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .confianza__reja { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 600px) {
  :root { --margen-lateral: 20px; }
  html { scroll-padding-top: 72px; }
  .cabecera { min-height: 68px; gap: 12px; padding-block: 10px; flex-wrap: nowrap; }
  .cabecera__lockup { width: 122px; }
  .nav { gap: 0; }
  .nav__cta { padding: 10px 12px; font-size: 12.5px !important; }
  .hero { min-height: auto; padding-block: 72px 82px; }
  .hero h1 { max-width: none; letter-spacing: -1.3px; }
  .hero__sub { font-size: 17px; }
  .hero__sello { max-width: 100%; }
  .tarjetas-cuatro, .pasos-seis, .confianza__reja { grid-template-columns: 1fr; }
  .tarjeta-simple, .paso { min-height: 0; }
  .pie__legales { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero__fragmento, .hero__panel { animation: none !important; }
  .js [data-reveal],
  .js [data-reveal-group] > * { opacity: 1 !important; transform: none !important; }
  .seccion-destino { animation: none !important; }
}

@media (max-width: 600px) {
  .hero__bajada {
    font-size: 19px;
    line-height: 1.36;
    margin-bottom: 20px;
  }
}

/* Aviso de privacidad */
.legal-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 74px; padding: 10px var(--margen-lateral);
  background: rgba(46,59,71,.98); border-bottom: 1px solid rgba(255,255,255,.08);
}
.legal-header__logo { width: clamp(126px, 17vw, 180px); }
.legal-header__back { color: var(--texto-sobre-slate); text-decoration: none; font-weight: 600; font-size: 14px; }
.legal-header__back:hover { color: var(--blanco); }
.privacidad { padding-top: clamp(54px, 8vh, 88px); padding-bottom: clamp(70px, 10vh, 110px); }
.privacidad__cabecera { display: grid; gap: 18px; padding-bottom: 28px; border-bottom: 1px solid var(--borde); }
.privacidad__cabecera h1 { font-size: clamp(34px, 4.3vw, 56px); }
.privacidad__meta { font-family: var(--mono); font-size: 11px; letter-spacing: .7px; color: var(--texto-apoyo); }
.privacidad__contenido { display: grid; gap: 36px; margin-top: 38px; }
.privacidad__seccion { display: grid; gap: 14px; }
.privacidad__seccion h2 { font-size: clamp(23px, 2.6vw, 31px); letter-spacing: -.5px; }
.privacidad__seccion h3 { margin-top: 8px; }
.privacidad__seccion ul, .privacidad__seccion ol { padding-left: 22px; display: grid; gap: 8px; }
.privacidad__nota { padding: 18px 20px; background: var(--claro-tenue); border: 1px solid var(--borde); border-left: 3px solid var(--teal); border-radius: 10px; }
.privacidad__contacto { padding: 24px; border-radius: 12px; background: var(--slate); color: var(--texto-sobre-slate); }
.privacidad__contacto strong, .privacidad__contacto a { color: var(--blanco); }
.privacidad__contacto a { text-decoration-color: var(--teal); }
@media (max-width:600px) { .legal-header { min-height: 66px; } .legal-header__logo { width: 120px; } }
