/* RESET Y BASE */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #ffffff;
  color: #1B2C44;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  scroll-behavior: smooth;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ENCABEZADO */
.header {
  background-color: #ffffff;
  padding: 12px 0;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  position: sticky;
  top: 0;
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header .logo img {
  height: 60px;
  vertical-align: middle;
}

.nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 30px; /* más separación entre enlaces */
  justify-content: flex-end;
  align-items: center;
}

.nav a {
  text-decoration: none;
  color: #1B2C44;
  font-weight: 600;
  position: relative;
  transition: color 0.3s ease;
  font-size: 16px;
  padding-bottom: 4px;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background-color: #2E86DE;
  transition: width 0.3s ease;
}

.nav a:hover::after,
.nav a.activo::after {
  width: 100%;
}

.nav a:hover,
.nav a.activo {
  color: #2E86DE;
}

/* HERO */
.hero {
  background: linear-gradient(rgba(27, 44, 68, 0.7), rgba(27, 44, 68, 0.7)), url('img/hero.jpg') no-repeat center center/cover;
  color: white;
  padding: 80px 20px 60px;
  text-align: center;
  border-radius: 8px;
  margin-bottom: 60px;
}

.hero h1 {
  font-size: 42px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 30px;
}

.hero .botones {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

.boton-primario,
.boton-secundario {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.boton-primario {
  background-color: #FFED00;
  color: #1B2C44;
}

.boton-primario:hover {
  background-color: #e6d700;
}

.boton-secundario {
  border: 2px solid #FFED00;
  color: white;
}

.boton-secundario:hover {
  background-color: #FFED00;
  color: #1B2C44;
}

/* VENTAJAS Y SECCIONES */
.ventajas-grid,
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.ventaja,
.servicio {
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  text-align: center;
}

.ventaja:hover,
.servicio:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.ventaja h3,
.servicio h3 {
  color: #1B2C44;
  margin-bottom: 10px;
}

.ventaja p,
.servicio p {
  color: #555;
  font-size: 15px;
}

/* TESTIMONIOS */
.testimonios {
  padding: 60px 20px;
  background-color: #ffffff;
}

.testimonios h2 {
  text-align: center;
  margin-bottom: 40px;
}

.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.testimonio {
  border: 1px solid #eee;
  padding: 20px;
  border-radius: 8px;
  background-color: #f7f7f7;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.testimonio p {
  font-style: italic;
  margin-bottom: 10px;
  color: #333;
}

.testimonio .autor {
  font-weight: 600;
  font-size: 14px;
  color: #1B2C44;
}

/* FORMULARIO CONTACTO */
.contacto-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 40px;
  align-items: flex-start;
}

.contacto-formulario {
  flex: 1 1 60%;
  min-width: 300px;
}

.contacto-info {
  flex: 1 1 35%;
  min-width: 280px;
}

.contacto-info iframe {
  width: 100%;
  border: none;
  border-radius: 6px;
  height: 300px;
}

.contacto-datos {
  margin-top: 20px;
  background-color: #f7f7f7;
  padding: 15px;
  border-radius: 8px;
  font-size: 14px;
  color: #333;
}

.contacto-datos h3 {
  margin-bottom: 10px;
  color: #1B2C44;
}

.formulario-contacto {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 30px;
}

.formulario-contacto label {
  font-weight: 600;
}

.formulario-contacto input,
.formulario-contacto textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  font-family: inherit;
}

.formulario-contacto button {
  padding: 12px;
  background-color: #1B2C44;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.formulario-contacto button:hover {
  background-color: #142131;
}

/* .formulario-contacto input:valid,
.formulario-contacto textarea:valid {
  border-color: #2ecc71;
} */	

.formulario-contacto input:invalid:focus,
.formulario-contacto textarea:invalid:focus {
  border-color: #e74c3c;
}

.respuesta {
  margin-top: 15px;
  font-weight: 600;
}

.exito {
  color: green;
}

.error {
  color: red;
}

/* FOOTER */
.footer {
  background-color: #f5f5f5;
  text-align: center;
  padding: 20px 0;
  font-size: 14px;
  color: #777;
  margin-top: auto;
}

.footer a {
  color: #1B2C44;
  text-decoration: none;
  margin: 0 10px;
}

.footer a:hover {
  text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .header-flex {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero .botones {
    flex-direction: column;
    align-items: center;
  }

  .ventajas-grid,
  .servicios-grid,
  .testimonios-grid,
  .grid-inmuebles {
    grid-template-columns: 1fr;
  }

  .contacto-grid {
    flex-direction: column;
  }

  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 20px;
  }
}

.respuesta {
  margin-top: 15px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.respuesta.mostrar {
  opacity: 1;
  transform: translateY(0);
}

.exito {
  color: green;
}

.error {
  color: red;
}

section {
  margin-bottom: 20px;
}

section h2,
section h3 {
  margin-top: 20px;
  margin-bottom: 15px;
}

section p {
  margin-bottom: 10px;
}

section ul {
  margin-bottom: 10px;
}

.seguro-impagos, .gestion-integral {
  padding-bottom: 60px;
}

.grid-inmuebles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.grid-inmuebles .item {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}

.grid-inmuebles .item:hover {
  transform: scale(1.01);
}

.grid-inmuebles img {
  width: 100%;
  height: auto;
  display: block;
}

.grid-inmuebles .info {
  padding: 15px;
}

.grid-inmuebles .info h3 {
  color: #1B2C44;
  margin-bottom: 5px;
}

.grid-inmuebles .info p {
  font-size: 14px;
  color: #555;
}

.bloque-idealista {
  background-color: #fefefe;
  border: 1px solid #ddd;
  padding: 30px;
  margin-top: 60px;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.bloque-idealista h2 {
  color: #1B2C44;
  margin-bottom: 10px;
}

.bloque-idealista p {
  color: #555;
  margin-bottom: 20px;
}

.boton-idealista {
  background-color: #FFED00;
  color: #1B2C44;
  padding: 12px 24px;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.boton-idealista:hover {
  background-color: #e6d700;
}

.subhero {
  font-size: 18px;
  margin-bottom: 20px;
}

.boton-cta {
  display: inline-block;
  padding: 12px 24px;
  background-color: #FFED00;
  color: #1B2C44;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.boton-cta:hover {
  background-color: #e6d700;
}

.quienes-somos-intro {
  padding: 60px 20px 40px;
  background-color: #f8f8f8;
}

.valores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.valor {
  background-color: #ffffff;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.valor h3 {
  color: #1B2C44;
  margin-bottom: 10px;
}

.mision {
  background-color: #eef1f4;
  padding: 60px 20px;
  margin-top: 40px;
}

.mision blockquote {
  font-style: italic;
  font-size: 18px;
  text-align: center;
  color: #1B2C44;
  max-width: 800px;
  margin: 0 auto;
}

.quienes-somos-intro h1 {
  text-align: left;
}




