/* Estilo principal: base original (noche violeta + papel) con detalles de «auros»:
   esfera de partículas, titulares finos y apretados, antetítulos con punto luminoso, botón nacarado y cifras grandes */
:root {
  --nacar: linear-gradient(90deg, #e9e3ff 0%, #ffffff 45%, #ffe9d6 100%);
  --fosforo: #f3e8ff;
  --luz: #b9a6ff;
}

/* titulares: más finos y con más presencia, sin perder la Bricolage */
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -.035em; line-height: 1.04; }
h1 { font-size: clamp(2.5rem, 6vw, 5.2rem); font-weight: 600; letter-spacing: -.045em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
h3 { letter-spacing: -.02em; line-height: 1.15; }
.prosa h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.tipo-cabeza h1, .resultado__titulo { font-weight: 600; }

/* antetítulos espaciados con punto de luz (sin mayúsculas) */
.antetitulo { font: 500 .8rem/1 var(--texto); letter-spacing: .12em; }
.antetitulo::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--luz); box-shadow: 0 0 10px var(--luz); margin-right: .7em; vertical-align: middle; }
.oscuro .antetitulo { color: rgba(255,255,255,.72); }

/* botones: radio contenido y acción principal nacarada */
.boton { border-radius: 10px; font-weight: 500; letter-spacing: .01em; }
.oscuro .boton--claro, .boton--menu { background: var(--nacar); color: #1b1630; }
.boton--menu { border-radius: 8px; }
.boton:hover { box-shadow: 0 0 0 1px rgba(185,166,255,.55), 0 10px 30px rgba(109,74,255,.25); }
.oscuro .boton--borde { box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); }

/* tarjetas más limpias: menos sombra, un filo sutil */
:root { --sombra: 0 1px 0 rgba(23,20,42,.04), 0 0 0 1px rgba(23,20,42,.06); --radio: 16px; }
.tarjeta-tipo:hover { box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent), 0 18px 40px color-mix(in srgb, var(--c) 16%, transparent); }
.tarjeta-tipo__num { font-weight: 600; }
.clave { box-shadow: 0 0 0 1px rgba(23,20,42,.06), 0 24px 50px rgba(23,20,42,.12); }

/* cifras grandes en fósforo */
.cifras strong { font-weight: 600; letter-spacing: -.045em; color: var(--fosforo); font-size: clamp(2.4rem, 4.6vw, 3.8rem); }
.cifras span { letter-spacing: .08em; font-size: .8rem; }

/* resplandor suave detrás del símbolo, sin elementos girando */
.orbita { display: none; }
.halo { animation: none; opacity: .28; }
.es-inicio .portada { min-height: calc(100vh - 68px); display: grid; align-items: center; }
.simbolo-vivo .s-circulo { stroke: rgba(255,255,255,.26); }
.simbolo-vivo .s-punto circle { stroke-width: 2; }
.simbolo-vivo .s-punto text { font-weight: 600; }

/* bloque oscuro un punto más profundo */
.oscuro { background: radial-gradient(120% 90% at 50% 0%, #1d1840 0%, #14112a 55%, #0f0c22 100%); }
@media (prefers-color-scheme: dark) { .tarjeta-tipo:hover { box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent); } }
.pie .boton--claro { background: var(--nacar); color: #1b1630; border-radius: 10px; }

/* letra del cuerpo: DM Sans, tamaño contenido */
@font-face { font-family: 'DM Sans'; src: url(../fonts/dmsans-latin.woff2) format('woff2'); font-weight: 400 700; font-display: swap; }
:root { --texto: 'DM Sans', 'Segoe UI', system-ui, sans-serif; }
body { font-size: 1.03rem; line-height: 1.7; }
.prosa { font-size: 1.06rem; }
.entradilla { font-size: clamp(1.08rem, 1.5vw, 1.25rem); }

/* fondo blanco limpio en vez de crema, con grises fríos muy suaves */
:root { --papel: #ffffff; --papel-2: #f5f4f9; --linea: #e7e5ef; --tinta: #16132a; --tinta-2: #37334d; --suave: #625d78; }
.cabecera { background: color-mix(in srgb, #ffffff 86%, transparent); }
@media (max-width: 960px) { .menu { background: #fff; } }
.simbolo-vivo { overflow: visible; }
.boton, .oscuro .boton--claro, .oscuro .boton--borde { font-weight: 600; letter-spacing: 0; }
.portada__datos { flex-wrap: nowrap; gap: 6px 16px; font-size: .8rem; white-space: nowrap; } .portada__datos .ico { width: .95em; height: .95em; } @media (max-width: 420px) { .portada__datos { flex-wrap: wrap; } }

/* pie: letras gigantes que se encienden con destellos */
.pie__gigante { opacity: 1; background: linear-gradient(90deg, color-mix(in srgb, var(--t1) 26%, transparent), color-mix(in srgb, var(--t4) 26%, transparent), color-mix(in srgb, var(--t2) 26%, transparent), color-mix(in srgb, var(--t3) 26%, transparent), color-mix(in srgb, var(--t7) 26%, transparent)); -webkit-background-clip: text; background-clip: text; }
.pie__gigante span { transition: -webkit-text-fill-color 1.1s ease, text-shadow 1.1s ease, filter 1.1s ease; }
.pie__gigante span.destello { -webkit-text-fill-color: var(--c); text-shadow: 0 0 30px var(--c), 0 0 80px var(--c); transition-duration: .18s; }

/* ---------- menú: cápsula flotante con desplegables ---------- */
.cabecera { position: sticky; top: 0; z-index: 60; background: transparent !important; border: 0 !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; padding: 12px 0 0; pointer-events: none; transition: padding .3s; }
.cabecera__in { pointer-events: auto; height: 62px; padding: 0 10px 0 18px; border-radius: 999px; background: rgba(20,17,42,.72); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); box-shadow: 0 0 0 1px rgba(255,255,255,.09), 0 18px 40px -18px rgba(10,8,30,.55); color: #fff; transition: height .3s, box-shadow .3s, background .3s; }
.cabecera.compacta { padding-top: 8px; }
.cabecera.compacta .cabecera__in { height: 54px; background: rgba(20,17,42,.88); }
.cabecera .marca { color: #fff; }
.cabecera .marca__simbolo .s-circulo { stroke: #fff; }
.menu { gap: 4px; }
.menu__grupo { position: relative; }
.menu__abre, .menu__enlace { display: inline-flex; align-items: center; gap: .35em; padding: .55em 1em; border-radius: 999px; border: 0; background: transparent; color: rgba(255,255,255,.78) !important; font: 500 .95rem/1 var(--texto); text-decoration: none; cursor: pointer; transition: background .2s, color .2s; }
.menu__abre:hover, .menu__enlace:hover, .menu__abre[aria-expanded="true"], .menu__abre.activo, .menu__enlace.activo { background: rgba(255,255,255,.1); color: #fff !important; }
.ico--abajo { width: 1em; height: 1em; transition: transform .25s; }
.menu__abre[aria-expanded="true"] .ico--abajo { transform: rotate(180deg); }
.menu__nuevo { font-size: .66rem; font-weight: 700; padding: .25em .55em; border-radius: 999px; background: linear-gradient(90deg, #b9a6ff, #ffd6e8, #ffd696); color: #1b1630; letter-spacing: .02em; }
.boton--menu { margin-left: 6px; }
.menu__tipos { display: none !important; }

.menu__panel { position: absolute; top: calc(100% + 14px); left: 50%; transform: translate(-50%, 8px); opacity: 0; visibility: hidden; transition: opacity .22s, transform .22s, visibility .22s; background: #fff; color: var(--tinta); border-radius: 22px; padding: 10px; box-shadow: 0 0 0 1px rgba(22,19,42,.06), 0 30px 70px -20px rgba(20,17,42,.45); }
.menu__panel::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.menu__grupo.abierto .menu__panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.menu__panel--tipos { width: min(720px, 92vw); display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.menu__tipo { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; text-decoration: none; color: var(--tinta); transition: background .2s; }
.menu__tipo:hover { background: color-mix(in srgb, var(--c) 9%, #fff); }
.menu__tipo b { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--c); color: #fff; font: 700 1.1rem var(--titulos); box-shadow: 0 6px 16px -6px var(--c); transition: transform .2s; }
.menu__tipo:hover b { transform: rotate(-6deg) scale(1.06); }
.menu__tipo strong { display: block; font: 600 .95rem/1.2 var(--titulos); }
.menu__tipo small { display: block; font-size: .78rem; color: var(--suave); line-height: 1.3; }
.menu__todos { grid-column: 1 / -1; display: flex; justify-content: center; align-items: center; gap: .4em; padding: 12px; margin-top: 4px; border-radius: 14px; background: var(--papel-2); color: var(--tinta); text-decoration: none; font-weight: 600; font-size: .9rem; }
.menu__todos .ico { width: 1em; }
.menu__panel--lista { width: 340px; display: grid; gap: 2px; }
.menu__panel--lista a { display: block; padding: 11px 14px; border-radius: 14px; text-decoration: none; color: var(--tinta); transition: background .2s; }
.menu__panel--lista a:hover { background: var(--papel-2); }
.menu__panel--lista strong { display: block; font: 600 .98rem var(--titulos); }
.menu__panel--lista small { color: var(--suave); font-size: .82rem; }

/* botón de menú: dos líneas que se cruzan */
.menu-boton { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.1) !important; position: relative; }
.menu-boton span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: #fff; transition: transform .3s, top .3s; }
.menu-boton span:first-child { top: 17px; } .menu-boton span:last-child { top: 25px; }
.menu-boton[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-boton[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .cabecera__in { padding: 0 8px 0 16px; }
  .menu { position: fixed; inset: 0; z-index: -1; display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding: 92px 18px 28px; overflow-y: auto; background: #14112a; border: 0; box-shadow: none; transform: none; opacity: 0; pointer-events: none; transition: opacity .25s; }
  .menu.abierto { opacity: 1; pointer-events: auto; }
  .menu > a:not(.boton), .menu__abre { width: 100%; justify-content: space-between; padding: 16px 14px; font-size: 1.25rem; border-radius: 16px; border-bottom: 0; }
  .menu__panel { position: static; transform: none !important; opacity: 1; visibility: visible; display: none; width: auto !important; box-shadow: none; background: rgba(255,255,255,.05); margin: 4px 0 8px; }
  .menu__grupo.abierto .menu__panel { display: grid; }
  .menu__panel--tipos { grid-template-columns: 1fr 1fr; }
  .menu__tipo, .menu__panel--lista a { color: #fff; }
  .menu__tipo small, .menu__panel--lista small { color: rgba(255,255,255,.6); }
  .menu__tipo:hover, .menu__panel--lista a:hover { background: rgba(255,255,255,.08); }
  .menu__todos { background: rgba(255,255,255,.1); color: #fff; }
  .boton--menu { margin: 12px 0 0; justify-content: center; padding: 1.1em; }
}
@media (max-width: 480px) { .menu__panel--tipos { grid-template-columns: 1fr; } }

/* foco de los números del símbolo: anillo redondo en vez del rectángulo del navegador */
.simbolo-vivo .s-punto:focus { outline: none; }
.simbolo-vivo .s-punto:focus-visible circle { stroke: #fff; stroke-width: 3.5; filter: drop-shadow(0 0 10px var(--c)); }

/* ilustraciones de los eneatipos */
.con-ilus { background: #14112a; }
.con-ilus .aurora { opacity: .35; }
.cabeza-ilus { position: absolute; right: 0; top: 0; height: 100%; width: min(68%, 1100px); object-fit: cover; object-position: right center; z-index: -1;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%); mask-image: linear-gradient(90deg, transparent 0%, #000 38%); animation: ilus-entra 1.2s cubic-bezier(.2,.7,.2,1) both; }
@keyframes ilus-entra { from { opacity: 0; transform: scale(1.04); } }
.con-ilus .tipo-cabeza__in { grid-template-columns: minmax(0, 1fr); max-width: 680px; margin-left: max(16px, calc((100% - var(--ancho)) / 2)); }
.tipo-cabeza.con-ilus { min-height: 560px; display: flex; align-items: center; }
@media (max-width: 860px) {
  .cabeza-ilus { position: relative; width: 100%; height: auto; aspect-ratio: 16 / 9; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); display: block; }
  .tipo-cabeza.con-ilus { display: block; min-height: 0; padding-top: 0; }
  .articulo-cabeza.con-ilus { padding-top: 0; }
  .con-ilus .tipo-cabeza__in { margin: -40px auto 0; padding: 0 16px; }
}
.flechas-simbolo { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: center; padding: 18px 22px; border-radius: var(--radio); margin: 1.2rem 0; }
.flechas-simbolo svg { width: 100%; }
.flechas-simbolo p { margin: 0; color: rgba(255,255,255,.78); font-size: .95rem; }
@media (max-width: 560px) { .flechas-simbolo { grid-template-columns: 1fr; } .flechas-simbolo svg { max-width: 240px; margin: 0 auto; } }
.tarjeta-tipo { padding-top: 0; }
.tarjeta-tipo__ilus { display: block; width: calc(100% + 48px); max-width: none; margin: 0 -24px 14px; aspect-ratio: 16 / 9; object-fit: cover; object-position: 75% 100%; transform-origin: 50% 100%; transition: transform .5s; }
.tarjeta-tipo:hover .tarjeta-tipo__ilus { transform: scale(1.04); }
.tarjeta-tipo__centro { z-index: 2; background: rgba(255,255,255,.9) !important; color: #16132a !important; }
.con-ilus::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, #14112a 0%, rgba(20,17,42,.92) 34%, rgba(20,17,42,.35) 58%, transparent 75%); }
@media (min-width: 861px) and (max-width: 1180px) {
  .cabeza-ilus { width: 62%; object-position: 85% center; }
  .con-ilus .tipo-cabeza__in, .con-ilus .envoltura > * { max-width: 520px; }
}
@media (max-width: 860px) { .con-ilus::before { display: none; } }

/* menú v2: barra a todo el ancho en la noche violeta de las cabeceras, sin cápsula ni franja blanca */
.cabecera { position: sticky; top: 0; padding: 0 !important; pointer-events: auto; background: #14112a !important; border-bottom: 1px solid rgba(255,255,255,.06) !important; transition: background .3s, box-shadow .3s; }
.cabecera.compacta { background: rgba(20,17,42,.94) !important; backdrop-filter: saturate(1.4) blur(14px) !important; -webkit-backdrop-filter: saturate(1.4) blur(14px) !important; box-shadow: 0 10px 30px -12px rgba(0,0,0,.5); }
.cabecera__in, .cabecera.compacta .cabecera__in { height: 72px; padding: 0; border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; width: min(var(--ancho), 100% - 32px); }
.cabecera.compacta .cabecera__in { height: 62px; }
.cabecera .marca { font: 700 1.4rem/1 var(--titulos); letter-spacing: -.035em; }
.menu__abre, .menu__enlace { font: 500 1rem/1 var(--titulos) !important; letter-spacing: -.01em; color: rgba(255,255,255,.82) !important; border-radius: 10px; }
.menu__abre:hover, .menu__enlace:hover, .menu__abre[aria-expanded="true"], .menu__abre.activo, .menu__enlace.activo { background: rgba(255,255,255,.08); }
.boton--menu { font: 600 .95rem/1 var(--titulos) !important; border-radius: 10px; }
.menu__panel { top: calc(100% + 18px); }
.menu__tipo strong, .menu__panel--lista strong { font-weight: 600; }
@media (max-width: 960px) { .cabecera__in { width: calc(100% - 24px); } .menu { padding-top: 96px; } }

/* letra del cuerpo elegida: Plus Jakarta Sans */
@font-face { font-family: 'Jakarta'; src: url(../fonts/jakarta-latin.woff2) format('woff2'); font-weight: 400 700; font-display: swap; }
:root { --texto: 'Jakarta', 'Segoe UI', system-ui, sans-serif; }
body { font-size: 1.02rem; line-height: 1.72; }

/* menú elegido (A): degradado violeta a rosa, botón blanco */
.cabecera, .cabecera.compacta { background: linear-gradient(100deg, #4b2fd1 0%, #7048e8 45%, #c2409a 100%) !important; border-bottom: 0 !important; }
.cabecera.compacta { box-shadow: 0 10px 30px -12px rgba(76,47,209,.55); backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.menu__abre, .menu__enlace { color: rgba(255,255,255,.92) !important; }
.menu__abre:hover, .menu__enlace:hover, .menu__abre[aria-expanded="true"], .menu__abre.activo, .menu__enlace.activo { background: rgba(255,255,255,.16); color: #fff !important; }
.cabecera .boton--menu { background: #fff !important; color: #2a1f66 !important; }
.cabecera .marca__simbolo .s-triangulo { stroke: #ffd696; } .cabecera .marca__simbolo .s-hexada { stroke: #ffd6e8; }
.menu__nuevo { background: #fff; color: #7048e8; }
@media (max-width: 960px) { .menu { background: linear-gradient(160deg, #2a1f66, #4b2fd1 60%, #7a2f8f) !important; } }

/* menú v3: barra a todo el ancho arriba; al bajar se convierte en cápsula flotante. Letra Jakarta. */
.cabecera { position: sticky; top: 0; transition: padding .35s cubic-bezier(.2,.7,.2,1), background .35s; }
.cabecera__in { transition: height .35s cubic-bezier(.2,.7,.2,1), width .35s cubic-bezier(.2,.7,.2,1), border-radius .35s, box-shadow .35s, background .35s, padding .35s; }
.cabecera.compacta { background: transparent !important; box-shadow: none !important; padding-top: 10px !important; pointer-events: none; }
.cabecera.compacta .cabecera__in { pointer-events: auto; width: min(1060px, 100% - 24px); height: 58px; padding: 0 8px 0 18px; border-radius: 999px;
  background: linear-gradient(100deg, rgba(75,47,209,.92) 0%, rgba(112,72,232,.92) 45%, rgba(194,64,154,.92) 100%); backdrop-filter: saturate(1.5) blur(16px); -webkit-backdrop-filter: saturate(1.5) blur(16px);
  box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 18px 40px -16px rgba(76,47,209,.6); }
.cabecera.compacta .boton--menu { border-radius: 999px; }
.cabecera.compacta .menu__abre, .cabecera.compacta .menu__enlace { border-radius: 999px; }
.menu__abre, .menu__enlace { font: 600 .95rem/1 var(--texto) !important; letter-spacing: 0; }
.boton--menu { font: 700 .92rem/1 var(--texto) !important; }
.menu__panel { font-family: var(--texto); }
.menu__tipo strong, .menu__panel--lista strong { font-family: var(--texto); font-weight: 700; letter-spacing: -.01em; }
@media (max-width: 960px) { .cabecera.compacta .cabecera__in { width: calc(100% - 16px); padding: 0 6px 0 16px; } }

/* ---------- megamenús vistosos ---------- */
.menu__panel { border-radius: 26px; padding: 14px; box-shadow: 0 0 0 1px rgba(22,19,42,.06), 0 40px 80px -24px rgba(48,30,140,.45); }
.menu__panel::after { content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, #3b5bdb, #e64980, #e8a400, #7048e8, #0c8599, #2b8a3e, #f76707, #c92a2a, #9c6644); }
.menu__panel--tipos { width: min(880px, 94vw); grid-template-columns: repeat(3, 1fr); gap: 8px; }
.menu__tipo { flex-direction: column; align-items: stretch; gap: 8px; padding: 8px; border-radius: 18px; }
.menu__tipo-img { position: relative; display: block; border-radius: 13px; overflow: hidden; aspect-ratio: 16 / 7; background: #14112a; }
.menu__tipo-img img { width: 100%; height: 100%; object-fit: cover; object-position: 78% 100%; transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.menu__tipo:hover .menu__tipo-img img { transform: scale(1.08); }
.menu__tipo-img b { position: absolute; left: 8px; top: 8px; width: 30px; height: 30px; border-radius: 10px; font-size: .95rem; }
.menu__tipo > span:last-child { padding: 0 4px 2px; }
.menu__tipo b { box-shadow: 0 6px 16px -6px var(--c); }

.menu__panel--aprende { width: min(820px, 94vw); display: grid; grid-template-columns: 1.35fr 1fr; gap: 12px; }
.menu__aprende { display: grid; gap: 4px; }
.menu__aprende a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 16px; text-decoration: none; color: var(--tinta); transition: background .2s; }
.menu__aprende a:hover { background: var(--papel-2); }
.menu__mini { flex: none; width: 64px; height: 44px; border-radius: 11px; background: #14112a center / cover no-repeat; background-position: 75% 60%; transition: transform .3s; }
.menu__aprende a:hover .menu__mini { transform: scale(1.06) rotate(-2deg); }
.menu__aprende strong { display: block; font-size: .95rem; }
.menu__aprende small { color: var(--suave); font-size: .8rem; }
.menu__promo { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 18px; border-radius: 20px; min-height: 300px; text-decoration: none; color: #fff; background: #14112a; isolation: isolate; }
.menu__promo-img, .menu__curso-img { position: absolute; inset: 0; z-index: -1; background: url(../img/curso-ilus.webp) 70% 40% / cover no-repeat; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.menu__promo-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 25%, rgba(20,17,42,.92) 78%); }
.menu__promo:hover .menu__promo-img { transform: scale(1.06); }
.menu__promo-et { font-size: .72rem; letter-spacing: .1em; color: #d9ceff; }
.menu__promo strong { font: 700 1.35rem/1.1 var(--titulos); letter-spacing: -.03em; }
.menu__promo small { color: rgba(255,255,255,.75); }
.menu__promo-cta { display: inline-flex; align-items: center; gap: .4em; margin-top: 8px; padding: .6em 1em; border-radius: 999px; background: #fff; color: #2a1f66; font-weight: 700; font-size: .88rem; width: fit-content; }
.menu__promo-cta .ico { width: 1em; }

.menu__abre--curso { position: relative; overflow: hidden; background: rgba(255,255,255,.14) !important; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.menu__brillo { position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg); animation: brillo 3.5s ease-in-out infinite; }
@keyframes brillo { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.menu__panel--curso { width: min(720px, 94vw); left: auto; right: -140px; transform: translate(0, 8px); display: grid; grid-template-columns: .9fr 1.1fr; gap: 0; padding: 0; overflow: hidden; }
.menu__grupo.abierto .menu__panel--curso { transform: translate(0, 0); }
.menu__curso-img { position: relative; inset: auto; min-height: 320px; background-position: 75% 50%; }
.menu__curso-txt { padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.menu__curso-txt .menu__promo-et { color: #7048e8; }
.menu__curso-txt strong { font: 700 1.5rem/1.1 var(--titulos); letter-spacing: -.03em; }
.menu__curso-txt ul { list-style: none; margin: 4px 0; padding: 0; display: grid; gap: 6px; font-size: .92rem; color: var(--tinta-2); }
.menu__curso-txt li { display: flex; gap: .5em; align-items: center; }
.menu__curso-txt li .ico { width: 1.1em; color: #7048e8; }
.menu__curso-pie { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--linea); font-size: .88rem; color: var(--suave); }
.menu__curso-pie b { font: 700 1.3rem var(--titulos); color: var(--tinta); }
.menu__curso-pie .boton { padding: .75em 1.1em; font-size: .9rem; background: linear-gradient(100deg, #4b2fd1, #7048e8 50%, #c2409a); color: #fff; border-radius: 999px; }
@media (max-width: 960px) {
  .menu__panel--aprende, .menu__panel--curso { grid-template-columns: 1fr; right: auto; }
  .menu__promo { min-height: 200px; }
  .menu__curso-img { min-height: 160px; }
  .menu__curso-txt { color: #fff; } .menu__curso-txt li { color: rgba(255,255,255,.85); } .menu__curso-pie b { color: #fff; }
  .menu__aprende a { color: #fff; } .menu__aprende small { color: rgba(255,255,255,.6); } .menu__aprende a:hover { background: rgba(255,255,255,.08); }
  .menu__panel--tipos { grid-template-columns: 1fr 1fr; }
}

/* desplegables en la noche violeta (no blancos) */
.menu__panel { background: linear-gradient(160deg, #241d52 0%, #1a1540 55%, #14112a 100%); color: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 40px 80px -24px rgba(10,6,40,.75); }
.menu__tipo, .menu__aprende a, .menu__panel--lista a { color: #fff; }
.menu__tipo:hover { background: color-mix(in srgb, var(--c) 22%, transparent); }
.menu__tipo small, .menu__aprende small { color: rgba(255,255,255,.62); }
.menu__aprende a:hover { background: rgba(255,255,255,.08); }
.menu__todos { background: rgba(255,255,255,.08); color: #fff; }
.menu__todos:hover { background: rgba(255,255,255,.14); }
.menu__curso-txt strong { color: #fff; }
.menu__curso-txt .menu__promo-et { color: #c9b8ff; }
.menu__curso-txt ul { color: rgba(255,255,255,.82); }
.menu__curso-txt li .ico { color: #ffd696; }
.menu__curso-pie { border-top-color: rgba(255,255,255,.12); color: rgba(255,255,255,.65); }
.menu__curso-pie b { color: #fff; }
.menu__curso-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 60%, #1f1947); }
.menu__ico { display: inline-block; width: 24px; height: 24px; border-radius: 50%; background: #14112a center / cover no-repeat; background-position: 72% 55%; box-shadow: 0 0 0 2px rgba(255,255,255,.55); margin-right: 2px; flex: none; }
.menu__enlace, .menu__abre--curso { gap: .5em; }

/* tarjetas de llamada al test con dibujo animado */
.llamada.con-media { position: relative; overflow: hidden; isolation: isolate; min-height: 300px; background: #14112a; }
.llamada__media { position: absolute; inset: 0; z-index: -1; }
.llamada__media video, .llamada__media img { position: absolute; right: 0; top: 0; height: 100%; width: 70%; object-fit: cover; object-position: 75% center; -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%); mask-image: linear-gradient(90deg, transparent, #000 40%); }
.llamada.con-media > div:not(.llamada__media) { max-width: 520px; }
.llamada.con-media .boton { align-self: flex-start; margin-top: 1.3rem; }
.llamada.con-media::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #14112a 30%, rgba(20,17,42,.55) 55%, transparent 80%); }
.llamada--compacta.con-media { min-height: 230px; }
@media (max-width: 760px) { .llamada__media video, .llamada__media img { width: 100%; opacity: .45; -webkit-mask-image: none; mask-image: none; } .llamada.con-media::before { background: linear-gradient(180deg, rgba(20,17,42,.3), #14112a 85%); } }

/* el curso, protagonista en el inicio */
.curso-destacado { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 460px; border-radius: 32px; overflow: hidden; isolation: isolate; text-decoration: none; color: #fff; background: radial-gradient(120% 120% at 0% 0%, #2a1f66, #14112a 60%); box-shadow: 0 40px 90px -40px rgba(76,47,209,.6); }
.curso-destacado::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #14112a 30%, rgba(20,17,42,.5) 55%, transparent 75%); }
.curso-destacado__img { position: absolute; right: 0; top: 0; height: 100%; width: 72%; object-fit: cover; object-position: 75% center; z-index: -2; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.curso-destacado:hover .curso-destacado__img { transform: scale(1.04); }
.curso-destacado__txt { padding: clamp(28px, 5vw, 64px); max-width: 600px; }
.curso-destacado h2 { color: #fff; font-size: clamp(2rem, 4vw, 3.2rem); }
.curso-destacado p { color: rgba(255,255,255,.8); }
.curso-destacado__datos { list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; display: flex; flex-wrap: wrap; gap: 8px; }
.curso-destacado__datos li { padding: .45em .9em; border-radius: 999px; background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); font-size: .9rem; }
.curso-destacado__datos b { font: 700 1.05rem var(--titulos); background: linear-gradient(90deg, #b9a6ff, #ffd6e8, #ffd696); -webkit-background-clip: text; background-clip: text; color: transparent; }
.curso-destacado__pie { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.curso-destacado__precio { color: rgba(255,255,255,.75); font-size: .95rem; }
.curso-destacado__precio b { color: #fff; font: 700 1.4rem var(--titulos); }
@media (max-width: 860px) { .curso-destacado { grid-template-columns: 1fr; min-height: 0; } .curso-destacado__img { position: relative; width: 100%; height: auto; aspect-ratio: 16/9; z-index: 0; } .curso-destacado::after { display: none; } .curso-destacado__txt { padding-top: 10px; } }

/* megamenús: imágenes algo más pequeñas */
.menu__panel--tipos { width: min(760px, 94vw); gap: 6px; }
.menu__tipo { gap: 6px; padding: 6px; }
.menu__tipo-img { aspect-ratio: 16 / 5; border-radius: 11px; }
.menu__tipo-img b { width: 26px; height: 26px; border-radius: 8px; font-size: .85rem; left: 6px; top: 6px; }
.menu__panel--aprende { width: min(740px, 94vw); }
.menu__mini { width: 50px; height: 34px; border-radius: 9px; }
.menu__promo { min-height: 240px; }
.menu__panel--curso { width: min(640px, 94vw); }
.menu__curso-img { min-height: 250px; }
@media (max-width: 960px) { .menu__promo { min-height: 170px; } .menu__curso-img { min-height: 130px; } }

/* megamenús: imágenes enteras, sin recortar */
.menu__panel--tipos { width: min(720px, 94vw); }
.menu__tipo-img { aspect-ratio: 640 / 336; }
.menu__tipo-img img { object-position: center; }
.menu__mini { width: 56px; height: 31px; background-position: center; background-size: cover; }
.menu__promo { justify-content: flex-end; padding-top: 0; }
.menu__promo-img { inset: 0 0 auto 0; aspect-ratio: 1400 / 781; background-position: center; background-size: cover; }
.menu__promo-img::after { background: linear-gradient(180deg, transparent 55%, #14112a 100%); }
.menu__panel--curso { grid-template-columns: 1fr 1fr; }
.menu__curso-img { background-color: #14112a; background-size: 100% auto; background-position: center; }
/* eneatipos en fila: dibujo a la izquierda, entero de alto */
.menu__tipo { flex-direction: row; align-items: center; gap: 10px; }
.menu__tipo-img { flex: none; width: 96px; aspect-ratio: 4 / 3; }
.menu__tipo-img img { object-position: 82% 50%; }
.menu__tipo > span:last-child { padding: 0; }
.menu__promo-img { aspect-ratio: 4 / 3; }
.menu__curso-img { background-size: 150% auto; -webkit-mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent); }
.menu__panel--tipos { width: min(830px, 94vw); }
.menu__tipo-img { width: 84px; }
.menu__promo-img { background-size: cover; background-position: 88% center; }
.menu__curso-img { background-size: cover; background-position: 88% center; }

/* test: órbita de dibujos que gira alrededor del vídeo */
.test { position: relative; overflow: hidden; }
.test > .envoltura { position: relative; z-index: 1; }
.giro { position: absolute; z-index: 0; width: 470px; aspect-ratio: 1; right: max(-40px, calc(50% - 760px)); top: 110px; pointer-events: none; transition: opacity .8s, transform 1s cubic-bezier(.2,.7,.2,1), right 1s cubic-bezier(.2,.7,.2,1), top 1s cubic-bezier(.2,.7,.2,1); }
.giro::before { content: ""; position: absolute; inset: 44px; border-radius: 50%; border: 1.5px dashed rgba(255,255,255,.16); }
.giro__centro { position: absolute; inset: 27%; border-radius: 50%; overflow: hidden; background: #14112a url(../img/cta-test.webp) 75% center / cover; box-shadow: 0 0 0 6px rgba(255,255,255,.06), 0 0 90px rgba(112,72,232,.55); animation: latido 6s ease-in-out infinite; }
.giro__centro video { width: 100%; height: 100%; object-fit: cover; object-position: 75% center; }
.giro__anillo { position: absolute; inset: 0; animation: gira 70s linear infinite; }
.giro__burbuja { position: absolute; left: 50%; top: 50%; width: 86px; height: 86px; margin: -43px; transform: rotate(calc(var(--i) * 40deg)) translateY(-191px) rotate(calc(var(--i) * -40deg)); }
.giro__burbuja i { display: block; width: 100%; height: 100%; animation: gira 70s linear infinite reverse; }
.giro__burbuja img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 80% 60%; background: #14112a; box-shadow: 0 0 0 3px var(--c), 0 12px 30px -8px rgba(0,0,0,.6); animation: flota 4.5s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.55s); }
.giro__burbuja b { position: absolute; right: -2px; top: -2px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; font: 700 .8rem var(--titulos); box-shadow: 0 4px 10px -2px rgba(0,0,0,.5); }
@keyframes flota { from { transform: translateY(-6px) scale(1); } to { transform: translateY(6px) scale(1.04); } }
@keyframes latido { 50% { box-shadow: 0 0 0 10px rgba(255,255,255,.04), 0 0 120px rgba(194,64,154,.55); } }
.test[data-estado="preguntas"] .giro { opacity: .14; transform: scale(.92); }
.test[data-estado="calculando"] .giro { right: calc(50% - 235px); top: 90px; }
.test[data-estado="calculando"] .giro__anillo, .test[data-estado="calculando"] .giro__burbuja i { animation-duration: 9s; }
.test[data-estado="calculando"] .simbolo-calcula { visibility: hidden; height: 470px; width: 470px; animation: none; }
@media (max-width: 1180px) { .giro { width: 320px; right: -120px; top: 30px; opacity: .3; } .giro__burbuja { width: 58px; height: 58px; margin: -29px; transform: rotate(calc(var(--i) * 40deg)) translateY(-130px) rotate(calc(var(--i) * -40deg)); } .giro::before { inset: 30px; } .giro__burbuja b { width: 20px; height: 20px; font-size: .65rem; } .test[data-estado="calculando"] .giro { right: calc(50% - 160px); opacity: 1; } .test[data-estado="calculando"] .simbolo-calcula { height: 320px; width: 320px; } }
@media (prefers-reduced-motion: reduce) { .giro__anillo, .giro__burbuja i, .giro__burbuja img, .giro__centro { animation: none; } }

/* resultado: el dibujo de tu tipo dentro del círculo */
.resultado__num { position: relative; }
.r-ilus-marco { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; }
.r-ilus { width: 100%; height: 100%; object-fit: cover; object-position: 78% 55%; animation: acerca 16s ease-in-out infinite alternate; }
.resultado__num:has(.r-ilus:not([hidden])) { box-shadow: 0 0 0 5px var(--tipo), 0 0 90px color-mix(in srgb, var(--tipo) 60%, transparent); }
.resultado__num:has(.r-ilus:not([hidden])) > .r-num { position: absolute; right: -4%; bottom: -2%; width: 34%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--tipo); font-size: clamp(2.2rem, 4.5vw, 3.6rem); box-shadow: 0 10px 30px -8px rgba(0,0,0,.6); animation: salta 2.8s ease-in-out infinite; }
@keyframes acerca { from { transform: scale(1.02); } to { transform: scale(1.14) translate(-3%, 2%); } }
@keyframes salta { 50% { transform: translateY(-8px) rotate(-4deg); } }
@media (prefers-reduced-motion: reduce) { .r-ilus, .resultado__num > .r-num { animation: none !important; } }
.giro { width: 420px; right: calc(50% - 790px); top: 130px; }
.giro__burbuja { width: 78px; height: 78px; margin: -39px; transform: rotate(calc(var(--i) * 40deg)) translateY(-171px) rotate(calc(var(--i) * -40deg)); }
.giro::before { inset: 40px; }
.test[data-estado="calculando"] .giro { right: calc(50% - 210px); top: 90px; }
.test[data-estado="calculando"] .simbolo-calcula { height: 420px; width: 420px; }
@media (max-width: 1300px) { .giro { width: 320px; right: -120px; top: 30px; opacity: .3; } .giro__burbuja { width: 58px; height: 58px; margin: -29px; transform: rotate(calc(var(--i) * 40deg)) translateY(-130px) rotate(calc(var(--i) * -40deg)); } .giro::before { inset: 30px; } .giro__burbuja b { width: 20px; height: 20px; font-size: .65rem; } .test[data-estado="calculando"] .giro { right: calc(50% - 160px); opacity: 1; } .test[data-estado="calculando"] .simbolo-calcula { height: 320px; width: 320px; } }

/* menú: curso sin caja y botón del test en píldora oscura con borde de luz */
.menu__abre--curso { background: transparent !important; box-shadow: none !important; overflow: visible; }
.menu__abre--curso:hover, .menu__grupo.abierto .menu__abre--curso { background: rgba(255,255,255,.14) !important; }
.menu__brillo { display: none; }
.menu__nuevo { position: relative; display: inline-flex; align-items: center; gap: .35em; padding: .3em .6em .3em .5em; background: rgba(255,255,255,.16); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); font-weight: 600; }
.menu__nuevo::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #7dffb0; box-shadow: 0 0 0 0 rgba(125,255,176,.7); animation: pulso 2s ease-out infinite; }
@keyframes pulso { 70% { box-shadow: 0 0 0 6px rgba(125,255,176,0); } 100% { box-shadow: 0 0 0 0 rgba(125,255,176,0); } }
.cabecera .boton--menu { position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: .6em; padding: .42em .45em .42em 1.15em; border-radius: 999px !important; background: #16132a !important; color: #fff !important; box-shadow: 0 8px 24px -10px rgba(10,6,40,.8); transition: transform .25s, box-shadow .25s; }
.cabecera .boton--menu::before { content: ""; position: absolute; inset: -2px; z-index: -2; border-radius: inherit; background: conic-gradient(from var(--ang, 0deg), #b9a6ff, #ffaad7, #ffd696, #7dffb0, #b9a6ff); animation: anillo 4s linear infinite; }
.cabecera .boton--menu::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: #16132a; }
.boton__flecha { display: grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: 50%; background: #fff; color: #16132a; transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.boton__flecha .ico { width: 1em; height: 1em; }
.cabecera .boton--menu:hover { transform: translateY(-1px); box-shadow: 0 12px 30px -10px rgba(10,6,40,.9); }
.cabecera .boton--menu:hover .boton__flecha { transform: translateX(3px) rotate(-45deg); }
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes anillo { to { --ang: 360deg; } }
@media (prefers-reduced-motion: reduce) { .cabecera .boton--menu::before, .menu__nuevo::before { animation: none; } }
@media (max-width: 960px) { .cabecera .boton--menu { justify-content: space-between; padding: .7em .6em .7em 1.3em; } }

/* nada asoma por los lados en móvil (auroras y brillos decorativos) */
html, body { overflow-x: clip; }
.duelo { overflow: clip; }

/* móvil: tarjetas de los 9 tipos en fila compacta (dibujo a la izquierda) */
@media (max-width: 600px) {
  .rejilla-tipos { gap: 10px; }
  .tarjeta-tipo { display: grid !important; grid-template-columns: 112px 1fr; grid-template-rows: auto auto 1fr; column-gap: 14px; align-items: start; padding: 10px !important; min-height: 0 !important; }
  .tarjeta-tipo__ilus { grid-row: 1 / 4; grid-column: 1; width: 112px !important; height: 104px !important; margin: 0 !important; border-radius: 14px; object-fit: cover; object-position: 80% 60% !important; aspect-ratio: auto !important; }
  .tarjeta-tipo__num { grid-column: 2; font-size: 1.6rem !important; line-height: 1 !important; margin: 4px 0 0 !important; }
  .tarjeta-tipo h3 { grid-column: 2; margin: 4px 0 2px !important; font-size: 1.02rem !important; }
  .tarjeta-tipo p { grid-column: 2; margin: 0 !important; font-size: .86rem !important; }
  .tarjeta-tipo__centro { top: 14px !important; left: 14px !important; right: auto !important; font-size: .62rem !important; padding: .2em .5em !important; z-index: 1; }
}

/* móvil: con el menú abierto la cápsula no puede llevar desenfoque, o el menú queda atrapado dentro de ella */
html.menu-abierto .cabecera__in { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; transform: none !important; }
@media (max-width: 960px) {
  .menu__panel--tipos { grid-template-columns: 1fr 1fr !important; gap: 4px; padding: 8px !important; }
  .menu__tipo { flex-direction: column; align-items: stretch; gap: 6px; padding: 6px; }
  .menu__tipo-img { width: 100%; aspect-ratio: 16 / 9; }
  .menu__tipo small { display: none; }
  .menu__tipo strong { font-size: .88rem; }
  .menu__panel--aprende, .menu__panel--curso { grid-template-columns: 1fr !important; padding: 8px !important; }
  .menu__panel { overflow: hidden; max-width: 100%; }
}
@media (max-width: 960px) {
  .menu__promo { min-height: 0 !important; padding: 68% 16px 16px !important; }
  .menu__promo-img { aspect-ratio: 16 / 10; }
  .menu__curso-img { min-height: 0 !important; aspect-ratio: 16 / 9; }
}
@media (max-width: 960px) { .menu__curso-img { z-index: 0; display: block; } }
@media (max-width: 960px) { .menu__curso-img::after { background: linear-gradient(180deg, transparent 55%, #1f1947); } }
@media (max-width: 700px) { .giro { top: -40px; right: -150px; opacity: .2; } }
@media (max-width: 600px) {
  .tarjeta-tipo { grid-template-columns: 96px 1fr; grid-template-rows: auto auto auto; row-gap: 0; }
  .tarjeta-tipo__ilus { grid-row: 1 / 3; width: 96px !important; height: 80px !important; }
  .tarjeta-tipo__num { grid-row: 1; align-self: end; }
  .tarjeta-tipo h3 { grid-row: 2; align-self: start; }
  .tarjeta-tipo p { grid-column: 1 / -1 !important; grid-row: 3; margin-top: 10px !important; }
}

/* móvil: sin animación de entrada, el contenido se ve siempre (al bajar rápido las cajas salían vacías) */
@media (max-width: 760px) { .revela { opacity: 1 !important; transform: none !important; transition: none !important; } }

/* móvil: eneagrama de la portada más grande */
@media (max-width: 860px) { .portada__simbolo { width: calc(100% + 20px); max-width: 560px; margin: -10px -10px 0; } }

/* móvil: botones, datos y cifras de la portada más recogidos */
@media (max-width: 600px) {
  .portada__acciones { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 1.3rem 0 .9rem; }
  .portada__acciones .boton { justify-content: center; padding: .85em .6em; font-size: .9rem; min-height: 0; }
  .portada__datos { flex-wrap: nowrap !important; gap: 10px; font-size: .72rem; white-space: nowrap; overflow: hidden; }
  .portada__datos span { gap: .3em; }
  .portada .cifras { margin-top: 1.1rem; padding: 10px 0 0; gap: 0; max-width: none; }
  .portada .cifras > div { display: flex; align-items: baseline; gap: .35em; padding: 0 10px; border-left: 1px solid rgba(255,255,255,.12); }
  .portada .cifras > div:first-child { padding-left: 0; border-left: 0; }
  .portada .cifras strong { display: inline; font-size: 1.45rem; }
  .portada .cifras span { font-size: .68rem; letter-spacing: 0; line-height: 1.15; }
}

/* la web va siempre en claro: si el móvil está en modo oscuro no se mezclan cajas oscuras con texto oscuro */
:root { color-scheme: only light; }
@media (prefers-color-scheme: dark) {
  :root { --papel: #ffffff; --papel-2: #f5f4f9; --tarjeta: #fff; --tinta: #16132a; --tinta-2: #37334d; --suave: #625d78; --linea: #e7e5ef; --sombra: 0 1px 0 rgba(23,20,42,.04), 0 0 0 1px rgba(23,20,42,.06); }
  .tarjeta-tipo:hover { box-shadow: none; }
}

/* móvil: bloque del curso de la portada sin antetítulo y con el dibujo centrado */
@media (max-width: 860px) {
  .curso-destacado .antetitulo { display: none; }
  .curso-destacado__img { object-fit: cover; object-position: 72% center; }
}
@media (max-width: 860px) { .curso-destacado__img { aspect-ratio: 1.15 / 1; object-position: 100% 45%; } }

/* pie: chapas de los tipos encendidas con su color */
.pie__chapas a { background: var(--c); color: #fff; box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 35%, transparent), 0 6px 18px -4px color-mix(in srgb, var(--c) 70%, transparent); text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.pie__chapas a:hover { filter: brightness(1.15); }

/* móvil: marca centrada, chapas en dos líneas (5 + 4) y enlaces en dos columnas */
@media (max-width: 600px) {
  .pie__marca { text-align: center; }
  .pie__marca .marca { justify-content: center; }
  .pie__marca p { margin-inline: auto; }
  .pie__chapas { justify-content: center; max-width: 236px; margin: 1.2rem auto 0; gap: 8px; }
  .pie__chapas a { width: 38px; height: 38px; font-size: .95rem; }
  .pie__rejilla { grid-template-columns: 1fr 1fr !important; gap: 28px 20px; }
  .pie__marca { grid-column: 1 / -1; }
  .pie__rejilla nav[aria-label="Legal"] { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; text-align: center; }
  .pie__rejilla nav[aria-label="Legal"] h2 { flex-basis: 100%; }
}
@media (max-width: 600px) { .pie__rejilla nav[aria-label="Legal"] { display: flex !important; flex-direction: row !important; } .pie__rejilla nav[aria-label="Legal"] a { display: inline-block !important; width: auto !important; margin: 0 !important; } .pie__rejilla nav[aria-label="Legal"] h2 { width: 100%; text-align: center; margin-bottom: 4px; } }

/* test en móvil: pregunta más arriba y respuestas recogidas; sin efecto hover pegado al tocar */
.pregunta.entra { animation: aparecePregunta .3s ease-out; }
@keyframes aparecePregunta { from { opacity: .35; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (hover: none) {
  .escala button:hover, .par button:hover { transform: none; background: rgba(255,255,255,.05); color: rgba(255,255,255,.75); }
  .escala button.elegido { background: rgba(255,255,255,.16); color: #fff; }
  .par button.elegido { background: rgba(255,255,255,.18); }
}
@media (max-width: 700px) {
  .test[data-estado="preguntas"] { padding-top: 12px; min-height: 0; }
  .test[data-estado="preguntas"] .migas { display: none; }
  .test[data-estado="preguntas"] .progreso { margin-top: .4rem; }
  .test__estado { font-size: .78rem; margin-top: .5rem; }
  .pregunta { margin-top: 18px; min-height: 0; }
  .pregunta__guia { font-size: .82rem; margin: 0 0 .4rem; }
  .pregunta__texto { font-size: 1.32rem; margin-bottom: 1.1rem; min-height: 3.3em; display: flex; align-items: center; justify-content: center; }
  .escala { gap: 6px; }
  .escala button { padding: 11px 16px; gap: 12px; border-radius: 14px; }
  .par { gap: 10px; }
  .par button { min-height: 0; padding: 16px 18px; gap: 10px; }
  .test__nav { margin-top: 1rem; }
}
/* móvil: el dibujo del curso centrado en las tarjetas del menú */
@media (max-width: 960px) {
  .menu__promo { padding-top: 84% !important; }
  .menu__promo-img { aspect-ratio: 1.15 / 1; background-size: cover !important; background-position: 100% 45% !important; }
  .menu__curso-img { aspect-ratio: 1.15 / 1; background-size: cover !important; background-position: 100% 45% !important; }
}

/* menú móvil compacto: todo a la vista sin hacer scroll y sin repetir enlaces */
@media (max-width: 960px) {
  .menu { padding: 84px 16px 18px !important; gap: 2px !important; justify-content: flex-start; }
  .menu__abre { pointer-events: none; padding: 10px 2px 6px !important; font: 600 .78rem var(--texto) !important; letter-spacing: .03em; color: rgba(255,255,255,.62) !important; background: none !important; box-shadow: none !important; justify-content: flex-start !important; }
  .menu__abre .ico--abajo, .menu__abre .menu__nuevo { display: none !important; }
  .menu__panel, .menu__grupo.abierto .menu__panel { display: grid !important; background: none !important; padding: 0 !important; margin: 0 0 4px !important; box-shadow: none !important; border-radius: 0; overflow: visible; }
  .menu__panel::after, .menu__panel::before { display: none !important; }
  /* eneatipos: 3 x 3 con número y nombre */
  .menu__panel--tipos { grid-template-columns: repeat(3, 1fr) !important; gap: 6px !important; }
  .menu__tipo { flex-direction: row !important; align-items: center !important; gap: 7px !important; padding: 8px !important; border-radius: 12px; background: rgba(255,255,255,.08); }
  .menu__tipo-img { width: auto !important; aspect-ratio: auto !important; background: none !important; overflow: visible; border-radius: 0; }
  .menu__tipo-img img, .menu__tipo small, .menu__todos { display: none !important; }
  .menu__tipo-img b { position: static !important; width: 22px !important; height: 22px !important; border-radius: 7px !important; font-size: .75rem !important; }
  .menu__tipo strong { font-size: .74rem !important; line-height: 1.15; font-weight: 600 !important; }
  /* aprende: dos columnas de enlaces cortos, sin la tarjeta del curso ni el test (ya están abajo) */
  .menu__panel--aprende { grid-template-columns: 1fr !important; }
  .menu__aprende { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .menu__aprende a { padding: 11px 12px !important; background: rgba(255,255,255,.08); border-radius: 12px; }
  .menu__aprende a:first-child { grid-column: 1 / -1; }
  .menu__aprende a[href$="test-de-eneagrama/"], .menu__mini, .menu__aprende small, .menu__promo { display: none !important; }
  .menu__aprende strong { font-size: .86rem !important; }
  /* curso: una sola tarjeta con precio y botón */
  .menu__panel--curso { grid-template-columns: 1fr !important; }
  .menu__curso-img, .menu__curso-txt .menu__promo-et, .menu__curso-txt ul { display: none !important; }
  .menu__curso-txt { padding: 12px 14px !important; border-radius: 14px; background: linear-gradient(120deg, rgba(255,255,255,.16), rgba(255,255,255,.05)); }
  .menu__curso-txt strong { display: block; font-size: 1rem !important; color: #fff; }
  .menu__curso-pie { display: flex !important; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0 0 !important; padding: 0 !important; border: 0 !important; color: rgba(255,255,255,.75); font-size: .85rem; }
  .menu__curso-pie b { color: #fff !important; font-size: 1.1rem !important; }
  .menu__curso-pie .boton { padding: .55em .95em !important; font-size: .85rem !important; }
  .cabecera .boton--menu { margin-top: 12px !important; }
}

/* datos del curso de la portada: una sola línea, más compactos */
.curso-destacado__datos { flex-wrap: nowrap; gap: 6px; margin: 1rem 0 1.4rem; }
.curso-destacado__datos li { padding: .32em .7em; font-size: .8rem; white-space: nowrap; }
.curso-destacado__datos b { font-size: .9rem; }
@media (max-width: 600px) { .curso-destacado__txt { min-width: 0; } .curso-destacado__datos { gap: 4px; } .curso-destacado__datos li { padding: .3em .55em; font-size: .72rem; } .curso-destacado__datos b { font-size: .8rem; } }

/* sin antetítulos en toda la web (decisión del 21/10/2026) */
.antetitulo, .menu__promo-et { display: none !important; }

/* botón Curso: píldora de cristal con la palabra en degradado que se mueve y una chispa que brilla */
.menu__nuevo::before { display: none !important; }
@media (min-width: 961px) {
  .menu__abre--curso { position: relative; padding: .45em .9em .45em .75em !important; border-radius: 999px !important; background: rgba(255,255,255,.12) !important; box-shadow: inset 0 0 0 1px rgba(255,255,255,.28), 0 6px 20px -8px rgba(255,214,150,.55) !important; gap: .4em !important; transition: background .25s, transform .25s; }
  .menu__abre--curso:hover, .menu__grupo.abierto .menu__abre--curso { background: rgba(255,255,255,.2) !important; transform: translateY(-1px); }
  .menu__curso-palabra { font-weight: 700; background: linear-gradient(90deg, #fff 0%, #ffd696 25%, #ffaad7 50%, #fff 75%, #ffd696 100%); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: corre 4s linear infinite; }
  .menu__chispa { display: inline-block; color: #ffd696; font-size: .85em; animation: chispa 2.6s ease-in-out infinite; text-shadow: 0 0 10px rgba(255,214,150,.9); }
  .menu__nuevo { padding: .18em .5em !important; font-size: .6rem !important; background: linear-gradient(90deg, #ffd696, #ffaad7) !important; color: #2a1f66 !important; box-shadow: none !important; font-weight: 700 !important; }
}
@media (max-width: 960px) { .menu__chispa { display: none; } }
@keyframes corre { to { background-position: -200% center; } }
@keyframes chispa { 0%, 100% { transform: scale(.8) rotate(0); opacity: .7; } 50% { transform: scale(1.15) rotate(90deg); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .menu__curso-palabra, .menu__chispa { animation: none; } }

/* portada: eneagrama mucho más grande en escritorio */
@media (min-width: 861px) {
  .es-inicio .portada__in { grid-template-columns: .9fr 1.1fr; gap: 20px; }
  .es-inicio .portada__simbolo { width: 118%; max-width: 760px; margin: -40px -9% -40px -4%; }
}

/* cifras de la portada: número y nombre juntos, cada una con su color */
.portada .cifras { display: flex !important; flex-wrap: wrap; gap: 10px !important; max-width: none !important; margin-top: 1.6rem !important; padding-top: 0 !important; border-top: 0 !important; }
.portada .cifras > div { display: inline-flex !important; align-items: baseline; gap: .4em !important; padding: .55em 1em !important; border: 0 !important; border-radius: 999px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.portada .cifras strong { display: inline !important; font: 700 1.5rem/1 var(--titulos) !important; letter-spacing: -.03em; -webkit-background-clip: text; background-clip: text; color: transparent !important; }
.portada .cifras span { font-size: .9rem !important; letter-spacing: 0 !important; color: rgba(255,255,255,.82) !important; }
.portada .cifras > div:nth-child(1) strong { background-image: linear-gradient(90deg, #8ea2ff, #b9a6ff); }
.portada .cifras > div:nth-child(2) strong { background-image: linear-gradient(90deg, #ffaad7, #ff8fb1); }
.portada .cifras > div:nth-child(3) strong { background-image: linear-gradient(90deg, #ffd696, #ffb36b); }
@media (max-width: 600px) { .portada .cifras { gap: 6px !important; margin-top: 1rem !important; } .portada .cifras > div { padding: .4em .7em !important; } .portada .cifras strong { font-size: 1.15rem !important; } .portada .cifras span { font-size: .72rem !important; } }

/* portada: cadena de los 9 dibujos que se desliza sin parar */
.cadena-tipos { overflow: hidden; padding: 26px 0; background: var(--papel); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.cadena-tipos__pista { display: flex; gap: 16px; width: max-content; animation: cadena 60s linear infinite; }
.cadena-tipos:hover .cadena-tipos__pista { animation-play-state: paused; }
.cadena-tipos a { position: relative; display: block; width: clamp(200px, 24vw, 320px); border-radius: 18px; overflow: hidden; background: #14112a; box-shadow: 0 18px 40px -22px color-mix(in srgb, var(--c) 80%, transparent); transition: transform .3s; }
.cadena-tipos a:hover { transform: translateY(-4px) rotate(-1deg); }
.cadena-tipos img { width: 100%; height: auto; aspect-ratio: 640 / 336; object-fit: cover; display: block; }
.cadena-tipos span { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: .4em; padding: .3em .7em .3em .35em; border-radius: 999px; background: rgba(20,17,42,.72); backdrop-filter: blur(6px); color: #fff; font: 600 .82rem var(--texto); }
.cadena-tipos span b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--c); font-size: .75rem; }
@keyframes cadena { to { transform: translateX(-50%); } }

/* luz de colores que gira detrás del bloque del curso y de las llamadas al test */
.curso-destacado-envoltura, #curso { position: relative; }
.seccion:has(> .envoltura > #curso) .envoltura { position: relative; isolation: isolate; }
.seccion:has(> .envoltura > #curso) .envoltura::before, .llamada.con-media::before { content: ""; position: absolute; z-index: -1; inset: 10% 8%; border-radius: 40px; background: conic-gradient(from var(--giro, 0deg), #7048e8, #e64980, #e8a400, #0c8599, #7048e8); filter: blur(70px); opacity: .5; animation: luzgira 12s linear infinite; pointer-events: none; }
.llamada.con-media { isolation: isolate; overflow: visible !important; }
@property --giro { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes luzgira { to { --giro: 360deg; } }
@media (prefers-reduced-motion: reduce) { .cadena-tipos__pista, .seccion .envoltura::before, .llamada.con-media::before { animation: none; } }

/* resultado del test: pasión, virtud y centro con color propio */
.r-pildoras li:nth-child(1) { background: rgba(230,73,128,.18); box-shadow: inset 0 0 0 1px rgba(255,143,177,.45); }
.r-pildoras li:nth-child(1) span { color: #ffaac6; }
.r-pildoras li:nth-child(2) { background: rgba(43,138,62,.2); box-shadow: inset 0 0 0 1px rgba(125,255,176,.4); }
.r-pildoras li:nth-child(2) span { color: #9dffc4; }
.r-pildoras li:nth-child(3) { background: color-mix(in srgb, var(--tipo) 28%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tipo) 70%, #fff 10%); }
.r-pildoras li:nth-child(3) span { color: color-mix(in srgb, var(--tipo) 45%, #fff); }

/* móvil: las píldoras en una sola línea, más pequeñas */
@media (max-width: 600px) {
  .pildoras { flex-wrap: nowrap; gap: 5px; margin-top: 1.1rem; }
  .pildoras li { padding: .38em .62em; font-size: .76rem; white-space: nowrap; }
  .pildoras span { margin-right: .2em; }
}

/* móvil: más aire a los lados */
@media (max-width: 600px) { .envoltura { width: calc(100% - 44px); } }

/* menú móvil: nada se sale por la derecha y cada cosa cabe en una línea */
@media (max-width: 960px) {
  .menu { overflow-x: hidden !important; }
  .menu > *, .menu__grupo, .menu__panel { min-width: 0; max-width: 100%; }
  .menu__panel--tipos { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 5px !important; }
  .menu__tipo { min-width: 0; padding: 7px 8px !important; gap: 8px !important; }
  .menu__tipo > span:last-child { min-width: 0; }
  .menu__tipo strong { display: block; font-size: .82rem !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .menu__aprende { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 5px !important; }
  .menu__aprende a { min-width: 0; padding: 10px 11px !important; }
  .menu__aprende strong { display: block; font-size: .84rem !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .menu__curso-txt strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .95rem !important; }
  .menu__curso-pie { flex-wrap: nowrap; }
  .menu__curso-pie > span { white-space: nowrap; font-size: .8rem; }
  .menu__abre { padding: 8px 2px 5px !important; }
  .cabecera .boton--menu { width: 100%; box-sizing: border-box; }
}

/* las columnas de artículo nunca más anchas que la pantalla */
@media (max-width: 1020px) { .columnas { grid-template-columns: minmax(0, 1fr); } }
.columnas > *, .prosa > *, .faq details, .faq summary { min-width: 0; }
.faq summary { overflow-wrap: anywhere; }

/* tarjetas del test: el vídeo de fondo respeta las esquinas redondeadas */
.llamada.con-media .llamada__media { border-radius: inherit; overflow: hidden; }
.llamada.con-media .llamada__media video, .llamada.con-media .llamada__media img { border-radius: inherit; }
@media (max-width: 960px) { .menu__curso-pie .boton { white-space: nowrap; flex: none; } .menu__curso-pie > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; } }
.prosa a.enlace-tipo { display: inline; white-space: normal; overflow-wrap: anywhere; }

/* logo oficial (imagen) en la cabecera y el pie */
.marca__logo { display: block; height: 34px; width: auto; }
.cabecera.compacta .marca__logo { height: 28px; }
.pie .marca__logo { height: 40px; }
@media (max-width: 600px) { .marca__logo { height: 28px; } }

/* tiras de dibujos: hueco abajo para que la sombra no se corte */
.cadena-tipos { padding: 26px 0 52px; margin-bottom: -26px; }

/* tarjetas de tipo: el dibujo llega limpio hasta el borde de abajo, sin franja ni hueco */
.tarjeta-tipo { overflow: hidden; }
.tarjeta-tipo__ilus { display: block; transform: scale(1.06); transform-origin: 70% 100%; margin-bottom: -1px; }
@media (max-width: 600px) { .tarjeta-tipo__ilus { transform: none; } }

/* tarjetas de artículo con ilustración arriba */
.tarjeta-articulo.con-imagen { padding-top: 0; overflow: hidden; }
.tarjeta-articulo__img { display: block; width: calc(100% + 48px); max-width: none; margin: 0 -24px 12px; aspect-ratio: 4 / 3; object-fit: cover; object-position: 92% 60%; background: #15122c; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.tarjeta-articulo.con-imagen:hover .tarjeta-articulo__img { transform: scale(1.04); }

/* botones claros: el texto sigue oscuro al pasar el ratón (antes se volvía blanco sobre blanco) */
.boton--claro:hover, .oscuro .boton--claro:hover, .pie .boton--claro:hover, .boton--claro:focus-visible { color: #1b1630 !important; filter: brightness(1.04); }
.boton--claro:hover .ico { color: #1b1630; }

/* títulos del pie: párrafos con el aspecto de los antiguos h2 */
.pie nav .pie__titulo { font: 500 .78rem/1 var(--texto); letter-spacing: .12em; color: rgba(255,255,255,.45); margin: 0 0 .5rem; }
@media (max-width: 600px) { .pie__rejilla nav[aria-label="Legal"] .pie__titulo { flex-basis: 100%; } }
@media (max-width: 600px) { .pie__rejilla nav[aria-label="Legal"] .pie__titulo { width: 100%; text-align: center; margin-bottom: 4px; } }

/* enlazado interno de la ficha de cada eneatipo: subtipos, comparativas y parejas */
.enlaces-tipo { margin: 2.4rem 0; }
.enlaces-tipo h3 { font-size: 1rem; margin: 1.4rem 0 .7rem; }
.enlaces-tipo h2 + h3 { margin-top: .6rem; }
.enlaces-tipo ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.enlaces-tipo a { display: inline-flex; align-items: center; gap: .45em; padding: .45em 1em; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .92rem; color: inherit; background: color-mix(in srgb, var(--c, var(--tipo)) 10%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c, var(--tipo)) 40%, transparent); transition: background .2s; }
.enlaces-tipo a:hover { background: color-mix(in srgb, var(--c, var(--tipo)) 22%, transparent); }

/* pie en móvil: cada enlace en una sola línea, más recogido */
@media (max-width: 600px) {
  .pie__rejilla { gap: 20px 12px !important; }
  .pie__rejilla nav a { font-size: .82rem !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 3px 0 !important; line-height: 1.35; }
  .pie__rejilla nav { gap: 2px !important; min-width: 0; }
  .pie__rejilla nav[aria-label="Legal"] { flex-wrap: nowrap !important; gap: 0 14px !important; }
  .pie__rejilla nav[aria-label="Legal"] a { font-size: .78rem !important; }
}
@media (max-width: 600px) { .pie__rejilla nav[aria-label="Legal"] { flex-wrap: wrap !important; justify-content: center; } .pie__rejilla nav[aria-label="Legal"] .pie__titulo { flex-basis: 100%; width: 100%; text-align: center; margin: 0 0 4px !important; } .pie__rejilla nav[aria-label="Legal"] a { overflow: visible; text-overflow: clip; } }

/* eneagrama interactivo: selector de tipos siempre visible, de 3 en 3 */
.ficha-viva { justify-content: flex-start; min-height: 0; }
.ficha-viva__selector { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 20px; }
.ficha-viva__selector button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-width: 0; padding: 12px 4px; border-radius: 14px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.05); color: #fff; font: 600 .84rem/1.1 var(--texto, inherit); text-align: center; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.ficha-viva__selector button b { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 800 1.15rem/1 var(--titulos); background: color-mix(in srgb, var(--c) 28%, transparent); box-shadow: inset 0 0 0 1.5px var(--c); transition: background .2s; }
.ficha-viva__selector button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; color: rgba(255,255,255,.85); }
.ficha-viva__selector button:hover { border-color: var(--c); transform: translateY(-1px); }
.ficha-viva__selector button[aria-pressed="true"] { background: color-mix(in srgb, var(--c) 30%, transparent); border-color: var(--c); }
.ficha-viva__selector button[aria-pressed="true"] b { background: var(--c); }
.ficha-viva__selector button[aria-pressed="true"] span { color: #fff; }
.ficha-viva__vacia { text-align: center; padding: 6px 0 2px; }
.ficha-viva__guia { margin: 0; font-size: 1rem; }
@media (max-width: 600px) {
  .ficha-viva { padding: 16px; border-radius: 20px; }
  .ficha-viva__selector { gap: 6px; margin-bottom: 14px; }
  .ficha-viva__selector button { flex-direction: column; justify-content: center; gap: 4px; padding: 8px 2px; text-align: center; font-size: .7rem; letter-spacing: -.01em; }
  .ficha-viva__selector button b { width: 28px; height: 28px; font-size: .92rem; }
  .ficha-viva__selector button span { max-width: 100%; }
  .ficha-viva__guia { font-size: .9rem; }
}

/* eneagrama en móvil: el selector se pliega en acordeón tras elegir un tipo */
.ficha-viva__plegar { display: none; }
@media (min-width: 0) {
  .ficha-viva__selector { max-height: 520px; overflow: hidden; transition: max-height .4s ease, margin .4s ease, opacity .3s ease; }
  .ficha-viva.con-eleccion .ficha-viva__plegar { display: flex; align-items: center; gap: 10px; width: 100%; margin-bottom: 10px; padding: 8px 12px 8px 8px; border-radius: 14px; border: 1px solid var(--c); background: color-mix(in srgb, var(--c) 22%, transparent); color: #fff; font: 600 .95rem/1.1 var(--texto, inherit); cursor: pointer; text-align: left; }
  .ficha-viva__plegar b { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--c); font: 800 1rem/1 var(--titulos); }
  .ficha-viva__plegar span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ficha-viva__plegar em { font-style: normal; font-size: .8rem; color: rgba(255,255,255,.75); }
  .ficha-viva__plegar .ico { width: 18px; height: 18px; transition: transform .3s; }
  .ficha-viva.con-eleccion:not(.plegado) .ficha-viva__plegar .ico { transform: rotate(180deg); }
  .ficha-viva.plegado .ficha-viva__selector { max-height: 0; margin-bottom: 0; opacity: 0; }
}

/* ================================================================ test de personalidad (cinco grandes) */
.tp { padding: clamp(28px, 4vw, 48px) 0 clamp(48px, 6vw, 80px); min-height: 80vh; }
.tp .migas { margin-bottom: 1.2rem; }
.tp-inicio { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; margin-bottom: clamp(32px, 5vw, 56px); }
.tp-inicio h1 { margin-bottom: .35em; }
.tp-chips { list-style: none; padding: 0; margin: 1.4rem 0 1.8rem; display: flex; flex-wrap: wrap; gap: 8px; }
.tp-chips li { display: inline-flex; align-items: center; gap: .45em; padding: .5em .95em; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); font-size: .9rem; color: rgba(255,255,255,.88); }
.tp-chips .ico { width: 16px; height: 16px; }
.tp-inicio__acc { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.tp-reanudar { background: none; border: 0; color: #fff; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font: inherit; font-size: .95rem; padding: 0; }
.tp-mosaico { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; transform: rotate(-4deg); }
.tp-mosaico__p { position: relative; display: block; border-radius: 16px; overflow: hidden; aspect-ratio: 1; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 14px 30px -14px rgba(0,0,0,.6); animation: tp-flota 6s ease-in-out infinite; animation-delay: calc(var(--i) * -.37s); text-decoration: none; }
.tp-mosaico__p img { width: 100%; height: 100%; object-fit: cover; }
.tp-mosaico__p span { position: absolute; left: 6px; bottom: 6px; padding: .2em .55em; border-radius: 999px; background: rgba(20,17,42,.72); color: #fff; font-size: .68rem; font-weight: 600; }
.tp-mosaico__p:nth-child(4n+2), .tp-mosaico__p:nth-child(4n+4) { margin-top: 18px; margin-bottom: -18px; }
@keyframes tp-flota { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.tp-prog { position: sticky; top: 72px; z-index: 5; display: flex; align-items: center; gap: 14px; padding: 12px 0; margin-bottom: 8px; background: linear-gradient(var(--noche) 70%, transparent); }
.tp-prog__barra { flex: 1; height: 8px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; }
.tp-prog__barra span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #7048e8, #0c8599, #e8a400, #e64980); transition: width .4s ease; }
.tp-prog__txt { font-size: .85rem; color: rgba(255,255,255,.7); white-space: nowrap; }
.tp-items { max-width: 860px; margin: 0 auto; }
.tp-item { padding: clamp(26px, 4vw, 40px) 0; border-bottom: 1px solid rgba(255,255,255,.08); text-align: center; transition: opacity .3s; }
.tp-item.hecho { opacity: .5; }
.tp-item.hecho:hover, .tp-item.hecho:focus-within { opacity: 1; }
.tp-item__t { font: 600 clamp(1.15rem, 2.2vw, 1.45rem)/1.35 var(--titulos); color: #fff; margin: 0 0 1.1rem; }
.tp-escala { display: flex; align-items: center; justify-content: center; gap: clamp(10px, 2.4vw, 22px); }
.tp-escala__et { font-size: .9rem; font-weight: 600; width: 7.5em; }
.tp-escala__et--no { color: #b197fc; text-align: right; }
.tp-escala__et--si { color: #63e6be; text-align: left; }
.tp-op { flex: none; border-radius: 50%; background: transparent; cursor: pointer; transition: transform .15s, background .15s; padding: 0; display: grid; place-items: center; }
.tp-op--1, .tp-op--5 { width: 54px; height: 54px; }
.tp-op--2, .tp-op--4 { width: 42px; height: 42px; }
.tp-op--3 { width: 32px; height: 32px; }
.tp-op--1, .tp-op--2 { border: 2.5px solid #9775fa; }
.tp-op--3 { border: 2.5px solid rgba(255,255,255,.4); }
.tp-op--4, .tp-op--5 { border: 2.5px solid #38d9a9; }
.tp-op:hover { transform: scale(1.08); }
.tp-op--1:hover, .tp-op--2:hover { background: rgba(151,117,250,.25); }
.tp-op--4:hover, .tp-op--5:hover { background: rgba(56,217,169,.25); }
.tp-op--3:hover { background: rgba(255,255,255,.15); }
.tp-op.on { transform: scale(1.06); }
.tp-op--1.on, .tp-op--2.on { background: #9775fa; }
.tp-op--3.on { background: rgba(255,255,255,.6); }
.tp-op--4.on, .tp-op--5.on { background: #38d9a9; }
.tp-op.on::after { content: ""; width: 38%; height: 38%; border-radius: 50%; background: #fff; }
.tp-nav { display: flex; justify-content: space-between; gap: 12px; max-width: 860px; margin: 28px auto 0; }
.tp-nav .boton[disabled] { opacity: .4; cursor: not-allowed; }
.ico--izq { transform: rotate(180deg); }
.tp-calc { text-align: center; padding: 12vh 0; }
.tp-calc p { color: rgba(255,255,255,.8); font-size: 1.1rem; }
.tp-calc__anillo { position: relative; width: 120px; height: 120px; margin: 0 auto 1.5rem; animation: tp-gira 2.4s linear infinite; }
.tp-calc__anillo i { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px; border-radius: 50%; background: var(--c); box-shadow: 0 0 18px var(--c); transform: rotate(calc(var(--i) * 72deg)) translateY(-48px); }
@keyframes tp-gira { to { transform: rotate(360deg); } }
@media (max-width: 860px) {
  .tp-inicio { grid-template-columns: 1fr; }
  .tp-mosaico { gap: 7px; transform: none; }
  .tp-mosaico__p { border-radius: 12px; }
  .tp-mosaico__p span { display: none; }
  .tp-mosaico__p:nth-child(4n+2), .tp-mosaico__p:nth-child(4n+4) { margin-top: 10px; margin-bottom: -10px; }
}
@media (max-width: 600px) {
  .tp-prog { top: 64px; }
  .tp-escala { flex-wrap: wrap; gap: 10px 12px; }
  .tp-escala__et { order: 3; width: auto; flex: 1; font-size: .8rem; }
  .tp-escala__et--no { text-align: left; }
  .tp-escala__et--si { text-align: right; }
  .tp-escala .tp-op { order: 1; }
  .tp-escala::after { content: ""; order: 2; flex-basis: 100%; height: 0; }
  .tp-op--1, .tp-op--5 { width: 46px; height: 46px; }
  .tp-op--2, .tp-op--4 { width: 37px; height: 37px; }
  .tp-op--3 { width: 28px; height: 28px; }
  .tp-item { padding: 24px 0; }
}

/* informe */
.tpr { --perfil: #7048e8; }
.tpr-hero { padding: clamp(36px, 6vw, 80px) 0; }
.tpr-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 70% at 25% 50%, color-mix(in srgb, var(--perfil) 45%, transparent), transparent 70%); }
.tpr-hero__in { display: grid; grid-template-columns: minmax(0, 440px) 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.tpr-hero__img { position: relative; aspect-ratio: 1; border-radius: 32px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 30px 80px -30px color-mix(in srgb, var(--perfil) 80%, black); animation: tp-flota 7s ease-in-out infinite; }
.tpr-hero__img img { width: 100%; height: 100%; object-fit: cover; }
.tpr-hero__pre { margin: 0 0 .3rem; color: rgba(255,255,255,.7); font-weight: 600; }
.tpr-hero h1 { margin-bottom: .3em; }
.tpr-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.2rem; }
.tpr-pill { padding: .4em .9em; border-radius: 999px; font-size: .85rem; font-weight: 600; background: color-mix(in srgb, var(--perfil) 35%, transparent); border: 1px solid color-mix(in srgb, var(--perfil) 70%, white 10%); color: #fff; }
.tpr-pill--g { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); }
.tpr-pill--m { background: transparent; border-color: rgba(255,255,255,.18); color: rgba(255,255,255,.75); font-weight: 500; }
.tpr-hero__lema { font: 700 clamp(1.25rem, 2.4vw, 1.6rem)/1.3 var(--titulos); color: #fff; margin-bottom: .6rem; }
.tpr-hero__res { color: rgba(255,255,255,.8); font-size: 1.08rem; max-width: 38em; }
.tpr-hero__acc { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4rem; }
.tpr-compartido { display: inline-block; padding: .5em 1em; border-radius: 12px; background: rgba(255,255,255,.1); font-size: .9rem; margin-bottom: 1rem; }
.tpr-compartido a { color: #fff; font-weight: 700; }

.tpr-rasgos__in { display: grid; grid-template-columns: minmax(0, 360px) 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.tpr-radar svg { width: 100%; height: auto; overflow: visible; }
.rd-red { fill: none; stroke: var(--linea); stroke-width: 1; }
.rd-eje { stroke: var(--linea); stroke-width: 1; }
.rd-area { fill: color-mix(in srgb, var(--perfil) 25%, transparent); stroke: var(--perfil); stroke-width: 2.5; stroke-linejoin: round; animation: tpr-crece 1s cubic-bezier(.2,.7,.2,1) both; transform-origin: 160px 160px; }
.rd-pto { stroke: #fff; stroke-width: 2; }
.rd-et { font: 700 13px var(--titulos); fill: var(--tinta); }
@keyframes tpr-crece { from { transform: scale(0); opacity: 0; } }
.tpr-barras { display: grid; gap: 14px; }
.tpr-barra { display: block; text-decoration: none; color: inherit; padding: 14px 18px; border-radius: 16px; background: var(--tarjeta); box-shadow: var(--sombra); transition: transform .2s; }
.tpr-barra:hover { transform: translateY(-2px); }
.tpr-barra__cab { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.tpr-barra__cab strong { font-family: var(--titulos); font-size: 1.05rem; }
.tpr-barra__cab b { font: 800 1.4rem/1 var(--titulos); color: var(--c); }
.tpr-barra__pista { position: relative; display: block; height: 12px; border-radius: 99px; background: color-mix(in srgb, var(--c) 14%, transparent); overflow: hidden; }
.tpr-barra__llena { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 55%, white), var(--c)); transition: width 1.1s cubic-bezier(.2,.7,.2,1); }
.tpr-barra__mid { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: rgba(23,20,42,.22); }
.tpr-barra__polos { display: flex; justify-content: space-between; margin-top: 6px; font-size: .8rem; color: var(--suave); }
.tpr-fiab { margin: 1.6rem 0 0; padding: 12px 16px; border-radius: 12px; background: var(--papel-2); font-size: .92rem; color: var(--tinta-2); }

.tpr-dos { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.tpr-rasgos-frase { font-weight: 600; color: var(--tinta); }
.tpr-frase { margin: 1.4rem 0 0; padding: 18px 22px; border-radius: 16px; background: color-mix(in srgb, var(--perfil) 12%, var(--tarjeta)); border-left: 4px solid var(--perfil); font: 600 1.15rem/1.45 var(--titulos); }
.tpr-variante { padding: 24px; border-radius: 20px; background: var(--tarjeta); box-shadow: var(--sombra); }
.tpr-variante h3 { font-size: 1.15rem; }
.tpr-variante h3 span { color: var(--perfil); }
.tpr-h { margin-top: clamp(36px, 5vw, 56px); }
.tpr-tarjetas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tpr-tarjeta { padding: 20px; border-radius: 18px; background: var(--tarjeta); box-shadow: var(--sombra); border-top: 4px solid var(--perfil); }
.tpr-tarjetas--retos .tpr-tarjeta { border-top-color: #e8a400; }
.tpr-tarjeta h3 { font-size: 1.08rem; margin-bottom: .35em; }
.tpr-tarjeta p { margin: 0; font-size: .95rem; color: var(--tinta-2); }
.tpr-chipsl { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tpr-chipsl li { padding: .45em .9em; border-radius: 999px; background: color-mix(in srgb, var(--perfil) 12%, var(--tarjeta)); border: 1px solid color-mix(in srgb, var(--perfil) 30%, transparent); font-size: .9rem; font-weight: 500; }
.tpr-tres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tpr-caja { padding: 22px; border-radius: 18px; background: var(--papel-2); }
.tpr-caja h3 { font-size: 1.1rem; }
.tpr-caja p { margin: 0; font-size: .97rem; }
.tpr-crece { list-style: none; counter-reset: c; padding: 0; margin: 0; display: grid; gap: 12px; }
.tpr-crece li { counter-increment: c; position: relative; padding: 16px 18px 16px 64px; border-radius: 16px; background: var(--tarjeta); box-shadow: var(--sombra); }
.tpr-crece li::before { content: counter(c); position: absolute; left: 16px; top: 14px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--perfil); color: #fff; font: 800 1rem/1 var(--titulos); }

.tpr-afondo__lista { display: grid; gap: 22px; }
.tpr-rasgo { padding: clamp(20px, 3vw, 32px); border-radius: 24px; background: var(--tarjeta); box-shadow: var(--sombra); scroll-margin-top: 90px; }
.tpr-rasgo__cab { display: flex; align-items: center; gap: 18px; margin-bottom: 1rem; }
.tpr-rasgo__num { flex: none; position: relative; isolation: isolate; width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--v, 50) * 1%), color-mix(in srgb, var(--c) 15%, transparent) 0); font: 800 1.5rem/1 var(--titulos); color: var(--tinta); }
.tpr-rasgo__num::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--tarjeta); z-index: -1; }
.tpr-rasgo__nivel { margin: 0; font-size: .85rem; font-weight: 700; color: var(--c); }
.tpr-rasgo h3 { margin: 0; font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
.tpr-facs { list-style: none; padding: 0; margin: 1.2rem 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; }
.tpr-fac__cab { display: flex; justify-content: space-between; font-size: .95rem; }
.tpr-fac__cab b { color: var(--c); }
.tpr-fac__pista { display: block; height: 7px; border-radius: 99px; background: color-mix(in srgb, var(--c) 14%, transparent); margin: 5px 0 6px; overflow: hidden; }
.tpr-fac__pista span { display: block; height: 100%; border-radius: inherit; background: var(--c); }
.tpr-fac p { margin: 0; font-size: .88rem; color: var(--suave); line-height: 1.5; }
.tpr-rasgo__tres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding-top: 1rem; border-top: 1px solid var(--linea); }
.tpr-rasgo__tres h4 { font-size: .95rem; margin-bottom: .3em; color: var(--c); }
.tpr-rasgo__tres p { margin: 0; font-size: .92rem; }

.tpr-enea { padding: clamp(48px, 7vw, 88px) 0; }
.tpr-enea__tipos { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-bottom: 2rem; }
.tpr-tipo { position: relative; display: block; padding: 0 0 20px; border-radius: 22px; overflow: hidden; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); text-decoration: none; color: #fff; transition: transform .2s, border-color .2s; }
.tpr-tipo:hover { transform: translateY(-3px); border-color: var(--c); }
.tpr-tipo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tpr-tipo__n { position: absolute; top: 12px; left: 12px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--c); font: 800 1.2rem/1 var(--titulos); }
.tpr-tipo strong { display: block; margin: 14px 20px 6px; font: 700 1.15rem/1.2 var(--titulos); }
.tpr-tipo p { margin: 0 20px; font-size: .93rem; color: rgba(255,255,255,.75); }
.tpr-enea__cta { text-align: center; }

.tpr-galeria { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tpr-galeria__p { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: var(--tarjeta); box-shadow: var(--sombra); text-decoration: none; color: inherit; transition: transform .2s; border: 2px solid transparent; }
.tpr-galeria__p:hover { transform: translateY(-3px); }
.tpr-galeria__p.es-tuyo { border-color: var(--c); }
.tpr-galeria__p img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.tpr-galeria__p strong { margin: 12px 14px 2px; font: 700 1.05rem/1.2 var(--titulos); }
.tpr-galeria__p span { margin: 0 14px 14px; font-size: .85rem; color: var(--suave); line-height: 1.4; }
.tpr-nota { margin-top: 2rem; font-size: .88rem; color: var(--suave); }
@media (max-width: 900px) {
  .tpr-hero__in, .tpr-rasgos__in, .tpr-dos { grid-template-columns: 1fr; }
  .tpr-hero__img { max-width: 360px; width: 100%; margin: 0 auto; }
  .tpr-radar { max-width: 320px; width: 100%; margin: 0 auto; }
  .tpr-tarjetas, .tpr-tres, .tpr-rasgo__tres { grid-template-columns: 1fr 1fr; }
  .tpr-galeria { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .tpr-hero { text-align: center; }
  .tpr-pills, .tpr-hero__acc { justify-content: center; }
  .tpr-hero__img { max-width: 240px; border-radius: 24px; }
  .tpr-tarjetas, .tpr-tres, .tpr-rasgo__tres, .tpr-facs { grid-template-columns: 1fr; }
  .tpr-galeria { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tpr-galeria__p span { display: none; }
  .tpr-rasgo__num { width: 60px; height: 60px; font-size: 1.25rem; }
}
.tpr-compartido[hidden], .tpr-fiab[hidden] { display: none; }

/* firma de 3C Web en el pie */
.firma-3c { margin: 0; padding: 14px 0 4px; text-align: center; font-size: .92rem; }
.firma-3c a { text-decoration: none; font-weight: 600; background: linear-gradient(90deg, #3b5bdb, #e64980, #e8a400, #f76707, #c92a2a, #7048e8, #0c8599, #2b8a3e, #3b5bdb); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: firma-3c-brillo 6s linear infinite; }
.firma-3c strong { font-weight: 800; }
.firma-3c__cor { display: inline-block; color: #e64980; -webkit-text-fill-color: #e64980; animation: firma-3c-late 1.1s ease-in-out infinite; }
@keyframes firma-3c-brillo { to { background-position: 200% 0; } }
@keyframes firma-3c-late { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.3); } 30% { transform: scale(1); } 45% { transform: scale(1.2); } }

/* llamada al test de personalidad en la portada de Personalidad */
.tp-llamada { display: flex; align-items: center; gap: 22px; padding: 22px 26px; border-radius: 24px; margin-bottom: 14px; text-decoration: none; color: #fff; }
.tp-llamada__imgs { display: flex; flex: none; }
.tp-llamada__imgs img { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; box-shadow: 0 0 0 3px var(--noche); }
.tp-llamada__imgs img + img { margin-left: -16px; }
.tp-llamada__t { display: block; font: 700 1.35rem/1.2 var(--titulos); margin-bottom: 4px; }
.tp-llamada__d { display: block; color: rgba(255,255,255,.75); font-size: .95rem; }
.tp-llamada .boton { margin-left: auto; flex: none; }
.tp-llamada__mas { margin: 0 0 2.2rem; }
.tp-llamada__mas a { font-weight: 600; color: var(--marca); }
@media (max-width: 700px) { .tp-llamada { flex-direction: column; text-align: center; } .tp-llamada .boton { margin: 0 auto; } }
.tp-llamada { background: radial-gradient(80% 140% at 0% 50%, rgba(112,72,232,.45), transparent 60%), var(--noche); }
.tp-llamada:hover .boton { transform: translateY(-2px); }
.firma-3c a, .firma-3c a:hover, .firma-3c a:focus, .pie .firma-3c a:hover { color: transparent; -webkit-text-fill-color: transparent; background-color: transparent; text-decoration: none; opacity: 1; }
.firma-3c a:hover { filter: brightness(1.15); }
.firma-3c__cor, .firma-3c a:hover .firma-3c__cor { -webkit-text-fill-color: #e64980; color: #e64980; margin: 0 .15em; }

/* test de personalidad: preguntas en tarjetas, barra flotante y respuesta marcada sin atenuar */
.tp-prog { top: 84px; padding: 10px 16px; margin: 0 auto 14px; max-width: 860px; border-radius: 999px; background: rgba(30,26,58,.72); border: 1px solid rgba(255,255,255,.1); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 12px 30px -18px rgba(0,0,0,.7); }
.tp-items { display: grid; gap: 14px; }
.tp-item { padding: clamp(20px, 3vw, 28px) clamp(14px, 3vw, 28px); border: 1px solid rgba(255,255,255,.08); border-radius: 22px; background: rgba(255,255,255,.04); transition: border-color .25s, background .25s, opacity .25s; }
.tp-item.hecho { opacity: 1; border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.07); }
.tp-item.hecho .tp-item__t { color: rgba(255,255,255,.88); }
.tp-item__t { margin-bottom: 1rem; }
.tp-item.hecho .tp-op:not(.on) { opacity: .45; }
.tp-item.hecho .tp-op:not(.on):hover { opacity: 1; }
.tp-op.on { transform: scale(1.1); box-shadow: 0 0 0 5px rgba(255,255,255,.08), 0 6px 18px -6px rgba(0,0,0,.6); }
.tp-op--1.on, .tp-op--2.on { background: #9775fa; border-color: #b197fc; }
.tp-op--4.on, .tp-op--5.on { background: #20c997; border-color: #63e6be; }
.tp-op--3.on { background: #adb5bd; border-color: #dee2e6; }
.tp-op.on::after { width: 34%; height: 34%; background: #fff; }
.tp-item:last-child { border-bottom: 1px solid rgba(255,255,255,.08); }
@media (max-width: 600px) {
  .tp-prog { top: 72px; padding: 8px 12px; gap: 10px; }
  .tp-prog__txt { font-size: .75rem; }
  .tp-items { gap: 10px; }
  .tp-item { padding: 18px 12px; border-radius: 18px; }
}

/* test de personalidad: una pregunta cada vez */
.tp-items { max-width: 760px; }
.tp-item { min-height: 300px; display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 5vw, 52px) clamp(16px, 4vw, 44px); border-radius: 28px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 30px 60px -36px rgba(0,0,0,.8); }
.tp-item.entra { animation: tp-entra .35s cubic-bezier(.2,.7,.2,1); }
@keyframes tp-entra { from { opacity: 0; transform: translateX(28px); } }
.tp-item__n { margin: 0 0 .6rem; font-size: .85rem; font-weight: 600; color: rgba(255,255,255,.55); }
.tp-item__t { font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.25; margin: 0 0 1.8rem; color: #fff; }
.tp-item.hecho .tp-item__t { color: #fff; }
.tp-item__elegida { margin: 1.1rem 0 0; min-height: 1.4em; font-size: .9rem; font-weight: 600; color: rgba(255,255,255,.7); }
.tp-nav { max-width: 760px; }
@media (max-width: 600px) { .tp-item { min-height: 280px; padding: 26px 14px; } .tp-item__t { font-size: 1.35rem; } }
.tp-prog { margin-bottom: 22px; }

/* formularios de informe: dos casillas y capa básica de protección de datos */
.informe__obl { color: var(--suave); font-size: .85em; }
.informe__legal { margin: .2rem 0 .4rem; font-size: .74rem; line-height: 1.5; color: var(--suave); }
.informe__legal a { color: inherit; }
.tpr-informe { margin-top: 2rem; --tipo: var(--perfil); }
.tpr-informe[hidden] { display: none; }

/* llamada al test de personalidad: mosaico de perfiles en movimiento */
.llamada-tp { position: relative; display: grid; grid-template-columns: 1fr minmax(0, 300px); align-items: center; gap: 24px; margin: 22px 0 8px; min-height: 250px; padding: 0 0 0 clamp(24px, 4vw, 40px); border-radius: 22px; overflow: hidden; isolation: isolate; text-decoration: none; color: #fff;
  background: radial-gradient(70% 120% at 0% 50%, rgba(12,133,153,.45), transparent 60%), radial-gradient(60% 100% at 100% 0%, rgba(112,72,232,.5), transparent 60%), #14112a; box-shadow: 0 26px 60px -34px rgba(20,17,42,.8); }
.llamada-tp::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 40%, rgba(255,255,255,.08) 50%, transparent 60%); background-size: 250% 100%; animation: llamada-tp-brillo 5s ease-in-out infinite; }
@keyframes llamada-tp-brillo { 0% { background-position: 120% 0; } 60%, 100% { background-position: -120% 0; } }
.llamada-tp__txt { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 30px 0; }
.llamada-tp__txt strong { font: 800 clamp(1.4rem, 2.6vw, 1.9rem)/1.15 var(--titulos); letter-spacing: -.02em; background: linear-gradient(90deg, #fff, #c9b8ff 45%, #63e6be 75%, #ffd43b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.llamada-tp__txt > span:not(.boton) { color: rgba(255,255,255,.78); font-size: 1rem; max-width: 34em; }
.llamada-tp .boton { margin-top: 6px; transition: transform .2s; }
.llamada-tp:hover .boton { transform: translateY(-2px); }
.llamada-tp__mosaico { align-self: stretch; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; height: 250px; overflow: hidden; transform: rotate(-6deg) scale(1.15); -webkit-mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent); }
.llamada-tp__col { display: flex; flex-direction: column; gap: 8px; animation: llamada-tp-sube 26s linear infinite; }
.llamada-tp__col--b { animation-direction: reverse; animation-duration: 30s; }
.llamada-tp__col img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
@keyframes llamada-tp-sube { to { transform: translateY(-50%); } }
.llamada-tp:hover .llamada-tp__col { animation-play-state: paused; }
@media (max-width: 700px) {
  .llamada-tp { grid-template-columns: 1fr; padding: 0; }
  .llamada-tp__txt { padding: 26px 22px 6px; }
  .llamada-tp__mosaico { height: 150px; transform: none; grid-template-columns: repeat(3, 1fr); padding: 0 12px; order: -1; margin-top: -10px; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
  .llamada-tp { padding-bottom: 22px; }
}
@media (prefers-reduced-motion: reduce) { .llamada-tp__col, .llamada-tp::after { animation: none; } }

/* portada: sección del test de personalidad con vídeo */
.promo-tp { position: relative; padding: clamp(56px, 8vw, 110px) 0 0; overflow: hidden; isolation: isolate; }
.promo-tp__media { position: absolute; inset: 0 0 120px 0; z-index: -1; }
.promo-tp__media video { width: 100%; height: 100%; object-fit: cover; object-position: 75% center; }
.promo-tp__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #14112a 0%, rgba(20,17,42,.92) 34%, rgba(20,17,42,.2) 62%, transparent 80%), linear-gradient(0deg, #14112a 0%, transparent 30%); }
.promo-tp__in { min-height: 440px; display: flex; align-items: center; }
.promo-tp__txt { max-width: 560px; }
.promo-tp__txt h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); margin-bottom: .4em; }
.promo-tp__txt p { color: rgba(255,255,255,.82); font-size: clamp(1.02rem, 1.4vw, 1.15rem); }
.promo-tp__datos { list-style: none; padding: 0; margin: 1.4rem 0 1.6rem; display: flex; flex-wrap: wrap; gap: 8px; }
.promo-tp__datos li { padding: .5em 1em; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-size: .92rem; color: rgba(255,255,255,.85); }
.promo-tp__datos b { font-family: var(--titulos); color: #fff; margin-right: .2em; }
.promo-tp__acc { display: flex; flex-wrap: wrap; gap: 12px; }
.promo-tp__cadena { margin-top: clamp(30px, 5vw, 60px); padding: 0 0 clamp(36px, 5vw, 56px); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.promo-tp__pista { display: flex; gap: 14px; width: max-content; animation: promo-tp-corre 60s linear infinite; }
.promo-tp__cadena:hover .promo-tp__pista { animation-play-state: paused; }
.promo-tp__pista a { position: relative; flex: none; width: 150px; border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,.1); text-decoration: none; transition: transform .25s; }
.promo-tp__pista a:hover { transform: translateY(-4px); box-shadow: 0 0 0 2px var(--c); }
.promo-tp__pista img { width: 150px; height: 150px; object-fit: cover; display: block; }
.promo-tp__pista span { position: absolute; left: 8px; right: 8px; bottom: 8px; padding: .25em .6em; border-radius: 999px; background: rgba(20,17,42,.78); color: #fff; font-size: .78rem; font-weight: 600; text-align: center; }
@keyframes promo-tp-corre { to { transform: translateX(-50%); } }
@media (max-width: 760px) {
  .promo-tp { padding-top: 0; }
  .promo-tp__media { position: relative; inset: auto; height: 230px; }
  .promo-tp__media::after { background: linear-gradient(0deg, #14112a 2%, transparent 45%); }
  .promo-tp__media video { object-position: 70% center; }
  .promo-tp__in { min-height: 0; }
  .promo-tp__txt { text-align: center; margin-top: -10px; }
  .promo-tp__datos, .promo-tp__acc { justify-content: center; }
  .promo-tp__pista a, .promo-tp__pista img { width: 116px; }
  .promo-tp__pista img { height: 116px; }
}
@media (prefers-reduced-motion: reduce) { .promo-tp__pista { animation: none; } }

/* pie: un botón para cada test */
.pie__tests { display: flex; flex-wrap: wrap; gap: 12px; }
.pie__test { display: flex; align-items: center; gap: 14px; min-width: 300px; padding: 12px 18px 12px 12px; border-radius: 18px; text-decoration: none; color: #1b1630; background: linear-gradient(120deg, #ffffff, #efe9ff); box-shadow: 0 14px 34px -18px rgba(0,0,0,.6); transition: transform .2s, box-shadow .2s; }
.pie__test--tp { background: linear-gradient(120deg, #ffffff, #dff7f2); }
.pie__test:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -18px rgba(112,72,232,.7); color: #1b1630; }
.pie__test-img { display: flex; flex: none; }
.pie__test-img img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px #fff; }
.pie__test-img img + img { margin-left: -14px; }
.pie__test-txt { display: flex; flex-direction: column; flex: 1; line-height: 1.25; }
.pie__test-txt b { font: 700 1.05rem/1.2 var(--titulos); }
.pie__test-txt small { font-size: .8rem; color: #625d78; }
.pie__test .ico { width: 20px; height: 20px; flex: none; transition: transform .2s; }
.pie__test:hover .ico { transform: translateX(3px); }
@media (max-width: 700px) { .pie__tests { width: 100%; flex-direction: column; } .pie__test { min-width: 0; width: 100%; } }
.pie__test-img--num i { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 800 1.1rem/1 var(--titulos); font-style: normal; box-shadow: 0 0 0 3px #fff; }
.pie__test-img--num i + i { margin-left: -14px; }

/* portada: sección del test de personalidad, al final, con ondas suaves y vídeo en tarjeta */
.promo-tp { padding: clamp(56px, 8vw, 100px) 0 0; background: radial-gradient(60% 80% at 15% 20%, rgba(112,72,232,.28), transparent 70%), radial-gradient(50% 70% at 90% 80%, rgba(12,133,153,.22), transparent 70%), #14112a; }
.promo-tp__media { display: none; }
.promo-tp__ondas { position: absolute; left: 0; right: 0; bottom: 0; height: 260px; z-index: -1; overflow: hidden; opacity: .9; }
.promo-tp__ondas svg { position: absolute; left: 0; bottom: 0; width: 200%; height: 100%; }
.promo-tp__ondas path { animation: promo-ondas 18s linear infinite; }
.promo-tp__ondas .o1 { fill: rgba(112,72,232,.16); }
.promo-tp__ondas .o2 { fill: rgba(12,133,153,.14); animation-duration: 24s; animation-direction: reverse; }
.promo-tp__ondas .o3 { fill: rgba(194,64,154,.12); animation-duration: 30s; }
@keyframes promo-ondas { to { transform: translateX(-50%); } }
.promo-tp__in { display: grid; grid-template-columns: 1fr minmax(0, 480px); gap: clamp(28px, 5vw, 64px); align-items: center; min-height: 0; }
.promo-tp__video { border-radius: 26px; overflow: hidden; aspect-ratio: 16 / 10; box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 30px 70px -30px rgba(112,72,232,.6); animation: tp-flota 7s ease-in-out infinite; }
.promo-tp__video video { width: 100%; height: 100%; object-fit: cover; object-position: 72% center; }
.promo-tp__cadena { padding: 16px 0 clamp(40px, 6vw, 64px); }
.promo-tp__pista a:hover { transform: translateY(-6px); }
@media (max-width: 860px) {
  .promo-tp { padding-top: 48px; }
  .promo-tp__in { grid-template-columns: 1fr; }
  .promo-tp__video { order: -1; max-width: 440px; width: 100%; margin: 0 auto; }
  .promo-tp__txt { text-align: center; margin-top: 0; }
  .promo-tp__datos, .promo-tp__acc { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .promo-tp__ondas path { animation: none; } }
.pie a.pie__test, .pie a.pie__test:hover, .pie a.pie__test:focus-visible { color: #1b1630; text-decoration: none; }
.pie a.pie__test:hover small { color: #625d78; }

/* menú: al pasar por «Haz el test gratis» se elige entre los dos tests */
.menu__tests { position: relative; }
.menu__tests-pop { position: absolute; right: 0; top: calc(100% + 14px); z-index: 60; width: 360px; display: grid; gap: 8px; padding: 10px; border-radius: 20px; background: #fff; box-shadow: 0 30px 70px -24px rgba(20,17,42,.55), 0 0 0 1px rgba(20,17,42,.06); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s; }
.menu__tests-pop::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.menu__tests:hover .menu__tests-pop, .menu__tests:focus-within .menu__tests-pop { opacity: 1; visibility: visible; transform: none; }
.menu__test { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; text-decoration: none; color: #1b1630; transition: background .2s; }
.menu__test:hover { background: #f3efff; color: #1b1630; }
.menu__test--tp:hover { background: #e6f7f3; }
.menu__test-img { flex: none; width: 54px; height: 54px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; background: #14112a; }
.menu__test-img img { width: 100%; height: 100%; object-fit: cover; }
.menu__test-simbolo { width: 46px; height: 46px; }
.menu__test-simbolo .s-circulo { fill: none; stroke: #fff; stroke-width: 3; } .menu__test-simbolo .s-triangulo { fill: none; stroke: #b9a6ff; stroke-width: 2.5; } .menu__test-simbolo .s-hexada { fill: none; stroke: #e8a400; stroke-width: 2.5; }
.menu__test strong { display: block; font: 700 1rem/1.2 var(--titulos); }
.menu__test small { display: block; font-size: .8rem; color: #625d78; line-height: 1.35; }
@media (max-width: 960px) {
  .menu__tests > .boton--menu { display: none; }
  .menu__tests-pop { position: static; width: auto; opacity: 1; visibility: visible; transform: none; padding: 6px; border-radius: 16px; box-shadow: none; background: rgba(255,255,255,.92); }
  .menu__tests-pop::before { display: none; }
}
.menu__test-img--enea img { width: 40px; height: 40px; object-fit: contain; }

/* test de personalidad: enlace a los 16 perfiles */
.tp-perfiles-enlace { display: inline-flex; align-items: center; gap: .35em; color: rgba(255,255,255,.85); font-weight: 600; font-size: .95rem; text-decoration: underline; text-underline-offset: 3px; }
.tp-perfiles-enlace:hover { color: #fff; }
.tp-perfiles-enlace .ico { width: 16px; height: 16px; }
.tp-perfiles-enlace--claro { color: var(--marca); margin-left: .3em; }
.tp-perfiles-enlace--claro:hover { color: var(--tinta); }

/* ===== llamada al curso con el vídeo «Así funciona la escuela» ===== */
.llamada-curso { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: clamp(1.4rem, 3vw, 2.6rem); align-items: center; margin: 2.4rem 0; padding: clamp(1.3rem, 3vw, 2.2rem); border-radius: 28px; color: #fff; background: radial-gradient(120% 140% at 0% 0%, #2a1f66, #14112a 62%); box-shadow: 0 34px 80px -40px rgba(76,47,209,.6); }
.llamada-curso__txt { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; }
.llamada-curso__txt .antetitulo { color: #c9bfff; margin: 0; }
.llamada-curso__txt strong { font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2.1rem); line-height: 1.1; letter-spacing: -.01em; }
.llamada-curso__txt > span:not(.antetitulo) { color: rgba(255,255,255,.82); line-height: 1.55; }
.llamada-curso__txt .boton { margin-top: .4rem; }
.llamada-curso__video { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 9; background: #0d0a1f; box-shadow: 0 0 0 2px rgba(255,255,255,.08), 0 24px 60px -30px rgba(0,0,0,.8); }
.llamada-curso__video video { display: block; width: 100%; height: 100%; object-fit: cover; }
.llamada-curso__play { position: absolute; left: 50%; bottom: 9%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: .6rem; padding: .5rem 1.15rem .5rem .5rem; border: 0; border-radius: 999px; cursor: pointer; font-family: inherit; font-weight: 600; font-size: .98rem; line-height: 1; color: #16132a; background: #fff; box-shadow: 0 14px 40px -12px rgba(0,0,0,.6); transition: transform .25s; white-space: nowrap; }
.llamada-curso__play:hover { transform: translateX(-50%) scale(1.05); }
.llamada-curso__play svg { width: 2.3rem; height: 2.3rem; padding: .55rem; border-radius: 50%; color: #fff; background: linear-gradient(120deg, #4b2fd1, #7048e8 45%, #c2409a); }
.llamada-curso__video.reproduciendo .llamada-curso__play { display: none; }
.seccion .curso-destacado + .llamada-curso { margin-bottom: 0; }
@media (max-width: 820px) { .llamada-curso { grid-template-columns: 1fr; } .llamada-curso__video { order: -1; } }
/* la llamada del curso también vive dentro de .prosa: blindar colores e icono */
.llamada-curso .llamada-curso__txt strong { display: block; color: #fff; font-weight: 800; margin: 0; }
.llamada-curso .llamada-curso__txt > span:not(.antetitulo) { color: rgba(255,255,255,.84); }
.llamada-curso .llamada-curso__play svg { flex: none; width: 38px; height: 38px; max-width: none; padding: 10px; box-sizing: border-box; }
.llamada-curso .llamada-curso__play svg path { fill: currentColor; }
.llamada-curso a.boton { text-decoration: none; }
/* en el móvil, el play del vídeo de la escuela es un círculo en la esquina y no tapa el título */
@media (max-width: 640px) {
  .llamada-curso .llamada-curso__play { left: auto; right: 12px; bottom: 12px; transform: none; width: 56px; height: 56px; padding: 0; gap: 0; justify-content: center; border-radius: 50%; background: transparent; box-shadow: none; }
  .llamada-curso .llamada-curso__play span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .llamada-curso .llamada-curso__play svg { width: 56px; height: 56px; padding: 17px; box-shadow: 0 10px 28px -8px rgba(0,0,0,.6), 0 0 0 3px rgba(255,255,255,.9); }
  .llamada-curso .llamada-curso__play:hover { transform: scale(1.06); }
}
@media (min-width: 901px) { .pie__rejilla { grid-template-columns: 1.5fr repeat(4, 1fr); gap: 32px; } }
/* en el móvil la ilustración de cabecera aparece sin animación: es el contenido principal y no debe retrasarse */
@media (max-width: 900px) { .cabeza-ilus { animation: none; } }

/* menú «Cursos»: curso estrella y lista de los demás */
.menu__panel--curso { width: min(1020px, 96vw); right: -220px; grid-template-columns: .75fr 1fr 1fr; }
.menu__otros { padding: 22px 22px 18px; display: flex; flex-direction: column; gap: 8px; border-left: 1px solid rgba(127,127,127,.15); }
.menu__otros .menu__promo-et { color: #7048e8; margin-bottom: 2px; }
.menu__otro { display: grid; grid-template-columns: 74px 1fr; gap: 12px; align-items: center; padding: 8px; border-radius: 14px; text-decoration: none; color: inherit; transition: background .15s; }
.menu__otro:hover { background: color-mix(in srgb, var(--c, #6d4aff) 10%, transparent); }
.menu__otro-img { display: block; width: 74px; height: 46px; border-radius: 10px; background: #161334 center / cover no-repeat; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c, #6d4aff) 55%, transparent); }
.menu__otro-img--gratis { --c: #0c8599; }
.menu__otro strong { display: block; font-size: .95rem; line-height: 1.2; }
.menu__otro small { display: block; font-size: .8rem; opacity: .75; margin-top: 2px; }
.menu__otros .menu__todos { margin-top: auto; }
@media (max-width: 1100px) { .menu__panel--curso { right: -120px; grid-template-columns: 1fr 1fr; } .menu__panel--curso .menu__curso-img { display: none; } }
@media (max-width: 900px) { .menu__panel--curso { grid-template-columns: 1fr; right: auto; } .menu__otros { border-left: 0; border-top: 1px solid rgba(127,127,127,.15); } }
.menu__otro-img { background-position: 82% 45%; background-size: 190%; }

/* pie compacto: seis columnas cortas y lo legal en la línea final */
.pie__rejilla { grid-template-columns: 1.7fr repeat(5, minmax(0, 1fr)); gap: 24px 26px; padding: clamp(32px, 4vw, 44px) 0; }
.pie__marca p { font-size: .88rem; line-height: 1.55; max-width: 24em; margin: 0; }
.pie .marca { margin-bottom: .7rem; }
.pie .marca__logo { width: 170px; height: auto; }
.pie__chapas { gap: 5px; margin-top: 1rem; }
.pie__chapas { flex-wrap: nowrap; gap: 4px; }
.pie__chapas a { width: 24px; height: 24px; flex: none; font-size: .72rem; }
.pie nav { gap: .45rem; font-size: .9rem; }
.pie nav .pie__titulo { margin: 0 0 .3rem; font: 600 .74rem/1 var(--texto); letter-spacing: .1em; color: rgba(255,255,255,.45); }
.pie__base { padding: 16px 0; align-items: center; }
.pie .pie__legal { display: flex; flex-wrap: wrap; flex-direction: row; gap: 4px 16px; font-size: inherit; }
.pie__legal a { color: rgba(255,255,255,.55); }
.firma-3c { margin: 0 0 12px; }
.pie__llamada { padding-bottom: clamp(28px, 4vw, 44px); }
.pie__envoltura { padding-top: clamp(40px, 6vw, 72px); }
@media (max-width: 1100px) { .pie__rejilla { grid-template-columns: repeat(5, minmax(0, 1fr)); } .pie__marca { grid-column: 1 / -1; } }
@media (max-width: 760px) { .pie__rejilla { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px) { .pie__rejilla { grid-template-columns: 1fr 1fr; } }

/* aprende compacto (escritorio): contenidos a la izquierda, tests a la derecha */
@media (min-width: 961px) {
  .menu__panel--aprende { width: min(860px, 94vw); grid-template-columns: minmax(0, 1fr) 210px; gap: 10px; padding: 10px; }
  .menu__aprende { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(6, auto); grid-auto-flow: column; gap: 2px 6px; align-content: start; }
  .menu__aprende a { gap: 10px; padding: 6px 8px; border-radius: 12px; min-width: 0; }
  .menu__aprende a > span:last-child { min-width: 0; }
  .menu__mini { width: 42px; height: 30px; border-radius: 8px; }
  .menu__aprende strong { font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .menu__aprende small { display: block; font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .menu__aprende a:nth-child(5) { grid-row: 5; }
  .menu__aprende a:nth-child(6) { grid-row: 1; }
  .menu__panel--aprende .menu__promo { min-height: 0; padding: 14px; }
  .menu__panel--aprende .menu__promo strong { font-size: 1.1rem; }
  .menu__panel--aprende .menu__promo small { font-size: .8rem; }
}

/* foto propia en la cabecera de cada test, con las tarjetas encima */
.tp-visual { position: relative; display: grid; justify-items: end; }
.tp-foto { display: block; width: 68%; max-height: 600px; aspect-ratio: 3 / 4; height: auto; object-fit: cover; border-radius: 28px; box-shadow: 0 40px 90px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.08); animation: tpFoto 1s ease both; }
@keyframes tpFoto { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.tp-visual .th-rueda { position: absolute; left: 0; bottom: 7%; width: 60%; gap: 8px; }
.tp-visual .th-rueda span { padding: 10px 14px; border-radius: 14px; background: rgba(22,19,42,.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 4px 0 0 var(--c), 0 14px 30px -14px rgba(0,0,0,.6); flex-wrap: wrap; gap: 2px 10px; }
.tp-visual .th-rueda b { font-size: 1rem; }
.tp-visual .th-rueda small { font-size: .82rem; }
@media (max-width: 860px) {
  .tp-visual { justify-items: stretch; }
  .tp-foto { width: 100%; aspect-ratio: 4 / 3; object-position: center 30%; }
  .tp-visual .th-rueda { position: static; width: auto; margin-top: -48px; padding: 0 12px; }
}

/* test de emociones con retratos fotográficos */
.te-foto { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.te-cara { width: min(300px, 74vw); margin-top: 18px; padding: 0; overflow: hidden; box-shadow: 0 30px 70px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.1); }
.te-cara .te-foto { animation: teFoto .45s ease both; }
@keyframes teFoto { from { opacity: 0; transform: scale(1.04); } }
.te-mosaico span { padding: 0; overflow: hidden; border-radius: 18px; box-shadow: 0 18px 40px -22px rgba(0,0,0,.7); animation: teMos .6s calc(var(--i) * .08s) ease both; }
.te-mosaico span:nth-child(even) { transform: translateY(18px); }
.te-mosaico .te-foto { transition: transform .5s, filter .5s; filter: saturate(.9); }
.te-mosaico span:hover .te-foto { transform: scale(1.08); filter: saturate(1.15); }
@keyframes teMos { from { opacity: 0; } }
.te-mini { width: 76px; border-radius: 14px; overflow: hidden; flex-shrink: 0; }
.te-item [hidden] { display: none !important; }
.tp__pantalla:has(> .te-item) { padding-top: 64px; }

/* menú móvil: los nombres largos de test caben en dos líneas y la lista de cursos va alineada con el resto */
@media (max-width: 960px) {
  .menu__aprende a > span:last-child { min-width: 0; }
  .menu__aprende strong { white-space: normal !important; overflow: visible !important; line-height: 1.2; overflow-wrap: anywhere; }
  .menu__aprende a { display: flex; align-items: center; min-height: 44px; }
  .menu__otros { padding: 8px 0 0 !important; gap: 4px !important; border: 0 !important; }
  .menu__otro { grid-template-columns: 58px minmax(0, 1fr) !important; gap: 12px !important; padding: 7px 8px !important; border-radius: 12px; background: rgba(255,255,255,.06); color: #fff; }
  .menu__otro > span:last-child { min-width: 0; }
  .menu__otro-img { width: 58px !important; height: 40px !important; }
  .menu__otro strong { font-size: .9rem !important; color: #fff; }
  .menu__otro small { font-size: .76rem !important; line-height: 1.3; opacity: .7; }
}
