/* ==========================================================================
   Dalexidol · "Un orgullo que nos une" — registro público (Experience Lab)
   Traslado fiel de Claude Design `Registro Dalexidol v3` + `Formulario Registro`.
   Dos composiciones: escritorio (>= 760 px) y móvil (< 760 px), igual que el
   prototipo. La geometría que en el prototipo depende del tamaño de la ventana
   (marco, ventana del formulario, recortes del marco en móvil) la calcula
   js/dalexidol-registro.js; aquí viven estilos, proporciones y movimiento.
   ========================================================================== */

:root {
  --navy-900: #0b0e26;
  --navy-850: #0e1235;
  --navy-800: #141a4a;
  --navy-700: #1b2260;
  --navy-600: #222c78;
  --ink: #1b1838;
  --amarillo: #ffd23a;
  --magenta: #e6007e;
  --magenta-h: #f2088a;
  --magenta-d: #c4006a;
  --rosa: #ff4fa3;
  --rosa-claro: #ff5aa8;
  --error: #ff9fbe;
  --error-borde: #ff6b9a;
  --ok: #3fd68a;
  --crema: #fff8ec;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease-mov: cubic-bezier(.65, 0, .25, 1);
  --ease-sal: cubic-bezier(.2, .7, .2, 1);
  --ease-pop: cubic-bezier(.2, .8, .2, 1);
  --ease-cam: cubic-bezier(.7, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--navy-900); }
html { -webkit-text-size-adjust: 100%; }
body { overflow: hidden; }
img { max-width: none; }
button { font: inherit; }
button:disabled, input:disabled { cursor: default; }
a { color: var(--amarillo); }
a:hover { color: var(--rosa); }
[hidden] { display: none !important; }

.dx-noscript {
  position: fixed; inset: auto 16px 16px; z-index: 100; margin: 0; padding: 14px 18px;
  border-radius: 14px; background: var(--crema); color: var(--ink); font: 600 15px/1.4 var(--sans); text-align: center;
}

/* ---------------------------------------------------------------- Keyframes */
@keyframes fallA { 0% { top: -8%; transform: translateX(0) } 25% { transform: translateX(28px) } 50% { transform: translateX(-8px) } 75% { transform: translateX(22px) } 100% { top: 108%; transform: translateX(-4px) } }
@keyframes fallB { 0% { top: -8%; transform: translateX(0) } 30% { transform: translateX(-30px) } 60% { transform: translateX(6px) } 85% { transform: translateX(-18px) } 100% { top: 108%; transform: translateX(10px) } }
@keyframes fallC { 0% { top: -8%; transform: translateX(0) } 20% { transform: translateX(14px) } 45% { transform: translateX(44px) } 70% { transform: translateX(18px) } 100% { top: 108%; transform: translateX(52px) } }
@keyframes flutter { 0% { transform: rotate3d(1, .4, 0, 0deg) rotate(0deg) } 100% { transform: rotate3d(1, .4, 0, 72deg) rotate(170deg) } }
@keyframes floaty { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-10px) } }
@keyframes rise { from { opacity: 0; transform: translateY(20px) } to { opacity: 1; transform: none } }
@keyframes pop { 0% { opacity: 0; transform: translateY(-26px) scale(.92) } 60% { opacity: 1; transform: translateY(4px) scale(1.02) } 100% { opacity: 1; transform: none } }
@keyframes popin { from { opacity: 0; transform: translateY(-6px) scale(.98) } to { opacity: 1; transform: none } }
@keyframes sheetin { from { transform: translateY(100%) } to { transform: none } }
@keyframes fadein { from { opacity: 0 } to { opacity: 1 } }
@keyframes spin { to { transform: rotate(360deg) } }
@keyframes kenburns { from { transform: scale(1.1) } to { transform: scale(1) } }
@keyframes frameDown { from { opacity: 0; transform: translateY(-40px) } to { opacity: 1; transform: none } }
@keyframes frameUp { from { opacity: 0; transform: translateY(40px) } to { opacity: 1; transform: none } }
@keyframes glowpulse { 0%, 100% { opacity: .8 } 50% { opacity: 1 } }

/* --------------------------------------------------------------------- Raíz */
.dx-root {
  position: relative; width: 100%; height: 100vh; height: 100dvh; overflow: hidden; overflow: clip;
  background: var(--navy-900); font-family: var(--sans); color: var(--ink);
}
.dx-d, .dx-m { display: none; }
@media (min-width: 760px) {
  .dx-root { min-height: 560px; }
  .dx-d { display: block; position: absolute; inset: 0; }
}
@media (max-width: 759.98px) {
  .dx-m { display: block; position: absolute; inset: 0; overflow: hidden; overflow: clip; background: var(--navy-850); }
}

/* Pétalos (capas generadas por JS) */
.dx-petalos { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.dx-petalo { position: absolute; top: -8%; pointer-events: none; will-change: top, transform; }
.dx-petalo > i { display: block; border-radius: 80% 0 80% 0; will-change: transform; }
.dx-petalos--cerca { z-index: 3; transition: opacity .8s; }
.dx-root[data-paso="1"] .dx-petalos--cerca { opacity: .35; }

/* Lluvia de confirmación */
.dx-lluvia { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 7; }
.dx-lluvia > .dx-petalo > i { border-radius: var(--r); }

/* Textos compartidos */
.dx-kicker { margin: 0; font-family: var(--serif); font-style: italic; font-size: 26px; line-height: 1; color: var(--amarillo); font-weight: 400; }
.dx-bala { flex: none; width: 7px; height: 7px; margin-top: 7px; background: var(--rosa); transform: rotate(45deg); }
.dx-bala--s { width: 6px; height: 6px; }

/* Botón principal (CTA) */
.dx-cta {
  display: flex; align-items: center; gap: 12px; border: none; border-radius: 999px; background: var(--magenta); color: #fff;
  font-family: var(--sans); font-weight: 700; letter-spacing: .02em; cursor: pointer;
  box-shadow: 0 16px 34px -10px rgba(230, 0, 126, .85), inset 0 1px 0 rgba(255, 255, 255, .3);
  transition: transform .25s ease, box-shadow .25s ease, background .25s;
}
.dx-cta:hover { transform: translateY(-3px); background: var(--magenta-h); box-shadow: 0 22px 44px -10px rgba(230, 0, 126, 1), inset 0 1px 0 rgba(255, 255, 255, .3); }
.dx-cta:active { transform: scale(.98); }
.dx-cta:focus-visible, .dx-btn-sec:focus-visible, .dx-enviar:focus-visible { outline: 3px solid var(--amarillo); outline-offset: 3px; }
.dx-cta__dot { border-radius: 50%; background: var(--amarillo); color: var(--ink); display: flex; align-items: center; justify-content: center; font-size: 17px; }

.dx-btn-sec {
  height: 50px; padding: 0 24px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .04);
  color: #fff; font-family: var(--sans); font-size: 15px; font-weight: 600; cursor: pointer; transition: background .25s, border-color .25s;
}
.dx-btn-sec:hover { background: rgba(255, 255, 255, .12); border-color: var(--amarillo); }

/* ===================================================================== ESCRITORIO */
.dx-d__bg { position: absolute; inset: 0; background: radial-gradient(ellipse 60% 85% at 50% 50%, var(--navy-600) 0%, #141a4a 48%, var(--navy-900) 100%); }
.dx-d__glow {
  position: absolute; left: 50%; top: 52%; width: var(--glow, 1500px); height: var(--glow, 1500px); transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(circle, rgba(255, 20, 130, .30) 0%, rgba(255, 210, 58, .07) 40%, rgba(0, 0, 0, 0) 66%);
  animation: glowpulse 7s ease-in-out infinite;
}

.dx-d__chrome { position: absolute; top: 34px; left: 5vw; z-index: 6; display: flex; flex-direction: column; gap: 26px; transition: opacity .6s; }
.dx-d__chrome .dx-kicker { animation: rise .8s ease .2s both; }
.dx-root[data-paso="1"] .dx-d__chrome { opacity: 0; pointer-events: none; }
.dx-pasos { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; animation: rise .8s ease .35s both; }
.dx-root.sin-pasos .dx-pasos { display: none; }
.dx-root.sin-chrome .dx-d__chrome { visibility: hidden; }
.dx-pasos__i { display: flex; align-items: center; gap: 12px; color: rgba(255, 255, 255, .55); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; transition: color .5s; }
.dx-pasos__i.es-actual { color: var(--amarillo); }
.dx-pasos__n { font-family: var(--serif); font-size: 22px; letter-spacing: 0; font-weight: 400; width: 26px; }

/* Marco ilustrado (posición, tamaño y transform por JS) */
.dx-marco { position: absolute; z-index: 2; transform-origin: 50.25% 57.65%; left: 0; top: 0; width: 0; height: 0; }
.dx-marco__in { position: absolute; inset: 0; animation: rise 1.2s var(--ease-sal) .1s both; }
.dx-marco__flota { position: absolute; inset: 0; animation: floaty 9s ease-in-out infinite; }
.dx-root.sin-flotar .dx-marco__flota, .dx-root.sin-flotar .dx-ok-m__flota { animation-play-state: paused; }
.dx-marco__sombra { position: absolute; inset: 0; border-radius: 8px; box-shadow: 0 60px 110px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .04); }
.dx-marco__ventana { position: absolute; left: 16.5%; top: 23%; width: 67.5%; height: 69%; overflow: hidden; overflow: clip; background: var(--navy-800); }
.dx-marco__ilus { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; display: block; transform: scale(1.07); }
.dx-marco__cielo { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 18, 52, .96) 0%, rgba(14, 18, 52, .86) 40%, rgba(14, 18, 52, 0) 66%); transition: opacity .9s ease; }
.dx-marco__atenua { position: absolute; inset: 0; opacity: 0; background: linear-gradient(180deg, rgba(14, 18, 52, .95) 0%, rgba(14, 18, 52, .9) 58%, rgba(14, 18, 52, .72) 100%); transition: opacity .9s ease; }
.dx-root[data-paso="1"] .dx-marco__cielo { opacity: 0; }
.dx-root[data-paso="1"] .dx-marco__atenua { opacity: 1; }
.dx-marco__marco { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.dx-marco__t1 { position: absolute; left: 21%; top: 9%; width: 58%; height: auto; animation: pop 1.1s var(--ease-pop) .55s both; }
.dx-marco__t2 { position: absolute; left: 24.5%; top: 18.1%; width: 51%; height: auto; animation: pop 1.1s var(--ease-pop) .75s both; }
.dx-marco__silanes { position: absolute; left: 41%; top: 92.6%; width: 18%; height: auto; animation: rise .9s ease 1s both; }

/* Bienvenida dentro del marco (medidas proporcionales al ancho del marco --fw) */
.dx-hero {
  position: absolute; left: 17.6%; top: 24.4%; width: 65.3%; height: 44%;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: calc(var(--fh) * .045) 6% 0; gap: calc(var(--fh) * .02);
  transition: opacity .5s ease, transform .8s var(--ease-cam);
}
.dx-root:not([data-paso="0"]) .dx-hero { opacity: 0; transform: translateY(-24px); pointer-events: none; }
.dx-hero__dal { height: calc(var(--fw) * .15); width: auto; display: block; animation: rise 1s var(--ease-sal) 1.05s both; }
.dx-hero__datos { display: flex; flex-direction: column; align-items: center; gap: 8px; animation: rise 1s ease 1.2s both; }
.dx-hero__fh { display: flex; align-items: flex-end; gap: 28px; color: #fff; }
.dx-dato { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.dx-dato__k { font-size: 10px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--amarillo); }
.dx-dato__v { font-family: var(--serif); font-size: max(16px, calc(var(--fw) * .042)); line-height: 1; white-space: nowrap; }
.dx-hero__lugar { font-size: max(13px, calc(var(--fw) * .027)); font-weight: 600; color: rgba(255, 255, 255, .9); text-wrap: balance; }
.dx-hero .dx-cta-w { animation: rise 1s var(--ease-sal) 1.35s both; }
.dx-hero .dx-cta { height: max(46px, calc(var(--fw) * .092)); padding: 0 9px 0 26px; font-size: max(15px, calc(var(--fw) * .029)); }
.dx-hero .dx-cta__dot { width: max(32px, calc(var(--fw) * .064)); height: max(32px, calc(var(--fw) * .064)); }

/* Confirmación dentro del marco */
.dx-ok-d {
  position: absolute; left: 17.6%; top: 24.4%; width: 65.3%;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: calc(var(--fh) * .045) 12% 0; gap: 12px;
}
.dx-ok__k { margin: 0; color: var(--amarillo); font-size: 11px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; animation: rise .8s ease .8s both; }
.dx-ok__h { margin: 0; font-family: var(--serif); font-weight: 400; color: #fff; font-size: calc(var(--fw) * .064); line-height: 1.02; animation: rise .9s var(--ease-sal) .95s both; }
.dx-ok__p { margin: 0; color: rgba(255, 255, 255, .9); font-size: max(13px, calc(var(--fw) * .027)); line-height: 1.5; text-wrap: pretty; animation: rise .9s ease 1.1s both; }

/* Detalles del evento (columna derecha) */
.dx-detalles { position: absolute; right: 5vw; top: 50%; transform: translateY(-50%); z-index: 5; color: #fff; transition: opacity .6s ease; width: var(--det-w, 320px); }
.dx-root.sin-detalles .dx-detalles { display: none; }
.dx-root[data-paso="1"] .dx-detalles { opacity: 0; pointer-events: none; }
.dx-detalles__in { display: flex; flex-direction: column; gap: var(--det-gap, 22px); animation: rise 1s var(--ease-sal) 1.5s both; }
.dx-detalles__g { display: flex; flex-direction: column; gap: 7px; }
.dx-detalles__k { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .62); }
.dx-detalles__v { font-family: var(--serif); font-size: var(--det-fs, 28px); line-height: 1.05; }
.dx-detalles__dir { font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .76); text-wrap: pretty; }
.dx-indic {
  position: relative; margin-top: 6px; border: 1px solid rgba(255, 210, 58, .5); border-radius: 18px; padding: 22px 20px 18px;
  display: flex; flex-direction: column; gap: 12px; background: linear-gradient(180deg, rgba(255, 210, 58, .08), rgba(230, 0, 126, .07));
}
.dx-indic__rombo { position: absolute; top: -7px; left: 50%; width: 12px; height: 12px; margin-left: -6px; background: var(--amarillo); transform: rotate(45deg); box-shadow: 0 0 0 4px #161c4f; }
.dx-indic__i { margin: 0; display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.45; font-weight: 600; }

/* Ventana del formulario (posición por JS) */
.dx-ventana { position: absolute; z-index: 4; opacity: 0; pointer-events: none; transform: translateZ(0); transition: opacity .35s ease; }
.dx-root[data-paso="1"] .dx-ventana { opacity: 1; pointer-events: auto; transition: opacity .6s ease .75s; }

.dx-d__volver { position: absolute; left: 5vw; bottom: 40px; z-index: 6; opacity: 0; pointer-events: none; transition: opacity .8s ease 1.3s; }
.dx-root[data-paso="2"] .dx-d__volver { opacity: 1; pointer-events: auto; }
.dx-root:not([data-paso="2"]) .dx-d__volver { transition: opacity .3s ease; }

/* ========================================================================= MÓVIL */
.dx-m__escena { position: absolute; inset: 0; transition: transform 1s var(--ease-cam), opacity 1s ease, filter 1s ease; }
.dx-root[data-paso="1"] .dx-m__escena { transform: scale(1.08) translateY(-6%); }
.dx-root[data-paso="2"] .dx-m__escena { opacity: .35; filter: blur(6px); }
.dx-m__ventana { position: absolute; overflow: hidden; background: var(--navy-800); }
.dx-m__ilus { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; display: block; transform-origin: 50% 35%; animation: kenburns 14s ease-out both; }
.dx-m__velo { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 15, 42, .95) 0%, rgba(12, 15, 42, .8) 30%, rgba(12, 15, 42, 0) 52%), linear-gradient(0deg, rgba(12, 15, 42, .92) 0%, rgba(12, 15, 42, 0) 26%); }
.dx-m__marco { position: absolute; left: 0; right: 0; pointer-events: none; background-image: url(../img/dalexidol/marco-1100.webp); background-repeat: no-repeat; }
.dx-m__marco--top { top: 0; -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent); mask-image: linear-gradient(180deg, #000 80%, transparent); animation: frameDown 1.2s var(--ease-pop) both; }
.dx-m__marco--mid { -webkit-mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent); mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent); animation: fadein 1.4s ease .2s both; }
.dx-m__marco--bot { bottom: 0; -webkit-mask-image: linear-gradient(0deg, #000 78%, transparent); mask-image: linear-gradient(0deg, #000 78%, transparent); animation: frameUp 1.2s var(--ease-pop) both; }
.dx-m__silanes { position: absolute; display: block; height: auto; animation: rise .9s ease 1s both; }
.dx-m .dx-petalos { z-index: 2; }

.dx-m__titulo {
  position: absolute; left: 0; right: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; pointer-events: none;
  transition: transform .9s var(--ease-cam), opacity .6s ease;
}
.dx-m__t1, .dx-m__t2 { display: block; height: auto; }
.dx-m__t1 { animation: pop 1.1s var(--ease-pop) .35s both; }
.dx-m__t2 { animation: pop 1.1s var(--ease-pop) .55s both; }

.dx-m__hero {
  position: absolute; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: var(--m-pad-t, 18px) 18px 18px; transition: opacity .6s ease;
}
.dx-m__hero-in { display: flex; flex-direction: column; align-items: center; gap: var(--m-gap, 13px); text-align: center; transition: transform .9s var(--ease-cam); }
.dx-kicker--m { font-size: 19px; animation: rise .8s ease .7s both; }
.dx-m__dal { height: var(--m-dal, 54px); width: auto; display: block; animation: rise .9s ease .8s both; }
.dx-hero__datos--m { gap: 7px; animation: rise .9s ease .95s both; }
.dx-hero__datos--m .dx-hero__fh { gap: 24px; }
.dx-hero__datos--m .dx-dato { gap: 3px; }
.dx-hero__datos--m .dx-dato__k { font-size: 9.5px; }
.dx-hero__datos--m .dx-dato__v { font-size: var(--m-ev, 22px); }
.dx-hero__datos--m .dx-hero__lugar { font-size: 13px; letter-spacing: .01em; text-wrap: wrap; }
.dx-m__cta { width: 100%; transition: transform .7s var(--ease-cam); }
.dx-m__cta > .dx-cta-w { animation: rise .9s ease 1.1s both; }
.dx-cta--m { width: 100%; height: var(--m-cta, 56px); justify-content: center; font-size: 17px; box-shadow: 0 16px 36px -10px rgba(230, 0, 126, .85), inset 0 1px 0 rgba(255, 255, 255, .3); }
.dx-cta--m:hover { transform: none; }
.dx-cta--m:active { transform: scale(.98); }
.dx-cta--m .dx-cta__dot { width: 30px; height: 30px; font-size: 16px; }

.dx-root:not([data-paso="0"]) .dx-m__titulo,
.dx-root:not([data-paso="0"]) .dx-m__hero-in { transform: translateY(-40px); }
.dx-root:not([data-paso="0"]) .dx-m__titulo,
.dx-root:not([data-paso="0"]) .dx-m__hero { opacity: 0; pointer-events: none; }
.dx-root:not([data-paso="0"]) .dx-m__cta { transform: translateY(40px); }

.dx-hoja {
  position: absolute; left: 0; right: 0; bottom: 0; height: calc(100% - 58px); z-index: 4;
  transform: translateY(105%); transition: transform .85s var(--ease-cam);
  background: rgba(13, 16, 46, .84); -webkit-backdrop-filter: blur(22px) saturate(140%); backdrop-filter: blur(22px) saturate(140%);
  border-radius: 28px 28px 0 0; border-top: 1px solid rgba(255, 255, 255, .14);
  display: flex; flex-direction: column; overflow: hidden; overflow: clip; box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, .6);
}
.dx-root[data-paso="1"] .dx-hoja { transform: none; }
.dx-hoja__franja { height: 4px; flex: none; background: linear-gradient(90deg, var(--amarillo) 0%, var(--amarillo) 50%, var(--magenta) 50%, var(--magenta) 75%, #0f8a48 75%); }
.dx-hoja__asa { width: 40px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .25); align-self: center; margin-top: 10px; flex: none; }
.dx-hoja__host { position: relative; flex: 1; min-height: 0; width: 100%; }

.dx-ok-m { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 24px 24px 28px; z-index: 5; }
.dx-ok-m__marco { position: relative; flex: none; width: var(--mfw, 280px); height: calc(var(--mfw, 280px) / .707); animation: pop 1.1s var(--ease-pop) .15s both; }
.dx-ok-m__flota { position: absolute; inset: 0; animation: floaty 7s ease-in-out infinite; }
.dx-ok-m__sombra { position: absolute; inset: 0; border-radius: 6px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8); }
.dx-ok-m__ventana { position: absolute; left: 16.5%; top: 23%; width: 67.5%; height: 69%; overflow: hidden; background: var(--navy-800); }
.dx-ok-m__ventana img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; display: block; }
.dx-ok-m__img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.dx-ok-m__t1 { position: absolute; left: 21%; top: 9%; width: 58%; height: auto; animation: pop 1s var(--ease-pop) .7s both; }
.dx-ok-m__t2 { position: absolute; left: 24.5%; top: 18.1%; width: 51%; height: auto; animation: pop 1s var(--ease-pop) .9s both; }
.dx-ok-m__silanes { position: absolute; left: 41%; top: 92.6%; width: 18%; height: auto; animation: rise .8s ease 1.1s both; }
.dx-ok-m__txt { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.dx-ok-m .dx-ok__k { font-size: 10.5px; animation-delay: 1s; }
.dx-ok-m .dx-ok__h { font-size: 34px; animation-delay: 1.15s; }
.dx-ok-m .dx-ok__p { font-size: 15px; color: rgba(255, 255, 255, .86); max-width: 310px; animation-delay: 1.3s; }
.dx-btn-sec--m { padding: 0 26px; background: rgba(255, 255, 255, .05); animation: rise .9s ease 1.5s both; }

/* ==================================================================== FORMULARIO */
.dx-form {
  --padX: 30px; --padT: 40px; --padB: 30px; --bodyPadT: 22px; --gap: 10px; --inputH: 52px; --btnH: 58px; --h1: 42px;
  position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; margin: 0;
  color: #fff; font-family: var(--sans);
}
.dx-form.es-m { --padX: 22px; --padT: 8px; --padB: 24px; --bodyPadT: 18px; --gap: 10px; --inputH: 56px; --btnH: 58px; --h1: 30px; }
.dx-form input::placeholder { color: rgba(255, 255, 255, .42); }
.dx-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.dx-form__cab { flex: none; padding: var(--padT) var(--padX) 0; display: flex; flex-direction: column; gap: 12px; animation: rise .7s var(--ease-sal) both; }
.dx-form__cab-fila { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dx-form__titulo { display: flex; align-items: center; gap: 12px; }
.dx-form__th { display: flex; flex-direction: column; gap: 6px; }
.dx-form__paso { color: var(--amarillo); font-size: 11px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; }
.dx-form__h { margin: 0; font-family: var(--serif); font-weight: 400; font-size: var(--h1); line-height: 1; color: #fff; }
.dx-form__h em { font-style: italic; color: var(--rosa-claro); }
.dx-form__atras-m {
  display: none; width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .06); color: #fff; font-size: 18px; cursor: pointer; align-items: center; justify-content: center;
}
.dx-form.es-m .dx-form__atras-m { display: flex; }
.dx-form__atras-d { align-self: flex-start; border: none; background: none; color: rgba(255, 255, 255, .7); font-family: var(--sans); font-size: 14px; font-weight: 600; cursor: pointer; padding: 4px 0; transition: color .2s; }
.dx-form__atras-d:hover { color: var(--amarillo); }
.dx-form.es-m .dx-form__atras-d { display: none; }
.dx-form__progreso { display: flex; align-items: center; gap: 12px; }
.dx-form__barra { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.dx-form__barra-v { height: 100%; width: 0; background: linear-gradient(90deg, var(--amarillo), var(--rosa)); border-radius: 3px; transition: width .5s var(--ease-sal); }
.dx-form__cuenta { font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .72); min-width: 40px; text-align: right; }

.dx-form__cuerpo {
  flex: 1; min-height: 0; overflow: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  padding: var(--bodyPadT) var(--padX) 8px; display: flex; flex-direction: column; gap: var(--gap); transition: opacity .3s;
}
.dx-form.esta-enviando .dx-form__cuerpo { opacity: .55; }

.dx-tarjeta {
  flex: none; display: none; flex-direction: column; gap: 12px; padding: 16px; margin-bottom: 10px; border-radius: 18px;
  border: 1px solid rgba(255, 210, 58, .38); background: linear-gradient(180deg, rgba(255, 210, 58, .08), rgba(230, 0, 126, .06));
  animation: rise .7s var(--ease-sal) both;
}
.dx-form.con-detalles .dx-tarjeta { display: flex; }
.dx-tarjeta__fh { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.dx-tarjeta__f, .dx-tarjeta__h { font-family: var(--serif); font-size: 23px; line-height: 1; color: #fff; }
.dx-tarjeta__h { color: var(--amarillo); }
.dx-tarjeta__lugar { display: flex; flex-direction: column; gap: 4px; }
.dx-tarjeta__l { font-size: 14.5px; font-weight: 700; color: #fff; }
.dx-tarjeta__dir { font-size: 13px; line-height: 1.45; color: rgba(255, 255, 255, .74); text-wrap: pretty; }
.dx-tarjeta__acceso { align-self: flex-start; display: flex; align-items: center; height: 30px; padding: 0 13px; border-radius: 999px; background: var(--amarillo); color: var(--ink); font-size: 12.5px; font-weight: 700; letter-spacing: .02em; }
.dx-indic__i--s { gap: 11px; font-size: 13.5px; color: #fff; }
.dx-indic__i--xs { gap: 10px; font-size: 12.5px; color: rgba(255, 255, 255, .88); }

.dx-campo { display: flex; flex-direction: column; gap: 8px; position: relative; animation: rise .7s var(--ease-sal) var(--d, 0s) both; }
.dx-campo--fade { animation-name: fadein; animation-timing-function: ease; }
.dx-campo[data-campo="nombre"] { --d: .05s; }
.dx-campo[data-campo="cedula"] { --d: .1s; }
.dx-campo[data-campo="especialidad"] { --d: .15s; }
.dx-campo[data-campo="telefono"] { --d: .2s; }
.dx-campo[data-campo="correo"] { --d: .25s; }
.dx-campo__l { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .72); transition: color .2s; }
.dx-campo__ok { color: var(--ok); font-size: 13px; opacity: 0; transition: opacity .3s; }
.dx-campo.es-valido .dx-campo__ok { opacity: 1; }
.dx-campo.con-foco .dx-campo__l { color: var(--amarillo); }
.dx-campo.con-error .dx-campo__l { color: var(--error); }
.dx-campo__err { min-height: 15px; font-size: 12.5px; font-weight: 500; color: var(--error); opacity: 0; transition: opacity .2s; }
.dx-campo.con-error .dx-campo__err { opacity: 1; }

.dx-input {
  width: 100%; height: var(--inputH); padding: 0 16px; border-radius: 14px; border: 1.5px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .06); color: #fff; font-family: var(--sans); font-size: 16px; font-weight: 500; outline: none;
  transition: border-color .2s, box-shadow .25s, background .2s; -webkit-appearance: none; appearance: none;
}
.dx-campo.con-error .dx-input { border-color: var(--error-borde); background: rgba(255, 107, 154, .08); }
.dx-input:focus, .dx-input.esta-abierto {
  border-color: var(--rosa); background: rgba(255, 255, 255, .11); box-shadow: 0 0 0 4px rgba(255, 79, 163, .2);
}
.dx-campo.con-error .dx-input:focus, .dx-campo.con-error .dx-select.esta-abierto { border-color: var(--error-borde); }
.dx-input--cedula { letter-spacing: .06em; }
.dx-input--tel { flex: 1; min-width: 0; letter-spacing: .04em; }
.dx-select { text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; color: rgba(255, 255, 255, .45); }
.dx-select.tiene-valor { color: #fff; }
.dx-select__v { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dx-chev { flex: none; width: 8px; height: 8px; margin-top: -4px; border-right: 2px solid rgba(255, 255, 255, .75); border-bottom: 2px solid rgba(255, 255, 255, .75); transform: rotate(45deg); transition: transform .25s, margin .25s; }
.dx-chev--s { width: 7px; height: 7px; }
.esta-abierto > .dx-chev { transform: rotate(225deg); margin-top: 4px; }
.dx-tel { display: flex; gap: 10px; }
.dx-lada { flex: none; width: auto; padding: 0 12px 0 13px; display: flex; align-items: center; gap: 9px; font-weight: 600; cursor: pointer; }
.dx-campo.con-error .dx-lada:not(.esta-abierto) { border-color: rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); }
.dx-bandera { width: 24px; height: 17px; border-radius: 3px; object-fit: cover; display: block; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }
.dx-bandera--op { box-shadow: 0 0 0 1px rgba(27, 24, 56, .1); }
.dx-input:focus-visible, .dx-select:focus-visible, .dx-lada:focus-visible { box-shadow: 0 0 0 4px rgba(255, 79, 163, .35); }

.dx-form__pie { flex: none; padding: 10px var(--padX) var(--padB); animation: rise .7s var(--ease-sal) .3s both; }
.dx-form__aviso { display: none; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.dx-form.con-aviso .dx-form__aviso { display: flex; }
.dx-form__alerta { margin: 0 0 10px; font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--error); text-align: center; }
.dx-enviar {
  position: relative; width: 100%; height: var(--btnH); border: none; border-radius: 999px; background: var(--magenta); color: #fff;
  font-family: var(--sans); font-size: 17px; font-weight: 700; letter-spacing: .02em; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  box-shadow: 0 16px 36px -14px rgba(230, 0, 126, .9), inset 0 1px 0 rgba(255, 255, 255, .3); transition: transform .25s, background .25s;
}
.dx-enviar:hover { transform: translateY(-2px); }
.dx-enviar:active { transform: scale(.985); }
.dx-enviar__on, .dx-enviar__off { display: inline-flex; align-items: center; gap: 12px; }
.dx-enviar__fl { font-size: 19px; }
.dx-enviar__off { display: none; }
.dx-form.esta-enviando .dx-enviar { background: var(--magenta-d); }
.dx-form.esta-enviando .dx-enviar__on { display: none; }
.dx-form.esta-enviando .dx-enviar__off { display: inline-flex; }
.dx-spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .8s linear infinite; }
.dx-privacidad { margin: 10px 0 0; font-size: 11.5px; line-height: 1.4; color: rgba(255, 255, 255, .5); text-align: center; }
.dx-privacidad a { color: rgba(255, 255, 255, .78); text-decoration: underline; text-underline-offset: 2px; }
.dx-privacidad a:hover { color: var(--amarillo); }

/* Selectores con buscador */
.dx-pick { position: absolute; inset: 0; z-index: 30; }
.dx-pick__velo { position: absolute; inset: 0; background: var(--pop-velo, rgba(5, 6, 20, .5)); animation: fadein .25s ease both; }
.dx-pick__caja {
  position: absolute; left: var(--padX); right: var(--padX); bottom: var(--padB); max-height: 72%;
  background: var(--crema); border-radius: 18px; padding: 10px; display: flex; flex-direction: column; gap: 8px; color: var(--ink);
  box-shadow: 0 30px 60px -18px rgba(0, 0, 0, .65), 0 0 0 1px rgba(27, 24, 56, .06);
  animation: popin .22s ease both; transform-origin: top center;
}
.dx-form.es-m .dx-pick__velo { background: rgba(5, 6, 20, .55); }
.dx-form.es-m .dx-pick__caja { left: 0; right: 0; bottom: 0; max-height: 78%; border-radius: 24px 24px 0 0; padding: 12px 12px 22px; animation: sheetin .38s var(--ease-pop) both; }
.dx-pick__cab-m { display: none; flex-direction: column; gap: 12px; padding: 2px 6px 4px; }
.dx-form.es-m .dx-pick__cab-m { display: flex; }
.dx-pick__asa { width: 40px; height: 4px; border-radius: 4px; background: #e3d5bb; align-self: center; }
.dx-pick__t { font-family: var(--serif); font-size: 26px; line-height: 1; }
.dx-pick__buscar { position: relative; flex: none; }
.dx-pick__q { width: 100%; height: 44px; padding: 0 14px 0 38px; border-radius: 12px; border: 1.5px solid #e7d9bf; background: #fff; color: var(--ink); font-family: var(--sans); font-size: 15px; outline: none; -webkit-appearance: none; appearance: none; }
.dx-form .dx-pick__q::placeholder { color: #a99fb3; }
.dx-pick__q:focus { border-color: var(--rosa); }
.dx-lupa { position: absolute; left: 14px; top: 14px; width: 12px; height: 12px; border: 2px solid #8b7f97; border-radius: 50%; pointer-events: none; }
.dx-lupa::after { content: ''; position: absolute; left: 8px; top: 9px; width: 6px; height: 2px; background: #8b7f97; transform: rotate(45deg); }
.dx-pick__lista { flex: 1; min-height: 0; overflow: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 2px; }
.dx-op {
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; padding: 0 14px;
  border: none; border-radius: 10px; background: transparent; color: var(--ink); font-family: var(--sans); font-size: 15px; font-weight: 500;
  text-align: left; cursor: pointer; transition: background .15s;
}
.dx-op:hover, .dx-op:focus-visible { background: rgba(230, 0, 126, .07); outline: none; }
.dx-op[aria-selected="true"] { background: rgba(230, 0, 126, .09); color: #c4006a; font-weight: 700; }
.dx-op--lada[aria-selected="true"] { color: var(--ink); }
.dx-op__ok { color: #d6006f; font-size: 14px; opacity: 0; }
.dx-op[aria-selected="true"] .dx-op__ok { opacity: 1; }
.dx-op--lada { justify-content: flex-start; }
.dx-op__n { flex: 1; }
.dx-op__c { color: #6b5f7a; font-variant-numeric: tabular-nums; }
.dx-op--lada .dx-op__ok { width: 12px; }
.dx-pick__vacio { margin: 0; padding: 18px 14px; font-size: 14px; color: #6b5f7a; }

/* ======================================================= Movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  .dx-root *, .dx-root *::before, .dx-root *::after {
    animation-duration: .001s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important;
    transition-duration: .2s !important; transition-delay: 0s !important;
  }
  .dx-spin { animation: spin .8s linear infinite !important; }
  .dx-petalos, .dx-lluvia { display: none; }
}

/* ========================================================= Organizado por (Experience Lab) */
/* Firma discreta del organizador: logotipo oficial (versión clara) a baja intensidad,
   sin competir con Dalexidol ni Silanes. */
.dx-org { margin: 0; display: flex; align-items: center; gap: 10px; pointer-events: none; }
.dx-org__t { font-size: 9.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .5); white-space: nowrap; }
.dx-org__logo { display: block; height: 18px; width: auto; opacity: .82; }
.dx-org--d { position: absolute; right: 5vw; bottom: 40px; height: 50px; z-index: 6; animation: rise .9s ease 1.7s both; transition: opacity .6s ease; }
.dx-root[data-paso="1"] .dx-org--d, .dx-root.sin-org .dx-org--d { visibility: hidden; }
.dx-org--m { animation: rise .9s ease 1.7s both; }
.dx-org--m .dx-org__logo { height: 16px; }
.dx-form__legal { display: flex; flex-direction: column; align-items: center; gap: 7px; margin-top: 10px; }
.dx-form__legal .dx-privacidad { margin: 0; }
.dx-org--form { gap: 8px; }
.dx-org--form .dx-org__t { font-size: 8.5px; letter-spacing: .18em; color: rgba(255, 255, 255, .42); }
.dx-org--form .dx-org__logo { height: 13px; opacity: .7; }

/* ================================================================ Barras de desplazamiento */
/* En pantallas bajas el cuerpo del formulario se desplaza: barra fina y translúcida
   (sin la barra blanca del sistema) y un desvanecido inferior mientras haya más contenido. */
.dx-form__cuerpo, .dx-pick__lista { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .22) transparent; }
.dx-pick__lista { scrollbar-color: rgba(27, 24, 56, .22) transparent; }
.dx-form__cuerpo::-webkit-scrollbar, .dx-pick__lista::-webkit-scrollbar { width: 6px; }
.dx-form__cuerpo::-webkit-scrollbar-track, .dx-pick__lista::-webkit-scrollbar-track { background: transparent; }
.dx-form__cuerpo::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .22); border-radius: 6px; }
.dx-form__cuerpo::-webkit-scrollbar-thumb:hover { background: rgba(255, 210, 58, .45); }
.dx-pick__lista::-webkit-scrollbar-thumb { background: rgba(27, 24, 56, .22); border-radius: 6px; }
.dx-form__cuerpo.con-mas { -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 28px), transparent); }

/* =========================================== Estados del registro (datos reales de C4Y) */
/* Fuera de `abierto` el botón "Registrarme" se sustituye por un aviso con el mismo
   lenguaje visual del recuadro de indicaciones (borde amarillo, degradado cálido). */
.dx-aviso { display: none; }
.dx-root:not([data-estado="abierto"]) .dx-cta-w { display: none; }
.dx-root:not([data-estado="abierto"]) .dx-aviso { display: block; animation: rise 1s var(--ease-sal) 1.35s both; }
.dx-aviso__i { display: none; margin: 0; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  padding: 14px 22px 15px; border-radius: 16px; border: 1px solid rgba(255, 210, 58, .5);
  background: linear-gradient(180deg, rgba(255, 210, 58, .12), rgba(230, 0, 126, .1)), rgba(14, 18, 52, .78);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .6); }
.dx-root[data-estado="cerrado"] .dx-aviso__i[data-para="cerrado"],
.dx-root[data-estado="cupo_completo"] .dx-aviso__i[data-para="cupo_completo"],
.dx-root[data-estado="no_disponible"] .dx-aviso__i[data-para="no_disponible"] { display: flex; }
.dx-aviso__t { font-family: var(--serif); font-size: max(20px, calc(var(--fw) * .042)); line-height: 1.05; color: #fff; }
.dx-aviso__p { font-size: max(12.5px, calc(var(--fw) * .022)); line-height: 1.45; font-weight: 600; color: rgba(255, 255, 255, .8); text-wrap: balance; }
.dx-aviso--m { width: 100%; }
.dx-aviso--m .dx-aviso__t { font-size: 22px; }
.dx-aviso--m .dx-aviso__p { font-size: 13px; }
.dx-root:not([data-estado="abierto"]) .dx-m__cta { transform: none; }

/* Confirmación: a qué correo se envió (o reenvió) el código QR. */
.dx-ok__correo { margin: 0; font-size: max(12px, calc(var(--fw) * .022)); line-height: 1.45; font-weight: 600; color: var(--amarillo); animation: rise .9s ease 1.25s both; overflow-wrap: anywhere; }
.dx-ok-m .dx-ok__correo { font-size: 13px; max-width: 310px; animation-delay: 1.4s; }
