#map {
    min-height: 350px;
    max-height: 390px;
}

#contact{
    background-color: white;
    padding-top: 2rem;
    padding-right: 0px;
    padding-left: 0px;
}

#contact .caret {
    width: 100px;
    margin: 0 auto;
    background-color: #244889;
    height: 5px;  
}

#contact h1 {
    position: relative;
    font-family: 'Varela Round', sans-serif;
    font-size: 3rem;
    line-height: 3rem;
    color: #555;
    text-transform: none;
}

#contact h2, #contact span  {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: clamp(2.4rem, 6vw, 3.6rem);
    line-height: 1.1; /* o 1.15 si quieres un poco más de aire */
    color: #3b4150; /* mismo tono que Servicios */
    text-align: center;
    margin-bottom: 0.5rem;
    display: block;
    width: 100%;
}

#contact .row form  {
    font-family: nunito;
    color: #555;
}

#contact .row {
    padding-left: 0rem;
    padding-right: 0rem;
}

#contact .form-control {
    border-radius: 0;
}

#contact .form-control:focus {
    box-shadow: none;
}

#contact #send {
    border-radius: 0;
    background-color: #1d365e;
}

#contact #send:focus,#contact #send:hover{
    box-shadow: none;
    background-color: #1d365e;
}

#contact #send:active
{
    outline: none !important;
    box-shadow: none !important;
    color: #1d365e !important;
    background-color: white !important;
}

#contact .container-fluid{
    padding-left: 0px !important;
    padding-right: 0px !important;
}

@media (min-width: 768px){
    #contact{
        background-color: white;
        padding-bottom: 2.5rem;
        padding-top: 2.5rem;
    }
    #contact h1 {
        font-size: 3rem;
        line-height: 4rem;
    }
    #contact h2, #contact span {
        max-width: 50rem;
        font-size: 1.15rem;
    }
    #contact .row {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    #contact .container-fluid{
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}

@media (min-width: 992px){
    #contact{
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    #contact h1 {
        font-size: 4rem;
        line-height: 4rem;
    }
    #contact h2, #contact span {
        max-width: 80rem;
        font-size: 1.25rem;
    }
    #contact .row {
        padding-left: 3rem;
        padding-right: 3rem;
    }
    #contact .container-fluid{
        padding-left: 25px !important;
        padding-right: 25px !important;
    }
}

/* === Contacto responsive === */
@media (max-width: 768px) {
  .contact-section .row {
    flex-direction: column-reverse; /* pone el mapa debajo del form */
  }

  .contact-section iframe {
    width: 100%;
    height: 300px; /* ajusta según veas */
    margin-top: 1.5rem;
  }

  .contact-section form {
    width: 100%;
  }
}

/* Encabezado de la sección Contacto */
#contact h1 {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem);
  color: #555;
  text-align: center;
  margin-bottom: 0.5rem;
}

/* Línea azul (caret) bajo el título */
#contact .caret {
  width: 72px;
  height: 4px;
  background: #1d3a6d;
  border-radius: 2px;
  margin: 0 auto 2rem auto;
}

/* Espaciado para evitar solapamiento con navbar y footer */
#contact {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

/* ==== Título principal de Contacto ==== */
#contact .section-title.section-title--contact{
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 5.8vw, 3.8rem);
  line-height: 1.1;
  color: #3b4150;
  text-align: center;
  margin-bottom: 0.5rem;
  display: block;
  width: 100%;
}
#contact .section-title.section-title--contact{ letter-spacing: .2px; }

/* ==== Línea azul bajo Contacto ==== */
#contact .caret {
  width: 72px;
  height: 4px;
  background: #1d3a6d;
  border-radius: 2px;
  margin: 0.25rem auto 2rem;
}
