 @import url('https://fonts.googleapis.com/css2?family=Fira+Sans:wght@400;600&display=swap');
 @import url('https://fonts.googleapis.com/css2?family=IM+Fell+Double+Pica:ital@0;1&display=swap');

 /* General */
 * {
   box-sizing: border-box;
   margin: 0;
   padding: 0;
 }

 body {
   font-family: 'Fira Sans', sans-serif;
   display: flex;
   flex-direction: column;
   min-height: 100vh;
 }

 .container {
   display: grid;
   grid-template-rows: auto 1fr auto;
   min-height: 100vh;
 }

 header {
   background: #1c6f53;
   color: white;
   padding: 0.5%;
   display: flex;
   align-items: center;
   justify-content: space-between;
   position: relative;
 }

 .header-title {
   position: absolute;
   left: 33%;
   transform: translateX(-50%);
   font-family: "IM Fell Double Pica", serif;
   font-size: 5.5vh;
   font-weight: bold;
   letter-spacing: 2px;
 }

 nav a {
   position: relative;
   color: white;
   text-decoration: none;
   font-weight: bold;
   font-size: 20px;
   font-family: "Fira Sans", sans-serif;
   transition: color 0.3s ease;
 }

 nav a::after {
   content: '';
   position: absolute;
   left: 0;
   bottom: -4px;
   width: 100%;
   height: 2px;
   background-color: white;
   transform: scaleX(0);
   transform-origin: right;
   transition: transform 0.3s ease;
 }

 nav a:hover::after {
   transform: scaleX(1);
   transform-origin: left;
 }

 nav a:hover {
   color: #dcd2c6;
 }

 .footer {
   background-color: #1c6f53;
   color: white;
   padding: 50px 20px 30px;
   font-family: 'Fira Sans', sans-serif;
   text-align: center;
 }

 .footer-content {
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 30px;
   max-width: 1000px;
   margin: 0 auto 30px;
 }

 .footer-info {
   max-width: 600px;
   text-align: center;
 }

 .footer-logo {
   width: 120px;
   height: auto;
   margin-bottom: 15px;
   background: #fff;
   border-radius: 8px;
   padding: 5px;
 }

 .footer-info p {
   font-size: 15px;
   line-height: 1.6;
 }

 .footer-contact {
   text-align: center;
 }

 .footer-contact h4 {
   font-size: 18px;
   margin-bottom: 10px;
   color: #ffffff;
 }

 .footer-contact p {
   margin: 5px 0;
   font-size: 14px;
 }

 .footer-contact a {
   color: #ffffff;
   text-decoration: underline;
   font-weight: 600;
 }

 .footer-legal-links {
   display: flex;
   justify-content: center;
   flex-wrap: wrap;
   gap: 15px;
   border-top: 1px solid rgba(255, 255, 255, 0.3);
   padding-top: 20px;
   margin-top: 20px;
 }

 .footer-legal-links a {
   color: #ffffff;
   font-size: 14px;
   text-decoration: none;
   transition: color 0.3s ease;
 }

 .footer-legal-links a:hover {
   color: #dcd2c6;
   text-decoration: underline;
 }

 .footer-copy {
   margin-top: 15px;
   font-size: 13px;
   color: #e0e0e0;
 }

 #cookie-banner {
   position: fixed;
   bottom: 0;
   width: 100%;
   background: black;
   color: #1c6f53;
   padding: 15px 30px;
   box-shadow: 0 -4px 10px rgba(0, 132, 53, 0.7);
   font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
   font-size: 16px;
   display: flex;
   flex-wrap: wrap;
   align-items: center;
   justify-content: space-between;
   gap: 15px;
   z-index: 9999;
   box-sizing: border-box;
   user-select: none;
   visibility: hidden;
   opacity: 0;
   transition: opacity 0.3s ease;
 }


 #cookie-banner p {
   margin: 0;
   flex: 1 1 300px;
 }

 #cookieForm {
   display: flex;
   align-items: center;
   gap: 15px;
   flex-wrap: wrap;
   margin: 0;
   flex: 1 1 auto;
   justify-content: flex-end;
 }

 #cookieForm label {
   cursor: pointer;
   user-select: none;
   font-weight: 500;
 }

 #cookieForm input[type="checkbox"] {
   margin-right: 6px;
   width: 18px;
   height: 18px;
   cursor: pointer;
   accent-color: white;
 }

 #cookieForm button {
   background: transparent;
   color: gray;
   border: 2px solid white;
   border-radius: 6px;
   padding: 8px 16px;
   font-weight: 600;
   cursor: pointer;
   box-shadow: none;
   transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
 }

 #cookieForm button:hover {
   background-color: white;
   color: #1c6f53;
   border-color: white;
   box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
 }

 .legal-main {
   padding: 60px 30px;
   background-color: #fdfdfd;
   font-family: 'Fira Sans', sans-serif;
   color: #333;
   line-height: 1.7;
 }

 .legal-section {
   max-width: 900px;
   margin: 0 auto;
   background: #ffffff;
   padding: 40px 50px;
   border-radius: 10px;
   box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
 }

 .legal-section h1 {
   font-size: 32px;
   color: #1c6f53;
   margin-bottom: 30px;
   text-align: center;
 }

 .legal-section h2 {
   font-size: 22px;
   margin-top: 30px;
   margin-bottom: 10px;
   color: #005e2c;
 }

 .legal-section p {
   font-size: 16px;
   margin-bottom: 15px;
 }

 .legal-section ul {
   margin-left: 20px;
   padding-left: 15px;
   list-style-type: disc;
 }

 .legal-section li {
   margin-bottom: 10px;
 }

 .legal-section a {
   color: #1c6f53;
   text-decoration: underline;
 }

 .legal-section.cookies-preferencias {
   background: #ffffff;
   border-radius: 12px;
   padding: 50px;
   box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
   max-width: 950px;
   margin: 0 auto;
   animation: fadeIn 0.6s ease-in-out;
 }

 .legal-section.cookies-preferencias h1 {
   font-size: 34px;
   text-align: center;
   color: #1c6f53;
   margin-bottom: 25px;
   font-weight: 700;
 }

 .legal-section.cookies-preferencias h2 {
   color: #006f2c;
   font-size: 22px;
   margin-top: 30px;
   margin-bottom: 10px;
   font-weight: 600;
 }

 .legal-section.cookies-preferencias p {
   font-size: 16px;
   color: #333;
   margin-bottom: 15px;
   line-height: 1.7;
 }

 .legal-section.cookies-preferencias ul {
   list-style: none;
   margin: 15px 0 25px 0;
   padding: 0;
 }

 .legal-section.cookies-preferencias li {
   background: #f4f1ec;
   margin-bottom: 12px;
   padding: 12px 18px;
   border-left: 5px solid #1c6f53;
   border-radius: 6px;
 }

 .legal-section.cookies-preferencias li strong {
   color: #005e2c;
 }

 .cookies-buttons {
   display: flex;
   justify-content: center;
   flex-wrap: wrap;
   gap: 15px;
   margin-top: 40px;
 }

 .cookies-buttons button {
   background-color: #1c6f53;
   color: #fff;
   border: none;
   border-radius: 8px;
   padding: 12px 30px;
   font-size: 16px;
   font-weight: 600;
   cursor: pointer;
   transition: background-color 0.3s ease, transform 0.2s ease;
 }

 .cookies-buttons button:hover {
   background-color: #006f2c;
   transform: translateY(-2px);
 }

 .cookies-buttons .secondary {
   background-color: #f4f1ec;
   color: #1c6f53;
   border: 2px solid #1c6f53;
 }

 .cookies-buttons .secondary:hover {
   background-color: #1c6f53;
   color: #fff;
 }

 @keyframes fadeIn {
   from {
     opacity: 0;
     transform: translateY(10px);
   }

   to {
     opacity: 1;
     transform: translateY(0);
   }
 }


 .logo-img img {
   height: 110px;
   margin-left: 0;
   background: #dcd2c6;
 }

 nav ul {
   display: flex;
   list-style: none;
   gap: 15px;
 }

 nav a {
   color: white;
   text-decoration: none;
   font-weight: bold;
   font-size: 20px;
   font-family: "Fira Sans", sans-serif;
 }

 .header-contact {
   position: absolute;
   top: 10px;
   right: 30px;
   display: flex;
   align-items: center;
   gap: 15px;
   font-size: 16px;
   font-weight: 600;
   font-family: 'Fira Sans', sans-serif;
 }

 .phone-number {
   color: #fff;
 }

 .social-icons {
   display: flex;
   gap: 10px;
 }

 .social-icons img {
   width: 25px;
   height: 25px;
   filter: grayscale(100%) brightness(0.8);
   transition: transform 0.3s ease, filter 0.3s ease;
   cursor: pointer;
 }

 .social-icons img:hover {
   transform: scale(1.2);
   filter: grayscale(0%) brightness(1) sepia(1) saturate(5) hue-rotate(120deg);
 }


 /* Index.html */

 .content {
   display: grid;
   grid-template-columns: 1fr 4fr 1fr;
 }

 .box {
   padding: 20px;
   font-weight: bold;
 }

 .box-1,
 .box-3 {
   background: #dcd2c6;
 }

 .box-2 {
   display: flex;
   justify-content: center;
   align-items: center;
   background-image: url('/static/imagenes/oficina1.jpg') !important;
   background-size: cover;
   background-position: center;
   position: relative;
   padding: 40px;
   min-height: 40vh;
 }

 .formulario-busqueda {
   display: flex;
   flex-wrap: wrap;
   justify-content: center;
   align-items: flex-start;
   gap: 10px 15px;
   padding: 20px;
   background-color: white;
   border-radius: 10px;
   box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
   position: relative;
 }


 .formulario-busqueda input,
 .formulario-busqueda select {
   flex: 1 1 150px;
   min-width: 120px;
   max-width: 200px;
   padding: 10px;
   font-size: 16px;
   border: 1px solid #ccc;
   border-radius: 4px;
   transition: border-color 0.3s ease;
   box-sizing: border-box;
 }

 input[type="number"] {
   -moz-appearance: textfield;
   -webkit-appearance: none;
   appearance: none;
   padding: 10px 15px;
   border: 2px solid #ffffff;
   border-radius: 6px;
   font-size: 16px;
   width: 200px;
   transition: border-color 0.3s, box-shadow 0.3s;
   background-color: #ffffff;
   color: #1c6f53;
 }

 input[type="text"] {
   appearance: none;
   padding: 10px 15px;
   border: 2px solid #ffffff;
   border-radius: 6px;
   font-size: 16px;
   width: 200px;
   transition: border-color 0.3s, box-shadow 0.3s;
   background-color: #ffffff;
   color: #1c6f53;
 }

 select#tipo_propiedad {
   appearance: none;
   padding: 10px 15px;
   border: 2px solid #ffffff;
   border-radius: 6px;
   font-size: 16px;
   width: 200px;
   transition: border-color 0.3s, box-shadow 0.3s;
   background-color: #ffffff;
   color: #1c6f53;
 }

 input::-webkit-outer-spin-button,
 input::-webkit-inner-spin-button {
   -webkit-appearance: none;
   margin: 0;
 }

 input[type=number] {
   -moz-appearance: textfield;
 }

 input[type="number"]:focus {
   border-color: #4dd2a3;
   outline: none;
   box-shadow: 0 0 8px rgba(77, 210, 163, 0.6);
 }

 input[type="number"]::placeholder {
   color: #999999;
   font-style: italic;
 }

 input[type="number"]+input[type="number"] {
   margin-left: 15px;
 }

 .formulario-busqueda button {
   padding: 10px 25px;
   background-color: #1c6f53;
   color: white;
   border: none;
   border-radius: 4px;
   cursor: pointer;
   font-weight: bold;
   transition: background-color 0.3s ease;
   align-self: flex-end;
   margin-left: 2vh;
   white-space: nowrap;
 }

 .formulario-busqueda input:focus,
 .formulario-busqueda select:focus {
   border-color: #1c6f53;
   outline: none;
 }

 .formulario-busqueda button:hover {
   background-color: #0c3427;
   color: #ffffff;
 }


 .busqueda-propiedades {
   position: relative;
   max-width: 700px;
   margin: 2rem auto;
 }


 #resultados-propiedades {
   grid-column: 1 / -1;
   display: block !important;
   position: relative;
   margin-top: 30px;
   width: 100%;
   background: #fff;
   border: 1px solid #ddd;
   border-radius: 6px;
   box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
   z-index: 1;
   max-height: 400px;
   overflow-y: auto;
 }


 .content2 {
   display: flex;
   flex-direction: row;
   padding: 0;
   margin: 0;
 }

 .box-4 {
   background: #dcd2c6;
   flex: 2;
   padding: 30px;
 }

 h2.destacados {
   font-family: "Fira Sans", sans-serif;
   font-size: 4.2vh;
   font-weight: 700;
   color: #1c6f53;
   text-transform: uppercase;
   letter-spacing: 0.8px;
   text-align: center;
   margin: 5vh auto 3vh;
   position: relative;
   display: block;
 }

 h2.destacados::after {
   content: "";
   display: block;
   width: 12vh;
   height: 0.5vh;
   background-color: #1c6f53;
   margin: 2vh auto 0;
   border-radius: 0.5vh;
   box-shadow: 0 0.5vh 1vh rgba(0, 0, 0, 0.1);
 }

 .box-5 {
   background: #ffffff;
   color: #333;
   flex: 1;
   padding: 50px 40px;
   font-family: "Fira Sans", sans-serif;
   display: flex;
   flex-direction: column;
   justify-content: center;
   align-items: center;
   text-align: center;
   border-radius: 12px;
   box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
   max-width: 600px;
   margin: 0 auto;
   transition: transform 0.3s ease, box-shadow 0.3s ease;
 }

 .box-5:hover {
   transform: translateY(-4px);
   box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
 }

 .box-5 h3 {
   font-size: 28px;
   color: #1c6f53;
   margin-top: 0;
   margin-bottom: 16px;
   letter-spacing: 0.5px;
 }

 .box-5 p {
   font-size: 17px;
   line-height: 1.7;
   margin-top: 0;
   margin-bottom: 25px;
   max-width: 450px;
   color: #555;
 }

 a#btn-custom {
   text-decoration: none;
   color: white;
   background-color: #1c6f53;
   border: none;
   display: inline-block;
   padding: 10px 26px;
   font-size: 16px;
   font-weight: 600;
   border-radius: 8px;
   cursor: pointer;
   text-align: center;
   transition: background-color 0.3s ease, transform 0.2s ease;
 }

 a#btn-custom:hover {
   background-color: #0d5a3f;
   transform: scale(1.05);
 }

 .box-5 iframe {
   width: 100%;
   max-width: 400px;
   height: 250px;
   border: none;
   border-radius: 10px;
   box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
   margin-top: 2vh;
   display: block;
 }

 .box-6 {
  width: 100%;
  background-color: #dcd2c6;
  padding: 40px 5%; 
  margin: 0;
}

.card-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: stretch;
}

.profile-card {
  display: flex;
  align-items: stretch;
  background: #ffffff;
  width: 100%;
  max-width: 1200px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.profile-card img {
  width: 45%;
  height: auto;
  object-fit: cover;
}

.profile-info {
  flex: 1;
  padding: 60px 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #2e2e2e;
}

.profile-info h3 {
  font-size: 2.2rem;
  font-weight: 600;
  color: #1c6f53;
  margin-bottom: 20px;
}

.profile-info p {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.5;
}

.profile-info p i {
  color: #1c6f53;
  font-size: 1.3rem;
}

 footer {
   background: #1c6f53;
   color: white;
   text-align: center;
   padding: 20px;
   font-size: 14px;
 }

 /* Contactanos.html: */
 #main-contacto {
   grid-column: 1 / -1;
   background-color: #f3f3f3;
   padding: 60px 20px;
   display: flex;
   justify-content: center;
   font-family: "Fira Sans", sans-serif;
 }

 .contact-wrapper {
   display: flex;
   gap: 40px;
   max-width: 1300px;
   width: 100%;
   flex-wrap: nowrap;
   justify-content: space-between;
   align-items: flex-start;
 }

 .contact-info-card {
   position: relative;
   background-size: cover;
   background-position: center;
   border-radius: 12px;
   flex: 1;
   min-width: 380px;
   max-width: 500px;
   height: auto;
   display: flex;
   align-items: center;
   justify-content: center;
   box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
   padding: 20px;
 }

 .info-overlay {
   background-color: #1c6f53;
   color: white;
   padding: 30px 25px;
   border-radius: 10px;
   text-align: left;
   width: 100%;
   max-width: 320px;
   box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
 }

 .info-overlay h2 {
   font-size: 30px;
   margin-bottom: 20px;
 }

 .info-overlay p {
   font-size: 15px;
   margin-bottom: 15px;
   line-height: 1.6;
 }

 .contact-form-card {
   background-color: #ffffff;
   padding: 40px;
   border-radius: 12px;
   flex: 2.5;
   min-width: 55%;
   max-width: 650px;
   box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
 }

 .formulario-contacto {
   display: flex;
   flex-direction: column;
   gap: 20px;
 }

 .grupo-formulario {
   display: flex;
   flex-direction: column;
 }

 .formulario-contacto label {
   font-weight: 600;
   margin-bottom: 6px;
   color: #333;
 }

 .formulario-contacto input,
 .formulario-contacto textarea {
   padding: 12px;
   font-size: 16px;
   border: 1px solid #ccc;
   border-radius: 6px;
   font-family: inherit;
   transition: border-color 0.3s ease;
 }

 .formulario-contacto input:focus,
 .formulario-contacto textarea:focus {
   outline: none;
   border-color: #1c6f53;
 }

 .formulario-contacto button {
   align-self: flex-start;
   padding: 12px 30px;
   background-color: #1c6f53;
   color: white;
   font-weight: bold;
   border: none;
   border-radius: 6px;
   cursor: pointer;
   transition: background-color 0.3s ease;
 }

 .formulario-contacto button:hover {
   background-color: #25b484;
 }

 /* Valoración.html */

 .valoracion-form-wrapper {
   background-size: cover;
   background-position: center;
   padding: 60px 20px;
   display: flex;
   justify-content: center;
   align-items: center;
   position: relative;
   color: white;
 }

 .valoracion-form-wrapper::before {
   content: "";
   position: absolute;
   inset: 0;
   background-color: rgba(0, 0, 0, 0.5);
   z-index: 0;
 }

 .valoracion-form-container {
   position: relative;
   max-width: 700px;
   width: 100%;
   background-color: rgba(255, 255, 255, 0.9);
   padding: 40px 30px;
   border-radius: 12px;
   box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
   color: #333;
   z-index: 1;
 }

 .valoracion-title {
   font-size: 28px;
   font-weight: 700;
   color: #1c6f53;
   margin-bottom: 10px;
   text-align: center;
   font-family: "Carattere", cursive;
 }

 .valoracion-subtitle {
   font-size: 16px;
   margin-bottom: 30px;
   text-align: center;
   color: #555;
 }

 .valoracion-form label {
   font-weight: 600;
   margin-bottom: 6px;
   display: block;
   color: #333;
 }

 .valoracion-form input,
 .valoracion-form select,
 .valoracion-form textarea {
   width: 100%;
   padding: 10px;
   margin-bottom: 15px;
   border: 1px solid #ccc;
   border-radius: 6px;
   font-size: 16px;
   font-family: inherit;
   box-sizing: border-box;
 }

 .valoracion-form button {
   background-color: #1c6f53;
   color: white;
   font-weight: 700;
   padding: 12px 20px;
   border: none;
   border-radius: 8px;
   cursor: pointer;
   width: 100%;
   font-size: 18px;
   transition: background-color 0.3s ease;
 }

 .valoracion-form button:hover {
   background-color: #006f2c;
 }

 .form-row {
   display: flex;
   flex-wrap: wrap;
   gap: 15px;
   justify-content: space-between;
 }

 .form-group {
   flex: 1 1 30%;
   min-width: 180px;
 }

 .form-group.full {
   flex: 1 1 100%;
 }

 .unit {
   margin-left: 8px;
   font-weight: 600;
   color: #666;
   vertical-align: middle;
 }

 .checkbox {
   display: flex;
   align-items: center;
   gap: 8px;
   cursor: pointer;
   color: #333;
   font-weight: 600;
   margin-bottom: 12px;
 }

 .checkbox input[type="checkbox"] {
   width: 18px;
   height: 18px;
   margin: 0;
 }

 /* quienes somos */
 #quienes-somos-main {
   padding: 50px 30px;
   max-width: 1000px;
   margin: 0 auto;
   font-family: 'Fira Sans', sans-serif;
   color: #333;
 }

 #quienes-somos-main h1,
 #quienes-somos-main h2 {
   color: #1c6f53;
   margin-bottom: 20px;
   font-weight: 700;
 }

 #quienes-somos-main p {
   font-size: 18px;
   line-height: 1.6;
   margin-bottom: 30px;
 }

 #quienes-somos-main .team {
   margin-top: 50px;
 }

 #quienes-somos-main .team-cards {
   display: flex;
   gap: 30px;
   flex-wrap: wrap;
   justify-content: center;
 }

 .team-member {
   background: #f4f1ec;
   border-radius: 10px;
   padding: 20px;
   width: 280px;
   box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
   text-align: center;
   transition: transform 0.2s ease;
 }

 .team-member:hover {
   transform: translateY(-8px);
 }

 .team-member img {
   width: 120px;
   height: 120px;
   border-radius: 50%;
   object-fit: cover;
   margin-bottom: 15px;
   border: 3px solid #1c6f53;
 }

 .team-member h3 {
   margin-bottom: 5px;
   color: #005e2c;
   font-size: 20px;
 }

 .team-member p {
   font-size: 14px;
   color: #555;
   margin-bottom: 10px;
 }

 #quienes-somos-main .values {
   margin-top: 50px;
 }

 #quienes-somos-main .values ul {
   list-style: disc inside;
   font-size: 16px;
   line-height: 1.6;
   max-width: 600px;
   margin: 0 auto;
   color: #444;
 }

 #quienes-somos-main .values li {
   margin-bottom: 12px;
 }

 /* Propiedades */

 #main-propiedades {
   padding: 60px 30px;
   background-color: #fdfdfd;
   font-family: 'Fira Sans', sans-serif;
   color: #333;
 }

 .propiedades-wrapper {
   display: flex;
   gap: 40px;
   max-width: 1400px;
   margin: 0 auto;
 }

 .filtros-buscador {
   flex: 1;
   background-color: #ffffff;
   padding: 30px;
   border-radius: 12px;
   box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
   max-width: 320px;
 }

 .filtros-buscador h2 {
   font-size: 24px;
   margin-bottom: 20px;
   color: #1c6f53;
 }

 .form-filtros {
   display: flex;
   flex-direction: column;
   gap: 15px;
 }

 .form-filtros label {
   font-weight: bold;
   font-size: 14px;
 }

 .form-filtros input,
 .form-filtros select {
   padding: 10px;
   border: 1px solid #ccc;
   border-radius: 6px;
   font-size: 15px;
 }

 .form-filtros button {
   background-color: #1c6f53;
   color: white;
   padding: 12px;
   border: none;
   border-radius: 6px;
   font-weight: bold;
   font-size: 16px;
   cursor: pointer;
   transition: background-color 0.3s ease;
   margin-top: 10px;
 }

 .form-filtros button:hover {
   background-color: #006f2c;
 }

 .listado-casas {
   flex: 3;
   display: flex;
   flex-direction: column;
   gap: 25px;
 }

 .casa-card {
   display: flex;
   gap: 20px;
   background-color: #fff;
   padding: 20px;
   border-radius: 12px;
   box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
   transition: transform 0.2s ease;
 }

 .casa-card:hover {
   transform: translateY(-5px);
 }

 .casa-card img {
   width: 220px;
   height: 150px;
   object-fit: cover;
   border-radius: 8px;
 }

 .info-casa {
   display: flex;
   flex-direction: column;
   justify-content: space-between;
 }

 .info-casa h3 {
   font-size: 20px;
   color: #005e2c;
 }

 .info-casa p {
   margin: 4px 0;
   font-size: 14px;
 }

 .precio {
   font-weight: bold;
   font-size: 18px;
   color: #1c6f53;
 }

 .descripcion {
   color: #666;
 }

 .form-filtros>div {
   transition: all 0.3s ease;
 }

 /* Detalle propiedad */

 .detalle-propiedad {
   max-width: 1200px;
   margin: 0 auto;
   background: #fff;
   box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
   border-radius: 16px;
   overflow: hidden;
 }

 .detalle-hero {
   position: relative;
   width: 100%;
   height: 450px;
   overflow: hidden;
 }

 .detalle-hero img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   filter: brightness(80%);
   transition: transform 0.4s ease;
 }

 .detalle-hero:hover img {
   transform: scale(1.05);
 }

 .hero-overlay {
   position: absolute;
   bottom: 30px;
   left: 40px;
   color: #fff;
   text-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
 }

 .hero-overlay h1 {
   font-size: 2rem;
   margin: 0;
 }

 .precio-hero {
   font-size: 1.2rem;
   font-weight: bold;
   margin-top: 8px;
   background: rgba(0, 0, 0, 0.4);
   display: inline-block;
   padding: 6px 12px;
   border-radius: 6px;
 }

 .detalle-info {
   padding: 30px 40px;
 }

 .descripcion {
   font-size: 1.1rem;
   color: #555;
   margin-bottom: 25px;
   line-height: 1.6;
 }

 .atributos {
   list-style: none;
   padding: 0;
   margin: 0;
 }

 .atributos li {
   background: #f7f7f7;
   margin-bottom: 10px;
   padding: 12px 15px;
   border-left: 4px solid #1c6f53;;
   border-radius: 6px;
   font-size: 0.95rem;
 }

 .atributos strong {
   color: #1c6f53;;
 }

 .galeria {
   padding: 30px 40px 50px;
   border-top: 1px solid #e0e0e0;
 }

 .galeria h2 {
   font-size: 1.5rem;
   margin-bottom: 20px;
   color: #1c6f53;
   text-align: center;
 }

 #galeria-imagenes {
   display: flex;
   overflow-x: auto;
   overflow-y: hidden;
   gap: 10px;
   margin-top: 20px;
   padding: 10px;
   background-color: #f9f9f9;
   border-radius: 8px;
   -webkit-overflow-scrolling: touch;
   scrollbar-width: thin;
   scrollbar-color: #ccc #f1f1f1;
 }

 #galeria-imagenes::-webkit-scrollbar {
   height: 8px;
 }

 #galeria-imagenes::-webkit-scrollbar-track {
   background: #f1f1f1;
   border-radius: 4px;
 }

 #galeria-imagenes::-webkit-scrollbar-thumb {
   background-color: #ccc;
   border-radius: 4px;
   border: 2px solid #f1f1f1;
 }

 #galeria-imagenes::-webkit-scrollbar-thumb:hover {
   background-color: #999;
 }

 .galeria-imagen {
   height: 100px;
   width: auto;
   flex-shrink: 0;
   border-radius: 8px;
   cursor: pointer;
   transition: transform 0.3s ease, box-shadow 0.3s ease;
   border: 1px solid #ddd;
 }

 .galeria-imagen:hover {
   transform: scale(1.05);
   box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
 }

 .lightbox-overlay {
   position: fixed;
   top: 0;
   left: 0;
   width: 100vw;
   height: 100vh;
   background-color: rgba(0, 0, 0, 0.85);
   display: none;
   align-items: center;
   justify-content: center;
   z-index: 1000;
   padding: 20px;
   box-sizing: border-box;
 }

 .lightbox-imagen {
   max-width: 90%;
   max-height: 90%;
   border-radius: 8px;
   object-fit: contain;
 }

 .lightbox-cerrar {
   position: absolute;
   top: 20px;
   right: 30px;
   font-size: 40px;
   font-weight: bold;
   color: white;
   cursor: pointer;
   line-height: 1;
   transition: transform 0.2s ease;
 }

 .lightbox-cerrar:hover {
   transform: scale(1.1);
   color: #f1f1f1;
 }


 /* ---------------------------------------------------------- */

 /* Responsive */

 .menu-toggle {
   display: none;

 }

/* --- RESPONSIVE OPTIMIZADO: Móviles (Hasta 600px) --- */
@media (max-width: 600px) {

    
    header {
        display: flex;
        flex-direction: column; 
        align-items: center;
        text-align: center;
        position: relative;
        padding: 15px 10px; 
    }

    .logo-img img {
        height: 70px; 
        margin: 0 auto 10px;
        background: none; 
    }

    .header-title {
        position: static;
        transform: none;
        font-size: 28px; 
        margin: 5px 0 10px;
        order: -1; 
    }

    .header-contact {
        position: static;
        margin: 10px auto;
        flex-direction: column;
        gap: 10px;
        font-size: 16px;
    }

    .phone-number span {
        font-size: 16px;
    }

    .social-icons {
        display: flex;
        gap: 15px;
        margin-top: 5px;
    }
    
    .social-icons img {
        width: 30px; 
        height: 30px;
        filter: grayscale(0%) brightness(1); 
    }

    .menu-toggle {
        display: block; 
        background: #1c6f53;
        color: white;
        border: none;
        font-size: 24px;
        padding: 8px 12px;
        cursor: pointer;
        position: absolute; 
        top: 20px; 
        right: 15px;
        z-index: 1001; 
        border-radius: 4px;
    }

    nav {
        position: fixed; 
        top: 0;
        right: -300px; 
        width: 300px;
        height: 100vh;
        background: #1c6f53;
        flex-direction: column;
        padding-top: 80px; 
        transition: right 0.3s ease; 
        z-index: 1000; 
        display: flex;
    }

    nav.show {
        right: 0; 
    }

   
    nav ul {
        flex-direction: column;
        gap: 20px;
        padding-left: 20px;
        margin-top: 0; 
    }

    nav a {
        font-size: 18px; 
        color: white;
        display: block;
        padding: 10px;
    }

    .content {
        display: flex;
        flex-direction: column;
    }

    .box-1,
    .box-3 {
        display: none; 
    }

    .box-2 {
        padding: 30px 15px;
        min-height: 40vh; 
        background-size: cover;
        background-position: center;
        display: flex; 
        align-items: center;
        justify-content: center;
    }

    .formulario-busqueda { 
        flex-direction: column;
        width: 100%;
        max-width: 350px;
        padding: 20px;
        gap: 10px;
    }

    .formulario-busqueda input,
    .formulario-busqueda select,
    .formulario-busqueda button {
        flex: none;
        width: 100%; 
        max-width: none;
        margin-left: 0;
        box-sizing: border-box;
    }
    
    .formulario-busqueda button {
        align-self: stretch; 
    }

    .content2 {
        flex-direction: column;
    }

    .box-4,
    .box-5 {
        flex: none;
        width: 100%;
        padding: 30px;
    }

    .box-5 {
        max-width: 100%; 
        border-radius: 0;
        box-shadow: none;
        padding: 30px 20px;
    }
    
    .box-5:hover {
        transform: none; 
        box-shadow: none;
    }

    .box-5 iframe {
        max-width: 100%;
        height: 200px;
    }

    .box-6 {
        padding: 30px 10px;
    }

    .card-container {
        flex-direction: column;
        align-items: center;
    }

    .profile-card {
        flex-direction: column; 
        width: 100%;
        max-width: 450px;
    }
    
    .profile-card img {
        width: 100%; 
        height: auto;
        max-height: 200px;
    }

    .profile-info {
        padding: 25px;
        text-align: center;
    }
    
    .profile-info p {
        justify-content: center; 
        font-size: 1rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }

    .footer-legal-links {
        flex-direction: column;
        gap: 10px;
    }

    #cookie-banner {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 15px;
    }

    #cookieForm {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    #cookieForm button {
        width: 100%;
    }

    /* Propiedades */

    #main-propiedades {
        padding: 20px 10px;
    }

    .propiedades-wrapper {
        flex-direction: column; 
        gap: 20px;
    }

    .filtros-buscador {
        max-width: none; 
        width: 100%;
        padding: 15px;
        order: -1;
    }
    
    .filtros-buscador h2 {
        text-align: center;
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .form-filtros {
        gap: 10px;
    }

    .listado-casas {
        flex: none; 
        gap: 15px;
    }
    
    .casa-card {
        flex-direction: column; 
        gap: 10px;
        padding: 15px;
        align-items: center; 
    }
    
    .casa-card img {
        width: 100%; 
        height: 200px;
        max-width: none;
    }

    .info-casa {
        width: 100%;
        gap: 10px;
    }

    .info-casa h3 {
        font-size: 18px;
    }
    
    .precio {
        font-size: 16px;
    }
    
    .descripcion {
        display: none; 
    }

    #main-contacto {
        padding: 30px 10px;
    }
    
    .contact-wrapper {
        flex-direction: column; 
        gap: 30px;
        align-items: center; 
    }
    
    .contact-info-card {
        width: 100%; 
        min-width: unset;
        max-width: 100%;
        height: auto;
    }

    .info-overlay {
        max-width: 90%; 
        text-align: center;
        margin: 0 auto; 
    }

    .info-overlay p {
        font-size: 14px;
        margin-bottom: 10px;
    }
 /* Formulario contacto */

    .contact-form-card {
        width: 100%;
        min-width: unset;
        max-width: 100%;
        padding: 25px; 
    }
    
    .formulario-contacto {
        gap: 15px;
    }

    .formulario-contacto label {
        font-size: 13px;
    }
    
    .formulario-contacto input,
    .formulario-contacto textarea {
        padding: 10px;
        font-size: 15px;
    }
    
    .formulario-contacto button {
        align-self: stretch; 
        width: 100%;
        padding: 12px;
    }
    #salto1 {
  display: none; 
}
}

@media (min-width: 601px) and (max-width: 900px) {

    
    header {
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 15px 20px;
        display: flex; 
        flex-direction: row; 
    }

    .logo-img img {
        height: 90px;
    }
    
    .header-title {
        position: static;
        transform: none;
        font-size: 34px;
        margin: 5px 0;
        order: 1; 
        flex-grow: 1; 
        text-align: center;
    }

    .header-contact {
        position: static;
        top: auto;
        right: auto;
        order: 2;
    }

    nav {
        width: 100%; 
        order: 3;
        margin-top: 10px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    nav li {
        min-width: 100px;
    }

    nav a {
        font-size: 17px;
    }

    .content {
        grid-template-columns: 0.2fr 3fr 0.2fr; 
    }

    .box-2 {
        padding: 40px 20px;
        min-height: 45vh;
    }

    .formulario-busqueda {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
        max-width: 100%; 
    }

    .formulario-busqueda input,
    .formulario-busqueda select {
        width: calc(50% - 7.5px); 
        min-width: 150px;
        max-width: 300px;
    }

    .formulario-busqueda button {
        width: calc(100% - 10px); 
        max-width: none;
        margin-left: 0;
    }

    .content2 {
        flex-direction: row;
        gap: 20px;
        padding: 40px 20px;
    }

    .box-4 {
        flex: 2; 
        padding: 30px;
    }

    .box-5 {
        flex: 1;
        padding: 30px 20px;
    }

    .box-5 iframe {
        height: 200px;
    }

    .profile-card img {
        width: 40%;
    }
    
    .profile-info {
        padding: 40px;
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-around;
        align-items: flex-start;
        gap: 30px;
        text-align: left;
    }

    /* Propiedades */

    .propiedades-wrapper {
        gap: 20px;
    }

    .filtros-buscador {
        flex: 1.5; 
        max-width: 250px; 
    }
    
    .listado-casas {
        flex: 3;
        gap: 20px;
    }

    .casa-card {
        gap: 15px; 
        padding: 15px;
    }

    .casa-card img {
        width: 180px; 
        height: 120px;
    }

    .info-casa h3 {
        font-size: 18px;
    }
    
    .precio {
        font-size: 16px;
    }

    .descripcion {
        font-size: 13px;
    }

    /* Contacto */
    .contact-wrapper {
        gap: 25px; 
        max-width: 100%; 
        padding: 0 15px;
    }
    
    .contact-info-card {
        min-width: 300px;
        max-width: 400px;
    }

    .info-overlay {
        padding: 25px 20px;
    }

    .info-overlay h2 {
        font-size: 26px;
    }
    
    .contact-form-card {
        padding: 30px; 
    }

    .formulario-contacto button {
        padding: 10px 20px; 
    }
}