@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../assets/fuentes/open-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {

  --azul: #333ff4;
  --celeste: #55caff;
  --naranja: #ff6e25;
  --naranja-rojizo: #e84915;
  --amarillo: #ffdb54;
  --rosa: #ffc7ca;
  --coral: #fd7c7c;

  --tinta: #1b1d3a;
  --tinta-suave: #4a4d6a;
  --marino: #10134a;
  --fondo: #ffffff;
  --fondo-calido: #fff8ef;
  --fondo-azul: #eef0ff;
  --borde: #d6daff;
  --wa: #25d366;
  --wa-osc: #0b6b3a;
  --wa-borde: #128c4a;
  --radio: 22px;
  --sombra: 0 8px 24px rgba(16, 19, 74, .16);

  --fuente: "Open Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 18px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
html[data-letra="2"] { font-size: 20px; }
html[data-letra="3"] { font-size: 22.5px; }

body {
  margin: 0;
  font-family: var(--fuente);
  color: var(--tinta);
  background: var(--fondo);
  line-height: 1.6;
  padding-bottom: 6.5rem;
}
body.con-test { overflow: hidden; }

img, svg { max-width: 100%; height: auto; }
.ic { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; color: var(--azul); font-weight: 800; }
h1 { font-size: clamp(2rem, 8.4vw, 3.7rem); }
h2 { font-size: clamp(1.8rem, 6vw, 2.5rem); }
h3 { font-size: 1.3rem; color: var(--tinta); }
p { margin: 0 0 1em; max-width: 40rem; }
ul, ol { margin: 0 0 1em; }

a { color: var(--azul); text-decoration-thickness: .1em; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .16em; }

:focus-visible {
  outline: 4px solid var(--azul);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px #fff;
  border-radius: 8px;
}

.contenedor { width: 100%; max-width: 68rem; margin-inline: auto; padding-inline: 1.25rem; }

.saltar {
  position: absolute; left: -999px; top: 0; z-index: 3000;
  background: var(--marino); color: #fff; padding: .8rem 1.2rem; border-radius: 0 0 12px 0;
}
.saltar:focus { left: 0; }

.solo-borrador, .pendiente { display: none; }
[data-borrador] .solo-borrador { display: block; }
[data-borrador] .pendiente {
  display: block;
  background: #fff3b0;
  border: 2px dashed #8a6a00;
  color: #3d3000;
  border-radius: 12px;
  padding: .6rem .9rem;
  margin: 1rem 0;
  font-size: .9rem;
  line-height: 1.45;
  max-width: 40rem;
}
.pendiente::before { content: "PENDIENTE · "; font-weight: 800; }
.aviso-borrador {
  background: var(--marino); color: #fff; text-align: center; margin: 0; max-width: none;
  font-size: .74rem; padding: .35rem .8rem; line-height: 1.35;
}

.cabecera { background: #fff; box-shadow: 0 1px 0 var(--borde); }
.cabecera__fila { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .5rem; }
.logo { display: block; flex: 0 1 auto; min-width: 0; }
.logo img { display: block; width: 7.4rem; height: auto; }
.cabecera { position: relative; z-index: 50; }
.cabecera__acciones { display: flex; align-items: center; gap: .6rem; }
.menu-boton {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: .05rem;
  min-width: 3.2rem; min-height: 2.9rem; padding: .15rem .35rem; border: 0; border-radius: 12px; background: none;
  font: inherit; font-size: .72rem; font-weight: 800; letter-spacing: .03em; color: var(--tinta); cursor: pointer;
}
.menu-boton svg { width: 1.9rem; height: 1.9rem; stroke-width: 2.6; }
.menu-boton:hover, .menu-boton[aria-expanded="true"] { background: var(--fondo-azul); }
.menu { position: absolute; left: 0; right: 0; top: 100%; background: #fff; box-shadow: 0 10px 18px rgba(16, 19, 74, .14); border-top: 1px solid var(--borde); }
.menu[hidden] { display: none; }
.menu .contenedor { display: grid; padding-block: .4rem .8rem; }
.menu a {
  display: flex; align-items: center; min-height: 3.4rem; padding: .4rem .2rem; font-weight: 800; font-size: 1.1rem;
  color: var(--tinta); text-decoration: none; border-bottom: 1px solid var(--borde);
}
.menu a:last-child { border-bottom: 0; }
.menu a:hover { color: var(--azul); }
.letra { display: flex; align-items: center; gap: .35rem; font-size: .8rem; color: var(--tinta-suave); font-weight: 700; }
.letra button {
  min-width: 2.7rem; min-height: 2.7rem; border-radius: 12px; border: 2px solid var(--azul);
  background: #fff; color: var(--azul); font: inherit; font-size: 1.05rem; font-weight: 800; cursor: pointer;
}
.letra button:hover:not([disabled]) { background: var(--fondo-azul); }
.letra button[disabled] { opacity: .4; cursor: default; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3.4rem; padding: .8rem 1.8rem; border-radius: 999px;
  font: inherit; font-weight: 800; font-size: 1.12rem; line-height: 1.2; text-align: center;
  text-decoration: none; cursor: pointer; border: 3px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn--principal {
  background: var(--naranja); color: var(--marino);
  box-shadow: 0 5px 0 rgba(16, 19, 74, .22);
}
.btn--principal:hover { transform: translateY(-2px); box-shadow: 0 7px 0 rgba(16, 19, 74, .22); }
.btn--principal:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(16, 19, 74, .22); }
.btn--secundario { background: #fff; color: var(--azul); border-color: var(--azul); }
.btn--secundario:hover { background: var(--fondo-azul); }
.btn--wa { background: #fff; color: var(--wa-osc); border-color: var(--wa-borde); }
.btn--wa:hover { background: #effaf3; }
.btn--grande { font-size: 1.3rem; min-height: 3.9rem; padding-inline: 2.6rem; }
.btn svg { width: 1.5rem; height: 1.5rem; flex: none; }

.hero { background: var(--fondo-calido); position: relative; overflow: hidden; padding-block: .8rem 1.6rem; }
.hero h1 { color: var(--tinta); }
.hero__rejilla { display: grid; gap: .6rem; align-items: center; position: relative; z-index: 1; }
.hero__ilustracion { width: min(11rem, 50%); margin-inline: auto; display: block; }
.hero__texto { text-align: center; padding-bottom: .5rem; }
.hero__texto p { margin-inline: auto; }
.hero__sub { font-size: 1.1rem; margin-bottom: .9rem; }

@media (min-width: 56rem) {
  .hero { padding-block: 2.5rem 3rem; }
  .hero__rejilla { grid-template-columns: 1.1fr .9fr; gap: 2rem; }
  .hero__texto { text-align: left; order: 1; padding-bottom: 2rem; }
  .hero__texto p { margin-inline: 0; }
  .hero__ilustracion { order: 2; width: 100%; max-width: 26rem; margin-inline: auto; }
  .logo img { width: 9.2rem; }
}

.seccion { padding-block: 3.2rem; }
.seccion--calida { background: var(--fondo-calido); }
.seccion--azul-claro { background: var(--fondo-azul); }
.seccion__intro { font-size: 1.15rem; color: var(--tinta-suave); }
.centrado { text-align: center; }
.centrado p { margin-inline: auto; }

.pasos { list-style: none; padding: 0; margin: 1.6rem 0 1.8rem; display: grid; gap: 1rem; counter-reset: paso; }
.pasos li {
  display: grid; grid-template-columns: 3.4rem 1fr; gap: 1rem; align-items: start;
  background: #fff; border: 2px solid var(--borde); border-radius: var(--radio); padding: 1.1rem 1.2rem;
}
.pasos li::before {
  counter-increment: paso; content: counter(paso);
  display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 50%;
  background: var(--azul); color: #fff; font-weight: 800; font-size: 1.5rem;
}
.pasos li:nth-child(2)::before { background: var(--amarillo); color: var(--marino); }
.pasos li:nth-child(3)::before { background: var(--naranja); color: var(--marino); }
.pasos strong { display: block; font-size: 1.15rem; color: var(--tinta); }
.pasos span { color: var(--tinta-suave); }
@media (min-width: 52rem) { .pasos { grid-template-columns: repeat(3, 1fr); } .pasos li { grid-template-columns: 1fr; } }

.tarjetas { display: grid; gap: 1.2rem; margin-top: 1.6rem; }
.tarjeta {
  background: #fff; border: 2px solid var(--borde); border-radius: var(--radio);
  padding: 1.4rem; box-shadow: 0 3px 0 var(--borde);
}
.tarjeta p:last-child { margin-bottom: 0; }
.icono {
  width: 3.4rem; height: 3.4rem; border-radius: 16px; display: grid; place-items: center;
  margin-bottom: .8rem; background: var(--fondo-azul); color: var(--azul);
}
.icono svg { width: 1.9rem; height: 1.9rem; }
.icono--naranja { background: #ffe9db; color: #b13d00; }
.icono--amarillo { background: #fff3c2; color: #6b5200; }
.icono--rosa { background: #ffe9ea; color: #a8323f; }
@media (min-width: 48rem) {
  .tarjetas--3 { grid-template-columns: repeat(3, 1fr); }
  .tarjetas--3:has(> :last-child:nth-child(2)) { grid-template-columns: repeat(2, 1fr); }
}

.dato { background: var(--amarillo); color: var(--marino); border-radius: var(--radio); padding: 1.3rem 1.5rem; margin-top: 1.6rem; }
.dato strong { font-size: 1.5rem; display: block; line-height: 1.25; margin-bottom: .3rem; }
.dato small { display: block; font-size: .85rem; line-height: 1.4; }
.dato p { margin: 0; }
.bea { display: grid; grid-template-columns: 5rem 1fr; gap: 1.1rem; align-items: center; margin-top: 1.6rem; background: #fff; border: 2px solid var(--borde); border-radius: var(--radio); padding: 1.2rem; }
.bea__foto { width: 5rem; height: 5rem; border-radius: 50%; background: var(--fondo-azul); border: 3px solid var(--azul); display: grid; place-items: center; }
.bea__foto img { width: 3rem; height: 3rem; }
.bea p { margin: 0; }

.nivel { scroll-margin-top: 1rem; }
.nivel h3 { display: flex; align-items: center; gap: .6rem; }
.nivel .punto { flex: none; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--sem); }
.nivel--rojo { --sem: #d84a4a; --sem-osc: #a8323f; --sem-claro: #fff0f1; }
.nivel--amarillo { --sem: #f2c12e; --sem-osc: #6b5200; --sem-claro: #fff8dc; }
.nivel--verde { --sem: #4caf50; --sem-osc: #1f6b39; --sem-claro: #eef8f1; }
.nivel h3:focus { outline: none; }
.cursos { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .9rem; }
.cursos li { border-left: 5px solid var(--sem); padding-left: .8rem; line-height: 1.45; }
.cursos strong { color: var(--tinta); }
.curso__practica { display: block; margin-top: .3rem; color: var(--tinta-suave); font-size: .95rem; }
.curso__practica > span { display: block; font-size: .8rem; font-weight: 800; color: var(--tinta); text-transform: uppercase; letter-spacing: .03em; }
.nivel--tuyo { border-color: var(--sem-osc); border-width: 4px; background: var(--sem-claro); }
.nivel__recomendado { display: inline-block; margin: 0 0 .6rem; padding: .15rem .8rem; border-radius: 999px; background: #fff; border: 2px solid var(--sem-osc); color: var(--sem-osc); font-weight: 800; font-size: .9rem; }
.nivel__recomendado[hidden] { display: none; }
.etiqueta { display: inline-block; background: var(--amarillo); color: var(--marino); font-weight: 800; font-size: .85rem; padding: .2rem .8rem; border-radius: 999px; margin-bottom: 1rem; }
.glosario { margin-top: 1.8rem; background: #fff; border: 3px dashed var(--azul); border-radius: var(--radio); padding: 1.3rem 1.5rem; }
.glosario h3 { color: var(--azul); }
.glosario dl { margin: 0 0 .8rem; }
.glosario dt { font-weight: 800; margin-top: .6rem; }
.glosario dd { margin: 0; color: var(--tinta-suave); }

.taller h3 { margin-bottom: .3rem; }
.datos-taller { list-style: none; padding: 0; margin: 1.4rem 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.datos-taller li { background: var(--fondo-azul); border-radius: 999px; padding: .4rem 1rem; font-weight: 700; color: var(--marino); }
.aviso-plataforma { margin-top: 1.8rem; background: var(--fondo-calido); border-radius: var(--radio); padding: 1.2rem 1.4rem; border: 2px solid var(--amarillo); }
.aviso-plataforma p { margin-bottom: .8rem; }

.cifra { font-size: clamp(1.6rem, 5vw, 2.2rem); font-weight: 800; color: var(--marino); line-height: 1.2; margin: 0 0 1rem; }

details { background: #fff; border: 2px solid var(--borde); border-radius: var(--radio); margin-bottom: .8rem; }
summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1rem 1.3rem; font-weight: 800; min-height: 3.6rem;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "Ver respuesta"; flex: none; font-size: .8rem; font-weight: 700; color: var(--azul);
  border: 2px solid var(--azul); border-radius: 999px; padding: .15rem .8rem;
}
details[open] summary::after { content: "Ocultar"; }
details[open] summary { color: var(--azul); }
.respuesta { padding: 0 1.3rem 1.2rem; }
.respuesta p:last-child { margin-bottom: 0; }

.negocios { background: var(--amarillo); color: var(--marino); padding-block: 1.6rem; }
.negocios p { margin: 0; font-size: 1.05rem; }
.negocios a { color: var(--marino); font-weight: 800; }
.cierre { background: var(--azul); color: #fff; text-align: center; padding-block: 3.4rem; }
.cierre h2 { color: #fff; }
.cierre p { margin-inline: auto; }
.cierre a:not(.btn) { color: #fff; font-weight: 700; }
.cierre :focus-visible { outline-color: #fff; box-shadow: 0 0 0 3px var(--azul); }

.pie { padding-block: 2.6rem; border-top: 4px solid var(--rosa); font-size: .95rem; }
.pie__rejilla { display: grid; gap: 1.6rem; }
.pie img { width: 8.5rem; display: block; margin-bottom: .6rem; }
.pie h2 { font-size: 1.05rem; color: var(--tinta); margin-bottom: .4rem; }
.pie p { color: var(--tinta-suave); }
.lema { font-weight: 700; color: var(--marino) !important; }
@media (min-width: 48rem) { .pie__rejilla { grid-template-columns: 1.2fr 1.4fr 1fr; } }

.ayuda-wa {
  position: fixed; right: .7rem; bottom: .7rem; z-index: 1000;
  display: inline-flex; align-items: center; gap: .6rem;
  background: #fff; color: var(--wa-osc); border: 3px solid var(--wa-borde);
  border-radius: 999px; padding: .3rem .95rem .3rem .3rem;
  font-weight: 800; font-size: .92rem; line-height: 1.15; text-decoration: none;
  box-shadow: var(--sombra);
}
.ayuda-wa:hover { background: #effaf3; }
.ayuda-wa__icono { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--wa); color: #fff; flex: none; }
.ayuda-wa__icono svg { width: 1.45rem; height: 1.45rem; }
.ayuda-wa small { display: block; font-weight: 700; font-size: .75rem; color: var(--tinta-suave); }

.test { position: fixed; inset: 0; z-index: 900; background: #fff; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.test[hidden] { display: none; }
.test__barra {
  position: sticky; top: 0; z-index: 2; background: #fff; padding: .6rem .8rem .3rem;
  display: grid; grid-template-columns: 3.2rem 1fr 3.2rem; gap: .3rem; align-items: center; border-bottom: 2px solid var(--borde);
}
.test__atras {
  display: grid; place-items: center; width: 3rem; height: 3rem; border: 0; border-radius: 12px; background: none;
  color: var(--tinta); cursor: pointer;
}
.test__atras svg { width: 1.9rem; height: 1.9rem; stroke-width: 2.6; }
.test__atras:hover { background: var(--fondo-azul); }
.test__paso { text-align: center; font-weight: 800; color: var(--tinta-suave); font-size: .9rem; white-space: nowrap; }
.progreso { height: .65rem; background: #e7e3da; border-radius: 999px; overflow: hidden; margin: .5rem 1rem .7rem; grid-column: 1 / -1; }
.progreso__relleno { height: 100%; width: 0; background: var(--azul); transition: width .3s ease; }
.test__cuerpo { width: min(100%, 38rem); margin: 0 auto; padding: 1rem 1.2rem 8rem; text-align: center; }
.test__ilustracion {
  width: 8rem; height: 8rem; margin: .2rem auto 0; border-radius: 50%; background: var(--fondo-azul);
  display: grid; place-items: center; color: var(--azul);
}
.test__ilustracion svg { width: 4.2rem; height: 4.2rem; }
.test__pregunta { font-size: 1.4rem; color: var(--tinta); margin: 1rem 0 1.3rem; line-height: 1.3; }
.test__pregunta:focus { outline: none; }
.opciones { display: grid; gap: .9rem; text-align: left; }
.opcion {
  display: flex; align-items: center; gap: .9rem; width: 100%; min-height: 4.4rem; padding: .8rem 1.1rem;
  border-radius: 18px; border: 3px solid; font: inherit; font-weight: 700; font-size: 1.05rem; color: var(--tinta);
  cursor: pointer; text-align: left; line-height: 1.3;
}
.opcion::before { content: ""; flex: none; width: 1.5rem; height: 1.5rem; border-radius: 50%; border: 3px solid currentColor; background: #fff; }
.opcion--1 { background: #e3f6f5; border-color: #1f8a87; }
.opcion--2 { background: #fff6d6; border-color: #a67c00; }
.opcion--3 { background: #ffe9ea; border-color: #c24351; }
.opcion:hover { filter: brightness(.97); }
.opcion--elegida { box-shadow: 0 0 0 4px var(--azul); }
.opcion--elegida::before { background: var(--azul); box-shadow: inset 0 0 0 3px #fff; border-color: var(--azul); }
.test__nota { margin-top: 1.4rem; color: var(--tinta-suave); font-size: .92rem; }
.test__nombre { display: grid; gap: .6rem; text-align: left; }
.test__nombre label { font-weight: 800; }
.test__nombre input {
  width: 100%; min-height: 3.6rem; padding: .6rem 1rem; border: 3px solid var(--tinta-suave); border-radius: 16px;
  font: inherit; font-size: 1.2rem; color: var(--tinta); background: #fff;
}
.test__nombre input:focus { outline: 3px solid var(--azul); outline-offset: 2px; border-color: var(--azul); }
.test__nombre .test__nota { margin: .2rem 0; text-align: center; }
.test__nombre .btn { width: 100%; margin-top: .4rem; }

.resultado h2 { color: var(--azul); margin-bottom: .3rem; font-size: 2.2rem; }
.resultado__sub { color: var(--tinta-suave); font-size: 1.1rem; margin-inline: auto; }
.niveles-res { display: grid; gap: .7rem; margin: 1.3rem 0; text-align: left; }
.nivel-res { display: flex; align-items: center; gap: 1rem; border: 2px solid var(--borde); border-radius: 18px; padding: .9rem 1.1rem; background: #fafafa; }
.nivel-res__punto { flex: none; width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; }

.nivel-res--verde .nivel-res__punto { background: #4caf50; }
.nivel-res--amarillo .nivel-res__punto { background: #f2c12e; }
.nivel-res--rojo .nivel-res__punto { background: #d84a4a; }
.nivel-res--amarillo .nivel-res__punto svg, .nivel-res--verde .nivel-res__punto svg { stroke: var(--marino); }
.nivel-res strong { display: block; font-size: 1.1rem; }
.nivel-res span { font-size: .92rem; color: var(--tinta-suave); line-height: 1.35; display: block; }
.nivel-res__punto svg { width: 1.4rem; height: 1.4rem; stroke: #fff; stroke-width: 3; }
.nivel-res--tuyo { border-width: 3px; }
.nivel-res--rojo.nivel-res--tuyo { border-color: #c24351; background: #fff0f1; }
.nivel-res--amarillo.nivel-res--tuyo { border-color: #b88a00; background: #fff8dc; }
.nivel-res--verde.nivel-res--tuyo { border-color: #2f8f4e; background: #eef8f1; }
.nivel-res--tuyo span.tu { font-weight: 800; font-size: .95rem; }
.nivel-res--rojo span.tu { color: #a8323f; }
.nivel-res--amarillo span.tu { color: #6b5200; }
.nivel-res--verde span.tu { color: #1f6b39; }
.mensaje-apoyo { background: #e8eaff; color: #1d2490; border-radius: 18px; padding: 1rem 1.2rem; font-weight: 800; margin: 0 0 1rem; max-width: none; }
.resultado__boton { width: 100%; margin-top: .4rem; padding-inline: .9rem; font-size: 1.1rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media (max-width: 34rem) {
  .ayuda-wa small { display: none; }
}
@media (max-width: 55.99rem) and (max-height: 44rem) {
  .hero__ilustracion { width: min(8.5rem, 42%); }
  .hero__sub { font-size: 1.05rem; }
  h1 { font-size: clamp(1.9rem, 8vw, 3.7rem); }
}
@media (max-width: 24rem) {
  .contenedor { padding-inline: .9rem; }
  .cabecera__fila { gap: .5rem; }
  .logo img { width: 6.2rem; }
  .letra { gap: .25rem; }
  .letra__txt { display: none; }
  .letra button { min-width: 2.5rem; min-height: 2.5rem; }
}
