@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

:root {
  --font-main: "Plus Jakarta Sans", "Inter", "Segoe UI", Arial, sans-serif;
  --ceb-green: #7dc900;
  --ceb-green-dark: #2d6200;
  --ceb-green-soft: #effbdc;
  --ink: #111;
  --muted: #667085;
  --line: #e5e7eb;
  --surface: #fff;
  --canvas: #f6f7f4;
  --shadow: 0 24px 70px rgba(23, 35, 10, .12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-main);
  color: var(--ink);
  background: var(--canvas);
  overflow-x: hidden;
}

body {
  font-family: var(--font-main);
  min-width: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

.brand,
.mockup-nav p,
.value-content h1,
.form-heading h2,
.section-title h3,
.form-heading p,
.lead {
  overflow-wrap: anywhere;
  word-break: break-word;
}

button,
input,
select,
textarea {
  font: inherit;
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

/* Nav copiado de registro.html (estilo principal de la app) */
.mockup-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: 64px;
  padding: 0 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-bottom: 1.5px solid #d0d0d0;
  box-shadow: 0 1px 8px rgba(0, 0, 0, .06);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #111;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

.brand strong {
  color: var(--ceb-green-dark);
  font-weight: 800;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #111;
  background: var(--ceb-green);
  border-radius: 10px;
}

.brand-mark svg {
  width: 18px;
}

.mockup-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mockup-nav .nav-links li {
  list-style: none;
}

.mockup-nav .nav-links a {
  color: #555;
  font-size: 13px;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
  transition: color .15s;
}

.mockup-nav .nav-links a:hover {
  color: #111;
}

.mockup-nav .nav-links .btn-reg {
  display: inline-block;
  padding: 10px 8px;
  background: transparent;
  color: #555;
  border: none;
  font-weight: 500;
  font-size: 13px;
}

.mockup-nav .nav-links .btn-client {
  background: var(--ceb-green);
  color: #111;
  border: 1.5px solid #8fe000;
  border-radius: 8px;
  padding: 10px 22px;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: 13px;
}

.mockup-nav .nav-links .btn-client:hover {
  background: #8fe000;
}

.mockup-nav .nav-toggle {
  display: none;
  border: 1px solid #d0d0d0;
  background: #fff;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.mockup-nav .nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: #111;
  border-radius: 2px;
  transform-origin: center;
  transition: transform .2s ease, opacity .15s ease;
}

.mockup-nav.menu-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.mockup-nav.menu-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.mockup-nav.menu-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 900px) {
  .mockup-nav {
    padding: 0 14px;
    gap: 10px;
  }
  .mockup-nav .nav-toggle {
    display: flex;
  }
  .mockup-nav .nav-links {
    display: none;
    position: fixed;
    top: 72px;
    left: 12px;
    right: 12px;
    background: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 12px;
    padding: 10px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .1);
    z-index: 250;
  }
  .mockup-nav.menu-open .nav-links {
    display: flex;
  }
  .mockup-nav .nav-links a {
    display: block;
    padding: 11px 10px;
    border-radius: 8px;
  }
  .mockup-nav .nav-links .btn-client {
    display: block;
    text-align: center;
  }
}

.registration-shell {
  min-height: 100vh;
  padding-top: 64px;
  display: grid;
  grid-template-columns: minmax(360px, .88fr) minmax(560px, 1.12fr);
}

.value-panel {
  position: relative;
  min-height: calc(100vh - 64px);
  padding: 14px clamp(24px, 3.5vw, 44px) 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 10%, rgba(125, 201, 0, .10), transparent 42%),
    linear-gradient(170deg, #fafdf5 0%, #f7faf2 55%, #f4f7ef 100%);
  border-right: 1px solid #e8eae3;
}

.value-panel::before,
.value-panel::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(125, 201, 0, .14);
  border-radius: 50%;
  pointer-events: none;
}

.value-panel::before {
  width: 460px;
  height: 460px;
  right: -290px;
  top: 70px;
}

.value-panel::after {
  width: 310px;
  height: 310px;
  left: -210px;
  bottom: -90px;
  border-color: #e0e3da;
}

.value-content,
.value-foot {
  position: relative;
  z-index: 1;
}

.eyebrow,
.step-label {
  color: var(--ceb-green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
}

.value-content > h1 {
  margin-top: 6px;
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1.05;
  letter-spacing: -.04em;
}

.value-content h1 em {
  color: var(--ceb-green-dark);
  font-style: italic;
  font-weight: 500;
}

.lead {
  max-width: 530px;
  margin-top: 8px;
  color: #4a5247;
  font-size: 13px;
  line-height: 1.45;
}

.preview-card {
  max-width: 510px;
  margin-top: 12px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #e6e8e0;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(76, 103, 30, .07);
}

.preview-top {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.preview-logo {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #111;
  background: var(--ceb-green);
  border-radius: 9px;
}

.preview-logo svg {
  width: 25px;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  color: var(--ceb-green-dark);
  font-size: 10px;
  font-weight: 700;
  background: var(--ceb-green-soft);
  border: 1px solid #d5efa9;
  border-radius: 99px;
}

.status-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--ceb-green);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(125, 201, 0, .13);
}

.preview-kicker {
  color: var(--ceb-green);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .16em;
}

.preview-card h2 {
  margin-top: 4px;
  font-size: 16px;
  letter-spacing: -.02em;
  color: var(--ink);
}

.preview-card > p {
  margin-top: 4px;
  color: #6b7164;
  font-size: 11px;
}

.preview-stats {
  margin-top: 8px;
  padding-top: 8px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #ececec;
}

.preview-stats span {
  display: flex;
  flex-direction: column;
  color: #6b7164;
  font-size: 9px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.preview-stats strong {
  color: var(--ink);
  font-size: 14px;
  letter-spacing: -.03em;
}

.benefits {
  max-width: 510px;
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
  list-style: none;
}

.benefits li {
  display: flex;
  gap: 9px;
  color: #6b7164;
  font-size: 11px;
  line-height: 1.45;
}

.benefits strong {
  display: block;
  color: var(--ink);
  font-size: 12px;
}

.benefit-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--ceb-green-dark);
  background: var(--ceb-green-soft);
  border: 1px solid #d5efa9;
  border-radius: 8px;
}

.benefit-icon svg {
  width: 14px;
}

.aside-features {
  list-style: none;
  margin-top: 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.aside-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #4a5247;
  font-size: 13px;
  line-height: 1.45;
}

.aside-features li .ico {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--ceb-green-dark);
  background: var(--ceb-green-soft);
  border: 1px solid #d5efa9;
  border-radius: 9px;
  margin-top: 1px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}

.aside-features li .ico svg {
  width: 16px;
  height: 16px;
  display: block;
}

.aside-login {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #e0e3da;
  color: #6b7164;
  font-size: 12px;
}

.aside-login a {
  color: var(--ceb-green-dark);
  text-decoration: none;
  font-weight: 700;
}

.aside-login a:hover {
  color: var(--ceb-green);
}

.value-foot {
  margin-top: auto;
  padding-top: 10px;
  color: #8d9389;
  font-size: 10px;
}

.form-panel {
  min-height: calc(100vh - 64px);
  padding: 14px clamp(20px, 3vw, 40px);
  display: flex;
  justify-content: center;
  background:
    radial-gradient(circle at 90% 3%, rgba(125, 201, 0, .08), transparent 27%),
    var(--canvas);
}

.form-wrap {
  width: min(100%, 560px);
  /* Tarjeta unificada estilo "panel de cliente": envolvemos heading + form + Google
     en una sola superficie blanca con sombra (en lugar de tener solo el form interno
     elevado y la heading volando sobre el fondo gris). */
  background: var(--surface);
  border: 1px solid rgba(17, 17, 17, .08);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: clamp(22px, 3vw, 32px);
}

.mobile-intro {
  display: none;
}

.form-heading {
  margin-bottom: 10px;
}

.form-heading h2 {
  margin-top: 2px;
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: -.025em;
}

.form-heading p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.stepper {
  position: relative;
  margin: 30px 0 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
}

.stepper::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 17%;
  right: 17%;
  height: 2px;
  background: #e4e7df;
}

.stepper li {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #9aa095;
}

.stepper li > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 800;
  background: var(--canvas);
  border: 2px solid #dfe2dc;
  border-radius: 50%;
}

.stepper strong,
.stepper small {
  display: block;
}

.stepper strong {
  color: #80877b;
  font-size: 11px;
}

.stepper small {
  margin-top: 1px;
  font-size: 9px;
}

.stepper li.active > span,
.stepper li.complete > span {
  color: #111;
  background: var(--ceb-green);
  border-color: var(--ceb-green);
  box-shadow: 0 0 0 5px rgba(125, 201, 0, .12);
}

.stepper li.active strong,
.stepper li.complete strong {
  color: var(--ink);
}

#mockupForm,
#activarForm {
  padding: clamp(18px, 2vw, 24px);
  background: var(--surface);
  border: 1px solid rgba(17, 17, 17, .08);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

/* registroForm queda transparente y sin sombra: ahora la tarjeta blanca con
   sombra es el .form-wrap padre que envuelve heading + form + Google. */
#registroForm {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.form-step {
  display: none;
  min-height: 0;
}

.form-step.active {
  display: block;
  animation: reveal .25s ease;
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-title {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-title span:first-child {
  color: var(--ceb-green-dark);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .15em;
}

.section-title h3 {
  margin-top: 2px;
  font-size: 17px;
  letter-spacing: -.02em;
}

.section-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--ceb-green-dark);
  background: var(--ceb-green-soft);
  border: 1px solid #d5efa9;
  border-radius: 10px;
}

.section-icon svg {
  width: 18px;
}

.google-button {
  width: 100%;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  color: #1f1f1f;
  background: var(--ceb-green);
  border: 1px solid var(--ceb-green);
  border-radius: 11px;
  font-family: 'Plus Jakarta Sans', 'Roboto', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .1px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(125, 201, 0, .23);
  transition: transform .15s, box-shadow .15s, background .15s;
}

.google-button:hover {
  background: #8ade00;
  border-color: #8ade00;
  box-shadow: 0 12px 28px rgba(125, 201, 0, .3);
  transform: translateY(-1px);
}

.google-button:active {
  background: #73ba00;
  transform: translateY(0);
}

.google-button:disabled {
  opacity: .6;
  cursor: wait;
  transform: none;
}

.google-button:focus-visible {
  outline: 3px solid rgba(66, 133, 244, .35);
  outline-offset: 2px;
}

.google-official-slot {
  width: 100%;
  min-height: 46px;
  display: flex;
  justify-content: center;
}

.google-official-slot > div,
.google-official-slot iframe {
  max-width: 100% !important;
}

/* El reset universal `* { margin:0; padding:0; box-sizing:border-box }` de
   arriba aplica tambien a los divs internos del boton oficial de Google
   (clases nsm7Bb-HzV7m-...) y le rompe la maquetacion → el G aparece dentro
   de una caja inset por encima de su separador interno. Revertimos esos
   tres props dentro del slot para que Google pueda maquetar como espera. */
.google-official-slot,
.google-official-slot * {
  margin: revert;
  padding: revert;
  box-sizing: revert;
}

.google-mark {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

/* Override del selector universal `svg { fill:none; stroke:currentColor }` que aplica al
   line-art de los íconos: el logo Google necesita usar sus propios fills (rojo/azul/amarillo/verde)
   y NO debe tener stroke, sino el rectángulo de fondo se ve como un recuadro alrededor del G.
   Importante: las reglas CSS sobrescriben los atributos `fill="..."` inline del SVG, así que
   tenemos que re-declarar los colores por nth-of-type. */
.google-mark svg {
  width: 20px;
  height: 20px;
  display: block;
  stroke: none;
}
.google-mark svg path { stroke: none; }
.google-mark svg path:nth-of-type(1) { fill: #EA4335; } /* rojo */
.google-mark svg path:nth-of-type(2) { fill: #4285F4; } /* azul */
.google-mark svg path:nth-of-type(3) { fill: #FBBC05; } /* amarillo */
.google-mark svg path:nth-of-type(4) { fill: #34A853; } /* verde */
.google-mark svg path:nth-of-type(5) { fill: none; }    /* rectángulo de fondo invisible */

.form-divider {
  margin: 18px 0;
  display: flex;
  align-items: center;
  gap: 13px;
  color: #9aa095;
  font-size: 9px;
  white-space: nowrap;
}

.form-divider::before,
.form-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field.full {
  grid-column: 1 / -1;
}

.field > span:first-child {
  font-size: 11px;
  font-weight: 700;
}

.field small {
  color: #92988e;
  font-size: 9px;
}

.input-wrap {
  position: relative;
  display: block;
}

.input-wrap svg {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 17px;
  color: #949b90;
  transform: translateY(-50%);
}

.field input,
.field select {
  width: 100%;
  height: 42px;
  color: var(--ink);
  background: #fbfcfa;
  border: 1px solid #dfe2dc;
  border-radius: 10px;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.field input {
  padding: 0 14px 0 42px;
}

.field select {
  padding: 0 12px;
}

.field input::placeholder {
  color: #a7ada3;
}

.field input:focus,
.field select:focus {
  background: #fff;
  border-color: var(--ceb-green);
  box-shadow: 0 0 0 4px rgba(125, 201, 0, .11);
}

.business-row {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.business-row > div strong {
  font-size: 12px;
}

.business-row > div p {
  max-width: 330px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.logo-upload {
  width: 82px;
  height: 82px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  color: var(--ceb-green-dark);
  background: var(--ceb-green-soft);
  border: 1.5px dashed #afd66d;
  border-radius: 15px;
  cursor: pointer;
}

.logo-upload svg {
  width: 20px;
}

.logo-upload strong {
  font-size: 9px;
}

.logo-upload small {
  color: #7e8a77;
  font-size: 7px;
}

.security-note {
  margin-top: 20px;
  padding: 13px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ceb-green-dark);
  background: #f5fce9;
  border: 1px solid #dcefb9;
  border-radius: 12px;
}

.security-note svg {
  width: 21px;
  flex: 0 0 auto;
}

.security-note strong,
.security-note span {
  display: block;
}

.security-note strong {
  font-size: 10px;
}

.security-note span {
  margin-top: 2px;
  color: #708064;
  font-size: 9px;
}

.terms {
  margin-top: 16px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.terms input {
  margin-top: 2px;
  accent-color: var(--ceb-green);
}

.terms a {
  color: var(--ceb-green-dark);
  font-weight: 700;
}

.form-actions {
  margin-top: 14px;
  padding-top: 12px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line);
}

.form-actions-single {
  justify-content: stretch;
  border-top: none;
  padding-top: 4px;
  margin-top: 16px;
}

.primary-wide {
  width: 100%;
  height: 46px;
  font-size: 13px;
}

.google-button-top {
  margin-bottom: 14px;
}

.form-foot {
  margin-top: 10px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
  text-align: center;
}

.form-foot a {
  color: var(--ceb-green-dark);
  font-weight: 700;
  text-decoration: none;
}

.button {
  min-width: 140px;
  height: 44px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  border-radius: 10px;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s, background .18s;
}

.button:hover {
  transform: translateY(-1px);
}

.button svg {
  width: 17px;
}

.button.primary {
  color: #111;
  background: var(--ceb-green);
  border: 1px solid var(--ceb-green);
  box-shadow: 0 10px 24px rgba(125, 201, 0, .23);
}

.button.primary:hover {
  background: #8ade00;
}

.button.secondary {
  color: #4e574a;
  background: #fff;
  border: 1px solid #dfe2dc;
}

.trust-row {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: #8a9186;
  font-size: 9px;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.trust-row svg {
  width: 13px;
  color: var(--ceb-green-dark);
}

@media (max-width: 1080px) {
  .registration-shell {
    grid-template-columns: minmax(330px, .75fr) minmax(540px, 1.25fr);
  }

  .value-panel {
    padding-left: 36px;
    padding-right: 36px;
  }

  .benefits {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .mockup-nav {
    height: 64px;
  }

  .mockup-nav p {
    display: none;
  }

  .registration-shell {
    padding-top: 64px;
    display: block;
  }

  .value-panel {
    display: none;
  }

  /* En móvil ocultamos el bloque-hero del valor para que sea SOLO el form */
  .mobile-intro {
    display: none;
  }

  .form-panel {
    min-height: calc(100vh - 64px);
    padding: 24px 18px 40px;
    display: block;
    background: #fff;
  }

  .form-wrap {
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
  }

  /* En móvil el form pierde la tarjeta blanca y se vuelve full-bleed */
  #mockupForm,
  #registroForm,
  #activarForm {
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }

  .form-step {
    min-height: 0;
  }

  .field-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .field.full {
    grid-column: auto;
  }

  .field input,
  .field select {
    height: 52px;
    font-size: 15px;
  }

  .form-heading h2 {
    font-size: 28px;
  }

  .section-title h3 {
    font-size: 18px;
  }

  .primary-wide,
  .google-button {
    width: 100%;
    height: 52px;
  }

  .form-actions,
  .form-actions-single {
    margin: 16px 0 0;
    padding: 0;
    border: none;
  }

  .trust-row {
    flex-wrap: wrap;
    gap: 10px 16px;
  }
}


/* ─── Botón X para cerrar el formulario y volver al index ─── */
/* Esquina superior derecha de la tarjeta blanca, look CEB-soft con hover verde.
   Tamaño 36px (44px en mobile para target táctil cómodo). */
.form-wrap { position: relative; }

.form-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e1e6d8;
  color: #6b7363;
  text-decoration: none;
  cursor: pointer;
  z-index: 5;
  transition: background .15s, border-color .15s, color .15s, transform .12s;
}
.form-close-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  pointer-events: none;
}
.form-close-btn:hover {
  background: #eef6df;
  border-color: #7dc900;
  color: #2d6200;
}
.form-close-btn:active {
  transform: scale(.94);
}
.form-close-btn:focus-visible {
  outline: 3px solid rgba(125, 201, 0, .35);
  outline-offset: 2px;
}
@media (max-width: 720px) {
  .form-close-btn {
    width: 44px;
    height: 44px;
    top: 10px;
    right: 10px;
  }
  .form-close-btn svg { width: 20px; height: 20px; }
}

/* ─── Componentes adicionales (success, error, loading, terms, field errors) ─── */
.field-error{ color:#c11; font-size:10px; line-height:1.3; min-height:0; }
.field-error:empty{ display:none; }

.terms{
  display:flex;
  align-items:flex-start;
  gap:8px;
  margin-top:14px;
  font-size:11px;
  color:var(--muted);
  line-height:1.5;
  cursor:pointer;
}
.terms input{ margin-top:3px; accent-color:var(--ceb-green); }
.terms a{ color:var(--ceb-green-dark); font-weight:700; text-decoration:none; }

.success-card,.error-card,.loading-card{
  margin-top:18px;
  padding:24px 22px;
  background:var(--surface);
  border:1px solid #e6e8e0;
  border-radius:18px;
  box-shadow:0 12px 28px rgba(76,103,30,.08);
  text-align:center;
}
.success-icon,.error-icon{
  width:56px; height:56px;
  margin:0 auto 14px;
  display:grid; place-items:center;
  border-radius:50%;
}
.success-icon{ color:var(--ceb-green-dark); background:var(--ceb-green-soft); border:1px solid #d5efa9; }
.success-icon svg{ width:28px; }
.error-icon{ color:#c33; background:#fff0f0; border:1px solid #ffd1d1; }
.error-icon svg{ width:28px; height:28px; }
.success-card h3,.error-card h3{ font-size:20px; margin-bottom:8px; letter-spacing:-.02em; }
.success-card p,.error-card p{ color:var(--muted); font-size:13px; line-height:1.55; margin:6px 0; }
.success-card .success-tip{ font-size:11px; color:#92988e; margin-top:8px; }
.success-actions{ margin-top:16px; display:flex; gap:8px; justify-content:center; flex-wrap:wrap; }
.success-actions .button{ min-width:0; flex:1 1 auto; }
.button.secondary{
  background:#fff; color:var(--ink);
  border:1px solid #dfe2dc;
}
.button.secondary:hover{ background:#fafdf5; }

.loading-card{ padding:30px 22px; }
.loading-spinner{
  width:36px; height:36px; margin:0 auto 12px;
  border:3px solid #e6e8e0;
  border-top-color:var(--ceb-green);
  border-radius:50%;
  animation:spin .9s linear infinite;
}
@keyframes spin{ to{ transform:rotate(360deg); } }
.loading-card p{ color:var(--muted); font-size:13px; margin:0; }

/* Estado en proceso del botón principal */
.button.is-loading{ opacity:.7; cursor:wait; pointer-events:none; }
.button.is-loading svg{ display:none; }

/* ─── Banner "ya estás registrado" ─── */
.already-registered-banner{
  margin-bottom:14px;
  padding:14px 16px;
  display:flex;
  gap:12px;
  align-items:flex-start;
  flex-wrap:wrap;
  background:linear-gradient(135deg,#fff8eb,#fff);
  border:1px solid #f3d28c;
  border-radius:14px;
  box-shadow:0 8px 22px rgba(245,166,35,.10);
  animation:slideDown .25s ease;
}
.arb-icon{
  width:36px;height:36px;flex:0 0 auto;
  display:grid;place-items:center;
  color:#9a5a07;background:rgba(245,166,35,.18);
  border-radius:10px;
}
.arb-icon svg{ width:18px; }
.arb-body{ flex:1 1 220px; min-width:0; }
.arb-body strong{
  display:block;font-size:13px;color:var(--ink);letter-spacing:-.01em;
}
.arb-body span{
  display:block;margin-top:3px;font-size:11px;color:#6b6258;line-height:1.5;
}
.arb-body code{
  background:#fff;border:1px solid #e6e8e0;border-radius:5px;
  padding:1px 6px;font-size:10.5px;font-weight:700;color:var(--ink);
}
.arb-actions{ flex:0 0 auto; }
.arb-actions .button{
  height:38px;padding:0 16px;font-size:12px;min-width:0;
  text-decoration:none;
}
@keyframes slideDown{ from{opacity:0;transform:translateY(-6px);} to{opacity:1;transform:translateY(0);} }

/* ─── Mensaje de error inline (estilo CEB) — reemplaza alert() ─── */
.form-error-box{
  margin-top:12px;
  padding:12px 14px;
  display:flex;
  gap:10px;
  align-items:flex-start;
  background:linear-gradient(135deg,#fff0f0,#fff);
  border:1px solid #ffc9c9;
  border-radius:12px;
  box-shadow:0 6px 18px rgba(220,38,38,.08);
  animation:slideDown .22s ease;
}
.form-error-icon{
  width:28px;height:28px;flex:0 0 auto;
  display:grid;place-items:center;
  color:#c92a2a;background:#ffe3e3;border:1px solid #ffc9c9;
  border-radius:8px;
}
.form-error-icon svg{ width:14px; }
#formErrorMsg{
  flex:1;
  color:#8b1c1c;font-size:12px;line-height:1.5;font-weight:500;
}

/* Aviso flotante CEB: reemplaza los alert() nativos del navegador. */
.ceb-notice{
  position:fixed;
  left:50%;
  bottom:28px;
  z-index:10050;
  width:max-content;
  max-width:min(420px,calc(100vw - 32px));
  min-height:48px;
  padding:12px 18px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  color:#fff;
  background:linear-gradient(135deg,#ef4444,#dc2626);
  border-radius:16px;
  box-shadow:0 12px 30px rgba(220,38,38,.28);
  font-size:13px;
  font-weight:700;
  line-height:1.35;
  text-align:center;
  transform:translateX(-50%);
  animation:cebNoticeIn .24s ease both;
}
.ceb-notice.info{
  background:linear-gradient(135deg,#365f13,#24450c);
  box-shadow:0 12px 30px rgba(54,95,19,.24);
}
.ceb-notice-icon{
  width:22px;
  height:22px;
  flex:0 0 22px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.48);
  border-radius:50%;
  font-size:12px;
  font-weight:800;
}
.ceb-notice.is-leaving{
  opacity:0;
  transform:translate(-50%,8px);
  transition:opacity .2s ease,transform .2s ease;
}
@keyframes cebNoticeIn{
  from{opacity:0;transform:translate(-50%,10px)}
  to{opacity:1;transform:translate(-50%,0)}
}
@media (max-width:560px){
  .ceb-notice{
    bottom:16px;
    width:calc(100vw - 24px);
    border-radius:14px;
  }
}
