/* Web de Soofia v3 · el mundo visual de la marca («Grafito Violeta», jul 2026) tal como
   está en la maqueta de la aplicación: carbón, un solo acento violeta, Clash Display en
   titulares y Satoshi en el texto, botones y campos en píldora.
   Origen de tokens y fuentes: packages/web/src/styles.scss y public/fonts del repo de Soofia.
   Verde y ámbar no decoran: verde = superpoder, ámbar = exposición. */

@font-face { font-family: "Clash Display"; font-weight: 500; font-display: swap; src: url("fuentes/clash-display-500.woff2") format("woff2"); }
@font-face { font-family: "Clash Display"; font-weight: 600; font-display: swap; src: url("fuentes/clash-display-600.woff2") format("woff2"); }
@font-face { font-family: "Clash Display"; font-weight: 700; font-display: swap; src: url("fuentes/clash-display-700.woff2") format("woff2"); }
@font-face { font-family: "Satoshi"; font-weight: 400; font-display: swap; src: url("fuentes/satoshi-400.woff2") format("woff2"); }
@font-face { font-family: "Satoshi"; font-weight: 500; font-display: swap; src: url("fuentes/satoshi-500.woff2") format("woff2"); }
@font-face { font-family: "Satoshi"; font-weight: 700; font-display: swap; src: url("fuentes/satoshi-700.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --bg: #0a0a0f; --panel: #12121a; --panel2: #1a1a26; --line: #26263a; --line2: #3a3a55;
  --txt: #f2f1f7; --txt2: #cfcddb; --muted: #9b98ad;
  --acc: #8b5cf6; --acc2: #c4b5fd; --ok: #54e0a0; --warn: #ffcf5c; --alto: #ff8f8f;
  --aurora: linear-gradient(115deg, #8b5cf6 0%, #c4b5fd 100%);
  --disp: "Clash Display", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Satoshi", "Segoe UI", system-ui, sans-serif;
  --r-caja: 16px; --r-fila: 10px; --pill: 999px;
  --gutter: 32px; --ancho: 1080px; --seccion: 112px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
@media (max-width: 60rem) { :root { --gutter: 24px; --seccion: 80px; } }
@media (max-width: 40rem) { :root { --gutter: 16px; --seccion: 64px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 88px; scrollbar-color: var(--line2) var(--bg); }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--txt); font-family: var(--body); font-size: 1rem; line-height: 1.55; -webkit-font-smoothing: antialiased; caret-color: var(--acc2); }
/* El aura de la marca: una luz violeta tenue arriba, fija a la página */
body::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 720px; z-index: -1; pointer-events: none;
  background: radial-gradient(52% 58% at 82% 0%, rgb(139 92 246 / 0.20), transparent 70%), radial-gradient(40% 46% at 0% 4%, rgb(139 92 246 / 0.07), transparent 70%); }
::selection { background: rgb(139 92 246 / 0.45); color: #fff; }
:focus-visible { outline: 2px solid var(--acc2); outline-offset: 3px; border-radius: 4px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
h1, h2, h3 { margin: 0; font-family: var(--disp); font-weight: 600; letter-spacing: -0.015em; line-height: 1.08; text-wrap: balance; overflow-wrap: break-word; }
p { margin: 0; text-wrap: pretty; }
img { max-width: 100%; height: auto; display: block; }
button, input { font: inherit; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: calc(var(--ancho) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }

/* Cabecera: la barra de la maqueta. Logotipo a la izquierda, enlaces y acción a la derecha */
.nav { position: sticky; top: 0; z-index: 20; background: rgb(10 10 15 / 0.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav__pill { display: flex; align-items: center; gap: 24px; max-width: calc(var(--ancho) + 2 * var(--gutter)); margin-inline: auto; padding: 12px var(--gutter); }
.marca { display: inline-flex; align-items: center; min-height: 44px; }
.marca img { height: 28px; width: auto; }
.nav__enlaces { display: flex; gap: 24px; margin-left: auto; }
.nav__enlaces a { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.9375rem; color: var(--muted); text-decoration: none; white-space: nowrap; }
.nav__enlaces a:hover, .nav__enlaces a[aria-current="page"] { color: var(--txt); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px; border: 0; border-radius: var(--pill); font-weight: 700; font-size: 0.9375rem; cursor: pointer; text-decoration: none; white-space: nowrap; transition: filter 180ms var(--ease), transform 120ms var(--ease); }
.btn--primary { background: var(--aurora); color: #0e0a18; }
.btn--primary:hover { filter: brightness(1.08); }
.btn--primary:active { transform: scale(0.98); }

/* Portada: la promesa y el correo a la izquierda; a la derecha, un trozo del producto */
.hero { padding-block: 88px var(--seccion); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 3.6vw + 1rem, 4rem); line-height: 1.04; letter-spacing: -0.025em; }
.hero h1 span { display: block; color: var(--acc2); }
.hero .lead { margin-top: 20px; font-size: 1.1875rem; line-height: 1.45; color: var(--txt2); max-width: 34ch; }

/* Inscripción: solo el correo */
.form { margin-top: 32px; max-width: 30rem; display: grid; gap: 12px; }
.form > label { font-size: 0.875rem; font-weight: 700; }
.linea { display: flex; gap: 6px; padding: 5px; background: var(--panel); border: 1px solid var(--line2); border-radius: var(--pill); }
.linea:focus-within { border-color: var(--acc); box-shadow: 0 0 0 3px rgb(139 92 246 / 0.25); }
.linea input { flex: 1; min-width: 0; height: 46px; padding: 0 16px; color: var(--txt); background: transparent; border: 0; border-radius: var(--pill); font-size: 1rem; }
.linea input:focus-visible { outline: 0; }
.linea input::placeholder { color: var(--muted); }
.form > label.acepto { font-weight: 400; }
.acepto { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: 0.875rem; color: var(--txt2); }
.acepto input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--acc); }
.enlace { color: var(--acc2); }
.error { font-size: 0.875rem; color: var(--warn); }
.error:empty { display: none; }
.nota { font-size: 0.875rem; color: var(--muted); }
.hecho { margin-top: 32px; max-width: 30rem; color: var(--txt2); }
.trampa { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; } /* campo trampa para robots */
.form[aria-busy="true"] .btn { opacity: 0.6; cursor: progress; }

/* Trozos del producto: se dibujan como en la aplicación, con un ejemplo de analista de datos */
.caja { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-caja); padding: 24px; }
.producto { margin: 0; }
.producto figcaption { margin-top: 12px; font-size: 0.8125rem; color: var(--muted); }
.producto__titulo { font-family: var(--disp); font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.01em; }
.medidor { display: grid; gap: 8px; padding-block: 18px; }
.medidor + .medidor { border-top: 1px solid var(--line); }
.medidor:first-of-type { padding-top: 16px; }
.medidor:last-of-type { padding-bottom: 0; }
.medidor__cab { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; font-weight: 700; }
.medidor__valor { font-family: var(--disp); font-weight: 700; font-size: 1.75rem; line-height: 1; font-variant-numeric: tabular-nums; }
.medidor__barra { height: 6px; border-radius: var(--pill); background: var(--panel2); overflow: hidden; }
.medidor__barra i { display: block; height: 100%; border-radius: inherit; transform-origin: left; animation: llenar 900ms var(--ease) 200ms both; }
@keyframes llenar { from { transform: scaleX(0); } }
.medidor__que { font-size: 0.875rem; color: var(--muted); }
.medidor--ok .medidor__valor { color: var(--ok); } .medidor--ok i { background: var(--ok); }
.medidor--aviso .medidor__valor { color: var(--warn); } .medidor--aviso i { background: var(--warn); }

.lista { list-style: none; margin: 14px 0 0; padding: 0; }
.lista li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 11px; border-top: 1px solid var(--line); font-size: 0.9375rem; }
.lista li span:first-child { min-width: 0; }
.lista small { display: block; color: var(--muted); font-size: 0.8125rem; }
.chip { flex: none; padding: 2px 10px; border: 1px solid currentColor; border-radius: var(--pill); font-size: 0.75rem; font-weight: 700; white-space: nowrap; }
.chip--alto { color: var(--alto); } .chip--medio { color: var(--warn); } .chip--bajo { color: var(--ok); }
.chip--tienes { color: var(--ok); } .chip--amplificas { color: var(--acc2); } .chip--aprender { color: var(--warn); }
.propone { border-color: var(--acc); background: linear-gradient(135deg, rgb(139 92 246 / 0.16), rgb(196 181 253 / 0.06)); }
.propone p { margin-top: 10px; color: var(--txt2); }
.propone__acciones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.propone__acciones span { padding: 7px 14px; border-radius: var(--pill); font-size: 0.875rem; font-weight: 700; }
.propone__acciones span:first-child { background: var(--aurora); color: #0e0a18; }
.propone__acciones span:last-child { border: 1px solid var(--line2); color: var(--txt2); }

/* De expuesto a amplificado: tres tramos, cada uno con su trozo de producto */
.seccion { padding-block: var(--seccion); }
.seccion > .wrap > h2, .cab h2 { font-size: clamp(1.75rem, 1.6vw + 1.2rem, 2.5rem); letter-spacing: -0.02em; }
.cab { max-width: 40rem; margin-bottom: 56px; }
.cab p { margin-top: 14px; font-size: 1.125rem; color: var(--txt2); }
.t-aviso { color: var(--warn); } .t-ok { color: var(--ok); }
.tramos { display: grid; gap: 72px; }
.tramo { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.tramo:nth-child(even) > :first-child { order: 2; }
.tramo h3 { font-size: 1.625rem; letter-spacing: -0.015em; }
.tramo p { margin-top: 12px; color: var(--txt2); max-width: 36ch; }
.sigue { margin-top: 48px; }

/* Cierre: una frase y la acción, con el aura */
.cierre { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; padding: 48px; border: 1px solid var(--line); border-radius: var(--r-caja);
  background: radial-gradient(70% 140% at 100% 0%, rgb(139 92 246 / 0.22), transparent 70%), var(--panel); }
.cierre h2 { font-size: clamp(1.75rem, 1.6vw + 1.2rem, 2.5rem); letter-spacing: -0.02em; }
.cierre p { margin-top: 12px; color: var(--txt2); max-width: 50ch; }

/* Páginas interiores */
.portadilla { padding-block: 72px 48px; }
.portadilla h1 { font-size: clamp(2.25rem, 2.6vw + 1.2rem, 3.25rem); letter-spacing: -0.025em; }
.portadilla .lead { margin-top: 16px; font-size: 1.1875rem; color: var(--txt2); max-width: 44ch; }
.fecha { margin-top: 12px; font-size: 0.875rem; color: var(--muted); }

/* Cómo funciona: el gemelo y cinco pasos */
.inicio { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center; margin-bottom: 24px; border-color: var(--acc); background: linear-gradient(135deg, rgb(139 92 246 / 0.14), rgb(196 181 253 / 0.05)); border: 1px solid var(--acc); border-radius: var(--r-caja); padding: 28px; }
.inicio h2 { font-size: 1.5rem; }
.inicio p { color: var(--txt2); }
.metodo { list-style: none; margin: 0; padding: 0; counter-reset: paso; }
.metodo li { counter-increment: paso; display: grid; grid-template-columns: 2.5rem minmax(0, 4fr) minmax(0, 7fr); gap: 24px; align-items: baseline; padding-block: 22px; border-bottom: 1px solid var(--line); }
.metodo li::before { content: counter(paso); font-family: var(--disp); font-weight: 600; font-size: 1.125rem; color: var(--acc2); }
.metodo h3 { font-size: 1.5rem; }
.metodo p { color: var(--txt2); max-width: 52ch; }

/* Planes */
.planes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.pozo { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-caja); padding: 24px; }
.plan { display: grid; gap: 10px; align-content: start; }
.plan--destacado { border-color: var(--acc); background: linear-gradient(160deg, rgb(139 92 246 / 0.14), transparent 60%), var(--panel); }
.plan h2 { font-size: 1.25rem; }
.plan__precio { font-family: var(--disp); font-weight: 700; font-size: 2.25rem; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.plan__precio small { font: 400 0.875rem/1 var(--body); color: var(--muted); letter-spacing: 0; }
.plan__para { color: var(--txt2); }
.plan ul { list-style: none; margin: 6px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; color: var(--txt2); font-size: 0.9375rem; }
.aviso-precio { margin-top: 16px; font-size: 0.875rem; color: var(--muted); }
.seccion__cab { margin-bottom: 32px; }
.seccion__cab h2 { font-size: clamp(1.75rem, 1.6vw + 1.2rem, 2.5rem); letter-spacing: -0.02em; }
.tabla { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-caja); background: var(--panel); }
.tabla table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: 0.9375rem; }
.tabla th, .tabla td { padding: 12px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.tabla tr:last-child > * { border-bottom: 0; }
.tabla thead th { color: var(--muted); font-weight: 500; }
.tabla tbody th { font-weight: 500; }
.tabla tbody th small { display: block; color: var(--muted); font-size: 0.8125rem; font-weight: 400; }
.tabla td { color: var(--txt2); white-space: nowrap; }
.tabla .grupo th { padding-top: 22px; font-family: var(--disp); font-weight: 600; font-size: 1rem; color: var(--acc2); }
.tabla .no { color: var(--muted); }
.empresas { margin-top: 24px; display: grid; gap: 6px; }
.empresas h2 { font-size: 1.25rem; }
.empresas p { color: var(--txt2); }

/* Textos legales: una columna de lectura */
.doc { max-width: 44rem; padding-bottom: 48px; }
.doc h2 { font-size: 1.5rem; margin: 48px 0 12px; }
.doc h3 { font-family: var(--body); font-size: 1rem; font-weight: 700; letter-spacing: 0; margin: 22px 0 6px; }
.doc p, .doc li { color: var(--txt2); }
.doc p + p { margin-top: 10px; }
.doc ul { margin: 10px 0 0; padding-left: 1.2em; display: grid; gap: 6px; }
.doc a { color: var(--acc2); }
.doc dl { margin: 14px 0 0; display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: 6px 24px; }
.doc dt { color: var(--muted); font-size: 0.875rem; }
.doc dd { margin: 0; overflow-wrap: anywhere; }
.doc .tabla { margin-top: 14px; }
.doc .tabla td { white-space: normal; }
.borrador { padding: 14px 18px; border: 1px solid var(--warn); border-radius: var(--r-fila); color: var(--txt2); font-size: 0.875rem; }
.pendiente { color: var(--warn); }

/* Pie, con la estructura del de TalentTools y el aura de la maqueta */
.pie { margin-top: var(--seccion); border-top: 1px solid var(--line); color: var(--txt2); font-size: 0.9375rem;
  background: radial-gradient(60% 90% at 50% 0%, rgb(139 92 246 / 0.10), transparent 70%), var(--bg); }
.pie__cols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; padding-block: 56px; }
.pie__marca { display: grid; gap: 14px; align-content: start; justify-items: start; }
.pie__marca img { height: 40px; width: auto; }
.pie__frase { max-width: 32ch; }
.pie__endoso { color: var(--muted); font-size: 0.875rem; }
.pie__nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.pie__titulo { font: 700 0.9375rem/1.3 var(--body); letter-spacing: 0; color: var(--txt); margin-bottom: 14px; }
.pie__nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; justify-items: start; }
.pie a { text-decoration: none; }
.pie a:hover { color: var(--txt); text-decoration: underline; }
.pie__logos { gap: 16px !important; }
.pie__logos a { display: inline-flex; align-items: center; min-height: 28px; }
.pie__logos img { --cap: 15px; height: var(--cap); width: auto; }
.pie__logos .logo--dat4me { height: calc(var(--cap) * 143 / 80.5); }
.pie__legal { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 32px; padding-block: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.875rem; }
.pie__legal ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.pie__fecha { margin-left: auto; }

@media (max-width: 60rem) {
  .hero { padding-block: 56px var(--seccion); }
  .hero__grid, .tramo, .cierre, .inicio, .planes, .pie__cols { grid-template-columns: minmax(0, 1fr); }
  .hero__grid, .tramo { gap: 32px; }
  .tramo:nth-child(even) > :first-child { order: 0; }
  .tramos { gap: 56px; }
  .cab { margin-bottom: 40px; }
  .cierre { padding: 32px; gap: 24px; justify-items: start; }
  .inicio { gap: 12px; }
  .metodo li { grid-template-columns: 2.5rem minmax(0, 1fr); gap: 4px 12px; }
  .metodo p { grid-column: 2; }
  .portadilla { padding-block: 48px 32px; }
  .pie__cols { gap: 40px; }
  .pie__fecha { margin-left: 0; }
}
@media (max-width: 40rem) {
  .caja, .pozo { padding: 18px; }
  .cierre { padding: 24px; }
  .nav__enlaces { display: none; }
  .nav__pill { justify-content: space-between; }
  .linea { flex-direction: column; border-radius: var(--r-caja); }
  .linea input { flex: none; height: 48px; }
  .linea .btn { width: 100%; min-height: 48px; }
  /* La tabla de planes cabe entera en el móvil: los tres planes a la vista, sin deslizar */
  .tabla table { min-width: 0; table-layout: fixed; font-size: 0.8125rem; }
  .tabla th, .tabla td { padding: 10px 8px; }
  .tabla th:first-child { width: 46%; padding-left: 14px; }
  .tabla td { white-space: normal; }
  .pie__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc dl { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .doc dd { margin-bottom: 10px; }
}

/* Aviso de la lista de espera, encima de la navegación */
.aviso { margin: 0; background: var(--panel2); border-bottom: 1px solid var(--line); font-size: 0.875rem; line-height: 1.4; text-align: center; }
.aviso a { display: block; padding: 10px var(--gutter); color: var(--txt2); text-decoration: none; }
.aviso strong { color: var(--txt); font-weight: 700; }
.aviso__accion { color: var(--acc2); font-weight: 700; white-space: nowrap; }
.aviso a:hover .aviso__accion { text-decoration: underline; text-underline-offset: 3px; }

/* Aviso de la lista de espera junto a la frase de la portada */
.acogida { display: inline-flex; align-items: baseline; gap: 10px; margin: 24px 0 0; padding: 8px 14px; background: rgb(84 224 160 / 0.08); border: 1px solid rgb(84 224 160 / 0.28); border-radius: var(--pill); font-size: 0.9375rem; line-height: 1.35; color: var(--txt2); }
.acogida strong { color: var(--txt); }
.acogida__punto { flex: none; align-self: center; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgb(84 224 160 / 0.6); animation: latido 2s var(--ease) infinite; }
@keyframes latido { 70% { box-shadow: 0 0 0 8px rgb(84 224 160 / 0); } 100% { box-shadow: 0 0 0 0 rgb(84 224 160 / 0); } }

/* Preguntas frecuentes de la portada */
.faq { max-width: 52rem; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; padding: 20px 0; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; flex: none; font-size: 1.5rem; line-height: 1; color: var(--acc2); transition: transform 180ms var(--ease); }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item summary:hover h3 { color: var(--acc2); }
.faq h3 { font-size: 1.1875rem; transition: color 180ms var(--ease); }
.faq p { margin: 0; padding-bottom: 20px; color: var(--txt2); max-width: 65ch; }
.sigue-404 { margin: 24px 0 0; padding-left: 1.2em; display: grid; gap: 8px; }
