/* =========================================================
   VARIABLES
   ========================================================= */

:root {
  --fondo-1: #07111f;
  --fondo-2: #0d1d31;

  --glass: rgba(255, 255, 255, 0.1);

  --glass-border: rgba(255, 255, 255, 0.16);

  --texto: #ffffff;

  --texto-secundario: rgba(255, 255, 255, 0.68);

  --input-bg: rgba(255, 255, 255, 0.07);

  --accent-1: #36d399;
  --accent-2: #1fb6ff;

  --danger: #ff6b81;

  --radius: 24px;
}

/* =========================================================
   RESET
   ========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  min-height: 100vh;

  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  color: var(--texto);

  background:
    radial-gradient(
      circle at 10% 10%,
      rgba(31, 182, 255, 0.18),
      transparent 30%
    ),
    radial-gradient(
      circle at 90% 20%,
      rgba(54, 211, 153, 0.16),
      transparent 30%
    ),
    linear-gradient(135deg, var(--fondo-1), var(--fondo-2));
}

/* =========================================================
   PÁGINA
   ========================================================= */

.pagina {
  position: relative;

  min-height: 100vh;

  overflow: hidden;

  padding: 55px 24px 35px;
}

/* =========================================================
   LUCES DECORATIVAS
   ========================================================= */

.glow {
  position: absolute;

  border-radius: 50%;

  filter: blur(80px);

  pointer-events: none;

  opacity: 0.55;
}

.glow-1 {
  width: 300px;
  height: 300px;

  background: rgba(31, 182, 255, 0.22);

  top: -100px;
  left: -80px;
}

.glow-2 {
  width: 350px;
  height: 350px;

  background: rgba(54, 211, 153, 0.17);

  bottom: -150px;
  right: -100px;
}

/* =========================================================
   ENCABEZADO
   ========================================================= */

.encabezado {
  position: relative;

  z-index: 2;

  max-width: 1100px;

  margin: 0 auto 35px;

  text-align: center;
}

.marca {
  display: inline-flex;

  align-items: center;

  gap: 10px;

  margin-bottom: 18px;

  font-size: 13px;

  font-weight: 800;

  letter-spacing: 2px;

  color: rgba(255, 255, 255, 0.82);
}

.marca-linea {
  width: 34px;

  height: 3px;

  border-radius: 20px;

  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
}

.encabezado h1 {
  margin: 0;

  font-size: clamp(32px, 5vw, 52px);

  line-height: 1.05;

  letter-spacing: -1.5px;
}

.encabezado p {
  max-width: 620px;

  margin: 16px auto 0;

  color: var(--texto-secundario);

  font-size: 16px;

  line-height: 1.7;
}

/* =========================================================
   CONTENEDOR
   ========================================================= */

.registro-container {
  position: relative;

  z-index: 2;

  width: 100%;

  max-width: 1100px;

  margin: 0 auto;

  display: grid;

  grid-template-columns:
    minmax(0, 0.95fr)
    minmax(0, 1.05fr);

  gap: 24px;
}

/* =========================================================
   GLASS GENERAL
   ========================================================= */

.tarjeta-panel,
.form-panel {
  background: rgba(255, 255, 255, 0.08);

  border: 1px solid var(--glass-border);

  box-shadow:
    0 25px 70px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);

  backdrop-filter: blur(22px);

  -webkit-backdrop-filter: blur(22px);

  border-radius: var(--radius);
}

/* =========================================================
   PANEL TARJETA
   ========================================================= */

.tarjeta-panel {
  overflow: hidden;
}

/* =========================================================
   IMAGEN TARJETA
   ========================================================= */

.tarjeta-imagen {
  position: relative;

  height: 390px;

  overflow: hidden;
}

.tarjeta-imagen img {
  width: 100%;

  height: 100%;

  object-fit: cover;

  display: block;

  transform: scale(1.01);
}

.tarjeta-overlay {
  position: absolute;

  inset: 0;

  background: linear-gradient(
    180deg,
    rgba(3, 10, 20, 0.05) 15%,
    rgba(3, 10, 20, 0.2) 42%,
    rgba(3, 10, 20, 0.9) 100%
  );
}

.tarjeta-contenido {
  position: absolute;

  left: 24px;
  right: 24px;
  bottom: 24px;

  display: flex;

  flex-direction: column;

  gap: 95px;
}

.tarjeta-badge {
  align-self: flex-start;

  padding: 8px 12px;

  border-radius: 999px;

  background: rgba(255, 255, 255, 0.13);

  border: 1px solid rgba(255, 255, 255, 0.2);

  backdrop-filter: blur(10px);

  font-size: 11px;

  font-weight: 800;

  letter-spacing: 1.2px;
}

.tarjeta-small {
  display: block;

  margin-bottom: 6px;

  font-size: 11px;

  letter-spacing: 1.5px;

  color: rgba(255, 255, 255, 0.65);
}

.tarjeta-contenido strong {
  display: block;

  font-size: 26px;

  line-height: 1.2;
}

/* =========================================================
   INFORMACIÓN
   ========================================================= */

.tarjeta-info {
  padding: 25px;

  display: flex;

  flex-direction: column;

  gap: 20px;
}

.info-item {
  display: flex;

  align-items: flex-start;

  gap: 14px;
}

.info-icon {
  flex: 0 0 40px;

  width: 40px;

  height: 40px;

  border-radius: 13px;

  display: flex;

  align-items: center;

  justify-content: center;

  background: linear-gradient(
    135deg,
    rgba(54, 211, 153, 0.2),
    rgba(31, 182, 255, 0.16)
  );

  border: 1px solid rgba(255, 255, 255, 0.12);

  color: var(--accent-1);

  font-size: 13px;

  font-weight: 800;
}

.info-item strong {
  display: block;

  margin-bottom: 4px;

  font-size: 14px;
}

.info-item p {
  margin: 0;

  color: var(--texto-secundario);

  font-size: 13px;

  line-height: 1.5;
}

/* =========================================================
   FORMULARIO
   ========================================================= */

.form-panel {
  padding: 34px;
}

.form-header {
  margin-bottom: 26px;
}

.form-step {
  display: inline-block;

  margin-bottom: 10px;

  color: var(--accent-1);

  font-size: 11px;

  font-weight: 800;

  letter-spacing: 1.5px;
}

.form-header h2 {
  margin: 0;

  font-size: 29px;

  letter-spacing: -0.5px;
}

.form-header p {
  margin: 8px 0 0;

  color: var(--texto-secundario);

  font-size: 14px;
}

/* =========================================================
   ALERTAS
   ========================================================= */

.alert {
  display: flex;

  align-items: flex-start;

  gap: 12px;

  padding: 14px;

  margin-bottom: 22px;

  border-radius: 16px;

  border: 1px solid rgba(255, 255, 255, 0.1);

  backdrop-filter: blur(10px);
}

.alert-icon {
  flex: 0 0 30px;

  width: 30px;
  height: 30px;

  display: flex;

  align-items: center;

  justify-content: center;

  border-radius: 10px;

  font-weight: 800;
}

.alert strong {
  display: block;

  margin-bottom: 4px;

  font-size: 13px;
}

.alert p {
  margin: 0;

  font-size: 12px;

  line-height: 1.5;
}

.alert-error {
  background: rgba(255, 107, 129, 0.1);

  border-color: rgba(255, 107, 129, 0.18);
}

.alert-error .alert-icon {
  background: rgba(255, 107, 129, 0.15);

  color: #ff8ea0;
}

.alert-success {
  background: rgba(54, 211, 153, 0.1);

  border-color: rgba(54, 211, 153, 0.18);
}

.alert-success .alert-icon {
  background: rgba(54, 211, 153, 0.15);

  color: var(--accent-1);
}

/* =========================================================
   FORM
   ========================================================= */

.formulario {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 18px 14px;
}

.campo {
  display: flex;

  flex-direction: column;

  gap: 8px;
}

.campo-full {
    grid-column: 1 / -1;
}

.campo label {
  display: flex;

  align-items: center;

  justify-content: space-between;

  font-size: 13px;

  font-weight: 700;

  color: rgba(255, 255, 255, 0.88);
}

.campo label span {
  font-size: 14px;

  font-weight: 500;

  color: rgba(255, 255, 255, 0.4);
}

/* =========================================================
   INPUTS
   ========================================================= */

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;

  left: 15px;

  top: 50%;

  transform: translateY(-50%);

  width: 28px;

  height: 28px;

  display: flex;

  align-items: center;

  justify-content: center;

  border-radius: 8px;

  background: rgba(255, 255, 255, 0.06);

  color: var(--accent-1);

  font-size: 12px;

  font-weight: 800;
}

.input-wrapper input {
  width: 100%;

  height: 54px;

  padding: 0 16px 0 54px;

  border: 1px solid rgba(255, 255, 255, 0.12);

  border-radius: 15px;

  outline: none;

  background: rgba(255, 255, 255, 0.055);

  color: #ffffff;

  font-size: 14px;

  transition: 0.2s ease;
}

.input-wrapper input::placeholder {
  color: rgba(255, 255, 255, 0.32);
}

.input-wrapper input:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.input-wrapper input:focus {
  border-color: rgba(54, 211, 153, 0.65);

  background: rgba(255, 255, 255, 0.08);

  box-shadow: 0 0 0 4px rgba(54, 211, 153, 0.08);
}

/* =========================================================
   BOTÓN
   ========================================================= */

.btn-registrar {
  grid-column: 1 / -1;

  height: 58px;

  margin-top: 5px;

  border: none;

  border-radius: 16px;

  cursor: pointer;

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 14px;

  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));

  color: #06111d;

  font-size: 15px;

  font-weight: 800;

  box-shadow: 0 14px 30px rgba(31, 182, 255, 0.18);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.btn-registrar:hover {
  transform: translateY(-2px);

  box-shadow: 0 18px 35px rgba(31, 182, 255, 0.25);
}

.btn-registrar:active {
  transform: translateY(0);
}

.btn-arrow {
  font-size: 20px;

  transition: transform 0.2s ease;
}

.btn-registrar:hover .btn-arrow {
  transform: translateX(4px);
}

/* =========================================================
   TEXTO FINAL
   ========================================================= */

.form-footer {
  grid-column: 1 / -1;

  margin: -2px 0 0;

  text-align: center;

  color: rgba(255, 255, 255, 0.38);

  font-size: 11px;

  line-height: 1.5;
}

/* =========================================================
   FOOTER
   ========================================================= */

.footer {
  position: relative;

  z-index: 2;

  max-width: 1100px;

  margin: 25px auto 0;

  padding-top: 18px;

  border-top: 1px solid rgba(255, 255, 255, 0.08);

  display: flex;

  justify-content: space-between;

  color: rgba(255, 255, 255, 0.35);

  font-size: 11px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 850px) {
  .pagina {
    padding: 35px 16px 25px;
  }

  .registro-container {
    grid-template-columns: 1fr;
  }

  .tarjeta-imagen {
    height: 350px;
  }
}

@media (max-width: 600px) {
  .encabezado h1 {
    font-size: 34px;
  }

  .encabezado p {
    font-size: 14px;
  }

  .tarjeta-imagen {
    height: 300px;
  }

  .tarjeta-contenido {
    gap: 65px;

    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  .tarjeta-contenido strong {
    font-size: 21px;
  }

  .form-panel {
    padding: 22px 18px;
  }

  .formulario {
    grid-template-columns: 1fr;
  }

  .campo:nth-child(3),
  .campo:nth-child(5) {
    grid-column: auto;
  }

  .btn-registrar,
  .form-footer {
    grid-column: auto;
  }

  .footer {
    flex-direction: column;

    gap: 7px;

    text-align: center;
  }
}

@media (max-width: 400px) {
  .pagina {
    padding-left: 12px;
    padding-right: 12px;
  }

  .tarjeta-imagen {
    height: 270px;
  }

  .form-panel {
    padding: 18px 14px;
  }
}

/* =========================================================
   VALIDACIÓN DE CAMPOS
   ========================================================= */

.input-wrapper input.is-valid {

    border-color:
        rgba(25, 195, 125, 0.85);

    background:
        rgba(25, 195, 125, 0.07);

    box-shadow:
        0 0 0 4px
        rgba(25, 195, 125, 0.08);

}


.input-wrapper input.is-invalid {

    border-color:
        rgba(255, 90, 110, 0.90);

    background:
        rgba(255, 90, 110, 0.07);

    box-shadow:
        0 0 0 4px
        rgba(255, 90, 110, 0.08);

}


.input-wrapper input.is-valid:focus {

    border-color:
        var(--verde);

}


.input-wrapper input.is-invalid:focus {

    border-color:
        #ff5a6e;

}
