/* POV · Omar Niño — estilos del sitio (estilo Apple + vidrio). Colores y medidas como tokens: cambiar aquí cambia todo. */
:root {
  --brand: #02284d;          /* azul del logo POV */
  --brand-vivo: #0a57b0;     /* enlaces y acentos sobre blanco */
  --brand-luz: #5aa2ff;      /* acentos sobre oscuro */
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --rule: #d2d2d7;
  --noche: #050b16;          /* fondo de las secciones oscuras */
  --sobre-noche: #f5f5f7;
  --sobre-noche-suave: #a1a1a6;

  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Inter', system-ui, 'Segoe UI', sans-serif;

  --u: 8px;
  --ancho: 1240px;
  --gutter: clamp(20px, 5vw, 48px);
  --radio-xl: 32px;
  --radio-l: 22px;
  --radio-m: 14px;
  --curva: cubic-bezier(.22, 1, .36, 1);

  /* Vidrio */
  --vidrio-claro: rgb(255 255 255 / .62);
  --vidrio-oscuro: rgb(255 255 255 / .08);
  --vidrio-borde: rgb(255 255 255 / .32);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.5 var(--sans); letter-spacing: -.012em; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brand-vivo); outline-offset: 3px; border-radius: 6px; }

.contenedor { width: 100%; max-width: calc(var(--ancho) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.centro { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Vidrio ---------- */
.vidrio {
  position: relative; isolation: isolate;
  background: linear-gradient(140deg, rgb(255 255 255 / .22), rgb(255 255 255 / .06) 45%, rgb(255 255 255 / .12));
  -webkit-backdrop-filter: blur(28px) saturate(180%); backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--vidrio-borde);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .45), inset 0 -1px 0 rgb(255 255 255 / .08), 0 30px 60px -30px rgb(0 0 0 / .55);
}
.vidrio::before { /* brillo del borde superior, como una lente */
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(120% 60% at 20% 0%, rgb(255 255 255 / .28), transparent 55%);
}
.vidrio-claro {
  background: var(--vidrio-claro);
  -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgb(255 255 255 / .7);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .9), 0 10px 40px -12px rgb(0 20 50 / .25);
}

/* En celular, menos desenfoque: se ve igual de vidrio y cuesta mucho menos dibujarlo */
@media (max-width: 900px) {
  .vidrio { -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%); }
  .vidrio-claro, .cabecera { -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%); }
  /* Más opaco en celular: así no se ven manchas de lo que pasa por detrás */
  .cabecera { background: rgb(255 255 255 / .9); }
  .escena .ficha { background: rgb(18 20 26 / .78); border-color: rgb(255 255 255 / .16); }
  .escena .ficha::before { display: none; }
}

/* Luces difusas detrás del vidrio en las secciones oscuras */
.luces { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.luces span { position: absolute; border-radius: 50%; }
.luces span:nth-child(1) { width: 70vw; height: 70vw; max-width: 980px; max-height: 980px; background: radial-gradient(closest-side, rgb(10 87 176 / .55), rgb(10 87 176 / 0)); top: -30%; left: -22%; }
.luces span:nth-child(2) { width: 60vw; height: 60vw; max-width: 820px; max-height: 820px; background: radial-gradient(closest-side, rgb(31 143 255 / .35), rgb(31 143 255 / 0)); bottom: -34%; right: -18%; }
.luces span:nth-child(3) { width: 44vw; height: 44vw; max-width: 600px; max-height: 600px; background: radial-gradient(closest-side, rgb(108 92 231 / .22), rgb(108 92 231 / 0)); top: 20%; left: 40%; }

/* ---------- Tipografía ---------- */
.antetitulo { font: 600 clamp(17px, 1.4vw, 21px)/1.2 var(--sans); letter-spacing: -.01em; color: var(--brand-vivo); margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.centro .antetitulo, .antetitulo.centro { justify-content: center; }
h1, h2, h3 { font-family: var(--sans); margin: 0; color: var(--ink); font-weight: 700; }
.titular-xl { font-size: clamp(48px, 8vw, 104px); line-height: 1.02; letter-spacing: -.048em; }
.titular-l { font-size: clamp(38px, 5.4vw, 72px); line-height: 1.05; letter-spacing: -.04em; }
.titular-m { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.12; letter-spacing: -.03em; font-weight: 600; }
.degradado { background: linear-gradient(100deg, var(--brand) 10%, var(--brand-vivo) 55%, #3b8cff 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.entrada { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.42; color: var(--muted); max-width: 34em; margin: 20px 0 0; font-weight: 500; letter-spacing: -.02em; }
.centro .entrada, .entrada.centro { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Botones ---------- */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px;
  border-radius: 999px; font: 500 17px/1 var(--sans); letter-spacing: -.01em; text-decoration: none; cursor: pointer; border: 0;
  transition: background .3s var(--curva), color .3s var(--curva), transform .25s var(--curva), box-shadow .3s;
}
.boton-principal { background: var(--brand); color: #fff; }
.boton-secundario { background: transparent; color: var(--brand-vivo); box-shadow: inset 0 0 0 1px var(--brand-vivo); }
.boton-claro { background: #fff; color: var(--brand); }
.enlace { color: var(--brand-vivo); text-decoration: none; font-weight: 500; font-size: 17px; display: inline-flex; align-items: center; gap: 4px; }
.enlace::after { content: '›'; font-size: 1.25em; line-height: 1; transform: translateY(-1px); transition: transform .3s var(--curva); }
.sobre-noche .enlace { color: var(--brand-luz); }
@media (hover: hover) {
  .boton-principal:hover { background: #0a3a6b; }
  .boton-secundario:hover { background: var(--brand-vivo); color: #fff; }
  .boton-claro:hover { background: #e8eef7; }
  .enlace:hover { text-decoration: underline; text-underline-offset: 3px; }
  .enlace:hover::after { transform: translate(3px, -1px); }
}
.boton:active { transform: scale(.97); }

/* ---------- Cabecera de vidrio ---------- */
.cabecera { position: sticky; top: 0; z-index: 50; background: rgb(255 255 255 / .72); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); border-bottom: 1px solid rgb(0 0 0 / .06); }
.cabecera .contenedor { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }
.logo img { height: 26px; width: auto; }
.menu { display: flex; align-items: center; gap: 30px; }
.menu a:not(.boton) { font-size: 15px; text-decoration: none; color: rgb(29 29 31 / .82); transition: color .2s; }
@media (hover: hover) { .menu a:not(.boton):hover { color: var(--ink); } }
.menu a[aria-current='page'] { color: var(--ink); font-weight: 600; }
.menu .boton { min-height: 36px; padding: 0 16px; font-size: 15px; }
/* Botón del menú del celular: dos líneas que se vuelven una X */
.boton-menu { display: none; position: relative; width: 44px; height: 44px; margin-right: -10px; background: none; border: 0; padding: 0; cursor: pointer; }
.boton-menu span { position: absolute; left: 13px; right: 13px; height: 1.5px; border-radius: 2px; background: var(--ink); transition: transform .35s var(--curva), top .35s var(--curva); }
.boton-menu span:nth-child(1) { top: 17px; }
.boton-menu span:nth-child(2) { top: 25px; }
.boton-menu[aria-expanded='true'] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.boton-menu[aria-expanded='true'] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }
.velo-menu { display: none; }

@media (max-width: 900px) {
  .boton-menu { display: block; }
  .menu {
    position: fixed; top: 64px; left: 12px; right: 12px; z-index: 49; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-radius: var(--radio-l); padding: 8px 20px 20px;
    box-shadow: 0 0 0 1px rgb(0 0 0 / .05), 0 24px 60px -16px rgb(0 20 50 / .35);
    transform: translateY(-10px) scale(.98); transform-origin: top center; opacity: 0; pointer-events: none;
    transition: opacity .25s var(--curva), transform .35s var(--curva);
  }
  .menu.abierto { opacity: 1; transform: none; pointer-events: auto; }
  .menu a:not(.boton) { display: flex; justify-content: space-between; align-items: center; font-size: 17px; font-weight: 500; letter-spacing: -.01em; padding: 15px 2px; color: var(--ink); border-bottom: 1px solid rgb(0 0 0 / .06); }
  .menu a:not(.boton)::after { content: '›'; font-size: 22px; line-height: 1; color: #c7c7cc; }
  .menu a[aria-current='page'] { color: var(--brand-vivo); font-weight: 600; }
  .menu .boton { margin-top: 16px; min-height: 50px; font-size: 17px; }
  .velo-menu { display: block; position: fixed; inset: 0; z-index: 48; background: rgb(0 0 0 / .32); opacity: 0; pointer-events: none; transition: opacity .3s; }
  .velo-menu.abierto { opacity: 1; pointer-events: auto; }
  .menu-abierto .cabecera { background: #fff; }
  .menu-abierto .flotante { opacity: 0 !important; pointer-events: none; }
}

/* Sin zoom accidental por doble toque; fotos sin "Guardar imagen" al mantener presionado */
html { touch-action: manipulation; }
img { -webkit-touch-callout: none; -webkit-user-drag: none; user-select: none; -webkit-user-select: none; }

/* ---------- Botón flotante de vidrio ---------- */
.flotante {
  position: fixed; left: 50%; bottom: 22px; z-index: 40; transform: translate(-50%, 140%);
  display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 999px;
  transition: transform .6s var(--curva), opacity .4s; opacity: 0;
}
.flotante.visible { transform: translate(-50%, 0); opacity: 1; }
.flotante span { padding: 0 14px 0 16px; font-size: 15px; color: var(--ink); font-weight: 500; white-space: nowrap; }
.flotante .boton { min-height: 44px; padding: 0 20px; font-size: 15px; }
@media (max-width: 520px) { .flotante span { display: none; } }

/* ---------- Secciones ---------- */
.seccion { padding: clamp(96px, 12vw, 168px) 0; position: relative; }
.seccion-alt { background: var(--bg-alt); }
.sobre-noche { background: var(--noche); color: var(--sobre-noche); overflow: hidden; }
.sobre-noche h2, .sobre-noche h3 { color: var(--sobre-noche); }
.sobre-noche .antetitulo { color: var(--brand-luz); }
.sobre-noche .entrada { color: var(--sobre-noche-suave); }
.sobre-noche .degradado { background-image: linear-gradient(100deg, #fff 20%, #9cc8ff 70%, #5aa2ff); }
.sobre-noche > .contenedor { position: relative; z-index: 1; }
.encabezado-seccion { margin-bottom: clamp(48px, 6vw, 80px); }

/* ---------- Hero ---------- */
.hero { padding: clamp(64px, 9vw, 128px) 0 clamp(40px, 5vw, 64px); text-align: center; }
.hero .titular-xl { max-width: 13ch; margin: 0 auto; }
.hero-acciones { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 28px; margin-top: 36px; }
.hero-escena { margin-top: clamp(48px, 6vw, 80px); }
.escena {
  position: relative; border-radius: var(--radio-xl); overflow: hidden; background: radial-gradient(120% 90% at 75% 30%, #232323, #171717 60%, #121417);
  min-height: clamp(520px, 52vw, 680px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end;
}
.escena > img {
  position: absolute; right: 0; bottom: 0; height: 100%; width: auto; max-width: 64%; object-fit: cover; object-position: 50% 15%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 34%); mask-image: linear-gradient(90deg, transparent 0, #000 34%);
}
.escena .luces span:nth-child(1) { background: radial-gradient(closest-side, rgb(10 87 176 / .5), rgb(10 87 176 / 0)); }
.ficha {
  position: relative; z-index: 2; margin: clamp(24px, 3.4vw, 48px); border-radius: var(--radio-l);
  padding: clamp(24px, 2.6vw, 36px); color: #fff; text-align: left; max-width: 520px;
}
.ficha .nombre { font-size: clamp(28px, 2.6vw, 36px); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.ficha .cargo { color: rgb(255 255 255 / .72); margin-top: 6px; font-size: 17px; }
.ficha-cifras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.ficha-cifras div { border-radius: var(--radio-m); background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .14); padding: 14px; }
.ficha-cifras b { display: block; font-size: clamp(24px, 2.2vw, 32px); font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.ficha-cifras span { display: block; margin-top: 8px; font-size: 15px; line-height: 1.3; color: rgb(255 255 255 / .72); }
@media (max-width: 860px) {
  .escena { grid-template-columns: 1fr; min-height: 0; padding-top: 72%; }
  .escena > img { max-width: 100%; width: 100%; height: 80%; top: 0; bottom: auto; object-position: 50% 12%; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 98%); mask-image: linear-gradient(180deg, #000 55%, transparent 98%); }
  .ficha { margin: 16px; max-width: none; }
}
@media (max-width: 480px) { .ficha-cifras { grid-template-columns: 1fr; } .ficha-cifras div { display: flex; align-items: baseline; gap: 12px; } .ficha-cifras span { margin-top: 0; } }

/* ---------- Tarjetas (bento) ---------- */
.rejilla { display: grid; gap: 20px; }
.rejilla-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rejilla-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rejilla-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tarjeta { background: #fff; border-radius: var(--radio-xl); padding: clamp(28px, 3vw, 44px); }
.seccion:not(.seccion-alt):not(.sobre-noche) .tarjeta { background: var(--bg-alt); }
.tarjeta h3 { font-size: clamp(24px, 2.2vw, 30px); letter-spacing: -.03em; line-height: 1.12; font-weight: 600; margin: 0 0 12px; }
.tarjeta p { margin: 0; color: var(--muted); font-size: 17px; }
.tarjeta .icono { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--brand); color: #fff; margin-bottom: 28px; }
.tarjeta .icono svg { width: 24px; height: 24px; }
.tarjeta .grande { font-size: clamp(56px, 6vw, 88px); line-height: .95; font-weight: 700; letter-spacing: -.05em; margin-bottom: 16px; }
@media (max-width: 960px) { .rejilla-3, .rejilla-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .rejilla-3, .rejilla-2, .rejilla-4 { grid-template-columns: 1fr; } }

/* ---------- Método (vidrio sobre luces) ---------- */
.filo { border-radius: var(--radio-xl); padding: clamp(32px, 3.6vw, 52px); color: var(--sobre-noche); }
.filo .etiqueta { font-size: 15px; font-weight: 600; color: var(--brand-luz); letter-spacing: 0; }
.filo h3 { font-size: clamp(30px, 3vw, 42px); line-height: 1.06; letter-spacing: -.035em; margin: 14px 0 14px; }
.filo p { color: rgb(245 245 247 / .72); margin: 0 0 28px; font-size: 17px; }
.filo ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.filo li { display: flex; gap: 12px; align-items: center; font-size: 17px; }
.filo li::before { content: ''; flex: none; width: 20px; height: 20px; border-radius: 50%; background: rgb(90 162 255 / .2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%235aa2ff' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/13px no-repeat; }
.metodo-cierre { margin: clamp(48px, 6vw, 80px) auto 0; font-size: clamp(24px, 2.6vw, 36px); line-height: 1.25; letter-spacing: -.03em; font-weight: 600; max-width: 26em; text-align: center; color: var(--sobre-noche-suave); }
.metodo-cierre b { color: #fff; font-weight: 600; }

/* ---------- Proceso ---------- */
.paso .n { font-size: 15px; font-weight: 600; color: var(--brand-vivo); }
.paso h3 { margin-top: 10px; font-size: clamp(22px, 1.9vw, 26px); }
.paso .num { font-size: clamp(64px, 6vw, 88px); font-weight: 700; letter-spacing: -.06em; line-height: .9; margin-bottom: 28px; }

/* ---------- Honorarios ---------- */
.tarifa-principal { grid-row: span 2; display: flex; flex-direction: column; justify-content: space-between; background: var(--brand) !important; color: #fff; overflow: hidden; position: relative; }
.tarifa-principal > :not(.luces) { position: relative; z-index: 1; }
.tarifa-principal h3, .tarifa-principal p, .tarifa-principal .grande { color: #fff; }
.tarifa-principal p { color: rgb(255 255 255 / .75); }
.tarifa-principal .grande { font-size: clamp(88px, 11vw, 160px); }
.tarifa-principal .boton { margin-top: 32px; align-self: flex-start; position: relative; }

.honorarios { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
@media (max-width: 860px) { .honorarios { grid-template-columns: 1fr; } .tarifa-principal { grid-row: auto; } }

/* ---------- Sobre Omar ---------- */
.sobre { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.sobre img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 18%; border-radius: var(--radio-xl); }
.sobre p { color: var(--muted); font-size: 19px; line-height: 1.5; margin: 24px 0 0; }
.credenciales { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.credenciales li { padding: 18px 20px; border-radius: var(--radio-l); background: var(--bg-alt); font-size: 15px; color: var(--muted); }
.credenciales li b { display: block; font-size: 17px; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
@media (max-width: 860px) { .sobre { grid-template-columns: 1fr; } .sobre img { max-width: 460px; } }
@media (max-width: 480px) { .credenciales { grid-template-columns: 1fr; } }

/* ---------- Tarjetas de artículo ---------- */
.tarjeta-articulo { display: flex; flex-direction: column; text-decoration: none; color: inherit; background: #fff; border-radius: var(--radio-xl); overflow: hidden; transition: transform .5s var(--curva), box-shadow .5s var(--curva); }
.seccion:not(.seccion-alt) .tarjeta-articulo { background: var(--bg-alt); }
.tarjeta-articulo .foto { aspect-ratio: 16 / 10; overflow: hidden; background: var(--rule); }
.tarjeta-articulo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--curva); }
.tarjeta-articulo .texto { padding: 24px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.tarjeta-articulo time { font-size: 15px; color: var(--muted); font-weight: 500; }
.tarjeta-articulo h3 { font-size: 22px; line-height: 1.22; letter-spacing: -.025em; font-weight: 600; margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.tarjeta-articulo .leer { margin-top: auto; padding-top: 20px; }
@media (hover: hover) {
  .tarjeta-articulo:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgb(0 20 50 / .3); }
  .tarjeta-articulo:hover img { transform: scale(1.04); }
}
.pie-seccion { margin-top: 48px; text-align: center; }

/* ---------- Preguntas ---------- */
.preguntas { max-width: 860px; margin: 0 auto; }
.pregunta { border-bottom: 1px solid var(--rule); }
.pregunta summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; font-size: clamp(19px, 1.7vw, 24px); font-weight: 600; letter-spacing: -.025em; line-height: 1.3; }
.pregunta summary::-webkit-details-marker { display: none; }
.pregunta summary::after { content: ''; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--bg-alt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3v10M3 8h10' stroke='%231d1d1f' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center/14px no-repeat; transition: transform .35s var(--curva); }
.pregunta[open] summary::after { transform: rotate(45deg); }
.pregunta p { margin: 0 0 28px; color: var(--muted); max-width: 40em; font-size: 17px; }

/* ---------- Contacto ---------- */
.contacto { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.datos-contacto { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 12px; }
.datos-contacto li { border-radius: var(--radio-l); padding: 18px 22px; }
.datos-contacto span { display: block; font-size: 15px; color: var(--sobre-noche-suave); }
.datos-contacto a, .datos-contacto b { font-size: 18px; font-weight: 600; text-decoration: none; color: #fff; overflow-wrap: anywhere; }
/* Formulario pregunta por pregunta */
.pasos-form { background: #fff; color: var(--ink); border-radius: var(--radio-xl); padding: clamp(24px, 3.2vw, 44px); box-shadow: 0 1px 0 rgb(255 255 255 / .6) inset, 0 40px 80px -40px rgb(0 0 0 / .7); min-height: 600px; display: flex; flex-direction: column; }
/* Fila de pasos: se ve desde el principio todo lo que se va a preguntar */
.etapas { list-style: none; margin: 0 0 36px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.etapas li { display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--muted); }
.etapas li::before { content: ''; height: 4px; border-radius: 4px; background: var(--bg-alt); transition: background .4s var(--curva); }
.etapas .punto { display: none; }
.etapas .nombre-etapa { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.etapas li.hecha::before { background: var(--brand); }
.etapas li.actual::before { background: linear-gradient(90deg, var(--brand), #3b8cff); }
.etapas li.actual { color: var(--ink); }
.etapas li.actual .nombre-etapa { font-weight: 600; }
@media (max-width: 560px) { .etapas li:not(.actual) .nombre-etapa { visibility: hidden; } .etapas li.actual .nombre-etapa { overflow: visible; } }
.pasos-pie { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 24px; min-height: 44px; }
.pasos-atras { background: none; border: 0; padding: 10px 0; font: 500 15px var(--sans); color: var(--brand-vivo); cursor: pointer; }
.pasos-conteo { margin-left: auto; font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pasos-conteo b { color: var(--ink); font-weight: 600; }
.paso-form { border: 0; margin: 0; padding: 0; min-width: 0; display: none; flex-direction: column; gap: 18px; }
.pasos-form .campo select {
  -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 48px; font-size: 17px;
  background: var(--bg-alt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%236e6e73' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 18px center / 16px no-repeat;
}
.pasos-form .campo select:focus { background-color: #fff; }
.pasos-form .campo select:invalid { color: #a1a1a6; }
.pasos-form .campo select option { color: var(--ink); }
.campo-cargo #f-cargo-otro { margin-top: 4px; }
.paso-form .saludo { display: block; font-size: 17px; font-weight: 500; letter-spacing: -.01em; color: var(--brand-vivo); margin-bottom: 8px; }
.paso-form .saludo:empty { display: none; }
.opciones.opciones-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.opcion.chip span { min-height: 48px; padding: 10px 18px; border-radius: 999px; gap: 10px; }
.opcion.chip span::after { display: none; }
.opcion.chip input:checked + span, .opcion.chip:hover input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.pasos-form .campo input, .pasos-form .campo textarea { font-size: 17px; }
.pasos-form .campo input::placeholder, .pasos-form .campo textarea::placeholder { color: #a1a1a6; }
.paso-form.activo { display: flex; animation: paso-entra .45s var(--curva); }
@keyframes paso-entra { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.paso-form legend { padding: 0; font-size: clamp(24px, 2.4vw, 32px); font-weight: 700; letter-spacing: -.035em; line-height: 1.12; margin-bottom: 4px; float: left; width: 100%; }
.paso-form legend + * { clear: both; }
.ayuda-paso { margin: -4px 0 4px; color: var(--muted); font-size: 15px; }
.opciones { display: grid; gap: 10px; }
.opcion { position: relative; display: block; cursor: pointer; }
.opcion input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opcion span { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 14px 18px; border-radius: var(--radio-m); background: var(--bg-alt); border: 1.5px solid transparent; font-size: 17px; font-weight: 500; transition: background .2s, border-color .2s, transform .15s; }
.opcion span::after { content: ''; flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--rule); background: #fff center/12px no-repeat; transition: background-color .2s, border-color .2s; }
.opciones-varias .opcion span::after { border-radius: 7px; }
.opcion input:checked + span { background: #eaf2fd; border-color: var(--brand-vivo); }
.opcion input:checked + span::after { background-color: var(--brand-vivo); border-color: var(--brand-vivo); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.opcion input:focus-visible + span { outline: 2px solid var(--brand-vivo); outline-offset: 2px; }
.opcion:active span { transform: scale(.99); }
@media (hover: hover) { .opcion:hover span { background: #ececf0; } .opcion input:checked + span { background: #eaf2fd; } }
.pasos-seguir { margin-top: 8px; min-height: 54px; width: 100%; }
.pasos-form .error { font-size: 15px; color: #d70015; }
.pasos-form .error:empty { display: none; }
.pasos-form .nota { font-size: 15px; color: var(--muted); }
.telefono { display: flex; align-items: stretch; border-radius: var(--radio-m); background: var(--bg-alt); border: 1px solid transparent; transition: border-color .2s, box-shadow .2s, background .2s; }
.telefono:focus-within { background: #fff; border-color: var(--brand-vivo); box-shadow: 0 0 0 4px rgb(10 87 176 / .14); }
.telefono .prefijo { display: flex; align-items: center; gap: 8px; padding: 0 12px 0 16px; font-size: 17px; font-weight: 600; border-right: 1px solid var(--rule); white-space: nowrap; }
.bandera { width: 24px; height: 16px; border-radius: 3px; background: linear-gradient(#fcd116 0 50%, #003893 50% 75%, #ce1126 75%); box-shadow: 0 0 0 1px rgb(0 0 0 / .08); }
.telefono input { border: 0 !important; background: transparent !important; box-shadow: none !important; font-size: 18px !important; letter-spacing: .02em; flex: 1; min-width: 0; }
.acepto { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--muted); cursor: pointer; line-height: 1.45; }
.acepto input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--brand-vivo); cursor: pointer; }
.acepto a { color: var(--brand-vivo); }
.acepto input[aria-invalid='true'] { outline: 2px solid #d70015; outline-offset: 2px; }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pasos-form .legal { margin: 0; font-size: 15px; color: var(--muted); text-align: center; }
.paso-form[data-paso='listo'] { text-align: center; align-items: center; justify-content: center; flex: 1; gap: 12px; }
.paso-form[data-paso='listo'] h3 { font-size: 34px; letter-spacing: -.035em; color: var(--ink); }
.paso-form[data-paso='listo'] p { color: var(--muted); max-width: 26em; margin: 0 0 12px; }
.listo-icono { width: 64px; height: 64px; border-radius: 50%; background: #e7f6ec; color: #1a7f37; display: grid; place-items: center; }
.listo-icono svg { width: 32px; height: 32px; }


.formulario { background: #fff; color: var(--ink); border-radius: var(--radio-xl); padding: clamp(28px, 3.4vw, 48px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; box-shadow: 0 40px 80px -40px rgb(0 0 0 / .6); }
.campo { display: flex; flex-direction: column; gap: 8px; }
.campo.completo { grid-column: 1 / -1; }
.campo label { font-size: 15px; font-weight: 600; }
.campo label small { font-weight: 400; color: var(--muted); font-size: 15px; }
.campo input, .campo select, .campo textarea {
  font: 400 17px/1.4 var(--sans); color: var(--ink); background: var(--bg-alt); border: 1px solid transparent;
  border-radius: var(--radio-m); padding: 14px 16px; min-height: 52px; width: 100%; transition: border-color .2s, background .2s, box-shadow .2s;
}
.campo textarea { min-height: 120px; resize: vertical; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; background: #fff; border-color: var(--brand-vivo); box-shadow: 0 0 0 4px rgb(10 87 176 / .14); }
.campo [aria-invalid='true'] { border-color: #d70015; }
.campo .error { font-size: 15px; color: #d70015; }
.formulario .boton { grid-column: 1 / -1; min-height: 54px; }
.formulario .legal { grid-column: 1 / -1; margin: 0; font-size: 15px; color: var(--muted); text-align: center; }
.gracias { grid-column: 1 / -1; text-align: center; padding: 32px 0; }
.sobre-noche .gracias h3 { font-size: 34px; letter-spacing: -.03em; margin-bottom: 12px; color: var(--ink); }
.gracias p { color: var(--muted); margin: 0 auto 24px; max-width: 28em; }
@media (max-width: 860px) { .contacto { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .formulario { grid-template-columns: 1fr; } }

/* ---------- Calculadora de diagnóstico ---------- */
.calculadora { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 20px; align-items: stretch; }
.calc-entradas { background: #fff; border-radius: var(--radio-xl); padding: clamp(28px, 3.4vw, 48px); display: grid; gap: 40px; align-content: center; }
.deslizador-cabeza { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 16px; }
.deslizador-cabeza label { font-size: 17px; font-weight: 600; }
.deslizador-cabeza output { font-size: clamp(22px, 2vw, 28px); font-weight: 700; letter-spacing: -.03em; color: var(--brand); font-variant-numeric: tabular-nums; white-space: nowrap; }
.deslizador-limites { display: flex; justify-content: space-between; margin-top: 10px; font-size: 15px; color: var(--muted); }
.deslizador input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 32px; background: transparent; cursor: pointer; margin: 0; --lleno: 50%; }
.deslizador input[type=range]::-webkit-slider-runnable-track { height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--brand), #3b8cff) 0 0 / var(--lleno) 100% no-repeat, var(--bg-alt); }
.deslizador input[type=range]::-moz-range-track { height: 8px; border-radius: 8px; background: var(--bg-alt); }
.deslizador input[type=range]::-moz-range-progress { height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--brand), #3b8cff); }
.deslizador input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -11px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 1px rgb(0 0 0 / .06), 0 4px 12px rgb(0 20 50 / .25); transition: transform .2s var(--curva); }
.deslizador input[type=range]::-moz-range-thumb { width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 1px rgb(0 0 0 / .06), 0 4px 12px rgb(0 20 50 / .25); }
.deslizador input[type=range]:active::-webkit-slider-thumb { transform: scale(1.12); }
.deslizador input[type=range]:focus-visible { outline: none; }
.deslizador input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgb(10 87 176 / .3), 0 4px 12px rgb(0 20 50 / .25); }
.calc-resultado { position: relative; border-radius: var(--radio-xl); padding: clamp(28px, 3.4vw, 48px); display: flex; flex-direction: column; background: linear-gradient(160deg, #ffffff, #eef4fc); }
.calc-resultado .etiqueta { font-size: 17px; font-weight: 600; color: var(--brand-vivo); }
.monto-grande { font-size: clamp(44px, 5vw, 72px); font-weight: 700; letter-spacing: -.05em; line-height: 1; margin: 10px 0 28px; font-variant-numeric: tabular-nums; background: linear-gradient(100deg, var(--brand) 10%, var(--brand-vivo) 60%, #3b8cff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.calc-detalle { list-style: none; margin: 0 0 28px; padding: 0; }
.calc-detalle li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-top: 1px solid rgb(0 0 0 / .08); font-size: 15px; color: var(--muted); }
.calc-detalle b { font-size: 17px; color: var(--ink); font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.calc-detalle .destacar span, .calc-detalle .destacar b { color: var(--ink); font-weight: 600; }
.calc-detalle .alerta b { color: #b25e00; }
.calc-resultado .boton { margin-top: auto; min-height: 54px; }
.calc-como { margin-top: 16px; font-size: 15px; color: var(--muted); }
.calc-como summary { cursor: pointer; color: var(--brand-vivo); font-weight: 500; list-style: none; }
.calc-como summary::-webkit-details-marker { display: none; }
.calc-como p { margin: 10px 0 0; }
@media (max-width: 900px) { .calculadora { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .calc-detalle li { flex-direction: column; gap: 4px; } }

/* ---------- Pie ---------- */
.pie { background: var(--bg-alt); color: var(--muted); padding: 56px 0 32px; font-size: 15px; }
.pie .contenedor { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 40px; }
.pie img { height: 24px; width: auto; margin-bottom: 16px; }
.pie p { margin: 0; max-width: 30em; }
.pie h4 { font-size: 15px; font-weight: 600; color: var(--ink); margin: 0 0 12px; }
.pie ul { list-style: none; padding: 0; margin: 0; }
.pie li { padding: 4px 0; }
.pie a { text-decoration: none; color: var(--muted); overflow-wrap: anywhere; }
@media (hover: hover) { .pie a:hover { color: var(--ink); text-decoration: underline; } }
.pie .legal { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 760px) { .pie .contenedor { grid-template-columns: 1fr 1fr; } .pie .marca { grid-column: 1 / -1; } }

/* ---------- Listado de artículos ---------- */
.cabeza-pagina { padding: clamp(64px, 9vw, 120px) 0 clamp(40px, 5vw, 56px); text-align: center; }
.buscador { margin: 36px auto 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 560px; }
.buscador input { width: 100%; font: 400 17px var(--sans); padding: 0 22px 0 50px; min-height: 54px; border-radius: 999px; border: 1px solid transparent; background: var(--bg-alt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='8.5' cy='8.5' r='5.5' fill='none' stroke='%236e6e73' stroke-width='1.6'/%3E%3Cpath d='M13 13l4 4' stroke='%236e6e73' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") 20px center/20px no-repeat; color: var(--ink); }
.buscador input:focus { outline: none; background-color: #fff; border-color: var(--brand-vivo); box-shadow: 0 0 0 4px rgb(10 87 176 / .14); }
.buscador output { font-size: 15px; color: var(--muted); }
.lista-articulos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding-bottom: clamp(96px, 12vw, 168px); }
.lista-articulos .tarjeta-articulo { background: var(--bg-alt); }
.lista-articulos .destacado { grid-column: span 2; }
.lista-articulos .destacado h3 { font-size: clamp(26px, 2.6vw, 36px); -webkit-line-clamp: 3; }
.tarjeta-articulo .resumen { display: none; }
.tarjeta-articulo.destacado .resumen { margin: 12px 0 0; color: var(--muted); font-size: 17px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sin-resultados { grid-column: 1 / -1; text-align: center; padding: 48px 0; color: var(--muted); }
@media (max-width: 960px) { .lista-articulos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .lista-articulos { grid-template-columns: 1fr; } .lista-articulos .destacado { grid-column: auto; } }

/* ---------- Artículo ---------- */
.articulo-cabeza { padding: clamp(56px, 8vw, 104px) 0 clamp(36px, 4vw, 56px); max-width: 920px; margin: 0 auto; text-align: center; }
.migas { font-size: 15px; margin-bottom: 20px; display: flex; justify-content: center; align-items: center; gap: 8px; }
.migas a { color: var(--brand-vivo); text-decoration: none; font-weight: 500; }
.articulo-cabeza h1 { font-size: clamp(34px, 4.8vw, 60px); line-height: 1.07; letter-spacing: -.04em; }
.articulo-meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 22px; margin-top: 28px; font-size: 15px; color: var(--muted); }
.autor { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; }
.autor img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; }
.articulo-portada { margin: 0 auto clamp(48px, 6vw, 80px); max-width: 1240px; }
.articulo-portada img { width: 100%; max-height: 640px; object-fit: cover; border-radius: var(--radio-xl); }
.prosa { max-width: 680px; margin: 0 auto; font-size: 19px; line-height: 1.62; letter-spacing: -.014em; }
.prosa > * { margin-top: 0; margin-bottom: 0; }
.prosa > * + * { margin-top: 1.05em; }
.prosa h2 { font-size: clamp(28px, 2.6vw, 34px); line-height: 1.15; letter-spacing: -.035em; margin-top: 2em; }
.prosa h3 { font-size: 24px; line-height: 1.25; letter-spacing: -.025em; margin-top: 1.8em; font-weight: 600; }
.prosa ul, .prosa ol { padding-left: 1.2em; }
.prosa li + li { margin-top: .5em; }
.prosa strong { font-weight: 600; color: var(--ink); }
.prosa em { color: var(--muted); }
.prosa blockquote { margin-left: 0; margin-right: 0; padding: 20px 24px; border-radius: var(--radio-l); background: var(--bg-alt); font-size: 19px; color: var(--ink); }
.prosa img { border-radius: var(--radio-l); margin: 2em 0; }
.prosa a { color: var(--brand-vivo); overflow-wrap: anywhere; }
.cta-articulo { max-width: 920px; margin: clamp(64px, 8vw, 104px) auto 0; border-radius: var(--radio-xl); padding: clamp(36px, 5vw, 64px); text-align: center; position: relative; overflow: hidden; }
.cta-articulo > :not(.luces) { position: relative; z-index: 1; }
.cta-articulo h2 { font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -.04em; line-height: 1.08; }
.cta-articulo p { color: var(--sobre-noche-suave); font-size: 19px; margin: 14px auto 28px; max-width: 30em; }
.caja-autor { max-width: 680px; margin: 56px auto 0; display: flex; gap: 20px; align-items: center; padding: 24px; border-radius: var(--radio-l); background: var(--bg-alt); color: var(--muted); font-size: 15px; }
.caja-autor img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; flex: none; }
.caja-autor b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 4px; }
@media (max-width: 600px) { .prosa { font-size: 18px; } .caja-autor { flex-direction: column; text-align: center; } }

/* ---------- Movimiento ----------
   Reglas (aprendidas en iPhone, 28-oct-2026):
   - Las entradas al bajar van LIGADAS AL SCROLL (animation-timeline: view()): se mueven con el dedo y no saltan.
   - Rangos con valores fijos, nunca calc() ni var() dentro de animation-range: Safari descarta la regla entera.
   - Propiedades separadas (animation-name, -timeline...), nunca el atajo "animation" con view(): Safari no lo entiende.
   - Lo que está en pantalla al cargar (el inicio) entra con una animación normal de tiempo.
   - Sin soporte o con "Reducir movimiento": solo fundido, sin desplazar (no hay redibujo del texto al final). */
.revelar { opacity: 0; transition: opacity .7s ease; transition-delay: calc(var(--i, 0) * 70ms); }
.revelar.visible, .sin-js .revelar { opacity: 1; }

@media (prefers-reduced-motion: no-preference) {
  /* Inicio: entra al cargar, escalonado */
  .hero .revelar { opacity: 1; transition: none; animation-name: entrar-carga; animation-duration: 1s; animation-timing-function: cubic-bezier(.2, .7, .2, 1); animation-fill-mode: both; }
  .hero .revelar[style*="--i:1"] { animation-delay: .08s; }
  .hero .revelar[style*="--i:2"] { animation-delay: .16s; }
  .hero .revelar[style*="--i:3"] { animation-delay: .24s; }
  .hero .revelar[style*="--i:4"] { animation-delay: .34s; }
  @keyframes entrar-carga { from { opacity: 0; transform: translate3d(0, 28px, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* Bloques que suben y aparecen mientras se baja */
    main .revelar:not(.hero .revelar) {
      opacity: 1; transition: none;
      animation-name: subir; animation-timing-function: cubic-bezier(.2, .7, .2, 1); animation-fill-mode: both;
      animation-timeline: view(); animation-range: entry 0% entry 70%;
    }
    main .revelar[style*="--i:1"]:not(.hero .revelar) { animation-range: entry 8% entry 78%; }
    main .revelar[style*="--i:2"]:not(.hero .revelar) { animation-range: entry 16% entry 86%; }
    main .revelar[style*="--i:3"]:not(.hero .revelar) { animation-range: entry 24% entry 94%; }
    @keyframes subir { from { opacity: 0; transform: translate3d(0, 48px, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }

    /* La foto de Omar: la tarjeta crece al entrar, la foto va más lento (profundidad) y la ficha sube */
    .escena { animation-name: crecer; animation-timing-function: linear; animation-fill-mode: both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
    @keyframes crecer { from { transform: scale(.86); border-radius: 48px; } to { transform: scale(1); } }
    .escena > img { animation-name: paralaje; animation-timing-function: linear; animation-fill-mode: both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    @keyframes paralaje { from { transform: translate3d(0, -4%, 0); } to { transform: translate3d(0, 6%, 0); } }
    .escena .ficha { animation-name: subir-ficha; animation-timing-function: cubic-bezier(.2, .7, .2, 1); animation-fill-mode: both; animation-timeline: view(); animation-range: entry 30% cover 55%; }
    @keyframes subir-ficha { from { opacity: 0; transform: translate3d(0, 70px, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }

    /* Números grandes: crecen al entrar (el conteo lo hace Base.astro) */
    .paso .num, .tarjeta .grande { transform-origin: left bottom; animation-name: crecer-num; animation-timing-function: cubic-bezier(.2, .7, .2, 1); animation-fill-mode: both; animation-timeline: view(); animation-range: entry 10% entry 90%; }
    @keyframes crecer-num { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }

    /* Barra de lectura de los artículos */
    .progreso-lectura { animation-name: leer; animation-timing-function: linear; animation-fill-mode: both; animation-timeline: scroll(root); }
    @keyframes leer { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  }
}
.progreso-lectura { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 60; background: linear-gradient(90deg, var(--brand), #3b8cff); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
@supports not (animation-timeline: scroll()) { .progreso-lectura { display: none; } }

/* "Reducir movimiento": nada se desplaza, solo fundidos */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .progreso-lectura { display: none; }
  .paso-form.activo { animation: aparecer .3s ease; }
  @keyframes aparecer { from { opacity: 0; } to { opacity: 1; } }
}
/* Navegadores sin vidrio: fondo sólido para que el texto se lea */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .vidrio { background: rgb(30 40 60 / .92); }
  .vidrio-claro, .cabecera { background: rgb(255 255 255 / .97); }
}

/* ---------- Ayuda interna (solo en la versión local) ---------- */
.ay { width: 22px; height: 22px; border-radius: 50%; border: 1px solid #ea580c; background: #ea580c; color: #fff; font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; padding: 0; cursor: pointer; vertical-align: middle; letter-spacing: 0; font-family: var(--sans); flex: none; }
