html, body {
  max-width: 100%;
  overflow-x: hidden; /* Evita scroll fantasma */
  scroll-behavior: smooth;
}

#include-contact {
  min-height: 100vh; /* ajusta según el tamaño que suele tener tu sección */
  display: block;
}

/* Contenedor Principal */
#contacto .container {
    display: flex;
    background: rgb(247, 247, 247);
    color: rgb(0, 15, 29);
    max-width: 1700px; /* Para que no se extienda demasiado en pantallas grandes */
    margin: 0 auto; /* Centrar en la pantalla */
    padding-top: 60px;
    padding-bottom: 60px;
    padding-left: 100px;
    padding-right: 100px;
    align-items: center; /* Centra horizontalmente */
    text-align: center; /* Centra el texto */
}

/* Área de Cotización */
#contacto .contact-box {
  background: rgb(247, 247, 247);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgb(0, 15, 29);
  width: 100%;       /* Permite que crezca con el contenedor padre */
  max-width: 900px; /* Ajusta este valor al máximo deseado */
  margin: 0 auto;
  padding: 0px;
}

#contacto .content-formulario{
  padding: 50px;
}

#contacto .content-formulario h2{
  font-size: 32px;
  color: rgb(0, 15, 29);
  margin: 0px;
  padding-bottom: 32px;
}

#contacto .card-header {
    background: rgb(0, 15, 29);
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

#contacto .buttons {
    display: flex;
    gap: 8px;
}

#contacto .buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: block;
}

#contacto .red { background: #ff5f57; }
#contacto .yellow { background: #febc2e; }
#contacto .green { background: #28c940; }

#contacto::before,
#contacto::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  }

#contacto form {
      display: flex;
      flex-direction: column;
      gap: 15px;
    }

    #contacto input, select, textarea {
      padding: 12px;
      font-size: 1rem;
      border: 1px solid rgb(0, 15, 29);
      border-radius: 6px;
      width: 100%;
      box-sizing: border-box;
      outline: none;
    }

    #contacto input:focus,
    #contacto select:focus,
    #contacto textarea:focus {
      border: 2px solid #007bff;
    }

    #contacto .row {
      display: flex;
      gap: 15px;
      flex-wrap: wrap;
    }

    #contacto .row input {
      flex: 1;
      min-width: 200px;
    }

    #contacto label {
      text-align: left;
      display: block;
      width: 100%;
      padding-top: 12px;
    }

    #contacto button {
      margin-top: 18px;
      padding: 12px;
      font-size: 1rem;
      font-weight: bold;
      background-color: #007aff;
      color: rgb(247, 247, 247);
      border: none;
      border-radius: 6px;
      cursor: pointer;
      width: 100%;
      transition: background-color 0.3s ease;
    }

    #contacto button:hover {
      background-color: #0059be;
    }

    /* Responsive */
    @media (max-width: 600px) {
      #contacto h2 {
        text-align: center;
        font-size: 1.2rem;
      }
      #contacto .row {
        flex-direction: column;
      }
    }


    /* Botón y animación de loading */
#submit-btn {
  position: relative;
  padding: 10px 20px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

#submit-btn:hover {
  background-color: #0056b3;
}

#submit-btn .btn-loading {
  display: none;
}

#submit-btn.loading .btn-text {
  display: none;
}

#submit-btn.loading .btn-loading {
  display: inline;
}

/* Notificación de envío */
.form-status {
  margin-top: 15px;
  padding: 10px;
  border-radius: 6px;
  display: none;
  font-weight: bold;
}

.form-status.success {
  background-color: #d4edda;
  color: #155724;
}

.form-status.error {
  background-color: #f8d7da;
  color: #721c24;
}





/* Área de Información de Contacto */
#contacto .info-box {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: last baseline;
    justify-content: space-between;
    padding-left: 74px;
}

#contacto .contact-caja{
  background: rgb(247, 247, 247);
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-left: 80px;
}

#contacto .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding-top: 32px;
}

#contacto .logo img{
  padding-top: 32px;
  height: 13em;
}

#contacto .contact-item i {
    font-size: 1.5rem;
    color: #007aff;
    margin-top: 12px;
    flex-shrink: 0;
}

#contacto .contact-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

#contacto .contact-text strong {
    font-size: 1.2rem;
    color: rgb(0, 15, 29);
    margin-bottom: 0dvh;
}

#contacto .contact-text p {
    margin: 0;
    font-size: 1rem;
    font-weight: 100;
    color: rgb(0, 15, 29);
}

.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  font-size: 32px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 4px 4px 12px rgba(0,0,0,0.3);
  cursor: pointer;
  overflow: hidden;        /* 🔥 evita que se vea cualquier línea fantasma */
  line-height: 0;          /* 🔥 elimina altura de línea extra */
}

.whatsapp-float:hover {
  background-color: #1ebc5c;
  transform: scale(1.1);
}

/* Ajuste del ícono */
.whatsapp-float i {
  display: block;
  line-height: 0;          /* 🔥 asegura que no genere espacio debajo */
  margin: 0;
  padding: 0;
  font-size: inherit;      /* mantiene el tamaño exacto del contenedor */
}

/* Responsive */
@media (max-width: 1200px) {
    #contacto .container{
        flex-direction: column;
        padding-left: 12px;
        padding-right: 12px;
        padding-top: 40px;
        padding-bottom: 40px;
    }

    #contacto .contact-caja{
      flex-direction: column;
      align-items: center;
      text-align: center;
      padding: 0;
    }

    #contacto .info-box {
      flex-direction: column;
      align-items: center;
      text-align: center;
      padding: 0;
    }
  
    #contacto .contact-item {
      flex-direction: column;
      align-items: center;
      gap: 8px;
      padding-top: 18px;
    }

    #contacto .contact-item i{
        font-size: 20px;
      }
  
    #contacto .contact-text {
      align-items: center;
    }

    #contacto .contact-text strong{
        font-size: 20px;
        font-weight: bold;
      }

      #contacto .contact-text p{
        font-weight: 100;
      }

        #contacto .logo img{
          height: 9em;
        }

  }

  @media (max-width: 600px){
    #contacto .content-formulario{
      padding: 30px;
    }

    #contacto .content-formulario h2{
      font-size: 22px;
    }

    #contacto .logo img{
      height: 8em;
    }
  }