/* =========================================================
   CENTRO TULUM — Landing Page
   Tokens de marca: brandbook oficial
   ========================================================= */

:root {
  --forest: #395542;
  --forest-deep: #2b4233;
  --cream: #FFFCF7;
  --sage: #94B58F;
  --leaf: #578C56;
  --ink: #1B1B1B;

  --accent-1: #839D3B;
  --accent-2: #52A94B;
  --accent-3: #7EA08E;
  --accent-4: #98AE5C;
  --accent-5: #677367;
  --accent-6: #3D5F6C;

  --font: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1180px;
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

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

.container--narrow { max-width: 780px; text-align: center; }

.container--split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 900px) {
  .container--split {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
  border: 1.5px solid transparent;
  cursor: pointer;
}

.btn:hover { transform: translateY(-2px); }

.btn-accent {
  background: var(--leaf);
  color: var(--cream);
  box-shadow: 0 8px 24px rgba(87, 140, 86, 0.35);
}
.btn-accent:hover { background: var(--accent-2); }

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(255, 252, 247, 0.55);
}
.btn-ghost:hover { background: rgba(255, 252, 247, 0.12); }

.btn-outline {
  background: transparent;
  color: var(--forest);
  border-color: var(--forest);
}
.btn-outline:hover { background: var(--forest); color: var(--cream); }

.btn-small { padding: 9px 18px; font-size: 0.82rem; }
.btn-lg { padding: 17px 36px; font-size: 1rem; }

/* ============ HEADER ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(27, 27, 27, 0.35), transparent);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.scrolled {
  background: rgba(57, 85, 66, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.12);
}

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

.header-logo img { height: 81px; width: auto; }

@media (max-width: 640px) {
  .header-logo img { height: 56px; }
  .header-actions { gap: 8px; }
  .header-cta { display: none; }
}
@media (min-width: 641px) and (max-width: 979px) {
  .header-logo img { height: 68px; }
}

.main-nav {
  display: none;
  gap: 28px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--cream);
}

.main-nav a { opacity: 0.88; transition: opacity 0.2s; white-space: nowrap; }
.main-nav a:hover { opacity: 1; }

@media (min-width: 980px) {
  .main-nav a { margin-right: 28px; }
  .main-nav a:last-child { margin-right: 0; }
}

@media (min-width: 980px) {
  .main-nav { display: flex; }
}

.header-actions { display: flex; align-items: center; gap: 14px; }

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  color: var(--cream);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  padding: 6px 4px;
}
.lang-option { opacity: 0.55; transition: opacity 0.2s; }
.lang-option.active { opacity: 1; }
.lang-sep { opacity: 0.4; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
@media (min-width: 980px) { .nav-toggle { display: none; } }

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
@media (max-width: 979px) {
  .main-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--forest);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 40px;
    gap: 26px;
    font-size: 1.1rem;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    z-index: 99;
  }
  .main-nav.open { transform: translateX(0); display: flex; }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(27,36,29,0.55) 0%, rgba(27,36,29,0.35) 45%, rgba(20,28,22,0.82) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 140px 24px 100px;
  text-align: center;
  color: var(--cream);
}

.badge {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid rgba(255,252,247,0.4);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(2.4rem, 6.5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 400;
  opacity: 0.92;
  max-width: 560px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255,252,247,0.5);
  border-radius: 20px;
}
.scroll-cue span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  background: var(--cream);
  border-radius: 4px;
  animation: scrollCue 1.8s infinite;
}
@keyframes scrollCue {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 0; }
}

/* ============ SECTIONS ============ */
.section { padding: 96px 0; }
.section--dark { background: var(--forest); color: var(--cream); }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--leaf);
  margin-bottom: 14px;
}
.eyebrow--light { color: var(--sage); }

.section-title {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 760px;
  margin-bottom: 20px;
}
.section-title--light { color: var(--cream); }

.section-lead {
  font-size: 1.05rem;
  font-weight: 400;
  color: #4a4a4a;
  max-width: 640px;
  line-height: 1.65;
}
.section-lead--light { color: rgba(255,252,247,0.82); margin: 0 auto 36px; }

.container--narrow .section-title,
.container--narrow .section-lead { margin-left: auto; margin-right: auto; }

/* ============ HIGHLIGHTS ============ */
.highlights-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  margin-top: 56px;
}
@media (min-width: 780px) {
  .highlights-grid { grid-template-columns: repeat(3, 1fr); gap: 36px; }
}

.highlight-card { text-align: center; }

.highlight-img {
  width: 176px;
  height: 176px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 26px;
  border: 4px solid var(--cream);
  box-shadow: 0 12px 30px rgba(57,85,66,0.18);
}
.highlight-img img { width: 100%; height: 100%; object-fit: cover; }

.highlight-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.005em;
}
.highlight-card p { color: #555; font-size: 0.95rem; line-height: 1.6; }

/* ============ STATS ============ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 72px;
}
@media (min-width: 700px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-card {
  background: var(--cream);
  border: 1px solid rgba(57,85,66,0.14);
  border-radius: var(--radius);
  padding: 28px 16px;
  text-align: center;
}

.stat-number {
  display: block;
  font-size: clamp(1.6rem, 3.4vw, 2.1rem);
  font-weight: 800;
  color: var(--forest);
  letter-spacing: -0.01em;
}
.stat-number--sm { font-size: clamp(1.2rem, 2.4vw, 1.5rem); }

.stat-label {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  color: #666;
  font-weight: 500;
}

/* ============ STRIP IMAGE ============ */
.strip { width: 100%; line-height: 0; }
.strip img { width: 100%; height: clamp(220px, 38vw, 460px); object-fit: cover; }

/* ============ MARQUEE ============ */
.marquee {
  margin-top: 48px;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: clamp(40px, 6vw, 76px);
  width: max-content;
  animation: marqueeScroll 34s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; overflow-x: auto; }
}

.marquee-item {
  flex: 0 0 auto;
  height: 34px;
  display: flex;
  align-items: center;
}
.marquee-item img {
  height: 100%;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  opacity: 0.92;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ UBICACIÓN ============ */
.location-list { list-style: none; margin-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.location-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.98rem;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(57,85,66,0.14);
}
.location-list li:last-child { border-bottom: none; }
.location-time {
  flex: 0 0 auto;
  min-width: 72px;
  font-weight: 800;
  color: var(--leaf);
  font-size: 1.05rem;
}

.split-media img {
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(57,85,66,0.2);
}

/* ============ CTA SECTION ============ */
.section--cta {
  position: relative;
  text-align: center;
  overflow: hidden;
  color: var(--cream);
}
.section--cta .section-title,
.section--cta .eyebrow { margin-left: auto; margin-right: auto; }

.cta-bg { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 0; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-overlay {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(160deg, rgba(43,66,51,0.92) 0%, rgba(27,36,29,0.86) 100%);
}
.cta-content { position: relative; z-index: 1; }

/* ============ CONTACT / FORM EMBED ============ */
.form-embed-wrap {
  margin-top: 44px;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(148, 181, 143, 0.08);
  min-height: 1338px;
}
.form-embed-wrap iframe { width: 100%; height: 1338px; display: block; }

@media (max-width: 640px) {
  .form-embed-wrap, .form-embed-wrap iframe { height: 1500px; min-height: 1500px; }
}

.contact-direct { margin-top: 28px; }

/* ============ FOOTER ============ */
.site-footer {
  background: var(--forest-deep);
  color: rgba(255,252,247,0.75);
  padding: 56px 0 36px;
  position: relative;
  overflow: hidden;
}

.footer-inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.footer-logo { height: 102px; width: auto; margin-bottom: 6px; }
.footer-meta { font-size: 0.88rem; }
.footer-link { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,252,247,0.4); transition: text-decoration-color 0.2s; }
.footer-link:hover { text-decoration-color: rgba(255,252,247,0.9); }
.footer-copy { font-size: 0.78rem; opacity: 0.7; }

/* ============ WHATSAPP FLOAT ============ */
.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
  transition: transform 0.25s var(--ease);
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ============ REVEAL ON SCROLL ============ */
/* Por defecto siempre visible: si JS falla, el contenido nunca se pierde. */
.reveal { opacity: 1; transform: none; }

.js-enabled .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js-enabled .reveal.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .js-enabled .reveal { opacity: 1; transform: none; }
}
