/* ==========================================================================
   Las Nubes Mar Azul — clone stylesheet
   ========================================================================== */

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

:root {
  --color-text: #767676;
  --color-heading: #868686;
  --color-dark: #2b2b2b;
  --color-accent: #6aa3a2;
  --color-accent-light: #87bebd;
  --color-bg: #ffffff;
  --color-bg-alt: #f7f6f3;
  --max-width: 1100px;
  --header-height: 88px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Raleway', sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  font-weight: 400;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { text-decoration: none; color: inherit; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: background-color .3s ease, box-shadow .3s ease;
}

.site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.97);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
}

.header-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  transition: color .3s ease;
}

.site-header.scrolled .logo { color: var(--color-dark); }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 36px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  transition: color .3s ease;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
  border-bottom-color: currentColor;
}

.site-header.scrolled .main-nav a { color: var(--color-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
  transition: background-color .3s ease;
}

.site-header.scrolled .nav-toggle span { background: var(--color-dark); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: 70vh;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.45));
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 0 20px;
}

.hero-eyebrow {
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 14px;
  opacity: .9;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 500;
  margin: 0 0 16px;
  letter-spacing: 1px;
}

.hero p {
  font-size: 18px;
  max-width: 560px;
  margin: 0 auto;
  color: rgba(255,255,255,.9);
}

.hero-small { height: 48vh; min-height: 320px; }

/* ---------- Sections ---------- */

section.block {
  padding: 90px 0;
}

section.block.alt { background: var(--color-bg-alt); }

.section-heading {
  font-size: 28px;
  font-weight: 400;
  color: var(--color-heading);
  text-align: center;
  margin: 0 0 12px;
}

.section-subheading {
  font-size: 15px;
  text-align: center;
  max-width: 640px;
  margin: 0 auto 50px;
  color: var(--color-text);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.two-col.reverse .col-image { order: 2; }
.two-col.reverse .col-text { order: 1; }

.col-image img {
  width: 100%;
  border-radius: 4px;
  object-fit: cover;
}

.col-image.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.col-image.pair img { height: 100%; }

.col-text h4 {
  font-size: 24px;
  font-weight: 400;
  color: var(--color-heading);
  margin: 0 0 18px;
}

.col-text p { margin: 0 0 18px; font-size: 15px; }

.intro-text {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  font-size: 16px;
  padding: 60px 24px 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 12px 34px;
  border: 2px solid var(--color-accent-light);
  color: var(--color-accent);
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background-color .25s ease, color .25s ease;
  background: transparent;
}

.btn:hover {
  background: var(--color-accent-light);
  color: #fff;
}

.btn-wrap { text-align: center; margin-top: 30px; }

/* ---------- Equipment list ---------- */

.equip-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 30px;
}

.equip-list li {
  font-size: 15px;
  padding-left: 22px;
  position: relative;
}

.equip-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent-light);
}

.price-note {
  background: var(--color-bg-alt);
  border-left: 3px solid var(--color-accent-light);
  padding: 20px 24px;
  font-size: 15px;
  max-width: 720px;
  margin: 0 auto 60px;
}

/* ---------- House gallery blocks ---------- */

.house-block {
  max-width: 900px;
  margin: 0 auto 80px;
}

.house-block:last-child { margin-bottom: 0; }

.house-block h4 {
  font-size: 22px;
  font-weight: 400;
  color: var(--color-heading);
  margin-bottom: 10px;
}

.house-block p { font-size: 15px; margin-bottom: 24px; }

/* ---------- Ubicación page ---------- */

.address-box {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 50px;
}

.address-box .address-line {
  font-size: 17px;
  color: var(--color-dark);
  margin-bottom: 6px;
  font-weight: 500;
}

.map-embed {
  max-width: 900px;
  margin: 0 auto 90px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0,0,0,.08);
}

.map-embed iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}

.slideshow {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}

.slideshow-track {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #eee;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .6s ease;
}

.slide.active { opacity: 1; }

.slide img { width: 100%; height: 100%; object-fit: cover; }

.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  background: linear-gradient(0deg, rgba(0,0,0,.55), transparent);
  color: #fff;
  font-size: 14px;
  letter-spacing: .5px;
}

.slide-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.85);
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: var(--color-dark);
  z-index: 3;
}

.slide-nav.prev { left: 14px; }
.slide-nav.next { right: 14px; }

.slide-counter {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0,0,0,.45);
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 12px;
  z-index: 3;
}

.closing-text {
  max-width: 720px;
  margin: 60px auto 0;
  text-align: center;
  font-size: 16px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--color-dark);
  color: #cfcfcf;
  padding: 60px 0 30px;
  text-align: center;
}

.site-footer h4 {
  color: #fff;
  font-weight: 400;
  font-size: 20px;
  margin: 0 0 8px;
}

.site-footer .tagline { margin-bottom: 18px; font-size: 15px; }

.site-footer .whatsapp {
  font-size: 15px;
  margin-bottom: 26px;
  color: #fff;
}

.social-label {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #9a9a9a;
  margin-bottom: 14px;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 30px;
}

.social-icons img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  filter: grayscale(1) brightness(1.6);
  transition: filter .2s ease;
}

.social-icons a:hover img { filter: none; }

.footer-bottom {
  font-size: 12px;
  color: #6b6b6b;
  border-top: 1px solid #3a3a3a;
  padding-top: 20px;
}

/* ---------- Photo reel (Airbnb-style horizontal gallery) ---------- */

.reel-wrap {
  position: relative;
  margin: 0 -4px 8px;
}

.reel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  padding: 4px 4px 14px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--color-accent-light) transparent;
}

.reel::-webkit-scrollbar { height: 6px; }
.reel::-webkit-scrollbar-thumb {
  background: var(--color-accent-light);
  border-radius: 3px;
}
.reel::-webkit-scrollbar-track { background: transparent; }

.reel-card {
  position: relative;
  flex: 0 0 auto;
  width: clamp(190px, 26vw, 250px);
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  scroll-snap-align: start;
  background: #eee;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
  transition: transform .25s ease, box-shadow .25s ease;
}

.reel-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .16);
}

.reel-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.reel-card-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 12px 10px;
  background: linear-gradient(0deg, rgba(0,0,0,.62), transparent);
  color: #fff;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .3px;
}

.reel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: var(--color-dark);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .2);
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  opacity: 0;
  transition: opacity .2s ease;
}

.reel-wrap:hover .reel-btn { opacity: 1; }

.reel-btn.prev { left: -6px; }
.reel-btn.next { right: -6px; }

@media (max-width: 720px) {
  .reel-btn { display: none; }
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, .92);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.open { display: flex; }

.lightbox-figure {
  max-width: min(92vw, 1100px);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-figure img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}

.lightbox-caption {
  color: #fff;
  margin-top: 16px;
  font-size: 14px;
  letter-spacing: .5px;
  text-align: center;
}

.lightbox-caption .counter {
  color: #a8a8a8;
  margin-left: 8px;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: none;
  background: rgba(255,255,255,.12);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color .2s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover { background: rgba(255,255,255,.24); }

.lightbox-close {
  top: 20px;
  right: 20px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 20px;
  z-index: 2;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 20px;
}

.lightbox-nav.prev { left: 18px; }
.lightbox-nav.next { right: 18px; }

@media (max-width: 640px) {
  .lightbox-nav { width: 38px; height: 38px; font-size: 16px; }
  .lightbox-nav.prev { left: 8px; }
  .lightbox-nav.next { right: 8px; }
  .lightbox-close { top: 10px; right: 10px; width: 36px; height: 36px; }
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; gap: 30px; }
  .two-col.reverse .col-image,
  .two-col.reverse .col-text { order: initial; }
  .equip-list { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 10px 0 20px;
    box-shadow: 0 8px 16px rgba(0,0,0,.08);
    transform: translateY(-150%);
    transition: transform .3s ease;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }
  .main-nav a { color: var(--color-dark) !important; }
  .nav-toggle { display: flex; }
  section.block { padding: 60px 0; }
}
