/* ===============================
   ESTILOS GENERALES DEL FORMULARIO
   =============================== */

body {
  background: #f5f7fa;
  font-family: "Lato", sans-serif;
  color: #003057;
  margin: 0;
  padding: 0;
}

/* ===============================
   MODAL: TÍTULO PRINCIPAL
   =============================== */
.modal-title {
  font-size: 28px !important;
  font-weight: 800 !important;
  color: #000 !important;
  text-align: center !important;
  width: 100%;
  display: block;
  letter-spacing: 0.5px;
}

.modal-title i {
  color: #002d55;
  font-size: 30px;
  margin-right: 8px;
  vertical-align: middle;
}

/* ===============================
   CONTENEDOR PRINCIPAL
   =============================== */
.content_ms {
  max-width: 1100px;
  margin: 30px auto;
  background: #fff;
  padding: 40px 50px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease-in-out;
}

.content_ms:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* ===============================
   TÍTULOS Y SECCIONES
   =============================== */

.content_ms h1,
.content_ms h2,
.content_ms h3 {
  font-weight: 700;
  color: #002d55;
  text-align: left;
  margin-bottom: 18px;
}

h1 {
  font-size: 26px;
}

h2 {
  font-size: 22px;
}

h3 {
  font-size: 18px;
}

/* Apariencia de secciones */
h1, h3 {
  background: #f0f4f8;
  color: #002d55;
  padding: 12px 18px;
  border-left: 5px solid #00a8b5;
  border-radius: 6px;
  font-weight: 700;
  margin: 35px 0 20px 0;
  letter-spacing: 0.5px;
}

/* Corrige alineación de los h3 dentro de filas Bootstrap */
.row > h3 {
  margin-left: 0;
  padding-left: 18px !important;
  width: calc(100% - 30px);
  display: block;
}

.row h3:first-child {
  margin-top: 15px;
}

/* ===============================
   CAMPOS DE FORMULARIO
   =============================== */

.form-group label {
  font-weight: 600;
  color: #003057;
  margin-bottom: 8px;
}

.lightinput,
.form-control {
  width: 100%;
  border: 2px solid #ccd4dc;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 15px;
  color: #003057;
  transition: border 0.25s ease, box-shadow 0.25s ease;
  background-color: #fff;
}

.lightinput:focus,
.form-control:focus {
  border-color: #00a8b5;
  box-shadow: 0 0 0 0.2rem rgba(0, 168, 181, 0.25);
  outline: none;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg fill='%23002d55' height='12' viewBox='0 0 24 24' width='12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
}

/* Íconos en etiquetas */
label i.fa-info-circle {
  color: #00a8b5;
  cursor: pointer;
}

label i.fa-user,
label i.fa-envelope,
label i.fa-id-card {
  color: #002d55;
  margin-right: 5px;
}

/* ===============================
   BOTONES
   =============================== */

.mainbtn,
.btn-action {
  display: inline-block;
  width: 100%;
  padding: 14px 20px;
  background-color: #00b0ac;
  color: #fff !important;
  border: none;
  border-radius: 8px;
  font-size: 17px;
  font-weight: 600;
  text-align: center;
  transition: background 0.3s ease, transform 0.2s ease;
}

.mainbtn:hover,
.btn-action:hover {
  background-color: #009396;
  transform: translateY(-2px);
  cursor: pointer;
}

/* Botón principal personalizado */
.mainbtn {
  background-color: #002d55 !important;
  color: white !important;
}

.mainbtn:hover {
  background-color: #00427d !important;
}

/* ===============================
   ALERTAS Y HR
   =============================== */

.alert {
  border-radius: 10px;
  padding: 14px 18px;
  font-weight: 500;
}

hr.solid {
  border-top: 2px solid #00b0ac;
  margin: 30px 0;
}

/* ===============================
   TOOLTIP CON IMAGEN
   =============================== */
.imagen-hover {
  display: none;
  position: absolute;
  z-index: 100;
}

label .fa-info-circle:hover .imagen-hover {
  display: inline-block;
  margin-left: 8px;
}

/* ===============================
   ORGANIZACIÓN DE SECCIONES
   =============================== */

form {
  margin-top: 20px;
}

form .row {
  margin-bottom: 25px;
}

/* ===============================
   CORREO Y CONFIRMAR CORREO
   =============================== */
#email,
#email_confirmation {
  width: 100%;
}

@media (min-width: 768px) {
  /* Poner correo y confirmar al lado */
  #email,
  #email_confirmation {
    width: 100%;
    display: inline-block;
    vertical-align: top;
  }

  #email {
    margin-right: 2%;
  }

  #email_confirmation {
    margin-left: 2%;
  }
}

/* ===============================
   TELÉFONO Y ARCHIVO ADJUNTO
   =============================== */
@media (min-width: 768px) {
  .phone-file-row {
    display: flex;
    gap: 30px;
    align-items: flex-start;
  }

  .phone-file-row .col-md-6,
  .phone-file-row .col-md-9 {
    flex: 1;
  }
}

/* Archivo adjunto */
#formFile {
  border: 2px dashed #ccd4dc;
  padding: 10px;
  background-color: #f9fafc;
  border-radius: 8px;
  transition: border-color 0.3s ease, background 0.3s ease;
}

#formFile:hover {
  border-color: #00a8b5;
  background-color: #eefcff;
}

/* ===============================
   AJUSTES VISUALES
   =============================== */
hr.solid {
  border-top: 2px solid #00b0ac;
  margin: 30px 0;
}

/* ===============================
   RESPONSIVE
   =============================== */

@media (max-width: 768px) {
  .content_ms {
    padding: 25px 20px;
  }

  h1 {
    font-size: 22px;
    text-align: center;
  }

  h2 {
    font-size: 20px;
    text-align: center;
  }

  label {
    font-size: 14px;
  }

  .mainbtn {
    font-size: 16px;
  }

  .phone-file-row {
    flex-direction: column;
  }

  .row > h3 {
    width: 100%;
  }
}


.btn-enviar {
  display: inline-block;
  width: 100%;
  max-width: 320px;
  background: linear-gradient(135deg, #00b0ac, #006b8f);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 16px 22px;
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 96, 128, 0.3);
  transition: all 0.25s ease-in-out;
  cursor: pointer;
  text-align: center;
}

.btn-enviar i {
  margin-right: 10px;
  font-size: 18px;
  vertical-align: middle;
}

.btn-enviar:hover {
  background: linear-gradient(135deg, #00c7be, #007fa3);
  box-shadow: 0 6px 20px rgba(0, 128, 160, 0.4);
  transform: translateY(-3px);
}

.btn-enviar:active {
  transform: scale(0.98);
  box-shadow: 0 3px 8px rgba(0, 96, 128, 0.3);
}

.btn-enviar:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 176, 172, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
  .btn-enviar {
    font-size: 16px;
    padding: 14px 18px;
    max-width: 100%;
  }
}

input[type="file"].form-control {
  border: 2px dashed #00b0ac;
  background-color: #f9f9f9;
  color: #002d55;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  height: 70px;              
  padding: 18px 20px;       
  font-size: 15px;
  display: flex;
  align-items: center;     
}

input[type="file"].form-control:hover {
  background-color: #eefafa;
  border-color: #009b9a;
}

input[type="file"].form-control:focus {
  outline: none;
  border-color: #00b0ac;
  box-shadow: 0 0 6px rgba(0, 176, 172, 0.4);
}

input[type="file"].form-control::-webkit-file-upload-button {
  padding: 12px 22px;
  border-radius: 6px;
  background-color: #00b0ac;
  color: #fff;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
  margin-right: 12px;        
}

input[type="file"].form-control::-webkit-file-upload-button:hover {
  background-color: #00908e;
}

