/* ============================================================
   LA RUTA DEL CHANGO — styles.css
   ============================================================ */

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

:root {
  --jungle:      #1a3a20;
  --jungle-mid:  #2d5a35;
  --jungle-light:#3d7a48;
  --lime:        #8fd44e;
  --lime-soft:   #b5e67a;
  --cream:       #f5f0e8;
  --white:       #ffffff;
  --dark:        #0d1f10;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--dark);
  color: var(--white);
  overflow-x: hidden;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 1.5rem 3rem;

  background: linear-gradient(
    to bottom,
    rgba(13,31,16,0.88),
    rgba(13,31,16,0.18),
    transparent
  );

  backdrop-filter: blur(8px);
  transition: background 0.4s, padding 0.4s;
}

nav.scrolled {
  background: rgba(13,31,16,0.96);
  backdrop-filter: blur(12px);
  padding: 1rem 3rem;
}

.nav-spacer {
  position: absolute;
  left: 3rem;
  width: 160px;
  height: 1px;
}

.nav-logo {
  display: none;
}

.nav-links {
  display: flex;
  gap: 3rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: rgba(255,255,255,0.86);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.92;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.nav-links a:hover {
  color: var(--lime);
  opacity: 1;
}

.nav-cta {
  position: absolute;
  right: 3rem;
  background: var(--lime);
  color: var(--dark);
  padding: 0.75rem 1.65rem;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(143,212,78,0.35);
}

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  position: relative; display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('../images/hero-bg.jpg');
  background-size: cover; background-position: center;
  transform: scale(1.05);
  animation: zoomOut 8s ease-out forwards;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(13,31,16,0.55) 0%,
    rgba(13,31,16,0.3) 40%,
    rgba(13,31,16,0.8) 100%);
}
@keyframes zoomOut {
  from { transform: scale(1.05); }
  to   { transform: scale(1); }
}
.hero-content {
  position: relative; z-index: 2; text-align: center; padding: 2rem; margin-top:4.5rem;
  animation: heroIn 1.2s cubic-bezier(0.16,1,0.3,1) forwards;
}


.hero-logo{
  display:flex;
  justify-content:center;

   margin-bottom:1.4rem;

  animation:heroLogoIn 1.4s ease forwards;
}

hero-logo img{
  width:190px;
  height:190px;

  object-fit:contain;

  opacity:.96;

  filter:
    drop-shadow(0 10px 30px rgba(0,0,0,.45));

  transition:
    transform .4s ease,
    opacity .4s ease;
}

.hero-logo img:hover {
  transform: scale(1.05);
  opacity: 1;
}

@keyframes heroLogoIn {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow {
  font-size: 0.75rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--lime); font-weight: 500; margin-bottom: 1.5rem;
  display: inline-flex; align-items: center; gap: 0.75rem;
}
.hero-eyebrow::before, .hero-eyebrow::after {
  content: ''; display: block; width: 40px; height: 1px; background: var(--lime);
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.5rem, 8vw, 8rem);
  font-weight: 300; line-height: 0.95;
  color: var(--white); margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.hero-title em { font-style: italic; color: var(--lime-soft); }
.hero-subtitle {
  font-size: 1.1rem; font-weight: 300; color: rgba(255,255,255,0.8);
  max-width: 520px; margin: 0 auto 3rem; line-height: 1.7;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: var(--lime); color: var(--dark);
  padding: 0.9rem 2.5rem; border-radius: 100px;
  font-weight: 600; font-size: 0.9rem; letter-spacing: 0.06em;
  text-transform: uppercase; text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(143,212,78,0.4); }
.btn-ghost {
  border: 1px solid rgba(255,255,255,0.5); color: var(--white);
  padding: 0.9rem 2.5rem; border-radius: 100px;
  font-weight: 400; font-size: 0.9rem; letter-spacing: 0.06em;
  text-transform: uppercase; text-decoration: none;
  backdrop-filter: blur(4px);
  transition: border-color 0.2s, background 0.2s;
}
.btn-ghost:hover { border-color: var(--lime); background: rgba(143,212,78,0.1); }
.hero-scroll {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: rgba(255,255,255,0.4); font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase;
  animation: bounce 2s ease-in-out infinite;
}
.hero-scroll::after { content: ''; width: 1px; height: 40px; background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent); }
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(6px)} }

/* ─── REVEAL ANIMATIONS ─── */
.reveal {
  opacity: 0; transform: translateY(50px);
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* ─── SECTION HELPERS ─── */
.section-label {
  font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--lime); font-weight: 500; margin-bottom: 1.2rem;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 4vw, 4rem); font-weight: 300;
  line-height: 1.1; color: var(--white);
}
.section-title em { font-style: italic; color: var(--lime-soft); }
.section-body {
  font-size: 1rem; font-weight: 300; line-height: 1.8;
  color: rgba(255,255,255,0.72);
}

/* ─── MISSION / VISION ─── */
.mission-section {
  padding: 8rem 4rem;
  background: linear-gradient(135deg, var(--dark) 0%, #142818 100%);
}
.mission-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2rem; max-width: 1200px; margin: 0 auto;
}
.mission-block {
  padding: 3rem; border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(143,212,78,0.12);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.mission-block::before {
  content: ''; position: absolute;
  top: -60px; right: -60px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(143,212,78,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.mission-block h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem; font-weight: 300;
  color: var(--lime-soft); margin-bottom: 1.2rem;
}
.mission-block p { font-size: 0.95rem; line-height: 1.8; color: rgba(255,255,255,0.72); }

/* Frases nuevas Misión/Visión */
.mission-quote {
  margin-top: 1.5rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-style: italic;
  color: var(--lime);
  border-left: 2px solid var(--lime);
  padding-left: 1rem;
  opacity: 0.9;
}

/* ─── SPLIT IMAGE SECTION ─── */
.split-section { display: grid; grid-template-columns: 1fr 1fr; min-height: 60vh; }
.split-img {
  position: relative; overflow: hidden;
}
.split-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.split-img:hover img { transform: scale(1.04); }
.split-content {
  padding: 5rem 4rem;
  background: var(--jungle);
  display: flex; flex-direction: column; justify-content: center;
}
.split-content .section-body { max-width: 100%; margin-top: 1.5rem; }

/* ─── FULLSCREEN PHOTO BREAK ─── */
.photo-break {
  height: 60vh; position: relative; overflow: hidden;
}
.photo-break img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.02);
  transition: transform 8s ease;
}
.photo-break:hover img { transform: scale(1); }
.photo-break-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,31,16,0.4) 0%, rgba(13,31,16,0.2) 50%, rgba(13,31,16,0.7) 100%);
  display: flex; align-items: center; justify-content: center;
}
.photo-break-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 5rem);
  font-weight: 300; color: var(--white); text-align: center;
}

/* Color para el texto sobre imagen clara (Cenote) */
.text-highlight {
  font-style: italic;
  color: #c5f985 !important; 
  text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.9);
  font-weight: 400;
}

/* ─── LOCATION / DISTANCES ─── */
.location-section { padding: 8rem 4rem; background: var(--dark); }
.location-inner { max-width: 1200px; margin: 0 auto; }
.location-header { text-align: center; margin-bottom: 4rem; }
.location-header .section-body { margin: 1.5rem auto 0; max-width: 500px; text-align: center; }

.distances-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px; overflow: hidden; margin-bottom: 3rem;
}
.dist-item {
  background: rgba(13,31,16,0.8); padding: 2rem 1.2rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  transition: background 0.3s;
}
.dist-item:hover { background: rgba(45,90,53,0.5); }
.dist-name { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.45); }
.dist-km { font-family: 'Cormorant Garamond', serif; font-size: 2.5rem; color: var(--lime); font-weight: 600; line-height: 1; }
.dist-unit { font-size: 0.75rem; color: rgba(255,255,255,0.35); text-transform: lowercase; font-weight: 600; }

.iframe-local-container {
  width: 100%; max-width: 1100px; margin: 3rem auto 0;
  border-radius: 15px; overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3); line-height: 0;
}

/* ─── LOTS ─── */
.lots-section { padding: 8rem 4rem; background: linear-gradient(180deg, #0d1f10 0%, #1a3a20 100%); }
.lots-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.uses-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin-top: 2rem; }
.use-tag {
  background: rgba(143,212,78,0.08); border: 1px solid rgba(143,212,78,0.2);
  border-radius: 8px; padding: 0.7rem 1rem;
  font-size: 0.8rem; color: rgba(255,255,255,0.8);
  display: flex; align-items: center; gap: 0.5rem;
  transition: background 0.2s, border-color 0.2s;
}
.use-tag:hover { background: rgba(143,212,78,0.15); border-color: rgba(143,212,78,0.35); }
.use-tag::before { content: '🌿'; font-size: 0.85rem; }
.lot-visual img { width: 100%; border-radius: 16px; box-shadow: 0 32px 64px rgba(0,0,0,0.5); }
.lot-dims-note {
  margin-top: 1rem; text-align: center;
  font-size: 0.85rem; color: rgba(255,255,255,0.4);
  letter-spacing: 0.05em;
}

/* ─── PHOTO GRID ─── */
.photo-grid-section { padding: 8rem 4rem; background: #0a1a0c; }
.photo-grid-inner { max-width: 1200px; margin: 0 auto; }
.photo-grid-header { margin-bottom: 3rem; }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.photo-card { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 1; }
.photo-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.photo-card:hover img { transform: scale(1.06); }
.photo-card-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1.5rem 1.2rem 1.2rem;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
  font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lime);
}

/* ─── BUILD TYPES ─── */
.build-section { padding: 8rem 4rem; background: var(--dark); }
.build-inner { max-width: 1200px; margin: 0 auto; }
.build-header { margin-bottom: 3rem; }
.build-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.build-card { border-radius: 16px; overflow: hidden; position: relative; aspect-ratio: 1.5; }
.build-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.build-card:hover img { transform: scale(1.06); }
.build-card-info {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,31,16,0.9) 0%, rgba(13,31,16,0.1) 60%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.5rem;
}
.build-card h4 { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 400; color: var(--lime-soft); margin-bottom: 0.4rem; }
.build-card p { font-size: 0.78rem; line-height: 1.5; color: rgba(255,255,255,0.65); }

/* ─── PRICING ─── */
.pricing-section { padding: 8rem 4rem; background: linear-gradient(135deg, #142818 0%, var(--dark) 100%); }
.pricing-inner { max-width: 900px; margin: 0 auto; }
.pricing-header { text-align: center; margin-bottom: 4rem; }
.pricing-header .section-body { margin: 1rem auto 0; text-align: center; }
.pricing-badge {
  display: inline-block; background: var(--lime); color: var(--dark);
  padding: 0.4rem 1.2rem; border-radius: 100px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.pricing-table-wrap {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px; overflow: hidden; margin-bottom: 1.5rem;
}
.pricing-table { width: 100%; border-collapse: collapse; }
.pricing-table thead tr { background: var(--jungle-mid); }
.pricing-table thead th {
  padding: 1.2rem 1.5rem; text-align: center;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--lime);
}
.pricing-table tbody tr {
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.25s;
}
.pricing-table tbody tr:last-child { border-bottom: none; }
.pricing-table tbody tr:hover { background: rgba(45,90,53,0.25); }
.pricing-table tbody td { padding: 1.4rem 1.5rem; text-align: center; font-size: 0.95rem; color: rgba(255,255,255,0.85); }
.pricing-table tbody td:nth-child(2) { font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; color: var(--lime); font-weight: 600; }
.pricing-table tbody td.price-range {
  font-family: 'Outfit', sans-serif;
  color: var(--lime-soft);
  line-height: 1.2;
}
.price-range span {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
}
.price-range strong {
  display: block;
  margin: 0.2rem 0;
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  font-weight: 700;
  color: var(--lime);
  white-space: nowrap;
}

/* ─── CONTACT ─── */
.contact-section {
  padding: 8rem 4rem; position: relative; overflow: hidden;
}
.contact-bg {
  position: absolute; inset: 0;
  background-image: url('../images/monkey-photo.png');
  background-size: cover; background-position: center top;
  filter: brightness(0.35) saturate(0.6);
}
.contact-inner {
  position: relative; z-index: 2;
  max-width: 700px; margin: 0 auto; text-align: center;
}
.contact-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 5vw, 5rem); font-weight: 300;
  margin-bottom: 1.5rem;
}
.contact-title em { font-style: italic; color: var(--lime-soft); }
.contact-details { display: flex; gap: 3rem; justify-content: center; flex-wrap: wrap; margin-top: 3rem; }
.contact-item { display: flex; flex-direction: column; gap: 0.3rem; }
.contact-item-label { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.4); }
.contact-item-val { font-size: 1rem; color: var(--white); }
.contact-item-val a { color: var(--lime); text-decoration: none; }
.contact-item-val a:hover { text-decoration: underline; }
.contact-cta { margin-top: 3rem; }

/* ─── FOOTER ─── */
footer {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 2.5rem 4rem;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-logo { display: flex; align-items: center; gap: 0.6rem; }
.footer-logo img { width: 32px; opacity: 0.6; filter: brightness(0) invert(1); }
.footer-brand { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; color: rgba(255,255,255,0.35); }
.footer-right { font-size: 1.3rem; color: rgba(255,255,255,0.2); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .distances-grid { grid-template-columns: repeat(4, 1fr); }
  .build-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; justify-content: flex-end; }
  nav.scrolled { padding: 0.9rem 1.5rem; }
  .nav-spacer { display: none; }
  .nav-links { display: none; }
  .nav-cta { position: static; right: auto; }
  .hero-logo img { width: 92px; height: 92px; }
  .mission-grid, .lots-inner, .split-section { grid-template-columns: 1fr; }
  .split-section { min-height: auto; }
  .split-img { height: 300px; }
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .distances-grid { grid-template-columns: repeat(2, 1fr); }
  .mission-section, .location-section, .lots-section, .pricing-section,
  .contact-section, .build-section, .photo-grid-section { padding: 5rem 1.5rem; }
  .split-content { padding: 3rem 1.5rem; }
  footer { flex-direction: column; gap: 1rem; text-align: center; }
}
@media (max-width: 900px) {
  .hero-logo img { width: 78px; height: 78px; }
  .photo-grid { grid-template-columns: 1fr; }
  .build-grid { grid-template-columns: 1fr; }
  .uses-list { grid-template-columns: 1fr; }
  .contact-details { flex-direction: column; gap: 1.5rem; align-items: center; }
}

/* ─── IFRAME RECORRIDO ─── */

.iframe-local-container{
  width:100%;
  overflow:hidden;
  border-radius:24px;
}

.tour-iframe{
  width:100%;
  height:100vh;
  min-height:950px;
  border:none;
  overflow:hidden;
  display:block;
}
