/* =============================================
   REGISTRO GRATIS · diseño y efectos ampliados
   (se carga después de landing.css)
   ============================================= */
.registration-section { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--ft-paper), #eaf2fc 60%, var(--ft-paper)); }
.registration-wrap { position: relative; max-width: 1200px; margin: 0 auto; }
.registration-wrap > .registration-seal { top: -62px; right: -14px; }
.registration-layout {
  overflow: hidden; isolation: isolate; max-width: none; margin: 0;
  background:
    radial-gradient(900px 420px at 8% 0%, rgba(79, 227, 198, .22), transparent 60%),
    radial-gradient(800px 480px at 100% 100%, rgba(26, 62, 143, .14), transparent 60%),
    linear-gradient(135deg, #f1f7ff, #e4eefb);
  box-shadow: 0 30px 70px rgba(26, 62, 143, .12), inset 0 1px 0 #fff;
}
.registration-layout::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none; z-index: 3;
  background: linear-gradient(115deg, transparent 20%, rgba(29, 184, 152, .85) 38%, rgba(26, 62, 143, .75) 52%, transparent 70%) 0 0 / 300% 100%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); mask-composite: exclude;
  animation: ft-border 7s linear infinite;
}
@keyframes ft-border { to { background-position: -300% 0; } }
.reg-blob { position: absolute; z-index: -1; border-radius: 50%; filter: blur(46px); opacity: .55; pointer-events: none; }
.reg-blob--a { width: 300px; height: 300px; left: -80px; top: 30%; background: #4fe3c6; animation: ft-drift 14s ease-in-out infinite; }
.reg-blob--b { width: 340px; height: 340px; right: -100px; top: -90px; background: #7aa7ee; animation: ft-drift 17s ease-in-out -4s infinite reverse; }
.reg-blob--c { width: 220px; height: 220px; left: 42%; bottom: -90px; background: #f7d36a; opacity: .4; animation: ft-drift 19s ease-in-out -8s infinite; }
@keyframes ft-drift { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(40px, -30px) scale(1.12); } 66% { transform: translate(-30px, 28px) scale(.92); } }

/* Entrada escalonada al llegar a la sección */
.registration-layout .registration-copy > *,
.registration-layout .registration-demo { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.registration-layout.is-in-view .registration-copy > *,
.registration-layout.is-in-view .registration-demo { opacity: 1; transform: none; }
.registration-layout.is-in-view .registration-copy > :nth-child(1) { transition-delay: .05s; }
.registration-layout.is-in-view .registration-copy > :nth-child(2) { transition-delay: .15s; }
.registration-layout.is-in-view .registration-copy > :nth-child(3) { transition-delay: .25s; }
.registration-layout.is-in-view .registration-copy > :nth-child(4) { transition-delay: .35s; }
.registration-layout.is-in-view .registration-copy > :nth-child(5) { transition-delay: .5s; }
.registration-layout.is-in-view .registration-demo { transition-delay: .3s; }
.registration-copy.reveal, .registration-demo.reveal { opacity: 1; transform: none; }

/* Subrayado que se dibuja */
.registration-copy h2 em { background: linear-gradient(transparent 62%, rgba(79, 227, 198, .6) 62%) 0 0 / 0% 100% no-repeat; transition: background-size 1s cubic-bezier(.2, .7, .2, 1) .9s; padding: 0 .1em; }
.registration-layout.is-in-view h2 em { background-size: 100% 100%; }

/* Pasos con línea guía y barra de avance */
.registration-steps { position: relative; }
.registration-steps::before { content: ''; position: absolute; left: 33px; top: 30px; bottom: 30px; width: 2px; background: linear-gradient(180deg, #b9d3f1, #d9e8f8); z-index: 0; }
.registration-step { position: relative; z-index: 1; overflow: hidden; transition: background .3s, border-color .3s, box-shadow .3s, transform .3s; }
.registration-step:hover { transform: translateX(6px); border-color: #9fbbe3; }
.registration-step.is-active { transform: translateX(8px); box-shadow: 0 14px 30px rgba(26, 62, 143, .14); }
.registration-step.is-active > span { animation: ft-pulse 2.2s ease-out infinite; }
@keyframes ft-pulse { 0% { box-shadow: 0 0 0 0 rgba(26, 62, 143, .35); } 100% { box-shadow: 0 0 0 12px rgba(26, 62, 143, 0); } }
.registration-step::after { content: ''; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--verde), var(--azul-light)); }
.registration-step.is-active::after { animation: ft-fill 5.2s linear forwards; }
@keyframes ft-fill { to { width: 100%; } }

/* Botón principal con brillo */
.registration-cta { position: relative; overflow: hidden; }
.registration-cta::before { content: ''; position: absolute; top: 0; bottom: 0; width: 60%; left: -80%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); animation: ft-shine 4.5s ease-in-out infinite; }
@keyframes ft-shine { 0%, 55% { left: -80%; } 100% { left: 130%; } }
.registration-cta::after { content: ''; position: absolute; inset: 0; border-radius: inherit; animation: ft-ring 2.8s ease-out infinite; pointer-events: none; }
@keyframes ft-ring { 0% { box-shadow: 0 0 0 0 rgba(26, 62, 143, .45); } 70%, 100% { box-shadow: 0 0 0 16px rgba(26, 62, 143, 0); } }
.registration-cta span { transition: transform .25s; }
.registration-cta:hover span { transform: translate(3px, -3px) rotate(8deg); }

/* Ventana con inclinación 3D y flotación */
.registration-demo { position: relative; perspective: 1100px; }
.registration-window { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease-out, box-shadow .3s; animation: ft-float 7s ease-in-out infinite; }
.registration-demo.is-tilting .registration-window { animation-play-state: paused; box-shadow: 0 36px 70px rgba(26, 62, 143, .24), 0 0 0 1px rgba(29, 184, 152, .25); }
@keyframes ft-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.registration-window::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 6; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .5), transparent 55%); opacity: 0; transition: opacity .3s; border-radius: inherit; }
.registration-demo.is-tilting .registration-window::after { opacity: .7; }
.registration-scene h3, .registration-scene > p, .registration-field, .registration-illustrated-action, .registration-demo-course { opacity: 0; transform: translateY(10px); }
.registration-scene.is-active h3, .registration-scene.is-active > p, .registration-scene.is-active .registration-field, .registration-scene.is-active .registration-illustrated-action, .registration-scene.is-active .registration-demo-course { animation: ft-rise .55s cubic-bezier(.2, .7, .2, 1) forwards; }
.registration-scene.is-active > :nth-child(2) { animation-delay: .06s; }
.registration-scene.is-active > :nth-child(3) { animation-delay: .12s; }
.registration-scene.is-active .registration-field:nth-of-type(1), .registration-scene.is-active .registration-demo-course:nth-child(1) { animation-delay: .16s; }
.registration-scene.is-active .registration-field:nth-of-type(2), .registration-scene.is-active .registration-demo-course:nth-child(2) { animation-delay: .24s; }
.registration-scene.is-active .registration-field:nth-of-type(3), .registration-scene.is-active .registration-demo-course:nth-child(3) { animation-delay: .32s; }
.registration-scene.is-active .registration-illustrated-action { animation-delay: .4s; }
@keyframes ft-rise { to { opacity: 1; transform: none; } }
.registration-scene[data-scene="1"] h3, .registration-scene[data-scene="1"] > p { opacity: 1; transform: none; }
.registration-scene.is-active .registration-success-halo { animation: ft-pop .7s cubic-bezier(.2, 1.4, .4, 1) both; }
.registration-scene.is-active .registration-check path { stroke-dasharray: 80; stroke-dashoffset: 80; animation: ft-draw .7s .25s ease-out forwards; }
@keyframes ft-pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes ft-draw { to { stroke-dashoffset: 0; } }
.reg-confetti { position: absolute; left: 50%; top: 36%; width: 8px; height: 12px; border-radius: 2px; pointer-events: none; z-index: 5; animation: ft-confetti 1.3s cubic-bezier(.15, .7, .3, 1) forwards; }
@keyframes ft-confetti { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 0; } }

/* Etiquetas flotantes */
.reg-chip { position: absolute; z-index: 7; display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; background: rgba(255, 255, 255, .92); border: 1px solid var(--ft-line); box-shadow: 0 12px 26px rgba(26, 62, 143, .16); font: 700 .74rem 'Sora', sans-serif; color: var(--azul); backdrop-filter: blur(6px); white-space: nowrap; }
.reg-chip--1 { left: -26px; top: 96px; animation: ft-bob 5s ease-in-out infinite; }
.reg-chip--2 { right: -22px; top: 230px; animation: ft-bob 6s ease-in-out -2s infinite; }
.reg-chip--3 { left: 10px; bottom: 54px; animation: ft-bob 5.5s ease-in-out -1s infinite; }
@keyframes ft-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* Sello dorado: destello y chispas */
.registration-seal > div::after { content: ''; position: absolute; inset: -20%; background: linear-gradient(110deg, transparent 42%, rgba(255, 250, 215, .85) 50%, transparent 58%); transform: translateX(-120%); animation: ft-seal-shine 5s ease-in-out infinite; }
@keyframes ft-seal-shine { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.registration-seal::after { content: ''; position: absolute; left: -4px; top: 14px; width: 20px; height: 20px; background: #f7cf5c; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); filter: drop-shadow(0 0 6px rgba(247, 207, 92, .9)); animation: ft-twinkle 2.4s ease-in-out infinite; }
@keyframes ft-twinkle { 0%, 100% { opacity: .2; transform: scale(.6) rotate(0); } 50% { opacity: 1; transform: scale(1.1) rotate(25deg); } }

@media (max-width: 1040px) { .reg-chip--1 { left: -6px; } .reg-chip--2 { right: -6px; } }
@media (max-width: 640px) {
  .registration-wrap > .registration-seal { top: -48px; right: -4px; }
  .reg-chip { font-size: .66rem; padding: 7px 10px; }
  .reg-chip--1 { top: 74px; } .reg-chip--2 { top: 200px; } .reg-chip--3 { display: none; }
  .registration-steps::before { left: 29px; }
}
@media (prefers-reduced-motion: reduce) {
  .registration-layout::after, .reg-blob, .reg-chip, .registration-window, .registration-cta::before, .registration-cta::after,
  .registration-step.is-active > span, .registration-seal > div::after, .registration-seal::after { animation: none; }
  .registration-layout .registration-copy > *, .registration-layout .registration-demo,
  .registration-scene h3, .registration-scene > p, .registration-field, .registration-illustrated-action, .registration-demo-course { opacity: 1; transform: none; animation: none !important; }
  .registration-step.is-active::after { animation: none; width: 100%; }
}
.reg-legal { margin-top: 16px; font-size: .74rem; line-height: 1.6; color: #6b7f9e; max-width: 440px; }
.reg-legal a { color: var(--azul); }
