/* =========================================================
   Formularios públicos de MiEspacio.fit: prueba de 14 días y demo/contacto.
   Cortos, sin selects del navegador (chips propios) y con validación propia.
   ========================================================= */
.fx { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: var(--bg); color: var(--text); }

/* Columna de la promesa */
.fx-pitch { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 34px; padding: 40px clamp(28px, 5vw, 72px); background: #0A0A0A; color: #fff; }
.fx-pitch::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("../assets/fotos/panel-alumno.jpg") center 30% / cover; opacity: .32; filter: saturate(.8); }
.fx-pitch::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 50% at 10% 100%, rgba(153,255,0,.22), transparent 70%), radial-gradient(60% 60% at 100% 0%, rgba(168,85,247,.35), transparent 65%), linear-gradient(180deg, rgba(10,10,10,.55), rgba(10,10,10,.92)); }
.fx-contacto .fx-pitch::before { background-image: url("../assets/fotos/panel-espacio.jpg"); }
.fx-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; }
.fx-brand .brand-iso { color: #99FF00; }
.fx-pitch-body { margin: auto 0; display: grid; gap: 22px; max-width: 560px; }
.fx-free { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: #0A0A0A; background: #99FF00; box-shadow: 0 0 0 6px rgba(153,255,0,.15), 0 10px 30px -10px rgba(153,255,0,.7); }
.fx-free svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.fx-pitch h1 { margin: 0; font-size: clamp(38px, 4.4vw, 60px); line-height: 1.02; font-weight: 800; letter-spacing: -.035em; }
.fx-pitch h1 em { font-style: normal; background: linear-gradient(90deg, #99FF00 0%, #C8FF4D 55%, #EEFFB3 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fx-pitch .fx-lead { margin: 0; font-size: 18px; line-height: 1.55; color: rgba(255,255,255,.78); }
.fx-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.fx-points li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: rgba(255,255,255,.9); }
.fx-points li span { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(153,255,0,.16); color: #99FF00; }
.fx-points svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.fx-points b { color: #fff; }
/* Vista previa de su dirección: se llena mientras escribe el nombre del Espacio */
.fx-url { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.fx-url i { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-style: normal; font-weight: 900; font-size: 13px; background: linear-gradient(135deg, #C9A2FF, #A855F7); }
.fx-url small { display: block; font-size: 12px; color: rgba(255,255,255,.6); }
.fx-url b { display: block; font-size: 16px; overflow-wrap: anywhere; }
.fx-url b span { color: #99FF00; }
.fx-pitch-foot { font-size: 13px; color: rgba(255,255,255,.5); }

/* Columna del formulario */
.fx-side { display: flex; align-items: center; justify-content: center; padding: 40px clamp(20px, 4vw, 56px); background: radial-gradient(70% 50% at 100% 0%, var(--glow-2), transparent 70%), var(--bg); }
.fx-card { width: min(480px, 100%); }
.fx-card h2 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.fx-card .fx-sub { margin: 6px 0 22px; font-size: 15px; color: var(--text-2); }
.fx-form { display: grid; gap: 16px; }
.fx-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.fx-f { display: grid; gap: 7px; font-size: 14px; font-weight: 600; color: var(--text); }
.fx-f small { font-weight: 400; color: var(--text-3); }
.fx-f input, .fx-f textarea { width: 100%; height: 50px; padding: 0 16px; border-radius: 14px; font: inherit; font-size: 16px; font-weight: 400; color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); transition: border-color .2s, box-shadow .2s; }
.fx-f textarea { height: 96px; padding: 12px 16px; resize: vertical; line-height: 1.45; }
.fx-f input:focus, .fx-f textarea:focus { outline: none; border-color: var(--accent-ink); box-shadow: 0 0 0 4px var(--accent-soft); }
.fx-f input:-webkit-autofill { -webkit-text-fill-color: var(--text); -webkit-box-shadow: 0 0 0 1000px var(--surface) inset; transition: background-color 99999s; }
.fx-f.is-err input, .fx-f.is-err textarea { border-color: #FF6B6B; }
.fx-err-msg { font-size: 12.5px; font-weight: 500; color: #FF6B6B; }
.fx-err-msg:empty { display: none; }
/* Opciones en chips (una sola elección) */
.fx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fx-chips button { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: border-color .2s, background-color .2s, color .2s, transform .2s; }
.fx-chips button:hover { color: var(--text); border-color: var(--text-3); transform: translateY(-1px); }
.fx-chips button[aria-checked="true"] { color: var(--on-accent); background: var(--accent); border-color: transparent; }
.fx-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fx-plans button { display: grid; gap: 2px; padding: 12px 10px; border-radius: 14px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.fx-plans button b { font-size: 14px; }
.fx-plans button small { font-size: 12px; color: var(--text-3); }
.fx-plans button[aria-checked="true"] { border-color: var(--accent-ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.fx-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; color: var(--text-2); cursor: pointer; }
.fx-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.fx-box { flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 6px; border: 1.5px solid var(--border-strong); background: var(--surface); display: grid; place-items: center; transition: background-color .2s, border-color .2s; }
.fx-check input:checked + .fx-box { background: var(--accent); border-color: var(--accent); }
.fx-check input:checked + .fx-box::after { content: ""; width: 10px; height: 6px; border: 2.5px solid #0A0A0A; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.fx-check input:focus-visible + .fx-box { box-shadow: 0 0 0 3px var(--accent-soft); }
.fx-check.is-err .fx-box { border-color: #FF6B6B; }
.fx-check a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.fx-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fx-submit { margin-top: 4px; }
.fx-assure { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin: 2px 0 0; font-size: 13px; color: var(--text-3); }
.fx-assure span { display: inline-flex; align-items: center; gap: 6px; }
.fx-assure svg { width: 14px; height: 14px; fill: none; stroke: var(--accent-ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.fx-alt { margin-top: 18px; text-align: center; font-size: 14px; color: var(--text-3); }
.fx-alt a { color: var(--text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Confirmación */
.fx-done { display: grid; gap: 16px; text-align: center; justify-items: center; animation: fadeUp .4s var(--ease); }
.fx-done[hidden] { display: none; }
.fx-done .fx-ok { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #0A0A0A; box-shadow: 0 0 0 10px var(--accent-soft); }
.fx-done .fx-ok svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.fx-done h2 { margin: 6px 0 0; }
.fx-done p { margin: 0; color: var(--text-2); font-size: 15.5px; line-height: 1.55; }
.fx-steps { width: 100%; list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 8px; text-align: left; counter-reset: s; }
.fx-steps li { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); font-size: 14.5px; }
.fx-steps li::before { counter-increment: s; content: counter(s); flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--purple-soft); color: var(--purple); }

@media (max-width: 900px) {
  .fx { grid-template-columns: minmax(0, 1fr); }
  .fx-pitch { gap: 22px; padding: 22px 18px 28px; }
  .fx-pitch-body { gap: 16px; }
  .fx-pitch h1 { font-size: 34px; }
  .fx-pitch .fx-lead { font-size: 16px; }
  .fx-points { gap: 9px; }
  .fx-points li { font-size: 15px; }
  .fx-points li.fx-more { display: none; }
  .fx-pitch-foot, .fx-url { display: none; }
  .fx-side { padding: 26px 18px 40px; align-items: flex-start; }
  .fx-card h2 { font-size: 24px; }
}
@media (max-width: 420px) {
  .fx-row { grid-template-columns: minmax(0, 1fr); }
  .fx-plans { grid-template-columns: minmax(0, 1fr); }
  .fx-plans button { grid-template-columns: auto 1fr; align-items: baseline; gap: 8px; }
}

/* Prueba especial (enlace de la consola interna) */
.fx-inv { display: grid; gap: 2px; margin-bottom: 18px; padding: 12px 14px; border-radius: 14px; font-size: 14px; }
.fx-inv[hidden] { display: none; }
.fx-inv.ok { background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); }
.fx-inv.ok b { color: var(--accent-ink); }
.fx-inv.bad { background: rgba(255,170,0,.1); border: 1px solid rgba(255,170,0,.35); }
.fx-inv.bad b { color: #E89B00; }
.fx-inv span { color: var(--text-2); }

/* =========================================================
   v3 · Prueba de 14 días más moderna (2026-10-12)
   ========================================================= */
/* Escritorio: la promesa queda fija; solo se desplaza el formulario */
@media (min-width: 901px) {
  .fx { align-items: start; }
  .fx-pitch { position: sticky; top: 0; height: 100vh; height: 100dvh; }
  .fx-side { min-height: 100vh; min-height: 100dvh; align-items: flex-start; padding-top: clamp(40px, 7vh, 88px); padding-bottom: 64px; }
}
/* Tarjeta del formulario con vidrio suave */
.fx-prueba .fx-card { width: min(520px, 100%); padding: clamp(22px, 3vw, 34px); border-radius: 28px; background: color-mix(in srgb, var(--surface) 72%, transparent); border: 1px solid var(--border); box-shadow: 0 40px 90px -50px rgba(0,0,0,.65), inset 0 1px 0 rgba(255,255,255,.05); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.fx-prueba .fx-card h2 { font-size: clamp(26px, 3vw, 32px); letter-spacing: -.03em; }
.fx-prueba .fx-sub { margin-bottom: 18px; }
.fx-prueba .fx-form { gap: 14px; }
/* Pasos numerados */
.fx-sec { display: grid; gap: 12px; padding: 16px; border-radius: 20px; background: color-mix(in srgb, var(--bg) 55%, transparent); border: 1px solid var(--border); }
.fx-sec-t { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--text-2); }
.fx-sec-t i { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font-style: normal; font-size: 12.5px; background: var(--accent); color: var(--on-accent, #0A0A0A); }
.fx-sec-t small { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--text-3); }
/* Campos con ícono */
.fx-in { position: relative; display: block; }
.fx-in svg { position: absolute; left: 15px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: var(--text-3); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; transition: stroke .2s; }
.fx-prueba .fx-f input { padding-left: 44px; height: 52px; border-radius: 14px; background: var(--surface); }
.fx-in:focus-within svg { stroke: var(--accent-ink); }
.fx-f.is-err .fx-in svg { stroke: #FF6B6B; }
/* Planes: tarjeta con radio y precio */
.fx-prueba .fx-plans { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.fx-prueba .fx-plans button { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: var(--surface); }
.fx-prueba .fx-plans button span { display: grid; gap: 1px; min-width: 0; }
.fx-prueba .fx-plans button em { font-style: normal; font-weight: 800; font-size: 16px; white-space: nowrap; }
.fx-prueba .fx-plans button em small { font-weight: 500; font-size: 12px; color: var(--text-3); }
.fx-radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border-strong); transition: border .2s; }
.fx-prueba .fx-plans button[aria-checked="true"] { background: color-mix(in srgb, var(--accent) 9%, var(--surface)); }
.fx-prueba .fx-plans button[aria-checked="true"] .fx-radio { border: 6px solid var(--accent); }
.fx-prueba .fx-submit { height: 56px; font-size: 17px; margin-top: 6px; }
/* Enlaces finales: dos tarjetas en lugar de un renglón que se parte */
div.fx-alt { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
div.fx-alt a { position: relative; display: grid; gap: 2px; padding: 12px 38px 12px 14px; border-radius: 16px; border: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 60%, transparent); text-decoration: none; color: var(--text); text-align: left; transition: border-color .2s, transform .2s; }
div.fx-alt a:hover { border-color: var(--accent-ink); transform: translateY(-1px); }
div.fx-alt small { font-size: 12.5px; color: var(--text-3); }
div.fx-alt b { font-size: 14.5px; }
div.fx-alt svg { position: absolute; right: 14px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); fill: none; stroke: var(--accent-ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.fx-url-ic { flex: none; width: 20px; height: 20px; margin-left: auto; fill: none; stroke: rgba(255,255,255,.55); stroke-width: 1.8; }
.fx-url > div { min-width: 0; }

/* Celular: encabezado sin corte y dirección anclada abajo */
@media (max-width: 900px) {
  .fx-prueba { background: radial-gradient(120% 50% at 0% 0%, rgba(168,85,247,.28), transparent 60%), radial-gradient(90% 40% at 100% 18%, rgba(153,255,0,.12), transparent 60%), var(--bg); padding-bottom: 96px; }
  .fx-prueba .fx-pitch { background: transparent; padding-top: max(18px, env(safe-area-inset-top)); padding-bottom: 6px; }
  .fx-prueba .fx-pitch::before { -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 100%); mask-image: linear-gradient(180deg, #000 30%, transparent 100%); opacity: .38; }
  .fx-prueba .fx-pitch::after { background: radial-gradient(60% 50% at 100% 0%, rgba(168,85,247,.3), transparent 65%), linear-gradient(180deg, rgba(10,10,10,.4), transparent 85%); }
  .fx-prueba .fx-side { background: transparent; padding: 10px 14px 28px; }
  .fx-prueba .fx-card { padding: 18px 14px; border-radius: 24px; }
  .fx-sec { padding: 14px 12px; border-radius: 18px; }
  .fx-prueba .fx-url { display: flex; position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 40; padding: 10px 14px; background: rgba(18,18,20,.82); border-color: rgba(255,255,255,.16); box-shadow: 0 18px 40px -12px rgba(0,0,0,.7); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
  .fx-prueba .fx-url b { font-size: 15px; }
  .fx-prueba .fx-url i { width: 34px; height: 34px; }
}
@media (max-width: 420px) {
  div.fx-alt { grid-template-columns: minmax(0, 1fr); }
  .fx-prueba .fx-plans button { padding: 12px; gap: 10px; }
  .fx-prueba .fx-plans button { grid-template-columns: auto minmax(0, 1fr) auto; }
}
/* Tema claro: la dirección anclada sigue legible */
:root[data-theme="light"] .fx-prueba .fx-url { color: #fff; }
@media (max-width: 900px) {
  .fx-prueba .fx-pitch { z-index: 5; }   /* la dirección anclada queda por encima del formulario */
}
@media (max-width: 480px) { .fx-prueba .fx-row { grid-template-columns: minmax(0, 1fr); } }
/* Estas páginas no tienen el menú de la landing: sin el espacio de 76 px que deja <main> */
main.fx { padding-top: 0; }
