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

body {
  margin: 0;
  background: #F4F1EC;
  color: #2D2A26;
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
}

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

/* ============ INTRO ANIMACIÓN (frases cielo hero) ============ */

#intro-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 16vh;
  background: transparent;
  z-index: 9999;
  pointer-events: none;
}

#intro-text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 4vw, 3rem);
  letter-spacing: .1em;
  color: #ffffff;
  text-transform: uppercase;
  text-align: center;
  text-shadow: 0 4px 16px rgba(0,0,0,0.6);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}

.intro-show {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.intro-hide {
  opacity: 0;
  transition: opacity .7s ease;
}

/* ================= HEADER / NAV ================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: rgba(250,248,243,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.6rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

/* Botón menú móvil */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 32px;
  height: 24px;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: #6A5743;
  border-radius: 999px;
}

/* Navegación */

.main-nav {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.main-nav a {
  text-decoration: none;
  text-transform: uppercase;
  font-size: .8rem;
  letter-spacing: .12em;
  color: #6A5743;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0%;
  height: 2px;
  background: #B89267;
  transition: width .25s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

/* ================= HERO ================= */

.hero {
  position: relative;
  height: 100vh;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 5rem;
  overflow: hidden;
  background: #000; /* fallback */
}

/* imagen de fondo via <picture> */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

/* overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(0,0,0,0.18), rgba(0,0,0,0.45));
}

/* contenido */
.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 1rem;
  color: #fff;
}

/* el contenido del hero empieza oculto y aparece con JS */
.hero-main {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .7s ease, transform .7s ease;
}

.hero-main-show {
  opacity: 1;
  transform: translateY(0);
}

.hero-tagline {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .8rem;
  color: #F3E1C9;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  margin: .6rem 0 .2rem;
}

.hero-subtitle {
  color: #EBD5BF;
  margin-bottom: 1.4rem;
}

.btn-ghost {
  display: inline-block;
  padding: .7rem 1.6rem;
  border-radius: 999px;
  border: 1px solid #F1D3A3;
  color: #F1D3A3;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .78rem;
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(6px);
  transition: background .25s ease, color .25s ease, transform .15s ease;
}

.btn-ghost:hover {
  background: #F1D3A3;
  color: #4C3A2A;
  transform: translateY(-1px);
}

/* ================= SECCIONES GENERALES ================= */

.section {
  padding: 5rem 1.6rem;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: #4C3A2A;
  margin-bottom: .8rem;
}

.lead {
  font-size: 1.02rem;
  color: #6A5743;
  max-width: 780px;
}

/* ECOSISTEMA */

.section-ecosistema {
  background: #EFE7DD;
  border-top: 1px solid rgba(0,0,0,0.05);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.ecosistema-grid {
  margin-top: 2.4rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1.8rem;
}

.eco-item {
  background: #F9F4ED;
  padding: 1.4rem;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 4px 18px rgba(0,0,0,0.06);
}

.eco-item h3 {
  text-transform: uppercase;
  font-size: .9rem;
  letter-spacing: .16em;
  color: #7A5C3B;
  margin-bottom: .6rem;
}

.eco-item p {
  color: #5D4A38;
  font-size: .95rem;
}

/* FONDOS SECCIONES */

.section-dark {
  background: #F5EEE6;
}

.section-mid {
  background: #F2E6D9;
}

.section-header {
  margin-bottom: 2rem;
}

.eyebrow {
  text-transform: uppercase;
  font-size: .78rem;
  letter-spacing: .18em;
  color: #A17B52;
}

/* ================= GALERÍAS – TRENCITO ================= */

.gallery-row {
  margin-top: 2rem;
}

/* contenedor general del carrusel */
.strip-carousel {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  overflow: hidden;
}

/* la “vía” donde van los vagones */
.strip-track {
  display: flex;
  gap: 1rem;
  transition: transform .6s ease;
}

/* cada “vagón” */
.strip-item {
  flex: 0 0 33.333%;   /* 3 por vista en desktop */
}

.strip-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}

.strip-item img:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(0,0,0,0.18);
  filter: saturate(1.05);
}

/* botones */
.strip-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(0,0,0,0.45);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  line-height: 1;
  padding: 0;
  transition: background .2s ease, transform .1s ease;
}

.strip-btn.prev {
  left: 8px;
}

.strip-btn.next {
  right: 8px;
}

.strip-btn:hover {
  background: rgba(0,0,0,0.7);
  transform: translateY(-50%) scale(1.03);
}

/* ================= CONTACTO ================= */

.section-contact {
  background: #F1E9DF;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.contact-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 2rem;
}

.contact-item h3 {
  color: #7A5C3B;
  font-size: .95rem;
  margin-bottom: .4rem;
}

.contact-link {
  color: #4C3A2A;
  text-decoration: none;
  font-size: .95rem;
}

/* ================= FOOTER ================= */

.site-footer {
  text-align: center;
  padding: 2rem 1rem;
  background: #EFE7DD;
  color: #6A5743;
  font-size: .85rem;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1024px) {
  .ecosistema-grid {
    grid-template-columns: 1fr 1fr;
  }

  .strip-item {
    flex: 0 0 50%;   /* 2 fotos por vista */
  }
}

@media (max-width: 900px) {
  .ecosistema-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-inner {
    flex-direction: row;
  }

  .logo-img {
    height: 70px;
  }

  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(250,248,243,0.96);
    flex-direction: column;
    padding: 0.8rem 1.4rem 1.2rem;
    gap: 0.8rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s ease, opacity .25s ease;
  }

  body.nav-open .main-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  /* HERO tablet/mobiles: texto arriba */
  .hero {
    align-items: flex-start;
    justify-content: center;
    padding-top: 7rem;
    padding-bottom: 2rem;
  }

  .hero-inner {
    width: 100%;
  }

  .hero-main {
    max-width: 90%;
    margin: 0 auto;
  }

  #intro-overlay {
    padding-top: 10vh;
  }

  .strip-item {
    flex: 0 0 100%;  /* 1 foto por vista en celu */
  }

  .strip-btn {
    width: 30px;
    height: 30px;
    font-size: 1.1rem;
  }
}