 body{
    background-color: white;
    height: 100%;
    padding: 0;
    margin: 0%;
    height: 100vh;
    overflow-x: hidden;
}

.content-contractor{
    background-color:#009ca3;
    background-position: center 30%;
    background-size: cover; 
    background-attachment: fixed; 
    background-repeat: no-repeat; 
    height: 700px;
    display: flex;
    padding: 50px 0px;
    align-items: center;
    text-align: center;
    position: relative;
    flex-wrap: nowrap;
    justify-content: center;
    
    img{
        width: 900px;
        position: relative;
        top: -40px;
        right:5px;
        left: -440px;
        z-index: 1;
    }
}

.titles{
      margin-top: -5px;
      justify-content: center;
      align-items: center;
      position:absolute;
      display: flex;
      flex-direction: column;
     
      .title1{
         justify-content: center;
         text-shadow: none !important;
         white-space: nowrap;
         max-width: 1000px;
         text-align: center;
         border-radius:  0 50px 50px 0;
         position:relative;
         margin: 10px;
         padding: 10px;
         background-color: white !important;
         font-weight: bold;
         color:#009ca3;
         font-family: Arial, sans-serif;
         letter-spacing: 5px;
         font-size: 60px;
         padding-left:800px;
         padding-right: 30px;
         right: 210px;
      }
      .title2{
          justify-content: center;
          text-shadow: none !important;
          white-space: nowrap;
          max-width: 1000px;
          text-align: center;
          border-radius:  50px 0 0 50px ;
          position: relative;
          font-weight: bold;
          padding-left: 50px; 
          left:260px;
          width: 850px;
          padding: 10px;
          color:white;
          font-family: Arial, sans-serif;
          font-size: 60px;
          letter-spacing: 5px;
          top: -20px;
          padding-right: 100px;   
          
          background-color:#f7aa00;
       }
       
 }

 .contractors-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;   /* igual que tu grid */
  margin: 0 auto;      /* centrar contenedor */
  padding: 20px 0;     /* separarlo un poco */
}

.title-principle{
      text-align:left; 
      color:#009ca3;
      margin-top:20px; 
      font-family: Arial, sans-serif;
      flex: 1; 
      font-weight: bold;
      font-size: 50px;
      text-shadow: 1px 2px 0px rgba(0, 84, 89, 0.9);
    }

.filter-form {
  font-family: Arial, sans-serif;
  display: flex;
  align-items: center;
  margin-left: auto;   /* empuja el form al extremo derecho */
}

.filter-form label {
  font-size: 20px;
  color: #005459;
  margin-right: 8px;

}

.filter-form select {
  padding: 6px 10px;
  border: 1px solid #009ca3;
  border-radius: 50px;
  background: white;
  color: #009ca3;
  cursor: pointer;
}

/* Opcional: botón de submit si lo quieres mostrar */
.filter-form select:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(31, 100, 117, 0.3);
}

.content-constructors{
     background-color: #009ca3;
     background: 
    linear-gradient(rgba(40,147,175,0.7), rgba(40,147,175,0.7)),
    url('images/contractors/background.png') center/cover no-repeat fixed;
    height: auto;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 50px 0;
    }


.grid-contractors {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 24px;
      max-width: 1200px;
      margin: 0 auto;
      padding: 60px 0;
    }
    .card {
      display: flex;
      flex-direction: column;
      border-radius: 8px;
      overflow: hidden;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
      background: #fff;
      transition: transform .2s;
    }
    .card:hover {
      transform: translateY(-4px);
    }
    .card-image {
      position: relative;
      flex-shrink: 0;
      overflow: hidden;
    }
    .card-image img {
      width: 100%;
      height: 200px;
      object-fit: cover;
      display: block;
    }
    .card-image .overlay {
      position: absolute;
      top:0; left:0; right:0; bottom:0;
      background: rgba(0,0,0,0.6);
      color: #fff;
      opacity: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 0 10px;
      transition: opacity .3s;
    }
    .card-image:hover .overlay {
      opacity: 1;
    }
    .overlay h3, .overlay p {
      margin: 4px 0;
    }
    .card-body {
      padding: 16px;
      flex-grow: 1;
    }
    .card-body .profession {
      justify-content: center;
      text-align: center;
      font-weight: bold;
      color: #009ca3;
      margin-bottom: 12px;
    }
   
    .card-body .btn-quote {
      font-family: Arial, sans-serif;
      position: relative;
      right: -60px;
      display: inline-block;
      padding: 8px 16px;
      background: #f7aa00;
      color: #fff;
      text-decoration: none;
      border-radius: 20px;
      font-weight: bold;
      transition: background .2s;

    }
    .card-body .btn-quote:hover {
      transform: scale(1.01);
      box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
      background-color: #005459;
      color: white;
    }

.pagination {
      display: flex;
      justify-content: center;
      margin: 30px 0;
      list-style: none;
      padding: 0;
    }
    .pagination li {
      margin: 0 5px;
    }
    .pagination a {
      text-decoration: none;
      color: #009ca3;
      padding: 8px 12px;
      border: 1px solid #009ca3;
      border-radius: 4px;
      
    }
    .pagination .active a {
      background-color: #009ca3;
      color: white;
    }
    .pagination .disabled a {
      color: #ccc;
      border-color: #ccc;
      pointer-events: none;
    }