/* Bantokens — Página Registro (Híbrida con formulario Angular de creación de usuario) */

body.bt-page-registro a {
  color: var(--blue-primary, #007DFF);
  text-decoration: none;
  transition: color var(--dur-fast, 0.15s) ease;
}

body.bt-page-registro a:hover {
  color: var(--blue-deep, #00489A);
}

/* Encabezado Hero */
body.bt-page-registro .rhead {
  padding: 24px 0 clamp(16px, 2.5vw, 28px);
}

body.bt-page-registro .rhead .kicker {
  font-family: var(--font-mono, monospace);
  font-size: var(--fs-body-s, 14px);
  color: var(--blue-primary, #007DFF);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

body.bt-page-registro .rhead h1 {
  margin-top: 6px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

body.bt-page-registro .rhead .lede {
  font-size: var(--fs-body-l, 17px);
  color: var(--text-secondary, #64748B);
  max-width: 680px;
  margin-top: 10px;
}

/* Contenedor Iframe Card */
body.bt-page-registro .registro-iframe-container {
  width: 100%;
  max-width: 1200px;
  margin: clamp(16px, 2.5vw, 28px) auto clamp(48px, 6vw, 72px);
}

body.bt-page-registro .registro-iframe-card {
  position: relative;
  width: 100%;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid var(--border-subtle, #E2E8F0);
  box-shadow: 0 4px 24px rgba(0, 24, 56, 0.06);
  padding: clamp(16px, 2.5vw, 24px);
  overflow: hidden;
  transition: box-shadow var(--dur-normal, 0.25s) ease, border-color var(--dur-normal, 0.25s) ease;
}

body.bt-page-registro .registro-iframe-card:hover {
  box-shadow: 0 8px 36px rgba(0, 24, 56, 0.09);
  border-color: rgba(0, 125, 255, 0.2);
}

/* Iframe Fluido sin Scrollbars */
body.bt-page-registro .registro-app-iframe,
body.bt-page-registro iframe.com-wrapper__iframe {
  width: 100% !important;
  min-height: 500px;
  height: 600px;
  border: none !important;
  border-radius: 14px;
  display: block;
  background: #ffffff;
  overflow: hidden !important;
  transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 640px) {
  body.bt-page-registro .registro-iframe-card {
    padding: 12px;
    border-radius: 18px;
  }

  body.bt-page-registro .registro-app-iframe,
  body.bt-page-registro iframe.com-wrapper__iframe {
    border-radius: 10px;
  }
}

/* Skeleton / Estado de Carga */
body.bt-page-registro .registro-iframe-loading {
  position: absolute;
  inset: clamp(16px, 2.5vw, 24px);
  border-radius: 14px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 10;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

@media (max-width: 640px) {
  body.bt-page-registro .registro-iframe-loading {
    inset: 12px;
    border-radius: 10px;
  }
}

body.bt-page-registro .registro-iframe-loading.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.bt-page-registro .registro-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(0, 125, 255, 0.15);
  border-top-color: var(--blue-primary, #007DFF);
  border-radius: 50%;
  animation: bt-registro-spin 0.85s linear infinite;
}

body.bt-page-registro .registro-iframe-loading span {
  font-size: var(--fs-body, 15px);
  color: var(--text-secondary, #64748B);
  font-weight: 500;
}

@keyframes bt-registro-spin {
  to {
    transform: rotate(360deg);
  }
}
