/* --- RESET B脕SICO --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  /* --- ESTRUCTURA GENERAL --- */
  body {
    font-family: Arial, sans-serif;
    background-color: #f6f8fa;
    color: #333;
    padding: 20px;
  }
  
  .container {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0,0,0,0.1);
  }
  
  /* --- HEADER --- */
  header {
    text-align: center;
    margin-bottom: 20px;
  }
  
  .logo {
    max-width: 220px;
  }
  
  /* --- FORMULARIO GENERAL --- */
  form h2, form h3 {
    margin-bottom: 15px;
  }
  
  h2{
      text-align:center;
  }
  
  h3 {
      font-size: 18px;
      text-decoration: underline;
     
  }
  
  .datosbancarios, .datospersonales, .referencias, .detalles, .uniforme, .contactoemergencia, .nivelEstudio,  .medical-history-container, .checkbox-group {

   border: 1px solid #ccc; /* Borde alrededor de la secci贸n */
   padding: 15px;
   border-radius: 5px; 
   margin-bottom: 15px;   
}

  form section {
    margin-bottom: 25px;
  }
  
  .row {
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
    margin-bottom: 15px;
  }
  
  .col {
    flex: 1 1 45%;
    min-width: 0;
  }
  
  label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
  }
  
  input[type="text"],
  input[type="date"],
  input[type="email"],
  input[type="tel"],
  select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: border 0.3s;
    box-sizing: border-box;
    box-shadow: 0 0 5px rgba(0, 153, 255, 0.3);
    transition: box-shadow 0.3s ease;

  }
  
  input[type="text"]:focus,
  input[type="date"]:focus,
  input[type="email"]:focus,
  input[type="tel"]:focus,
  select:focus {
    border-color: #4caf50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.4);
    outline: none;
    
    
  }
  
  /* iOS: asegurar legibilidad y evitar zoom forzado */
    input, select { font-size: 16px; }
  
  .input-field select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: white;
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px;
    padding-right: 30px;
}
  
input:disabled, select:disabled, textarea:disabled {
  background-color: #e9ecef !important;
  cursor: not-allowed;
} 
 
/* Oculta el texto "Ningún archivo seleccionado" pero deja el botón nativo */
input[type="file"].sin-texto { font-size: 0; }

/* Estilo base del botón nativo */
input[type="file"].sin-texto::file-selector-button,
input[type="file"].sin-texto::-webkit-file-upload-button {
  font-size: 14px;
  padding: .45rem .75rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: all .2s ease;
}

/* ✅ Con archivo */
input[type="file"].file-ok::file-selector-button,
input[type="file"].file-ok::-webkit-file-upload-button {
  color: #fff;
  background: #16a34a;      /* verde */
  border-color: #16a34a;
}

/* ⛔ Falta (solo si es required) */
input[type="file"].file-missing::file-selector-button,
input[type="file"].file-missing::-webkit-file-upload-button {
  color: white;
  background: #a1a9b5;      /* rojo muy suave */
  /*border-color: #dc2626;*/
}

/* Fallback por si un navegador no permite estilado del botón */
input[type="file"].file-ok { border-radius: 8px; }
input[type="file"].file-missing { border-radius: 8px; }

 
 
 
  select.error,
  input.error {
    border-color: red;
    background-color: #ffe6e6;
  }
  
  .completed {
    box-shadow: 0 0 5px rgba(0, 255, 0, 0.3); /* Sombra verde suave */
    border: 2px solid blue;
    outline: none;
}
  
  
  /* --- CAMPOS "OTROS" OCULTOS --- */
  .hidden {
    display: none;
  }
  
  /* --- GRUPOS DE CHECKBOXES --- */
  .checkbox-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
  
  }
  
  .checkbox-group label {
    font-weight: normal;
    margin-left: 5px;
  }
  
  .checkbox-group input[type="checkbox"] {
  margin-right: 5px;
}
  
  /* --- PRIVACIDAD --- */
  .privacidad-group {
    margin: 20px 0;
  }
  
  .privacidad-group label {
    font-size: 0.95em;
  }
  
  /* --- BOT脫N ENVIAR --- */
  button[type="submit"] {
    background-color: #4caf50;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s;
  }
  
  button[type="submit"]:hover {
    background-color: #45a049;
  }
  
  button[type="submit"]:disabled {
    background-color: #999;
    cursor: not-allowed;
  }


/* Estilos para la casilla "ninguna" */
#ninguna {
    margin-right: 5px; /* Espacio a la derecha del checkbox */
}

#ninguna + label { /* Estilos para la etiqueta de "ninguna" */
    font-weight: bold; /* Resalta la etiqueta "ninguna" */
}

  
  /* --- MENSAJES --- */
  #mensajeExito {
    margin-top: 15px;
    color: blue;
    padding: 10px;
    font-weight: bold;
   
  }
  
  #mensajeError {
    margin-top: 15px;
    color: red;
    padding: 10px;
    font-weight: bold;
   
  }
  
  

  /* Estilos para el checkbox de privacidad */
.privacidad-group {
      margin: 20px 0;
    }

/* Modal de pol铆tica de privacidad */

.modal {
      display: none;
      position: fixed;
      z-index: 9999;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      overflow: auto;
      background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
      background-color: #fff;
      margin: 10% auto;
      padding: 20px;
      border: 1px solid #888;
      width: 90%;
      padding: 30px;
      max-width: 600px;
      border-radius: 10px;
      max-height: 70vh;
      overflow-y: auto;
}

.close {
      color: #aaa;
      float: right;
      font-size: 24px;
      font-weight: bold;
      cursor: pointer;
}

.close:hover {
      color: black;
}
  
/* Overlay de subida/procesamiento */
#overlay-upload[hidden] { display: none !important; }

#overlay-upload {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.55); color: #fff;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

#overlay-upload .box {
  width: min(520px, 92vw);
  background: #1f2937;
  border-radius: 14px; padding: 18px 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
}

#overlay-upload .estado { font-size: 1.05rem; margin-bottom: 10px; }
#overlay-upload progress { width: 100%; height: 14px; margin: 6px 0 4px; }
#overlay-upload .detalle { display: flex; justify-content: space-between; font-size: .9rem; opacity: .9; }
#overlay-upload .acciones { margin-top: 12px; text-align: right; }
#overlay-upload .acciones button {
  background: #374151; border: none; color: #fff;
  padding: 8px 12px; border-radius: 8px; cursor: pointer;
}
#overlay-upload .acciones button:hover { background: #4b5563; }

  
  
  /* --- RESPONSIVE --- */
  @media (max-width: 768px) {
      
    .container {
    width: 95%;
    padding: 15px;
    }
      
      
    .row {
      flex-direction: column;
    }
    .col {
      flex: 1 1 100%;
    }
    .logo {
      max-width: 150px;
    }
    
    button[type="submit"] {
    width: 100%;
  }
    
    
    
  }
  