/* Contenedor principal para centrar y dar margen */
form {
  max-width: 900px;
  margin: 50px auto 30px auto;
  background-color: #fff;
  padding: 24px 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgb(0 0 0 / 0.1);
  font-family: 'Roboto', sans-serif;
  color: #333;
}

/* Sección de cada pestaña (tab) */
.tab-section {
  margin-bottom: 40px;
}

/* Título de la sección */
.tab-section h3 {
  font-weight: 600;
  font-size: 1.3rem;
  margin-bottom: 20px;
  border-bottom: 2px solid #2196F3;
  padding-bottom: 8px;
  color: #0d47a1;
}

/* Grid para la disposición de los campos */
.grid {
  display: grid;
  gap: 20px 15px;
}

/* Cada campo individual */
.form-element {
  display: flex;
  flex-direction: column;
}

/* Etiqueta de campo */
.form-element label {
  font-weight: 500;
  margin-bottom: 6px;
  color: #444;
}

/* Inputs, textarea y select con estilo uniforme */
input[type="text"],
input[type="email"],
input[type="date"],
input[type="number"],
textarea,
select {
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="date"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #2196F3;
  box-shadow: 0 0 6px #bbdefb;
}

/* Radios y checkboxes alineados */
.form-element div {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.form-element div label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-weight: 400;
  color: #555;
}

/* Mensajes de error */
.error small {
  color: #e53935;
  font-size: 0.875rem;
  margin-top: 4px;
}

/* Botón submit */
button[type="submit"] {
  background-color: #1976d2;
  color: white;
  padding: 12px 28px;
  font-size: 1.1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.25s ease;
  display: block;
  margin: 0 auto;
  margin-top: 15px;
  box-shadow: 0 3px 8px rgb(25 118 210 / 0.4);
}

button[type="submit"]:hover:not(:disabled) {
  background-color: #0d47a1;
}

button[type="submit"]:disabled {
  background-color: #90caf9;
  cursor: not-allowed;
}
.containerPagina {
  max-width: 900px;
  margin: 0 auto;
  margin-top: 50px;
  padding: 16px;
  background-color: #fff;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.1);
  border-radius: 8px;
}

.grid {
  display: grid;
  gap: 16px;
}

.form-element {
  display: flex;
  flex-direction: column;
}

label {
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 14px;
}

.input-field, .textarea-field, .select-field {
  padding: 8px;
  font-size: 14px;
  border: 1.5px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  resize: vertical;
}

.textarea-field {
  min-height: 70px;
}

.radio-group, .checkbox-group {
  display: flex;
  gap: 12px;
  align-items: center;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.error {
  color: #d32f2f;
  margin-top: 4px;
  font-size: 12px;
}

.button-container {
  margin-top: 24px;
  text-align: right;
}

.submit-button {
  background-color: #1976d2;
  color: white;
  font-weight: 600;
  padding: 10px 24px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.submit-button:disabled {
  background-color: #90caf9;
  cursor: not-allowed;
}

.submit-button:not(:disabled):hover {
  background-color: #1565c0;
}


/* Responsive para pantallas pequeñas */
@media (max-width: 600px) {
  .grid {
    grid-template-columns: 1fr !important; /* Forzar 1 columna en móvil */
  }
}
