/* =========================
   ECOSAMANA CLEAN CSS
   ========================= */

:root {
  --eco-dark: #063b3f;
  --eco-teal: #0f9f9a;
  --eco-green: #12a05c;
  --eco-sand: #fff3cf;
  --eco-white: #ffffff;
  --eco-soft: rgba(255,255,255,0.86);
  --shadow: 0 16px 38px rgba(0,0,0,0.14);
  --radius: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  overflow-x: hidden;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--eco-dark);
  line-height: 1.6;
}

body {
  background: linear-gradient(180deg, #e6fbff, #fff8df);
}

/* Global video background */
.global-video-bg {
  position: fixed;
  inset: 0;
  z-index: -10;
  overflow: hidden;
  pointer-events: none;
  background: #dffcff;
}

.global-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  filter: saturate(1.3) brightness(1.08);
  transform: scale(1.15);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -9;
  background: rgba(230,255,255,0.28);
  pointer-events: none;
}

/* Layout */
.container,
.gallery-wrap,
main > section {
  width: min(1200px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

section {
  padding: 48px 0;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(235,255,252,0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.navbar {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  font-weight: 900;
  color: var(--eco-dark);
  text-decoration: none;
  font-size: 1.15rem;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav a,
.dropbtn {
  color: var(--eco-dark);
  text-decoration: none;
  font-weight: 700;
  padding: 9px 12px;
  border-radius: 999px;
}

.nav a:hover,
.dropbtn:hover {
  background: rgba(15,159,154,0.12);
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  display: none;
  background: rgba(255,255,255,0.98);
  border-radius: 16px;
  padding: 10px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.08);
  z-index: 2000;
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content,
.dropdown-content:hover {
  display: block;
}

.dropdown-content a {
  display: block;
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--eco-dark);
  white-space: nowrap;
}

.dropdown-content a:hover {
  background: rgba(15,159,154,0.12);
}

/* Buttons */
.btn,
.btn--gold,
.nav-book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 20px;
  text-decoration: none;
  font-weight: 800;
  border: none;
}

.btn {
  background: var(--eco-green);
  color: white;
}

.btn--gold {
  background: linear-gradient(135deg, #ffe08a, #d8aa35);
  color: #17353a;
  box-shadow: 0 10px 22px rgba(216,170,53,0.28);
}

/* Hero / text sections */
.hero,
.hero-curves,
.tour-hero,
.team-section,
.gallery,
.trust-strip,
.tour-preview {
  text-align: center;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(5px);
  border-radius: 28px;
  margin-top: 28px;
  padding: 42px 24px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

h1,
h2,
h3 {
  color: var(--eco-dark);
  line-height: 1.15;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}

.lead,
.section-desc,
.page-intro {
  max-width: 850px;
  margin: 0 auto 22px;
  color: #28575d;
}

/* Cards + grids */
.grid,
.card-grid,
.gallery-image-grid,
.tour-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.card,
.tour-card,
figure.card {
  margin: 0;
  background: rgba(255,255,255,0.9);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.06);
}

.card img,
.tour-card img,
.grid img,
.gallery-image-grid img,
.tour-gallery-grid img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 0;
}

figcaption,
.card p,
.tour-card p {
  padding: 12px 14px;
  margin: 0;
  color: #365a60;
}

.tour-card h3 {
  padding: 14px 14px 4px;
  margin: 0;
}

/* Gallery page */
.gallery-section {
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(5px);
  border-radius: 28px;
  padding: 42px 24px;
  margin: 32px auto;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.reveal-up {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

.gallery-media-row {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 24px;
  align-items: start;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #000;
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Cayo feature */
.cayo-levantado-feature {
  background: rgba(255,255,255,0.82);
  border-radius: 28px;
  padding: 42px 24px;
  margin: 36px auto;
  box-shadow: var(--shadow);
}

.feature-head {
  text-align: center;
  margin-bottom: 24px;
}

.feature-kicker {
  display: inline-block;
  background: rgba(15,159,154,0.12);
  color: var(--eco-teal);
  padding: 7px 14px;
  border-radius: 999px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Social links */
.social-links,
.footer-social {
  text-align: center;
  padding: 20px;
}

/* Mobile */
@media (max-width: 780px) {
  .global-video-bg video {
    opacity: 0.42;
    transform: scale(1.28);
  }

  body::before {
    background: rgba(230,255,255,0.38);
  }

  .navbar {
    flex-direction: column;
    padding: 14px 0;
  }

  .brand {
    white-space: normal;
    text-align: center;
  }

  .nav {
    gap: 6px;
  }

  .nav a,
  .dropbtn {
    font-size: 0.92rem;
    padding: 8px 10px;
  }

  .dropdown-content {
    left: 50%;
    transform: translateX(-50%);
    width: min(320px, calc(100vw - 28px));
  }

  .nav-book {
    width: min(280px, 100%);
  }

  .gallery-media-row {
    grid-template-columns: 1fr;
  }

  .card img,
  .tour-card img,
  .grid img,
  .gallery-image-grid img,
  .tour-gallery-grid img {
    height: 220px;
  }

  section,
  .hero,
  .gallery-section,
  .cayo-levantado-feature {
    padding: 32px 18px;
  }
}
