@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&family=Montserrat:wght@300;400;500;600&display=swap');

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background: #fafafa;
  color: #222;
  line-height: 1.7;
}

/* ===== HEADER ===== */

header {
  position: relative;
  background: url('/img/hero-playa.jpg') center/cover no-repeat;
  padding: 90px 20px 70px;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

/* capa oscura para mejorar contraste */
header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

header h1,
header .header-info {
  position: relative;
  z-index: 2;
}

header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  margin: 0;
  text-shadow: 0 3px 12px rgba(0,0,0,0.8);
}

/* ===== INFORMACION DE CONTACTO ===== */

header .header-info {
  margin-top: 18px;
  font-size: 1.05rem;
  line-height: 1.8;
}

/* telefono principal destacado */
.contacto-principal {
  font-weight: 600;
  font-size: 1.2rem;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.9);
}

/* info inmobiliaria */
.contacto-admin {
  margin-top: 6px;
  font-size: 0.95rem;
  color: #e6f0ff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

/* ===== MENU ===== */

nav {
  background: rgba(255,255,255,0.96);
  padding: 15px;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

nav a {
  margin: 0 15px;
  text-decoration: none;
  color: #111;
  font-weight: 500;
  font-size: 1rem;
}

nav a:hover {
  text-decoration: underline;
}

/* ===== MAIN ===== */

main {
  max-width: 1100px;
  margin: auto;
  padding: 40px 20px;
}

h2 {
  font-family: 'Playfair Display', serif;
  color: #111;
  margin-bottom: 60px;
}

h3 {
  font-family: 'Playfair Display', serif;
  color: #111;
}

/* ===== BLOQUES IMAGEN / TEXTO ===== */

.section {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 100px;
}

.section.reverse {
  flex-direction: row-reverse;
}

.section .text {
  width: 50%;
}

/* ===== IMAGENES DIRECTAS ===== */

.section > img {
  width: 75%;
  max-width: 600px;
  height: auto;
  border-radius: 6px;
  flex-shrink: 0;
}

/* ===== SLIDESHOW ===== */

.section .slideshow,
.section.reverse .slideshow {
  width: 45%;
  height: 320px;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  flex-shrink: 0;
}

.slideshow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: block;
}

.slideshow img.active {
  opacity: 1;
}

/* ===== FOOTER ===== */

footer {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 25px 15px;
  font-size: 0.9rem;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {

  .section,
  .section.reverse {
    flex-direction: column;
  }

  .section .text,
  .section .slideshow,
  .section.reverse .slideshow,
  .section > img {
    width: 100%;
  }

  .slideshow {
    height: 220px;
  }

  header h1 {
    font-size: 2.2rem;
  }

  .contacto-principal {
    font-size: 1.05rem;
  }

  .contacto-admin {
    font-size: 0.9rem;
  }
}

/* ===== LINKS HEADER ===== */

header a,
header a:visited,
header a:active {
  color: #ffffff;
  text-decoration: none;
}

header a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ===== BOTON WHATSAPP ===== */

.btn-whatsapp {
  display: inline-block;
  margin-top: 15px;
  background: #25D366;
  color: white;
  padding: 12px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.btn-whatsapp:hover {
  background: #1ebe5d;
}

.titulo-contacto {
  text-align: center;
}

.contacto-boton {
  text-align: center;
  margin-top: 30px;
}

/* EStiolos para compactar texto en contactos.php */

.titulo-contacto {
  text-align: center;
  margin-bottom: 20px;
}

.contacto-grid {
  align-items: flex-start;
}

.contacto-grid .text p {
  line-height: 1.5;
}

.contacto-grid .text h3 {
  margin-bottom: 8px;
}

.contacto-grid .text p br {
  line-height: 1.2;
}

.contacto-boton {
  text-align: center;
  margin-top: 25px;
}
/* TITULO */

.titulo-contacto{
  text-align:center;
  margin-bottom:25px;
}

/* GRID DE CONTACTO */

.contacto-grid{
  align-items:flex-start;
}

/* COLUMNAS */

.contacto-col h3{
  margin-bottom:12px;
}

/* BLOQUES DE TEXTO */

.contacto-col p{
  margin-bottom:14px;
  line-height:1.6;
}

/* LINKS TELEFONO */

.contacto-col a{
  white-space:nowrap;
}

/* BOTON WHATSAPP */

.contacto-boton{
  text-align:center;
  margin-top:30px;
}
