/* SubeNota — inicio.html: la portada que lo recopila todo. */
.modos-hero--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 900px; margin-inline: auto; }
@media (max-width: 760px) { .modos-hero--3 { grid-template-columns: minmax(0, 1fr); max-width: 420px; } }

/* para docentes, práctico */
.doc-simple { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: center; padding: clamp(22px, 3.5vw, 44px); border-radius: 28px; background: var(--surface); box-shadow: 0 1px 2px rgba(27, 34, 48, 0.04), 0 8px 24px -8px rgba(27, 34, 48, 0.10); }
.doc-simple__txt { display: grid; gap: 12px; justify-items: start; }
.doc-simple__txt h2 { font-size: clamp(2.25rem, 4.4vw, 3.25rem); line-height: 1.06; letter-spacing: -0.035em; }
.doc-simple__txt p { color: var(--ink-2); font-size: 1.125rem; line-height: 1.55; max-width: 44ch; }
.doc-simple__pasos { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.doc-simple__pasos li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 18px; background: var(--surface-2); }
.doc-simple__pasos li > span { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 800; }
.doc-simple__pasos div { display: grid; gap: 2px; } .doc-simple__pasos b { font-size: 1.125rem; } .doc-simple__pasos small { color: var(--ink-2); font-size: .9375rem; }
@media (max-width: 860px) { .doc-simple { grid-template-columns: minmax(0, 1fr); } }

/* «Test en directo» de arriba: el móvil del alumno con el dedo en la pantalla (paso 1 de la demo), en bucle */
.rk--dedo { --ka: #2f6bf6; --kb: #7b5ce0; --kc: #e8843c; --kd: #2fa85e; }
.rk__velo { position: relative; display: grid; gap: 6px; }
.rk--dedo .rk__q { background: var(--surface-2); color: var(--ink); }
.rk__ops--l { grid-template-columns: 1fr; gap: 4px; }
.rk__l { display: flex; align-items: center; gap: 6px; padding: 3px 6px; border-radius: 6px; font-size: .6875rem; font-weight: 700; color: var(--ink); background: color-mix(in srgb, var(--c) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c) 28%, var(--surface)); }
.rk__l i { display: grid; place-items: center; width: 15px; height: 15px; border-radius: 4px; background: var(--c); color: #fff; font-style: normal; font-size: .5625rem; }
.rk__l--a { --c: var(--ka); } .rk__l--b { --c: var(--kb); } .rk__l--c { --c: var(--kc); } .rk__l--d { --c: var(--kd); }
.rk__pad { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 2px; text-align: center; }
.rk__pad b { font-size: .8125rem; color: var(--ink); } .rk__pad small { font-size: .625rem; color: var(--muted); }
.rk__dedo { width: 30px; height: 30px; margin-bottom: 2px; border-radius: 50%; background: radial-gradient(circle, var(--accent) 0 30%, var(--accent-soft) 31%); }
/* estado fijo (sin movimiento): tapada */
.rk--dedo .rk__q, .rk--dedo .rk__ops--l { filter: blur(5px); opacity: .45; }
@media (prefers-reduced-motion: no-preference) {
  .rk--dedo .rk__q, .rk--dedo .rk__ops--l { animation: rk-ver 6s ease-in-out infinite; }
  .rk__pad { animation: rk-pad 6s ease-in-out infinite; }
  .rk__dedo { animation: rk-latido 1.6s ease-out infinite; }
  .rk__l--b { animation: rk-elige 6s ease-in-out infinite; }
  .rk__l--a, .rk__l--c, .rk__l--d { animation: rk-apaga 6s ease-in-out infinite; }
}
@keyframes rk-ver { 0%, 38% { filter: blur(5px); opacity: .45; } 46%, 94% { filter: none; opacity: 1; } 100% { filter: blur(5px); opacity: .45; } }
@keyframes rk-pad { 0%, 36% { opacity: 1; } 44%, 96% { opacity: 0; } 100% { opacity: 1; } }
@keyframes rk-latido { 0% { box-shadow: 0 0 0 0 rgba(47, 107, 246, .35); } 100% { box-shadow: 0 0 0 12px rgba(47, 107, 246, 0); } }
@keyframes rk-elige { 0%, 62% { box-shadow: none; } 68%, 94% { box-shadow: 0 0 0 2px var(--c); background: color-mix(in srgb, var(--c) 24%, var(--surface)); } 100% { box-shadow: none; } }
@keyframes rk-apaga { 0%, 62% { opacity: 1; } 68%, 94% { opacity: .4; } 100% { opacity: 1; } }

/* las otras tres tarjetas de arriba, también con movimiento (bucle de 6 s; quietas con «reducir movimiento») */
@media (prefers-reduced-motion: no-preference) {
  /* simulacro: la marca pasa de la A a la B y «Next» se ilumina */
  .hero__pie .mh--1 .rv__o:nth-of-type(4) i { animation: rv-a 6s ease-in-out infinite; }
  .hero__pie .mh--1 .rv__o i.is-on { animation: rv-b 6s ease-in-out infinite; }
  .hero__pie .mh--1 .rv__foot span { animation: rv-next 6s ease-in-out infinite; }
  /* práctica: se elige la A, se pone en verde y sale «Correcta» */
  .hero__pie .mh--2 .rp__o.is-ok { animation: rp-ok 6s ease-in-out infinite; }
  .hero__pie .mh--2 .rp__o.is-ok b { animation: rp-letra 6s ease-in-out infinite; }
  .hero__pie .mh--2 .rp__o.is-ok .icon { animation: rp-sale 6s ease-in-out infinite; }
  .hero__pie .mh--2 .rp__fb { animation: rp-fb 6s ease-in-out infinite; }
  /* por temas: M1, M2 y M3 se marcan uno tras otro */
  .hero__pie .mh--3 .rt__r { animation: rt-marca 6s ease-in-out infinite; border-radius: 6px; }
  .hero__pie .mh--3 .rt__r:nth-child(3) { animation-delay: 1.5s; }
  .hero__pie .mh--3 .rt__r:nth-child(4) { animation-delay: 3s; }
  .hero__pie .mh--3 .rt__r .icon { animation: rt-flecha 6s ease-in-out infinite; }
  .hero__pie .mh--3 .rt__r:nth-child(3) .icon { animation-delay: 1.5s; }
  .hero__pie .mh--3 .rt__r:nth-child(4) .icon { animation-delay: 3s; }
}
@keyframes rv-a { 0%, 30% { border: 3px solid #1f3a5f; } 36%, 100% { border: 1px solid #777; } }
@keyframes rv-b { 0%, 30% { border: 1px solid #777; } 36%, 100% { border: 3px solid #1f3a5f; } }
@keyframes rv-next { 0%, 50% { background: #1f3a5f; box-shadow: none; } 58%, 76% { background: #2c5384; box-shadow: 0 0 0 3px rgba(47, 107, 246, .3); } 84%, 100% { background: #1f3a5f; box-shadow: none; } }
@keyframes rp-ok { 0%, 22% { background: var(--surface); border-color: var(--line-strong); } 30%, 92% { background: var(--ok-bg); border-color: var(--ok); } 100% { background: var(--surface); border-color: var(--line-strong); } }
@keyframes rp-letra { 0%, 22% { background: var(--surface); border-color: var(--line-strong); color: var(--ink); } 30%, 92% { background: var(--ok); border-color: var(--ok); color: #fff; } 100% { background: var(--surface); border-color: var(--line-strong); color: var(--ink); } }
@keyframes rp-sale { 0%, 26% { opacity: 0; transform: scale(.4); } 34%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes rp-fb { 0%, 36% { opacity: 0; transform: translateY(6px); } 44%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes rt-marca { 0%, 4% { background: transparent; } 10%, 22% { background: var(--accent-soft); } 30%, 100% { background: transparent; } }
@keyframes rt-flecha { 0%, 4% { transform: none; color: var(--muted); } 10%, 22% { transform: translateX(4px); color: var(--accent); } 30%, 100% { transform: none; color: var(--muted); } }
.rt__ex { font-weight: 700; font-size: .75rem; color: var(--ink); padding-bottom: 4px; border-bottom: 1px solid var(--line); }
/* modelo A: el test en directo en una franja */
.franja-directo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding: clamp(20px, 3vw, 32px) clamp(22px, 3.5vw, 40px); border-radius: 24px; background: var(--surface); box-shadow: 0 1px 2px rgba(27, 34, 48, 0.04), 0 8px 24px -8px rgba(27, 34, 48, 0.10); }
.franja-directo h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem) !important; margin: 4px 0; }
.franja-directo p { color: var(--ink-2); font-size: 1.0625rem; }
#prueba .demo-side > .demo-root { margin-top: 0; }
/* caja de subir sin repeticiones (data-limpio): garantías en una línea bajo el botón */
.subir-garantias { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin: 0; color: var(--muted); font-size: .875rem; font-weight: 600; }
.subir-garantias span { display: inline-flex; align-items: center; gap: 5px; }
.subir-garantias .icon { width: 16px; height: 16px; color: var(--ok); }

/* ---------- demo «Pruébalo. Sin subir nada.» (js/demo.js · montarFlujo) ---------- */
.fl { max-width: 760px; margin-inline: auto; min-height: 380px; padding: clamp(18px, 3vw, 28px); border-radius: 24px; background: var(--surface); box-shadow: 0 1px 2px rgba(27, 34, 48, 0.04), 0 8px 24px -8px rgba(27, 34, 48, 0.10); }
.fl .demo-done { text-align: center; }
/* 1. el ratón suelta los apuntes */
.fl-subir { position: relative; display: grid; gap: 14px; min-height: 320px; align-content: center; }
.fl-drop { display: grid; place-items: center; gap: 4px; min-height: 180px; border: 1.5px dashed var(--line-strong); border-radius: 18px; text-align: center; transition: border-color .2s ease, background-color .2s ease; }
.fl-drop .icon { width: 28px; height: 28px; } .fl-drop small { color: var(--muted); }
.fl-drop.is-over { border-color: var(--accent); background: var(--accent-soft); }
.fl-doc { position: absolute; left: 2%; top: 4%; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: var(--surface); box-shadow: 0 10px 24px -8px rgba(27, 34, 48, .3); font-weight: 700; font-size: .9375rem; transition: left 1.3s cubic-bezier(.3,.7,.2,1), top 1.3s cubic-bezier(.3,.7,.2,1), opacity .3s ease, transform .3s ease; }
.fl-doc .icon { color: #e34a5c; }
.fl-doc.is-arrastra { left: calc(50% - 100px); top: 30%; transform: rotate(-3deg); }
.fl-doc.is-dentro { opacity: 0; transform: scale(.7); }
.fl-raton { position: absolute; left: calc(2% + 120px); top: calc(4% + 26px); transition: left 1.3s cubic-bezier(.3,.7,.2,1), top 1.3s cubic-bezier(.3,.7,.2,1), opacity .3s ease; }
.fl-raton.is-arrastra { left: calc(50% + 20px); top: calc(30% + 26px); }
.fl-raton.is-fuera { opacity: 0; }
.fl-carga { display: grid; gap: 8px; justify-items: center; color: var(--ink-2); font-weight: 600; }
.fl-carga__barra { width: min(320px, 100%); height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.fl-carga__barra i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: inherit; animation: fl-carga 2s ease forwards; }
@keyframes fl-carga { to { width: 100%; } }
/* 2. los 4 modos */
.fl-listo { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; color: var(--ink-2); }
.fl-listo .icon { color: var(--ok); width: 20px; height: 20px; }
.fl-modos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fl-modo { display: grid; gap: 4px; padding: 20px; border: 2px solid transparent; border-radius: 18px; font: inherit; text-align: left; cursor: pointer; animation: fl-entra .35s ease backwards; transition: transform .15s ease, border-color .15s ease; }
.fl-modo:nth-child(2) { animation-delay: .08s; } .fl-modo:nth-child(3) { animation-delay: .16s; } .fl-modo:nth-child(4) { animation-delay: .24s; }
.fl-modo b { font-size: 1.25rem; letter-spacing: -0.02em; } .fl-modo span { color: var(--ink-2); }
.fl-modo:hover { transform: translateY(-2px); border-color: currentColor; }
.fl-modo.mh--1 { background: var(--b-azul); color: var(--b-azul-i); } .fl-modo.mh--2 { background: var(--b-verde); color: var(--b-verde-i); }
.fl-modo.mh--3 { background: var(--b-lila); color: var(--b-lila-i); } .fl-modo.mh--4 { background: var(--b-naranja); color: var(--b-naranja-i); }
.fl-modo b { color: inherit; }
@keyframes fl-entra { from { opacity: 0; transform: translateY(8px); } }
.fl-volver { display: block; margin: 14px auto 0; }
/* 3a. simulacro: piel de examen oficial */
.fl-vue { overflow: hidden; border: 1px solid #c9ced6; border-radius: 6px; background: #fff; color: #111; font-family: Arial, Helvetica, sans-serif; }
.fl-vue__top { display: flex; justify-content: space-between; gap: 8px; padding: 10px 14px; background: #1f3a5f; color: #fff; font-size: .875rem; }
.fl-vue__top .num { font-family: ui-monospace, Menlo, monospace; }
.fl-vue__sub { padding: 8px 14px; border-bottom: 1px solid #d0d0d0; font-weight: 700; font-size: .875rem; }
.fl-vue__q { padding: 16px 14px 8px; }
.fl-vue__ops { display: grid; gap: 4px; padding: 0 14px 14px; }
.fl-op { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 4px; cursor: pointer; }
.fl-op:hover { background: #f2f4f8; }
.fl-op input { accent-color: #1f3a5f; } .fl-op__l { font-weight: 700; min-width: 1.2em; }
.fl-vue__pie { display: flex; justify-content: flex-end; padding: 10px 14px; background: #f5f5f5; border-top: 1px solid #d0d0d0; }
.fl-vue__btn { padding: 8px 18px; border: 0; border-radius: 2px; background: #1f3a5f; color: #fff; font: inherit; cursor: pointer; }
/* 3c. por temas */
.fl-temas { list-style: none; margin: 0; padding: 0; display: grid; }
.fl-tema { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; width: 100%; padding: 14px 6px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.fl-tema:hover { background: var(--surface-2); }
.fl-tema__ic { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line-strong); border-radius: 8px; font-family: var(--font-mono); font-size: .8125rem; font-weight: 600; }
.fl-tema b { display: block; } .fl-tema small { color: var(--muted); } .fl-tema .icon { color: var(--muted); }
/* 3d. test en directo: el móvil */
.fl-movil { max-width: 340px; margin-inline: auto; }
@media (max-width: 600px) { .fl-modos { grid-template-columns: 1fr; } .fl-doc.is-arrastra { left: 10%; } .fl-raton.is-arrastra { left: 55%; } }

/* móvil: «Crear mi examen» siempre a mano. Entra suave al dejar atrás la portada y se va al llegar al cierre (que ya tiene su botón) */
.barra-cta { display: none; }
@media (max-width: 819px) {
  .barra-cta { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 12px;
    min-height: 54px; padding: 0 20px; border-radius: 16px; background: var(--accent); color: var(--on-accent); text-decoration: none; box-shadow: 0 10px 28px -8px rgba(47, 107, 246, .6);
    transform: translateY(calc(100% + 24px)); opacity: 0; pointer-events: none; transition: transform .35s cubic-bezier(.2, .8, .2, 1), opacity .25s ease; }
  .barra-cta b { font-size: 1rem; font-weight: 800; }
  .barra-cta span { font-size: .8125rem; font-weight: 600; opacity: .85; }
  .barra-cta.is-on { transform: none; opacity: 1; pointer-events: auto; }
}
@media (prefers-reduced-motion: reduce) { .barra-cta { transition: opacity .2s ease; transform: none; } }
.subir-legal { margin: 10px 0 0; color: var(--muted); font-size: .75rem; text-align: center; }
/* enlaces pequeños: zona de toque de 44 px sin mover nada de sitio */
.testi__mas, .planes__comu, .faq__demo { position: relative; }
.testi__mas::after, .planes__comu::after, .faq__demo::after { content: ""; position: absolute; inset: -11px -8px; }
/* carrusel de opiniones en el móvil: la tarjeta siguiente asoma con un difuminado suave, no cortada en seco */
@media (max-width: 640px) {
  #opiniones .carrusel__pista { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6px, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(90deg, transparent 0, #000 6px, #000 calc(100% - 44px), transparent); }
}
/* web del alumno (prueba): dos planes y el aviso para profes */
.planes--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 720px; margin-inline: auto; }
@media (max-width: 760px) { .planes--2 { grid-template-columns: minmax(0, 1fr); max-width: 520px; gap: 16px; } }
.planes--2 .plan--pro { border-width: 1px; border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent), var(--shadow-1); }
.contacto__profe { margin-top: 18px; color: var(--muted); font-size: .9375rem; } .contacto__profe a { font-weight: 700; }
.planes--2 .plan__precio { gap: 4px; } .planes--2 .plan__precio span { font-size: 1rem; }
.plan__ancla { margin: -6px 0 4px; color: var(--muted); font-size: .875rem; font-weight: 600; }
/* ritmo vertical de la portada: el mismo aire entre todos los bloques (~136 px en ordenador, ~88 en el móvil) */
main > .section { padding-block: clamp(44px, 4.8vw, 68px); }
main > .hero.hero--centro { padding-bottom: clamp(44px, 4.8vw, 68px); }
main > .cierre { padding-block: clamp(48px, 5.4vw, 76px); }
main > #opiniones { padding-bottom: calc(clamp(44px, 4.8vw, 68px) + 28px); }   /* el carrusel baja 28 px dentro del hueco */
