/* style/crear_usuario.css - CORREGIDO */

/* Contenedor del Formulario */
.form-card {
  background: var(--color-fondo-tarjeta);
  padding: 40px;
  border-radius: 12px;
  box-shadow: var(--sombra-tarjeta);
  border: 1px solid var(--color-borde);
  border-top: 5px solid var(--color-primario); 
}

.form-layout { display: grid; grid-template-columns: 250px 1fr; gap: 40px; align-items: start; }

/* --- SECCIÓN DE FOTO --- */
.photo-section { display: flex; flex-direction: column; align-items: center; text-align: center; padding-right: 20px; border-right: 1px solid var(--color-borde); }
.avatar-upload { position: relative; width: 180px; height: 180px; margin-bottom: 20px; }

.avatar-preview {
  width: 100%; height: 100%; border-radius: 50%; border: 4px solid #f8f9fa;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  background-size: cover; background-position: center; background-repeat: no-repeat;
  background-image: url('../img/user.png'); background-color: #e9ecef;
  overflow: hidden; position: relative; transition: all 0.3s ease;
}

.avatar-edit { position: absolute; right: 10px; bottom: 10px; z-index: 1; }
.avatar-edit input { display: none; }

.avatar-edit label {
  display: inline-block; width: 40px; height: 40px; margin-bottom: 0;
  border-radius: 100%; background: var(--color-primario); color: #fff;
  border: 2px solid #ffffff; box-shadow: 0px 2px 4px 0px rgba(0,0,0,0.12);
  cursor: pointer; font-weight: normal; transition: all 0.2s ease-in-out;
  display: flex; align-items: center; justify-content: center;
}

.avatar-edit label:hover { background: var(--color-primario-hover); transform: scale(1.1); }
.photo-hint { font-size: 12px; color: var(--color-texto-secundario); margin-top: 10px; }

/* --- SECCIÓN DE DATOS --- */
.data-section { display: flex; flex-direction: column; gap: 20px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.form-group label { display: block; font-weight: 600; margin-bottom: 8px; color: #343a40; font-size: 14px; }
.form-group label i { color: var(--color-primario); margin-right: 5px; width: 16px; text-align: center; }

/* Inputs estilizados */
.form-control {
  width: 100%; padding: 12px 15px; border-radius: 8px;
  border: 1px solid var(--color-borde); background-color: #fff;
  font-size: 14px; color: var(--color-texto-principal); transition: all 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primario);
  /* CORRECCIÓN: Brillo rojo suave en lugar de azul */
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.15);
}

select.form-control {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236c757d' class='bi bi-chevron-down' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center;
  appearance: none; padding-right: 40px;
}

.form-actions { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--color-borde); display: flex; justify-content: flex-end; gap: 15px; }

@media (max-width: 992px) {
  .form-layout { grid-template-columns: 1fr; }
  .photo-section { border-right: none; border-bottom: 1px solid var(--color-borde); padding-right: 0; padding-bottom: 30px; margin-bottom: 30px; }
  .form-grid-2 { grid-template-columns: 1fr; }
}