/* =========================================================
   COLORES Y PLAYAS — Las Galeras, Samaná
   Estilo: caribeño moderno, claro, vibrante
   ========================================================= */

/* -------- Tokens -------- */
:root {
  --c-turquoise:   #1FB6B0;
  --c-turquoise-d: #178F8A;
  --c-turquoise-l: #7CD7D2;
  --c-sand:        #FAF3E7;
  --c-sand-d:      #F1E6D1;
  --c-coral:       #FF8A6B;
  --c-coral-d:     #E66A4F;
  --c-gold:        #F4C95D;
  --c-palm:        #2F5D50;
  --c-palm-d:      #1F3F36;
  --c-text:        #2F5D50;
  --c-text-soft:   #5A6B62;
  --c-white:       #FFFFFF;
  --c-overlay:     rgba(31, 63, 54, 0.45);

  /* Casita accents */
  --c-amarilla:    #F4C95D;
  --c-verde:       #4A7C6F;
  --c-azul:        #1FB6B0;
  --c-rosa:        #FF5FA2;

  /* Fuentes */
  --font-serif:    'Fraunces', 'Playfair Display', Georgia, serif;
  --font-sans:     'DM Sans', 'Inter', system-ui, -apple-system, sans-serif;
  --font-script:   'Caveat', 'Dancing Script', cursive;

  --bg:            var(--c-sand);
  --text:          var(--c-text);

  --navbar-height: 86px;
  --radius-sm: 10px;
  --radius:    18px;
  --radius-lg: 28px;

  --shadow-sm: 0 4px 14px rgba(31, 63, 54, 0.08);
  --shadow:    0 14px 40px rgba(31, 63, 54, 0.14);
  --shadow-lg: 0 24px 60px rgba(31, 63, 54, 0.18);
  --shadow-aqua: 0 18px 40px rgba(31, 182, 176, 0.22);

  --transition: 0.35s cubic-bezier(.2,.7,.2,1);
  --color-border: rgba(255, 255, 255, 0.14);
  --color-gold: var(--c-gold);
  --color-gold-pale: #fff4cf;
  --size-hero: 4vw;
}

/* -------- Reset (anti overflow horizontal — NAVBAR-FIXES §1) -------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: clip;
  width: 100%;
  scroll-padding-top: var(--navbar-height);
}
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: clip;
  width: 100%;
  -webkit-font-smoothing: antialiased;
}
img, video, iframe { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; margin: 0; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--c-sand-d); }
::-webkit-scrollbar-thumb { background: var(--c-turquoise); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--c-turquoise-d); }

/* -------- Tipografía -------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--c-palm);
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
p  { margin: 0 0 1em; color: var(--c-text-soft); }

.eyebrow {
  font-family: var(--font-script);
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  color: var(--c-coral);
  letter-spacing: 0.02em;
  display: inline-block;
  margin-bottom: 0.4em;
  transform: rotate(-1deg);
}

.section-title {
  text-align: center;
  margin-bottom: 0.4em;
}
.section-subtitle {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
  color: var(--c-text-soft);
}

/* -------- Layout -------- */
.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
section { padding: clamp(3rem, 5vw, 7rem) 0; position: relative; }

/* Wave divider */
.wave-divider {
  display: block;
  width: 100%;
  height: 64px;
  fill: var(--c-sand);
}

/* -------- Botones -------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--c-turquoise);
  color: #fff;
  box-shadow: var(--shadow-aqua);
}
.btn-primary:hover { background: var(--c-turquoise-d); transform: translateY(-3px); box-shadow: 0 22px 50px rgba(31,182,176,.32); }
.btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}
.btn-secondary:hover { background: #fff; color: var(--c-palm); transform: translateY(-3px); }
.btn-outline {
  background: transparent;
  color: var(--c-palm);
  border: 2px solid var(--c-palm);
}
.btn-outline:hover { background: var(--c-palm); color: #fff; transform: translateY(-3px); }
.btn-coral {
  background: var(--c-coral);
  color: #fff;
  box-shadow: 0 14px 32px rgba(255,138,107,.35);
}
.btn-coral:hover { background: var(--c-coral-d); transform: translateY(-3px); }

/* =========================================================
   NAVBAR (NAVBAR-FIXES §2 + §5 + §6)
   ========================================================= */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--navbar-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  background: rgba(250, 243, 231, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(31, 63, 54, 0.08);
  transition: background var(--transition), box-shadow var(--transition);
}
.navbar.is-scrolled {
  background: rgba(250, 243, 231, 0.96);
  box-shadow: 0 6px 22px rgba(31, 63, 54, 0.08);
}
.navbar__inner {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* =========================================================
   LOGO DEL NAVBAR — mini ícono + wordmark con líneas coral
   ========================================================= */

.navbar__logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo__icon {
  width: 38px;
  height: 38px;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}

.brand-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  gap: 5px;
  font-family: var(--font-serif);
}

.brand-logo__name {
  font-style: italic;
  font-weight: 500;
  font-size: 1.35rem;
  color: var(--color-ink, #0f3840);
  letter-spacing: 0.005em;
  white-space: nowrap;
  line-height: 1;
}

.brand-logo__tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 0.58rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #d97757;
  line-height: 1;
  white-space: nowrap;
}

.brand-logo__tagline::before,
.brand-logo__tagline::after {
  content: '';
  display: block;
  width: 18px;
  height: 1px;
  background: #d97757;
  flex-shrink: 0;
  opacity: 0.65;
}

.navbar:not(.is-scrolled) .brand-logo__tagline {
  color: #f4a988;
}

.navbar:not(.is-scrolled) .brand-logo__tagline::before,
.navbar:not(.is-scrolled) .brand-logo__tagline::after {
  background: #f4a988;
}

/* En mobile, ocultar tagline para no estirar navbar */
@media (max-width: 700px) {
  .brand-logo__name { font-size: 1.15rem; }
  .brand-logo__icon { width: 34px; height: 34px; }
  .navbar__logo { gap: 10px; }
}

/* Links desktop — gap §6 */
.navbar__links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-link {
  position: relative;
  display: inline-block;
  padding: 0.55rem 0.9rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--c-palm);
  letter-spacing: 0.01em;
  transition: color var(--transition);
}
.nav-link:hover { color: var(--c-turquoise-d); }
/* Underline §5 */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.9rem;
  right: 0.9rem;
  height: 2px;
  background: var(--c-coral);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition);
}
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--c-coral-d); }

.nav-link--cta {
  margin-left: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: var(--c-coral);
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(255,138,107,.35);
}
.nav-link--cta::after { display: none; }
.nav-link--cta:hover { background: var(--c-coral-d); color: #fff; }

/* Toggle hamburguesa */
.navbar__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  gap: 5px;
  border-radius: 10px;
  transition: background var(--transition);
}
.navbar__toggle:hover { background: rgba(31, 63, 54, 0.06); }
.navbar__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-palm);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.navbar__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__toggle.is-open span:nth-child(2) { opacity: 0; }
.navbar__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* -------- Mobile (NAVBAR-FIXES §2.2) -------- */
@media (max-width: 860px) {
  .navbar__toggle { display: flex; }

  .navbar:has(.navbar__links.nav-open) {
    background: rgba(47, 93, 80, 0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }
  .navbar:has(.navbar__links.nav-open) .brand-logo__name { color: #fff; }
  .navbar:has(.navbar__links.nav-open) .brand-logo__tagline { color: var(--c-gold); }
  .navbar:has(.navbar__links.nav-open) .brand-logo__tagline::before,
  .navbar:has(.navbar__links.nav-open) .brand-logo__tagline::after { background: var(--c-gold); }
  .navbar:has(.navbar__links.nav-open) .navbar__toggle span { background: #fff; }

  .navbar__links {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    background: rgba(47, 93, 80, 0.98);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;

    padding: 0;
    max-height: 0;
    overflow: hidden;
    border-top: 0 solid rgba(255,255,255,.12);
    visibility: hidden;

    transition: max-height 0.35s ease, padding 0.35s ease, border-top-width 0.35s ease;
    z-index: 999;
  }
  .navbar__links.nav-open {
    max-height: calc(100vh - var(--navbar-height));
    padding: 1.5rem 1.5rem 2rem;
    border-top-width: 1px;
    visibility: visible;
  }
  .nav-link {
    color: #fff;
    font-size: 1.1rem;
    padding: 0.85rem 1rem;
  }
  .nav-link:hover { color: var(--c-gold); }
  .nav-link::after { bottom: 12px; background: var(--c-gold); }
  .nav-link.active { color: var(--c-gold); }
  .nav-link--cta {
    margin-top: 1.2rem;
    margin-left: 0;
    padding: 0.75rem 1.8rem;
  }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -2;
  will-change: transform;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(31,63,54,.35) 0%, rgba(31,63,54,.55) 100%);
  z-index: -1;
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 920px;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero__eyebrow {
  font-family: var(--font-script);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  color: var(--c-gold);
  margin-bottom: 0.4rem;
}
.hero__title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: var(--size-hero);
  color: #fff;
  line-height: 1.05;
  margin: 0 0 1rem;
  text-shadow: 0 4px 30px rgba(0,0,0,.25);
}
.hero__subtitle {
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  color: rgba(255,255,255,.92);
  max-width: 620px;
  margin: 0 0 2.2rem;
  font-weight: 300;
  letter-spacing: 0.02em;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0.85;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  animation: bob 2.4s ease-in-out infinite;
}
.hero__scroll svg { width: 18px; height: 18px; }
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 8px); }
}

/* Hero compact (otras páginas) — compensa la navbar fixed para que el texto
   quede centrado en el área visible (no detrás de la navbar). */
.hero--compact {
  min-height: calc(62vh + var(--navbar-height));
  padding-top: var(--navbar-height);
}
.hero--compact .hero__title { font-size: clamp(2.6rem, 6vw, 4.5rem); }

@media (max-width: 768px) {
  :root { --size-hero: 12vw; }
  .hero--compact { min-height: calc(52vh + var(--navbar-height)); }
}

/* =========================================================
   HOME — Welcome
   ========================================================= */
.welcome { background: var(--c-sand); }
.welcome__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.welcome__text p { font-size: 1.06rem; }
.welcome__visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-lg);
}
.welcome__visual img { width: 100%; height: 100%; object-fit: cover; }
.welcome__visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(47,93,80,.4) 100%);
  pointer-events: none;
}
@media (max-width: 860px) {
  .welcome__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .welcome__visual { aspect-ratio: 4/3; }
}

/* =========================================================
   CASITAS — preview cards
   ========================================================= */
.casitas-preview { background: linear-gradient(180deg, var(--c-sand) 0%, #fff 100%); }
.casitas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
}
.casita-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.casita-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.casita-card__color {
  height: 8px;
  width: 100%;
}
.casita-card[data-color="amarilla"] .casita-card__color { background: var(--c-amarilla); }
.casita-card[data-color="verde"]    .casita-card__color { background: var(--c-verde); }
.casita-card[data-color="azul"]     .casita-card__color { background: var(--c-azul); }
.casita-card[data-color="rosa"]     .casita-card__color { background: var(--c-rosa); }

.casita-card__media {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--c-sand-d);
}
.casita-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.casita-card:hover .casita-card__media img { transform: scale(1.06); }

.casita-card__body { padding: 1.5rem 1.4rem 1.7rem; flex: 1; display: flex; flex-direction: column; }
.casita-card__title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--c-palm);
  margin-bottom: 0.2rem;
}
.casita-card__beach {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-coral);
  margin-bottom: 0.9rem;
}
.casita-card__text { font-size: 0.95rem; flex: 1; margin-bottom: 1rem; }
.casita-card__link {
  font-weight: 600;
  color: var(--c-turquoise-d);
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap var(--transition);
}
.casita-card__link:hover { gap: 0.7rem; }

@media (max-width: 980px) { .casitas-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .casitas-grid { grid-template-columns: 1fr; } }

/* =========================================================
   STATS
   ========================================================= */
.stats { background: var(--c-palm); color: #fff; }
.stats h2 { color: #fff; }
.stats .section-subtitle { color: rgba(255,255,255,.78); }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat__num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(2.6rem, 5vw, 4rem);
  color: var(--c-gold);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat__label {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
}
@media (max-width: 760px) { .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 2.4rem; } }

/* =========================================================
   EXCURSIONES preview
   ========================================================= */
.excursions-preview { background: var(--c-sand); }
.exc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}
.exc-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.exc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.exc-card__media {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--c-sand-d);
}
.exc-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.exc-card:hover .exc-card__media img { transform: scale(1.06); }
.exc-card__body { padding: 1.6rem; }
.exc-card__title { margin-bottom: 0.4rem; }
.exc-card__price {
  display: inline-block;
  background: var(--c-turquoise);
  color: #fff;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.8rem;
}
@media (max-width: 980px) { .exc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .exc-grid { grid-template-columns: 1fr; } }

/* =========================================================
   CTA banner
   ========================================================= */
.cta-banner {
  position: relative;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, var(--c-turquoise) 0%, var(--c-coral) 100%);
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.25), transparent 35%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,.18), transparent 40%);
  pointer-events: none;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255,255,255,.92); max-width: 600px; margin: 0 auto 2rem; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--c-palm-d);
  color: rgba(255,255,255,.72);
  padding: 4rem 0 2rem;
  position: relative;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer__logo img {
  height: 150px;
  width: auto;
  margin-bottom: 1rem;
  display: block;
  filter: drop-shadow(0 6px 20px rgba(0,0,0,.3));
}
.footer__about { font-size: 0.92rem; line-height: 1.7; max-width: 320px; }
.footer h4 {
  color: #fff;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.footer ul li { margin-bottom: 0.5rem; }
.footer ul a {
  color: rgba(255,255,255,.72);
  font-size: 0.93rem;
  transition: color var(--transition);
}
.footer ul a:hover { color: var(--c-gold); }

.footer__colors {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}
.footer__colors span {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.15);
}
.footer__socials {
  display: flex;
  gap: 0.7rem;
  margin-top: 0.8rem;
}
.footer__socials a {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  transition: background var(--transition), transform var(--transition);
}
.footer__socials a:hover { background: var(--c-gold); transform: translateY(-3px); }
.footer__socials svg { width: 18px; height: 18px; fill: #fff; }

.footer__bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.1);
  text-align: center;
  font-size: 0.85rem;
}

@media (max-width: 880px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* =========================================================
   CASITAS PAGE — bloques zigzag
   ========================================================= */
.casita-block {
  padding: clamp(3rem, 6vw, 5rem) 0;
}
.casita-block__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.casita-block--reverse .casita-block__inner > .casita-block__media { order: 2; }
.casita-block__media {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.8rem;
  height: 100%;
  min-height: 460px;
}
.casita-block__media .ph {
  background: var(--c-sand-d);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text-soft);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.casita-block__media .ph:nth-child(1) { grid-row: 1 / span 2; }
.casita-block__media .ph img { width: 100%; height: 100%; object-fit: cover; }

.casita-block__text { padding-inline: 0.5rem; }
.casita-block__color {
  display: inline-block;
  width: 50px; height: 4px;
  border-radius: 4px;
  margin-bottom: 1rem;
}
.casita-block[data-color="amarilla"] .casita-block__color { background: var(--c-amarilla); }
.casita-block[data-color="verde"]    .casita-block__color { background: var(--c-verde); }
.casita-block[data-color="azul"]     .casita-block__color { background: var(--c-azul); }
.casita-block[data-color="rosa"]     .casita-block__color { background: var(--c-rosa); }

.casita-block__beach {
  font-family: var(--font-script);
  color: var(--c-coral);
  font-size: 1.4rem;
  margin-bottom: 0.2rem;
}
.casita-block__title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--c-palm);
  margin-bottom: 1rem;
}
.casita-block__text p { font-size: 1.04rem; }

@media (max-width: 880px) {
  .casita-block__inner { grid-template-columns: 1fr; gap: 2rem; }
  .casita-block--reverse .casita-block__inner > .casita-block__media { order: 0; }
  .casita-block__media { min-height: 380px; }
}

/* =========================================================
   TARIFAS table
   ========================================================= */
.tarifas { background: var(--c-sand); }
.tarifas__table {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  max-width: 920px;
  margin: 0 auto;
}
.tarifa-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  padding: 1.1rem 1.5rem;
  align-items: center;
  border-bottom: 1px solid var(--c-sand-d);
}
.tarifa-row:last-child { border-bottom: none; }
.tarifa-row--header {
  background: var(--c-palm);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.tarifa-row__period { font-weight: 600; color: var(--c-palm); }
.tarifa-row__price { font-family: var(--font-serif); font-style: italic; color: var(--c-coral-d); font-size: 1.2rem; }
.tarifa-row--special { background: linear-gradient(90deg, rgba(244,201,93,.18), transparent); }
.tarifa-row--special .tarifa-row__period::before { content: '✦  '; color: var(--c-gold); }

.tarifas__notes {
  max-width: 920px;
  margin: 1.5rem auto 0;
  padding: 1.5rem;
  background: rgba(255,255,255,.5);
  border-radius: var(--radius);
  font-size: 0.92rem;
  display: grid;
  gap: 0.5rem;
}
.tarifas__notes strong { color: var(--c-palm); }
.tarifas__includes {
  text-align: center;
  margin-bottom: 1.5rem;
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: var(--c-coral);
}

@media (max-width: 600px) {
  .tarifa-row { grid-template-columns: 1.4fr 1fr 1fr; padding: 1rem; gap: 0.5rem; font-size: 0.9rem; }
  .tarifa-row__price { font-size: 1rem; }
}

/* =========================================================
   PLAYAS page — beach blocks + carousels
   ========================================================= */
.beach-block { padding: clamp(3.5rem, 6vw, 5.5rem) 0; }
.beach-block + .beach-block { border-top: 1px dashed rgba(47,93,80,.15); }
.beach-block__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 2.5rem;
}
.beach-block__beach {
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: var(--c-coral);
  margin-bottom: 0.3rem;
}
.beach-block__title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  color: var(--c-palm);
}
.beach-block__casita {
  display: inline-block;
  margin-top: 0.6rem;
  padding: 0.3rem 0.9rem;
  background: var(--c-sand-d);
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-palm);
}

.beach-block__layout {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 980px) {
  .beach-block__layout { grid-template-columns: 1fr; }
}

.beach-block__media-stack {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.beach-block__text p { font-size: 1.02rem; }
.beach-block__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.2rem;
}
.chip {
  background: var(--c-sand-d);
  color: var(--c-palm);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
}

/* -------- CAROUSEL -------- */
.carousel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c-sand-d);
  box-shadow: var(--shadow-aqua);
}
.carousel__label {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 5;
  background: rgba(47, 93, 80, 0.85);
  color: #fff;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  backdrop-filter: blur(6px);
}
.carousel__label svg { width: 14px; height: 14px; fill: currentColor; }
.carousel__track {
  display: flex;
  width: 100%;
  transition: transform 0.55s cubic-bezier(.6,.05,.2,1);
}
.carousel__slide {
  flex: 0 0 100%;
  aspect-ratio: 16 / 10;
  position: relative;
  background: var(--c-sand-d);
  overflow: hidden;
}
.carousel--video .carousel__slide { aspect-ratio: 16 / 9; }
.carousel__slide img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.carousel__slide iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.carousel__placeholder {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  background: linear-gradient(135deg, var(--c-sand-d), #e8dcc4);
  color: var(--c-palm);
  text-align: center;
  padding: 2rem;
}
.carousel__placeholder svg {
  width: 56px; height: 56px;
  opacity: 0.4;
  fill: currentColor;
}
.carousel__placeholder span {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.7;
}
.carousel__placeholder small {
  font-size: 0.8rem;
  color: var(--c-text-soft);
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
}

.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: var(--c-palm);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
  transition: background var(--transition), transform var(--transition);
}
.carousel__btn:hover { background: #fff; transform: translateY(-50%) scale(1.07); }
.carousel__btn--prev { left: 14px; }
.carousel__btn--next { right: 14px; }
.carousel__btn svg { width: 20px; height: 20px; fill: currentColor; }

.carousel__dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.45rem;
  z-index: 5;
}
.carousel__dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.55);
  transition: background var(--transition), transform var(--transition);
  padding: 0;
}
.carousel__dots button.is-active {
  background: #fff;
  transform: scale(1.3);
}

/* =========================================================
   GALERAS pueblo — masonry
   ========================================================= */
.galeras-section { background: linear-gradient(180deg, #fff 0%, var(--c-sand) 100%); }
.galeras__intro { max-width: 880px; margin: 0 auto 3rem; text-align: center; }
.galeras__intro p { font-size: 1.05rem; }

.masonry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 1rem;
}
.masonry .ph {
  background: var(--c-sand-d);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text-soft);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.masonry .ph img { width: 100%; height: 100%; object-fit: cover; }
.masonry .ph--tall { grid-row: span 2; }
.masonry .ph--wide { grid-column: span 2; }
@media (max-width: 880px) {
  .masonry { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .masonry .ph--wide { grid-column: span 2; }
  .masonry .ph--tall { grid-row: span 2; }
}

/* =========================================================
   ACTIVIDADES — tabla + cards detalladas
   ========================================================= */
.exc-table {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 4rem;
}
.exc-row {
  display: grid;
  grid-template-columns: 2.4fr 1fr 1fr 1.4fr;
  align-items: center;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--c-sand-d);
  gap: 1rem;
}
.exc-row:last-child { border-bottom: none; }
.exc-row:nth-child(even):not(.exc-row--header) { background: rgba(31, 182, 176, 0.04); }
.exc-row--header {
  background: var(--c-palm);
  color: #fff;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.exc-row__name { font-weight: 600; color: var(--c-palm); }
.exc-row__price { font-family: var(--font-serif); font-style: italic; color: var(--c-coral-d); font-size: 1.1rem; }
.exc-row__days { font-size: 0.88rem; color: var(--c-text-soft); }
@media (max-width: 760px) {
  .exc-row { grid-template-columns: 1.4fr 1fr 1fr 1fr; font-size: 0.82rem; gap: 0.5rem; padding: 0.9rem; }
  .exc-row__price { font-size: 0.95rem; }
}

.exc-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.exc-detail {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.exc-detail:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.exc-detail__media { aspect-ratio: 16/10; overflow: hidden; }
.exc-detail__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.exc-detail:hover .exc-detail__media img { transform: scale(1.05); }
.exc-detail__body { padding: 1.8rem; }
.exc-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0 1rem;
}
.exc-detail__price {
  background: var(--c-turquoise);
  color: #fff;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
}
.exc-detail__schedule {
  background: var(--c-sand-d);
  color: var(--c-palm);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
}
@media (max-width: 760px) { .exc-detail-grid { grid-template-columns: 1fr; } }

/* =========================================================
   CONTACTO
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-form {
  background: #fff;
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.field { margin-bottom: 1.2rem; }
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-palm);
  margin-bottom: 0.4rem;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--c-sand-d);
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--c-sand);
  color: var(--c-text);
  transition: border-color var(--transition), background var(--transition);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--c-turquoise);
  background: #fff;
}
.field textarea { min-height: 130px; resize: vertical; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 540px) { .field-row { grid-template-columns: 1fr; } }

.contact-info {
  background: var(--c-palm);
  color: #fff;
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.contact-info h3 { color: #fff; }
.contact-info ul li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin-bottom: 1.1rem;
  color: rgba(255,255,255,.88);
}
.contact-info ul li svg {
  flex: 0 0 22px;
  width: 22px; height: 22px;
  fill: var(--c-gold);
  margin-top: 2px;
}
.contact-info__socials {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.5rem;
}
.contact-info__socials a {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  display: flex;
  align-items: center; justify-content: center;
  transition: background var(--transition), transform var(--transition);
}
.contact-info__socials a:hover { background: var(--c-gold); transform: translateY(-3px); }
.contact-info__socials svg { width: 18px; height: 18px; fill: #fff; }

.map-wrap {
  margin-top: 3rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-aqua);
  aspect-ratio: 16/7;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

/* =========================================================
   REVEAL animations
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-left  { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }
.reveal-left.is-visible,
.reveal-right.is-visible { transform: translateX(0); }

.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .hero__bg { transform: none !important; }
  .hero__scroll { animation: none; }
}

/* =========================================================
   SCROLL-VIDEO HERO (solo index.html)
   ========================================================= */

.scroll-video-hero {
  /* AJUSTE DE VELOCIDAD según duración del video:
     - Video de 3-4 segundos → height: 250vh
     - Video de 5-7 segundos → height: 350vh
     - Video de 8-12 segundos → height: 500vh
     - Video de 13-20 segundos → height: 700vh
     Empezamos con 300vh, ajustar después según el video real. */
  height: 700vh;
  position: relative;
  background: var(--c-arena, #FAF3E7);
}

.scroll-video-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

/* Fallback de gradiente animado (se ve mientras el video carga o si falla) */
.hero-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg,
      #87CEEB 0%,
      #1FB6B0 40%,
      #0E8B8E 75%,
      #FAF3E7 100%);
  background-size: 100% 200%;
  animation: heroTide 12s ease-in-out infinite alternate;
}
@keyframes heroTide {
  from { background-position: 0% 0%; }
  to   { background-position: 0% 60%; }
}
/* Cuando el JS confirma que el video cargó OK, le agrega .has-video al sticky → ocultamos el fallback */
.scroll-video-sticky.has-video .hero-fallback { display: none; }

/* Video */
.scroll-video-sticky video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Overlay oscuro para legibilidad */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg,
    rgba(15, 56, 64, 0.20) 0%,
    rgba(15, 56, 64, 0.45) 60%,
    rgba(15, 56, 64, 0.55) 100%);
  pointer-events: none;
}

/* Contenido textual */
.scroll-video-hero .hero-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
  color: #fff;
}

/* Forzar texto blanco encima del video, manteniendo las tipografías existentes */
.scroll-video-hero .hero__title,
.scroll-video-hero .hero__subtitle,
.scroll-video-hero .hero__eyebrow { color: #fff; }
.scroll-video-hero .hero__subtitle { color: rgba(255,255,255,0.92); }

/* Barra de progreso */
.scroll-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.18);
  z-index: 4;
}
.scroll-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #1FB6B0, #F4C95D, #FF8A6B);
  transition: width 0.05s linear;
}

/* Chevron Descubrí — asegurar visibilidad sobre el video */
.scroll-video-hero .hero__scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  color: #fff;
}

/* MOBILE: scroll-driven NO funciona bien en táctil → autoplay loop muted */
@media (max-width: 768px) {
  .scroll-video-hero { height: 100vh; }
  .scroll-video-sticky { position: relative; }
  .scroll-progress-bar { display: none; }
}

/* REDUCED MOTION: video estático, sin sticky-scroll, sin animación de fallback */
@media (prefers-reduced-motion: reduce) {
  .scroll-video-hero { height: 100vh; }
  .scroll-video-sticky { position: relative; }
  .scroll-progress-bar { display: none; }
  .hero-fallback { animation: none; }
}

/* =========================================================
   PLACEHOLDERS ELEGANTES PARA FOTOS PRÓXIMAS (página casitas.html)
   ========================================================= */

.ph-placeholder {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  aspect-ratio: 4 / 3;
  width: 100%;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--ph-bg-start, rgba(31,182,176,0.18)), var(--ph-bg-end, rgba(31,182,176,0.06)));
  border: 1.5px dashed rgba(15, 56, 64, 0.2);
  color: rgba(15, 56, 64, 0.55);
  transition: transform 0.4s ease, border-color 0.4s ease;
}

.ph-placeholder:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 56, 64, 0.4);
}

.ph-placeholder__icon {
  width: 38px;
  height: 38px;
  fill: currentColor;
  opacity: 0.55;
}

.ph-placeholder__text {
  font-family: var(--font-serif, 'Fraunces', serif);
  font-size: 0.95rem;
  font-style: italic;
  letter-spacing: 0.02em;
  opacity: 0.75;
}

/* Variantes por color de casita: cambian el gradiente del fondo */
.ph-placeholder--amarilla {
  --ph-bg-start: rgba(244, 201, 93, 0.22);
  --ph-bg-end:   rgba(244, 201, 93, 0.06);
  border-color:  rgba(180, 130, 30, 0.25);
  color:         rgba(110, 80, 20, 0.7);
}

.ph-placeholder--verde {
  --ph-bg-start: rgba(74, 124, 111, 0.22);
  --ph-bg-end:   rgba(74, 124, 111, 0.06);
  border-color:  rgba(40, 80, 65, 0.28);
  color:         rgba(30, 60, 50, 0.7);
}

.ph-placeholder--azul {
  --ph-bg-start: rgba(31, 124, 175, 0.22);
  --ph-bg-end:   rgba(31, 124, 175, 0.06);
  border-color:  rgba(20, 75, 110, 0.28);
  color:         rgba(15, 50, 80, 0.7);
}

.ph-placeholder--rosa {
  --ph-bg-start: rgba(255, 95, 162, 0.22);
  --ph-bg-end:   rgba(255, 95, 162, 0.06);
  border-color:  rgba(160, 40, 100, 0.28);
  color:         rgba(110, 25, 70, 0.7);
}

@media (max-width: 640px) {
  .ph-placeholder__icon { width: 30px; height: 30px; }
  .ph-placeholder__text { font-size: 0.85rem; }
}

/* =========================================================
   PLACEHOLDERS ELEGANTES — variantes para playas.html
   ========================================================= */

.ph-placeholder--galeras {
  --ph-bg-start: rgba(31, 182, 176, 0.22);
  --ph-bg-end:   rgba(31, 182, 176, 0.06);
  border-color:  rgba(15, 100, 105, 0.28);
  color:         rgba(10, 70, 75, 0.7);
}

.ph-placeholder--amor {
  --ph-bg-start: rgba(255, 130, 175, 0.22);
  --ph-bg-end:   rgba(255, 130, 175, 0.06);
  border-color:  rgba(180, 60, 110, 0.28);
  color:         rgba(120, 40, 75, 0.7);
}

/* Cuando el placeholder vive dentro de un slide del carrusel,
   debe ocupar todo el slide en lugar de imponer su propio aspect-ratio */
.carousel__slide .ph-placeholder {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}

/* =========================================================
   MOSAICO MASONRY — sección "Las Galeras — el pueblo"
   ========================================================= */

.masonry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 12px;
  margin-top: 2.5rem;
}

.masonry__item {
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(15, 56, 64, 0.12);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.masonry__item:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(15, 56, 64, 0.2);
}

.masonry__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.masonry__item--wide  { grid-column: span 2; }
.masonry__item--tall  { grid-row: span 2; }

@media (max-width: 900px) {
  .masonry { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 150px; }
}

@media (max-width: 600px) {
  .masonry { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; gap: 8px; }
  .masonry__item--wide { grid-column: span 2; }
  .masonry__item--tall { grid-row: span 2; }
}

/* =========================================================
   VIDEO SLIDES — YOUTUBE EMBEDS
   ========================================================= */

.video-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: rgba(15, 56, 64, 0.04);
}

.video-thumb {
  position: relative;
  display: block;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 6px 20px rgba(15, 56, 64, 0.18);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-thumb:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 32px rgba(15, 56, 64, 0.28);
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-thumb__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 48px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  opacity: 0.92;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.video-thumb:hover .video-thumb__play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.08);
}

.video-thumb__play svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Horizontal (16:9) */
.video-slide--horizontal .video-thumb {
  aspect-ratio: 16 / 9;
  width: 100%;
  max-height: 480px;
}

/* Vertical / Shorts (9:16) */
.video-slide--vertical .video-thumb {
  aspect-ratio: 9 / 16;
  height: 480px;
  width: auto;
  max-width: 100%;
}

@media (max-width: 700px) {
  .video-slide--horizontal .video-thumb { max-height: 60vw; }
  .video-slide--vertical .video-thumb { height: 80vw; max-height: 70vh; }
  .video-thumb__play { width: 56px; height: 40px; }
}

/* Iframe que reemplaza al thumb cuando se hace click */
.carousel--video .carousel__slide iframe {
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(15, 56, 64, 0.18);
  max-height: 480px;
  aspect-ratio: 16 / 9;
}

/* Placeholders elegantes para playas sin videos */
.ph-placeholder--video {
  --ph-bg-start: rgba(255, 130, 100, 0.18);
  --ph-bg-end:   rgba(255, 130, 100, 0.05);
  border-color:  rgba(180, 70, 50, 0.28);
  color:         rgba(120, 55, 40, 0.7);
}

/* =========================================================
   BOTÓN FLOTANTE WHATSAPP (todas las páginas)
   ========================================================= */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4), 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: whatsappPulse 2.5s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.55), 0 4px 10px rgba(0, 0, 0, 0.2);
  animation: none;
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  display: block;
}

@keyframes whatsappPulse {
  0%, 100% {
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4), 0 2px 6px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4), 0 2px 6px rgba(0, 0, 0, 0.15), 0 0 0 14px rgba(37, 211, 102, 0);
  }
}

@media (max-width: 600px) {
  .whatsapp-float {
    bottom: 18px;
    right: 18px;
    width: 52px;
    height: 52px;
  }
  .whatsapp-float svg { width: 28px; height: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float { animation: none; }
  .whatsapp-float:hover { transform: none; }
}

/* =========================================================
   LIGHTBOX para ampliar fotos (carruseles + mosaico Las Galeras)
   ========================================================= */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(8, 22, 28, 0.94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox[hidden] { display: none; }

.lightbox__stage {
  max-width: 92vw;
  max-height: 86vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__img {
  max-width: 100%;
  max-height: 86vh;
  width: auto;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  user-select: none;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  border: 0;
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 1;
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: scale(1.05);
}

.lightbox__close svg,
.lightbox__prev svg,
.lightbox__next svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.lightbox__close { top: 24px; right: 24px; }
.lightbox__prev  { left: 24px;  top: 50%; transform: translateY(-50%); }
.lightbox__next  { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__prev:hover { transform: translateY(-50%) scale(1.05); }
.lightbox__next:hover { transform: translateY(-50%) scale(1.05); }

.lightbox__counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* Cursor zoom-in en imágenes ampliables */
.carousel:not(.carousel--video) .carousel__track img,
.masonry__item img {
  cursor: zoom-in;
}

@media (max-width: 700px) {
  .lightbox__close,
  .lightbox__prev,
  .lightbox__next {
    width: 42px;
    height: 42px;
  }
  .lightbox__close svg,
  .lightbox__prev svg,
  .lightbox__next svg { width: 20px; height: 20px; }
  .lightbox__close { top: 14px; right: 14px; }
  .lightbox__prev  { left: 8px; }
  .lightbox__next  { right: 8px; }
  .lightbox__counter { bottom: 14px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .lightbox { transition: none; }
  .lightbox__close:hover,
  .lightbox__prev:hover,
  .lightbox__next:hover { transform: translate(var(--tx, 0), var(--ty, 0)) scale(1); }
}

/* =========================================================
   VIDEO PLAYER en slot del carrusel (después de click)
   ========================================================= */

.video-player {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 6px 20px rgba(15, 56, 64, 0.18);
}

.video-player__iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.video-player__expand {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: background 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.video-player__expand:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.08);
}

.video-player__expand svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Asegurar dimensiones según orientación del slide */
.video-slide--horizontal .video-player {
  aspect-ratio: 16 / 9;
  max-height: 480px;
}

.video-slide--vertical .video-player {
  aspect-ratio: 9 / 16;
  height: 480px;
  max-width: 100%;
  margin: 0 auto;
}

@media (max-width: 700px) {
  .video-slide--horizontal .video-player { max-height: 60vw; }
  .video-slide--vertical .video-player { height: 80vw; max-height: 70vh; }
  .video-player__expand { width: 32px; height: 32px; top: 8px; right: 8px; }
  .video-player__expand svg { width: 16px; height: 16px; }
}

/* =========================================================
   LIGHTBOX — soporte para video YouTube embebido
   ========================================================= */

.lightbox__video-wrapper {
  width: 92vw;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.lightbox__iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 78vh;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  background: #000;
  display: block;
}

.lightbox__yt-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  letter-spacing: 0.04em;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.lightbox__yt-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

@media (max-width: 700px) {
  .lightbox__video-wrapper { width: 96vw; gap: 8px; }
  .lightbox__yt-link { font-size: 13px; padding: 7px 14px; }
}

/* =========================================================
   FOOTER MOBILE — partir copyright en 2 líneas
   En mobile: "© 2026 Colores y Playas" / "Las Galeras, Samaná..." / "Desarrollado por..."
   En desktop: "© 2026 Colores y Playas · Las Galeras, Samaná..." / "Desarrollado por..."
   ========================================================= */
@media (max-width: 700px) {
  .footer__bottom {
    line-height: 1.6;
  }
  .footer__copy-sep {
    display: none;
  }
  .footer__copy-place {
    display: block;
  }
}
