/* Fuente global */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/*------------------*/
/* ===== ESTILOS GENERALES ===== */
/*------------------*/
* { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}
body { 
  font-family: 'Poppins', sans-serif;
  background: #414243; 
  color: #2c3e50; 
  padding-top: 50px; /* espacio para navbar fijo */
}

/*------------------*/
/* ===== NAVBAR ===== */
/*------------------*/
nav {
  background: rgba(182, 199, 202,0.9); 
  padding: 8px 20px;
  text-align: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

/*------------------*/
/* ===== HERO / BANNER ===== */
/*------------------*/
.hero {
  position: relative;
  background: url('../Inmobiliaria_Yave/img/banner-01.jpeg') center/cover no-repeat;
  height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
}
.hero::after {
  content: "";
  position: absolute;
  top:0; left:0;
  width:100%; height:100%;
  background: rgba(0,0,0,0.6);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 800px;
  padding: 0 20px;
  font-family: 'Poppins', sans-serif;
  text-align: center;
}
.hero h1 {
  font-size: 2.5em;
  margin-bottom: 15px;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.5);
}
.hero p {
  font-size: 1em;
  margin-bottom: 20px;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.6);
  line-height: 1.5;
}
.hero .contactos {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.hero .contactos a img {
  width: 80px;
  height: 80px;
}

/*------------------*/
/* ===== SECCIONES ===== */
/*------------------*/
section { 
  padding: 60px 20px; 
}
.container { 
  width: 100%; 
  margin: 0; 
  padding: 0 20px; 
}

/*------------------*/
/* ===== CATÁLOGO DE TERRENOS ===== */
/*------------------*/
.catalogo {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

/* --- Tarjetas estilo escritorio --- */
.terreno {
  flex: 1 1 calc(50% - 30px);
  max-width: calc(50% - 30px);
  display: flex;
  flex-direction: row;
  background: rgb(238, 220, 220);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  transition: transform 0.3s;
}
.terreno img {
  width: 50%;
  height: auto;
  object-fit: cover;
}
.info {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}
.info h2 { 
  color: #27ae60; 
  margin-bottom: 10px; 
  font-size: 1.8em;
  font-family: 'Poppins', sans-serif;
}
.info h3 { 
  margin: 5px 0; 
  font-size: 1.1em; 
}
.info p { 
  margin: 5px 0; 
  font-size: 1em; 
}

.terreno:hover { 
  transform: translateY(-5px); 
}

/*------------------*/
/* ===== BOTÓN PERSONALIZADO ===== */
/*------------------*/
.button-56 {
  align-items: center;
  background-color: #fee6e3;
  border: 2px solid #111;
  border-radius: 8px;
  box-sizing: border-box;
  color: #111;
  cursor: pointer;
  display: flex;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  height: 48px;
  justify-content: center;
  line-height: 24px;
  max-width: 100%;
  padding: 0 25px;
  position: relative;
  text-align: center;
  text-decoration: none;
  user-select: none;
  margin-top: 20px;
}
.button-56:after {
  background-color: #111;
  border-radius: 8px;
  content: "";
  display: block;
  height: 48px;
  left: 0;
  width: 100%;
  position: absolute;
  top: -2px;
  transform: translate(8px, 8px);
  transition: transform .2s ease-out;
  z-index: -1;
}
.button-56:hover:after { transform: translate(0, 0); }
.button-56:active { background-color: #ffdeda; outline: 0; }
.button-56:hover { outline: 0; }
@media (min-width: 768px) { .button-56 { padding: 0 40px; } }

/*------------------*/
/* ===== MAPA ===== */
/*------------------*/
.mapa iframe {
  width: 100%;
  height: 400px;
  border: 0;
  border-radius: 15px;
}

/*------------------*/
/* ===== FOOTER ===== */
/*------------------*/
footer {
  background: #2c3e50;
  color: white;
  text-align: center;
  padding: 30px 20px;
}

/*------------------*/
/* ===== RESPONSIVE ===== */
/*------------------*/

/* --- Ajuste general para tablet y celular --- */
@media (max-width: 900px) {

  .terreno {
    flex: 1 1 100%;
    max-width: 100%;
    flex-direction: column;
  }

  .terreno img {
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: cover;
  }

  .info {
    padding: 20px;
  }

  .info h2 {
    font-size: 1.5em;
  }

  .info p,
  .info h3 {
    font-size: 0.95em;
    line-height: 1.4;
  }
}

/* --- Para celulares muy pequeños (menos de 450px) --- */
@media (max-width: 450px) {

  .info h2 {
    font-size: 1.3em;
  }

  .button-56 {
    font-size: 14px;
    height: 42px;
  }

  .hero h1 {
    font-size: 1.8em;
  }

  .hero p {
    font-size: 0.9em;
  }
}

/*--------footer redes sociales----------*/
.contactos-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 10px;
}

.contactos-footer img {
  width: 50px;
  height: 50px;
  transition: transform 0.3s ease;
}

.contactos-footer img:hover {
  transform: scale(1.1);
}
