/* ===============================
   Estilos del formulario de registro
   Desarrollo Emprendedor
   =============================== */

/* Variables de color */
:root {
  --registro-primary: #93c462;
  --registro-primary-hover: #688a3b;
  --registro-primary-light: rgba(147, 196, 98, 0.12);
  --registro-text: #3c3c3c;
  --registro-text-muted: #6c757d;
  --registro-border: #e0e6e8;
  --registro-bg-section: #f8faf9;
}

/* Contenedor principal */
.registro-container {
  max-width: 900px;
  margin: 0 auto;
}

/* Card principal */
.registro-card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.registro-card .card-header {
  background: linear-gradient(135deg, var(--registro-primary) 0%, var(--registro-primary-hover) 100%);
  color: white;
  font-family: "Archivo-SemiBold", system-ui, sans-serif;
  font-size: 1.25rem;
  padding: 1rem 1.5rem;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.registro-card .card-header .btn-outline-light {
  border-width: 2px;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.registro-card .card-header .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: white;
  color: white;
}

.registro-card .card-body {
  padding: 2rem 1.5rem;
}

/* Secciones del formulario */
.registro-section {
  background: var(--registro-bg-section);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--registro-border);
}

.registro-section-title {
  font-family: "Archivo-SemiBold", system-ui, sans-serif;
  font-size: 0.95rem;
  color: var(--registro-primary-hover);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.registro-section-title i {
  opacity: 0.9;
}

/* Labels mejorados */
.registro-section label,
.registro-form label {
  font-weight: 600;
  color: var(--registro-text);
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

/* Inputs mejorados */
.registro-form .form-control {
  border-radius: 8px;
  border: 1px solid var(--registro-border);
  padding: 0.5rem 0.75rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.registro-form .form-control:focus {
  border-color: var(--registro-primary);
  box-shadow: 0 0 0 3px var(--registro-primary-light);
  outline: none;
}

/* Prepend: borde gris oscuro para mayor contraste */
.registro-form .input-group-text {
  background: #e8ecef !important;
  border: 1px solid #9ca3af !important;
  border-radius: 8px 0 0 8px;
  color: var(--registro-text-muted);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.6), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.registro-form .input-group .form-control {
  border: 1px solid #9ca3af;
  border-left: none;
  border-radius: 0 8px 8px 0;
}

.registro-form .input-group .form-control:focus + .input-group-append .input-group-text,
.registro-form .input-group:focus-within .input-group-text {
  border-color: var(--registro-primary) !important;
  color: var(--registro-primary-hover);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.6), 0 0 0 3px var(--registro-primary-light);
}

/* Radio buttons - estilo limpio sin bordes */
.registro-form .form-check {
  padding: 0.35rem 0.5rem 0.35rem 0;
  margin: 0.25rem 1rem 0.25rem 0;
}

.registro-form .form-check-input:checked + .form-check-label {
  font-weight: 600;
}

.registro-form .form-check-input {
  margin-top: 0.2rem;
}

/* Card de emprendimiento */
.registro-emprendimiento {
  border: none;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  margin-top: 1.5rem;
}

.registro-emprendimiento .card-header {
  background: var(--registro-bg-section);
  border-bottom: 2px solid var(--registro-primary);
  padding: 1rem 1.5rem;
  font-family: "Archivo-SemiBold", system-ui, sans-serif;
  color: var(--registro-primary-hover);
  font-size: 1.05rem;
}

.registro-emprendimiento .card-body {
  padding: 1.5rem;
}

.registro-emprendimiento .card-footer {
  background: var(--registro-bg-section);
  border-top: 1px solid var(--registro-border);
  padding: 1rem 1.5rem;
}

/* Botón de envío */
.registro-btn-submit {
  background: linear-gradient(135deg, var(--registro-primary) 0%, var(--registro-primary-hover) 100%);
  border: none;
  color: white;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 10px;
  font-size: 1.05rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(147, 196, 98, 0.35);
}

.registro-btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(147, 196, 98, 0.45);
  color: white;
}

/* Requisitos de contraseña */
.registro-password-rules {
  background: white;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  border: 1px solid var(--registro-border);
  font-size: 0.85rem;
  color: var(--registro-text-muted);
}

.registro-password-rules ul {
  margin: 0;
  padding-left: 1.25rem;
  line-height: 1.7;
}

/* Redes sociales - solo ajuste de tamaño de fuente */
.registro-social-prefix {
  font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
  .registro-card .card-body {
    padding: 1.25rem 1rem;
  }
  
  .registro-section {
    padding: 1rem;
  }
  
  .registro-form .form-check {
    display: block;
    width: 100%;
  }
}
