/* SaberTech — landing pública.
   Tokens tomados del :root de styles.css del producto para que la landing y
   la plataforma se lean como el mismo sistema. */

:root {
  --ink: #12213b;
  --muted: #5a6782;
  --brand: #5a42f5;
  --brand-hondo: #3d29c9;
  --mint: #10b981;
  --sun: #fbbf24;
  --sky: #38bdf8;
  --paper: #f6f8ff;
  --card: #fff;
  --linea: #e5e9f7;

  --radio: 18px;
  --radio-g: 28px;
  --sombra: 0 10px 30px rgba(35, 57, 102, .09);
  --sombra-alta: 0 22px 60px rgba(35, 57, 102, .16);
  --ancho: 1140px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.08; letter-spacing: -.035em; margin: 0; text-wrap: balance; }
p { margin: 0; }
img { max-width: 100%; display: block; }

a { color: var(--brand-hondo); }

.skip-link {
  position: absolute; left: -9999px; top: 12px;
  background: var(--brand); color: #fff; padding: 12px 18px;
  border-radius: 10px; font-weight: 700; z-index: 100; text-decoration: none;
}
.skip-link:focus { left: 12px; }

:where(a, button):focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ---------- Cabecera ---------- */

.top {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  max-width: var(--ancho); margin: auto;
  padding: 16px 24px;
  background: rgba(246, 248, 255, .86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.top.fija { border-bottom-color: var(--linea); }

.brand {
  display: flex; align-items: center; gap: 9px;
  font-weight: 900; font-size: 21px; letter-spacing: -.05em;
  color: var(--ink); text-decoration: none;
}
.brand b { color: var(--brand); font-weight: 900; }

.top nav { display: flex; gap: 26px; margin-left: auto; }
.top nav a {
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px;
  transition: color .2s var(--ease);
}
.top nav a:hover { color: var(--ink); }

.btn-top {
  padding: 10px 18px; border-radius: 11px;
  background: var(--ink); color: #fff;
  font-weight: 700; font-size: 15px; text-decoration: none;
  transition: transform .2s var(--ease), background .2s var(--ease);
}
.btn-top:hover { background: var(--brand); transform: translateY(-1px); }

.menu-btn {
  display: none; margin-left: auto;
  width: 44px; height: 44px; padding: 0;
  background: none; border: 0; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.menu-btn span {
  display: block; width: 22px; height: 2px; border-radius: 2px;
  background: var(--ink);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child  { transform: translateY(-4px) rotate(-45deg); }

.menu-movil {
  display: none; flex-direction: column; gap: 4px;
  padding: 10px 24px 22px;
  background: var(--paper);
  border-bottom: 1px solid var(--linea);
  position: sticky; top: 73px; z-index: 49;
}
.menu-movil a {
  padding: 13px 4px; color: var(--ink); text-decoration: none; font-weight: 650;
  border-bottom: 1px solid var(--linea);
}
.menu-movil .btn-menu {
  margin-top: 12px; border: 0; text-align: center;
  background: var(--brand); color: #fff; border-radius: 12px; padding: 15px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  max-width: var(--ancho); margin: auto;
  padding: 74px 24px 68px;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center;
}

.hero-fondo { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.orbe { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; }
.orbe-1 { width: 420px; height: 420px; top: -140px; left: -120px; background: #ded7ff; }
.orbe-2 { width: 340px; height: 340px; bottom: -160px; right: -60px; background: #d6f2ff; }

.hero-texto { position: relative; }

.hero h1 {
  font-size: clamp(46px, 7.4vw, 88px);
  font-weight: 900;
  letter-spacing: -.055em;
}
.hero h1 em {
  font-style: normal;
  color: var(--brand);
  position: relative;
}
/* Subrayado dibujado a mano: el trazo se pinta al cargar, no es un borde. */
.hero h1 em::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: .06em;
  height: .09em; border-radius: 99px;
  background: var(--sun);
  transform: scaleX(0); transform-origin: left;
  animation: trazo 1s var(--ease) .45s forwards;
}
@keyframes trazo { to { transform: scaleX(1); } }

.lead {
  margin-top: 24px;
  font-size: 19px; color: var(--muted);
  max-width: 34rem;
}

.hero-acciones { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 32px; }

.btn-primario {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  border-radius: 13px;
  background: var(--brand); color: #fff;
  font-weight: 750; font-size: 16px; text-decoration: none;
  box-shadow: 0 8px 22px rgba(90, 66, 245, .28);
  transition: transform .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.btn-primario:hover {
  background: var(--brand-hondo); transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(90, 66, 245, .34);
}

.btn-secundario {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px;
  border-radius: 13px;
  background: var(--card); color: var(--ink);
  border: 1px solid var(--linea);
  font-weight: 700; font-size: 16px; text-decoration: none;
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}
.btn-secundario:hover { border-color: #c4bcff; transform: translateY(-2px); }

.btn-grande { min-height: 58px; padding: 0 34px; font-size: 17px; }

.hero-nota { margin-top: 22px; font-size: 14px; color: var(--muted); }

/* Panel de pregunta: muestra el producto real, no un mockup decorativo. */
.hero-panel {
  position: relative;
  background: var(--card);
  border: 1px solid var(--linea);
  border-radius: var(--radio-g);
  padding: 26px;
  box-shadow: var(--sombra-alta);
}
.panel-barra { display: flex; align-items: center; gap: 12px; }
.panel-progreso {
  flex: 1; height: 8px; border-radius: 99px; background: #eef0fb; overflow: hidden;
}
.panel-progreso i {
  display: block; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), #a78bfa);
}
.panel-conteo { font-size: 13px; font-weight: 800; color: var(--muted); }

.panel-area {
  margin-top: 20px; font-size: 13px; font-weight: 800;
  color: var(--brand-hondo);
}
.panel-pregunta { margin-top: 8px; font-size: 21px; font-weight: 750; line-height: 1.3; }

.panel-opciones { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 9px; }
.panel-opciones li {
  padding: 14px 16px; border-radius: 13px;
  border: 2px solid var(--linea); background: #fff;
  font-weight: 650; font-size: 15px;
}
.panel-opciones .acierto {
  border-color: #a7e8cb; background: #eefaf4; color: #0f6f4a;
  display: flex; justify-content: space-between; align-items: center;
}

.panel-feedback {
  margin-top: 18px; padding: 15px;
  border-radius: 13px; background: #f2effe;
  font-size: 14.5px; color: #3f3577;
}
.panel-feedback b { color: var(--brand-hondo); }

/* ---------- Cifras ---------- */

.cifras {
  max-width: var(--ancho); margin: 12px auto 0; padding: 0 24px;
}
.cifras dl {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin: 0; padding: 30px 0;
  border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea);
}
.cifras div { text-align: center; padding: 0 16px; }
.cifras div + div { border-left: 1px solid var(--linea); }
.cifras dt { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.cifras dd {
  margin: 6px 0 0; font-size: clamp(28px, 4vw, 40px);
  font-weight: 900; letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}

/* ---------- Proceso ---------- */

.proceso { max-width: var(--ancho); margin: auto; padding: 88px 24px 20px; }
.proceso h2 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 900; }

.pasos {
  list-style: none; margin: 44px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px;
}
.pasos li { position: relative; padding-top: 22px; border-top: 2px solid var(--linea); }
.paso-num {
  display: block; font-size: 13px; font-weight: 900;
  color: var(--brand); margin-bottom: 12px;
}
.pasos h3 { font-size: 21px; font-weight: 800; letter-spacing: -.03em; }
.pasos p { margin-top: 10px; color: var(--muted); font-size: 16px; }

/* ---------- Públicos ---------- */

.publicos {
  max-width: var(--ancho); margin: auto;
  padding: 88px 24px 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
}

.publico {
  padding: 40px;
  border-radius: var(--radio-g);
  border: 1px solid var(--linea);
  background: var(--card);
  box-shadow: var(--sombra);
}
.publico:first-child { background: linear-gradient(150deg, #fff8ea 0%, #fff 62%); border-color: #f6e3b6; }
.publico:last-child  { background: linear-gradient(150deg, #eef7ff 0%, #fff 62%); border-color: #c9e5fa; }

.publico h2 { font-size: clamp(26px, 3.2vw, 34px); font-weight: 900; }
.publico > p { margin-top: 14px; color: var(--muted); font-size: 16.5px; }

.lista-check { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.lista-check li {
  position: relative; padding-left: 30px;
  font-size: 15.5px; font-weight: 550;
}
.lista-check li::before {
  content: "";
  position: absolute; left: 0; top: .42em;
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.enlace-flecha {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 28px;
  font-weight: 800; font-size: 15.5px; text-decoration: none;
  color: var(--brand-hondo);
}
.enlace-flecha::after {
  content: "→"; transition: transform .25s var(--ease);
}
.enlace-flecha:hover::after { transform: translateX(5px); }

/* ---------- Principio ---------- */

.principio { max-width: 900px; margin: auto; padding: 96px 24px; text-align: center; }
.principio blockquote { margin: 0; }
.principio p {
  font-size: clamp(23px, 3.4vw, 34px);
  font-weight: 800; letter-spacing: -.035em; line-height: 1.28;
  text-wrap: balance;
}
.principio cite {
  display: block; margin-top: 20px;
  font-style: normal; font-size: 14px; font-weight: 700; color: var(--muted);
}

/* ---------- Cierre ---------- */

.cierre {
  max-width: var(--ancho); margin: 0 auto 90px;
  padding: 72px 32px;
  border-radius: var(--radio-g);
  background: linear-gradient(128deg, #4030be, #6f55ff);
  color: #fff; text-align: center;
  position: relative; overflow: hidden;
}
.cierre::after {
  content: ""; position: absolute;
  width: 320px; height: 320px; right: -110px; top: -140px;
  border-radius: 50%; background: rgba(255, 255, 255, .07);
}
.cierre h2 { font-size: clamp(28px, 4.2vw, 44px); font-weight: 900; position: relative; }
.cierre p { margin-top: 14px; opacity: .9; font-size: 17.5px; position: relative; }
.cierre .btn-primario {
  margin-top: 30px; position: relative;
  background: #fff; color: #4230c7;
  box-shadow: 0 12px 30px rgba(16, 20, 60, .24);
}
.cierre .btn-primario:hover { background: #f2efff; }

/* ---------- Pie ---------- */

.pie {
  max-width: var(--ancho); margin: auto;
  padding: 34px 24px 56px;
  border-top: 1px solid var(--linea);
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px;
}
.pie-marca {
  display: flex; align-items: center; gap: 8px;
  font-weight: 900; font-size: 17px; letter-spacing: -.04em;
}
.pie-marca b { color: var(--brand); }
.pie nav { display: flex; flex-wrap: wrap; gap: 20px; margin-left: auto; }
.pie nav a { color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 600; }
.pie nav a:hover { color: var(--brand-hondo); }
.pie-nota { width: 100%; font-size: 13.5px; color: var(--muted); }

/* ---------- Entrada ---------- */

[data-anima] {
  transform: translateY(14px);
  transition: transform .6s var(--ease);
}
[data-anima].entra { transform: none; }

/* ---------- Adaptación ---------- */

@media (max-width: 940px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; }
  .publicos { grid-template-columns: 1fr; }
  .pasos { grid-template-columns: 1fr; gap: 26px; }
  .top nav, .btn-top { display: none; }
  .menu-btn { display: flex; }
  .menu-movil[data-abierto] { display: flex; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .hero { padding: 36px 20px 48px; }
  .hero-panel { padding: 22px; }
  .cifras dl { grid-template-columns: 1fr; gap: 22px; padding: 26px 0; }
  .cifras div + div { border-left: 0; border-top: 1px solid var(--linea); padding-top: 22px; }
  .publico { padding: 30px 24px; }
  .proceso, .publicos { padding-top: 62px; }
  .principio { padding: 68px 22px; }
  .cierre { padding: 54px 24px; margin-bottom: 60px; border-radius: 22px; }
  .pie nav { margin-left: 0; gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  [data-anima] { opacity: 1 !important; transform: none !important; }
  .hero h1 em::after { transform: scaleX(1); }
}
