body {
    font-family: 'Roboto', sans-serif;
    background-color: #123474;
    display: flex;
    justify-content: center;
    padding: 40px;
    margin: 0;
}

.academic-options {
    margin: 24px 0;
    padding: 18px;
    border: 1px solid #dce3ef;
    border-radius: 10px;
    background: #fbfcff;
}

.academic-options legend {
    padding: 0 6px;
    color: #123474;
    font-weight: 600;
}

.academic-options p {
    margin: 6px 0 14px;
    text-align: left;
}

.academic-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
}

.academic-options input[type="checkbox"],
.academic-options input[type="radio"] {
    width: auto;
    margin: 0;
}

#datosTitulo[hidden],
#datosTituloEnTramite[hidden] {
    display: none;
}

.form-container {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 650px;
    padding: 30px 40px;
    box-sizing: border-box;
}

.banner {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 25px;
}

h1 {
    color: #202124;
    margin-bottom: 10px;
    text-align: center;
}

h2 {
    color: #202124;
    margin-bottom: 10px;
    text-align: center;
}

p {
    color: #5f6368;
    text-align: center;
    margin-bottom: 30px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #202124;
}

input, select {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 1px solid #dadce0;
    font-size: 15px;
    box-sizing: border-box;
}

.form-section {
    margin: 28px 0;
    padding: 24px;
    border: 1px solid #e1e7f0;
    border-radius: 12px;
    background: #f8faff;
}

.form-section__header {
    margin-bottom: 20px;
}

.form-section__header h2 {
    margin: 0 0 6px;
    color: #123474;
    text-align: left;
}

.form-section__header p {
    margin: 0;
    color: #5f6b7a;
    text-align: left;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.form-field {
    min-width: 0;
}

.form-field input {
    margin-bottom: 8px;
}

.form-field small {
    display: block;
    color: #5f6b7a;
    line-height: 1.4;
}

button {
    background-color: #1a73e8;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
}

button:hover {
    background-color: #155ab6;
}

button:disabled {
    background-color: #9aa0a6;
    cursor: not-allowed;
}

#mensaje {
    min-height: 1.5em;
    margin: 0 0 16px;
}

/* Responsivo */
@media (max-width: 768px) {
    body {
        padding: 20px;
    }
    .form-container {
        padding: 25px 20px;
    }
    .form-section {
        padding: 18px;
    }
    .form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    h2 {
        font-size: 20px;
    }
    p {
        font-size: 14px;
    }
}

.checkbox-group {
  margin-top: 20px;
}

.checkbox-group label {
  display: flex;             /* Mantiene checkbox y texto alineados en la misma línea */
  align-items: center;       /* Centra verticalmente el texto con el checkbox */
  gap: 6px;                  /* Espacio entre el checkbox y el texto */
  margin-bottom: 6px;        /* Espacio entre opciones */
  text-align: left;
  cursor: pointer;
  width: auto;               /* Evita que se estire todo el ancho */
}

.checkbox-group input[type="checkbox"] {
  width: auto;               /* Evita que el input herede el width: 100% */
  margin: 0;                 /* Quita márgenes sobrantes */
}