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

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f2f4f7;
}

.contenedor {
  display: flex;
  min-height: 100vh;
}

.panel-izquierdo {
  position: relative;
  flex: 1 1 46%;
  min-height: 100vh;
  background: url('bg.jpg') center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.panel-izquierdo .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,30,55,0.55) 0%, rgba(15,30,55,0.72) 100%);
}

.contenido-izquierdo {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 480px;
  padding: clamp(20px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(10px, 1.6vh, 18px);
}

.logo {
  width: clamp(150px, 20vw, 230px);
  height: auto;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.35));
  margin-bottom: 4px;
}

.titulo-cursivo {
  font-family: 'Alex Brush', 'Brush Script MT', 'Segoe Script', cursive;
  font-weight: 400;
  font-size: clamp(48px, 6.5vw, 80px);
  color: #3f7cb8;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  line-height: 1;
}

.subtitulo {
  color: #ffffff;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.nit {
  color: #9fd6a3;
  font-size: clamp(13px, 1.2vw, 16px);
  letter-spacing: 0.5px;
}

.linea {
  width: 70px;
  height: 3px;
  background: #6fbf73;
  border-radius: 3px;
}

.bienvenida {
  color: #eef2f7;
  font-size: clamp(13px, 1.3vw, 16px);
  line-height: 1.5;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.etiquetas {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: clamp(12px, 1.1vw, 14px);
  color: #fff;
}

.etiquetas span { display: flex; align-items: center; gap: 6px; }

.punto { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.punto.verde { background: #6fbf73; }
.punto.azul { background: #4a90d9; }
.punto.rosa { background: #d1487a; }

.credito {
  margin-top: clamp(10px, 3vh, 26px);
  color: #d7e4f2;
  font-size: clamp(12px, 1vw, 14px);
  font-style: italic;
  opacity: 0.9;
}

.panel-derecho {
  flex: 1 1 54%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  background: #f2f4f7;
}

.tarjeta-form {
  width: 100%;
  max-width: 560px;
  background: #fff;
  border-radius: 16px;
  padding: clamp(24px, 3vw, 40px);
  box-shadow: 0 10px 30px rgba(20,30,50,0.08);
}

.titulo-form { font-size: 26px; color: #1b2733; margin-bottom: 6px; }
.descripcion-form { color: #6b7684; font-size: 14px; margin-bottom: 22px; }

.fila-doble {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.campo { margin-bottom: 16px; display: flex; flex-direction: column; }

.campo label {
  font-size: 13px;
  font-weight: 600;
  color: #2c3542;
  margin-bottom: 6px;
}

.campo input,
.campo select {
  padding: 11px 12px;
  border: 1px solid #d7dce2;
  border-radius: 8px;
  font-size: 14px;
  color: #1b2733;
  background: #fff;
}

.campo input:focus,
.campo select:focus {
  outline: none;
  border-color: #4a90d9;
  box-shadow: 0 0 0 3px rgba(74,144,217,0.15);
}

.check-autorizacion {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: #4b5563;
  margin: 6px 0 22px;
  line-height: 1.4;
}

.check-autorizacion input { margin-top: 3px; }

.boton-registrar {
  width: 100%;
  padding: 14px;
  background: #4a90d9;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.boton-registrar:hover { background: #3a78bd; }

.alerta {
  background: #fdecea;
  color: #b3261e;
  border: 1px solid #f5c2bd;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
}

.pantalla-gracias {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
  padding: 24px;
}

.logo-gracias { width: 140px; margin-bottom: 8px; }
.pantalla-gracias h1 { color: #1b2733; }
.pantalla-gracias p { color: #6b7684; max-width: 420px; }

.boton-volver {
  margin-top: 10px;
  padding: 12px 24px;
  background: #4a90d9;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 15px;
}

@media (max-width: 900px) {
  .contenedor { flex-direction: column; }
  .panel-izquierdo { min-height: 56vh; }
  .fila-doble { grid-template-columns: 1fr; }
}
