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

* {
  box-sizing: border-box;
}

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

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

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

header .header-info {
  margin-top: 15px;
  font-size: 1rem;
  opacity: 0.95;
}

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

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

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 ===== */
/* gap: (xx)px Controla la separacion horizontal de las imagenes la-paloma.php
 * margin-bottom: Controla se separacion HORIZONTAL - Espaciado entre imagenes.*/

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

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

.section .text {
  width: 55%;
}

/* === FIX IMÁGENES DIRECTAS EN SECTIONS === */
/* width: 75% - Controla el tamaño maximo que tendran las imagenes - la-paloma.php*/

.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;
}

.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;
  }
}

.slideshow img {
  display: block;
}

