/* Paleta de Colores:
   Azul Marino: #002D62
   Celeste: #00AEEF
   Blanco: #FFFFFF
   Gris Claro: #F4F7F9
*/

/* --- RESET Y BASE --- */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #F4F7F9;
    color: #333;
    display: flex;
    justify-content: center;
    padding: 20px 10px; /* Reducido para móviles */
    margin: 0;
}

#registroForm {
    background-color: #ffffff;
    max-width: 700px;
    width: 100%;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 45, 98, 0.1);
    border-top: 8px solid #002D62;
}

/* --- TIPOGRAFÍA --- */
h1 {
    color: #002D62;
    font-size: 1.5rem;
    text-align: center;
}

h2 {
    color: #002D62;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 25px 0;
    border-bottom: 2px solid #00AEEF;
    padding-bottom: 10px;
    font-size: 1.2rem;
}

h3 {
    color: #002D62;
    margin-top: 30px;
    border-left: 5px solid #00AEEF;
    padding-left: 10px;
    font-size: 1.1rem;
}

p, ul li {
    font-size: 14px;
    line-height: 1.5;
}

/* --- FORMULARIO E INPUTS --- */
label {
    font-weight: bold;
    display: block;
    margin-top: 15px;
    color: #444;
    font-size: 14px;
}

input[type="text"],
input[type="date"],
input[type="url"],
input[type="email"],
select,
textarea {
    width: 100%;
    min-height: 45px; /* Optimizado para tacto */
    padding: 12px;
    margin: 8px 0 18px 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px; /* Evita que iOS haga zoom automático al enfocar */
    transition: all 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #00AEEF;
    box-shadow: 0 0 8px rgba(0, 174, 239, 0.3);
}

textarea {
    min-height: 100px;
    resize: vertical;
}

/* --- MAPA --- */
#map {
    border: 2px solid #002D62;
    border-radius: 10px;
    margin: 10px 0;
    height: 300px; /* Altura fija para móviles */
    width: 100%;
    z-index: 1;
}

/* --- BOTONES Y ARCHIVOS --- */
input[type="file"] {
    margin: 10px 0 20px 0;
    font-size: 14px;
}

button[type="submit"] {
    width: 100%;
    background-color: #002D62;
    color: white;
    padding: 16px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    text-transform: uppercase;
    margin-top: 25px;
}

button[type="submit"]:hover { background-color: #00AEEF; }
button[type="submit"]:active { transform: scale(0.98); }

/* --- BARRA DE PROGRESO --- */
#containerProgreso {
    margin: 20px 0;
}

#barra {
    height: 20px;
    background-color: #00AEEF;
    border-radius: 10px;
    transition: width 0.4s ease;
}

/* --- MODALES --- */
.modal {
    display: none; 
    position: fixed;
    z-index: 3000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(3px); /* Efecto moderno */
}

.modal-content {
    background-color: white;
    margin: 5vh auto;
    padding: 25px 20px;
    width: 95%; /* Más ancho en móviles */
    max-width: 600px;
    border-radius: 15px;
    position: relative;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-body {
    overflow-y: auto;
    flex-grow: 1;
    margin: 15px 0;
    padding-right: 10px;
    font-size: 15px;
    line-height: 1.6;
    text-align: left;
}

.close-button {
    position: absolute;
    top: 5px;
    right: 15px;
    font-size: 40px;
    color: #888;
    cursor: pointer;
}

#cerrarModal {
    background-color: #002D62;
    color: white;
    padding: 12px;
    border-radius: 8px;
    border: none;
    font-weight: bold;
    width: 100%;
}

/* --- ESTADOS --- */
input:disabled, select:disabled, textarea:disabled, button:disabled {
    background-color: #f0f0f0 !important;
    opacity: 0.6;
    cursor: not-allowed;
}

#seccionEstudios {
    background-color: #eef9ff;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #00AEEF;
}

/* --- MEDIA QUERIES --- */
@media (max-width: 480px) {
    body { padding: 10px 5px; }
    #registroForm { padding: 15px; }
    h1 { font-size: 1.3rem; }
    h2 { font-size: 1rem; }
}
