@font-face {
  font-family: 'Rosallina';
  src: url('fonts/Rosallina.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Boyrun';
  src: url('fonts/Boyrun.woff2') format('woff2'),
       url('fonts/Boyrun.woff') format('woff'),
       url('fonts/Boyrun.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Founders Grotesk para el texto (cuerpo) */
@font-face {
  font-family: 'Founders Grotesk';
  src: url('fonts/FoundersGrotesk-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Founders Grotesk';
  src: url('fonts/FoundersGrotesk-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Founders Grotesk';
  src: url('fonts/FoundersGrotesk-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Founders Grotesk';
  src: url('fonts/FoundersGrotesk-Semibold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Founders Grotesk';
  src: url('fonts/FoundersGrotesk-Bold.otf') format('opentype');
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

/* Títulos y encabezados en Boyrun */
h1, h2, h3, h4 {
  font-family: 'Boyrun', Georgia, serif;
}
/* Títulos en mayúsculas (sin afectar la cita) */
h1, h2, h3, h4 {
  text-transform: uppercase;
}

:root {
  --bg: #ece5d8;        /* fondo beige claro (antes naranja) */
  --green: #5e7242;     /* acento principal: verde oliva */
  --green-dark: #4c5d35;
  --mauve: #9c8194;     /* acento secundario: malva / rosa empolvado */
  --taupe: #d3c9b6;     /* neutro suave */
  --cream: #f7f3ec;     /* contenedor del sitio */
  --black: #2c3025;     /* tarjetas oscuras: verde carbón */
  --ink: #2c2a24;       /* texto */
  --text-muted: #8d8779;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Founders Grotesk', 'Archivo', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Layout ---------- */
.site {
  max-width: 1180px;
  margin: 0 auto;
  background: var(--cream);
  padding: 22px clamp(16px, 3vw, 36px) 70px;
}

/* ---------- Header ---------- */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 22px;
}
.logo {
  font-weight: 900;
  font-size: 19px;
  letter-spacing: 0.5px;
}
.nav { display: flex; gap: 26px; }
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  opacity: 0.8;
}
.nav a:hover { opacity: 1; }
.header__icons { display: flex; gap: 16px; }
.icon { font-size: 16px; cursor: pointer; opacity: 0.8; }

/* ---------- Buttons ---------- */
.btn {
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.5px;
  padding: 13px 20px;
  border-radius: 40px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  transition: transform 0.25s ease, opacity 0.25s ease,
    background-color 0.25s ease, color 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--dark { background: var(--black); color: var(--cream); }
.btn--light { background: var(--cream); color: var(--ink); }
.btn--sm { padding: 11px 16px; font-size: 11px; }
.btn__label {
  position: relative;
  top: 1px; /* centrado óptico: baja el texto en mayúsculas */
}
.btn .arrow {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  font-size: 0; /* oculta el glifo ↗, se usa el SVG centrado */
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px 10px;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='white'%20stroke-width='2.6'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cline%20x1='7'%20y1='17'%20x2='17'%20y2='7'/%3E%3Cpolyline%20points='8%207%2017%207%2017%2016'/%3E%3C/svg%3E");
}
.btn--dark .arrow { background-color: var(--green); }
.btn--light .arrow { background-color: var(--black); }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 14px;
}
.hero__main {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 420px;
}
.badge {
  position: absolute;
  top: 18px; right: 18px;
  width: 48px; height: 48px;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 22px;
  cursor: pointer;
  z-index: 4;
  transition: transform 0.35s ease, background 0.35s ease;
}
.badge:hover { transform: rotate(90deg); }
.hero__main.is-open .badge { transform: rotate(45deg); background: var(--green-dark); }

/* Menú overlay verde — se expande en CÍRCULO desde el botón (esquina sup. derecha) */
.hero__menu {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: var(--green);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 40px;
  visibility: hidden;
  pointer-events: none;
  clip-path: circle(0% at calc(100% - 42px) 42px);
  transition: clip-path 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              visibility 0.6s;
}
.hero__main.is-open .hero__menu {
  visibility: visible;
  pointer-events: auto;
  clip-path: circle(150% at calc(100% - 42px) 42px);
}
/* Enlaces: entran en cascada con un skew que se endereza */
.hero__menu a {
  color: var(--cream);
  text-decoration: none;
  font-family: 'Boyrun', Georgia, serif;
  font-size: clamp(32px, 6vw, 52px);
  line-height: 1.1;
  width: max-content;
  opacity: 0;
  transform: translateY(30px) skewY(7deg);
  transform-origin: left center;
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero__main.is-open .hero__menu a {
  opacity: 1;
  transform: translateY(0) skewY(0);
}
.hero__main.is-open .hero__menu a:nth-child(1) { transition-delay: 0.16s; }
.hero__main.is-open .hero__menu a:nth-child(2) { transition-delay: 0.23s; }
.hero__main.is-open .hero__menu a:nth-child(3) { transition-delay: 0.30s; }
.hero__main.is-open .hero__menu a:nth-child(4) { transition-delay: 0.37s; }
.hero__main.is-open .hero__menu a:nth-child(5) { transition-delay: 0.44s; }
.hero__menu a:hover { opacity: 0.72; }
.hero__buttons {
  position: absolute;
  left: 18px; bottom: 18px;
  display: flex;
  gap: 10px;
}
.hero__side {
  display: grid;
  grid-template-rows: 1.15fr 1fr;
  gap: 14px;
}
.hero__title-card {
  position: relative;
  overflow: hidden;
  background: var(--black);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
/* Capa de imagen (con zoom en hover) */
.hero__title-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('images/Acamilpa.jpg') center / cover no-repeat;
  transition: transform 0.6s ease;
  z-index: 0;
}
/* Capa de overlay (cambia a verde en hover) */
.hero__title-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28, 30, 24, 0.45) 0%, rgba(28, 30, 24, 0.78) 100%);
  transition: background 0.4s ease;
  z-index: 1;
}
.hero__title-card:hover::before { transform: scale(1.08); }
.hero__title-card:hover::after {
  background: linear-gradient(180deg, rgba(94, 114, 66, 0.55) 0%, rgba(46, 56, 34, 0.85) 100%);
}
/* El contenido queda por encima de las capas */
.hero__title-card > * { position: relative; z-index: 2; }
.hero__eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 1.5px;
  text-transform: none;
  color: #fff;
  margin-bottom: 8px;
}
.hero__title-card h1 {
  font-size: clamp(22px, 3.4vw, 28px);
  font-weight: 900;
  line-height: 1.02;
}
.hero__title-card-bottom {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.hero__title-card p {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.5px;
  color: #fff;
  max-width: 80%;
}
.hero__title-card-bottom .btn { flex-shrink: 0; }
.hero__title-card-bottom .btn:hover {
  background: var(--mauve);
  color: #fff;
}

/* ---------- Tarjeta de cuenta regresiva ---------- */
.countdown-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  background: var(--green);
  border-radius: var(--radius);
  padding: 34px 20px;
  color: var(--cream);
  text-align: center;
}
.countdown-card__date {
  font-family: 'Boyrun', Georgia, serif;
  text-transform: uppercase;
  font-size: clamp(16px, 2.2vw, 20px);
  letter-spacing: 0.5px;
}
.countdown-card__timer {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
}
.countdown-card__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  min-width: 56px;
}
.countdown-card__value {
  font-family: 'Founders Grotesk', 'Archivo', sans-serif;
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 300;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown-card__label {
  font-size: 10px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(247, 243, 236, 0.7);
}
.countdown-card__colon {
  font-family: 'Founders Grotesk', 'Archivo', sans-serif;
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 300;
  line-height: 1;
  color: rgba(247, 243, 236, 0.6);
  align-self: flex-start;
  margin-top: 4px;
}
.countdown-card__cal { margin-top: 4px; }

.hero__small-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.img-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 150px;
}
/* Variante de tarjeta con contenido sobre la imagen */
.img-card--content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: 18px;
  color: var(--cream);
}
.img-card--content img {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.img-card--content::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28, 30, 24, 0.35) 0%, rgba(28, 30, 24, 0.82) 100%);
  z-index: 1;
}
.img-card--content > :not(img) {
  position: relative;
  z-index: 2;
}
.img-card__foot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: auto;
}
.img-card__title {
  font-size: clamp(22px, 3.4vw, 28px);
  font-weight: 900;
  line-height: 1.02;
}
/* Slideshow de fondo con Ken Burns + fade (3 imágenes x 3.5s = 10.5s) */
.img-card--content .slide {
  opacity: 0;
  animation: kenburns 10.5s linear infinite;
}
.img-card--content .slide:nth-of-type(2) { animation-delay: 3.5s; }
.img-card--content .slide:nth-of-type(3) { animation-delay: 7s; }
@keyframes kenburns {
  0%   { opacity: 0; transform: scale(1); }
  4%   { opacity: 1; }
  29%  { opacity: 1; }
  33%  { opacity: 0; transform: scale(1.09); }
  100% { opacity: 0; transform: scale(1); }
}
.img-card__label {
  position: absolute;
  left: 14px; bottom: 14px;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

/* ---------- Quote ---------- */
.quote {
  padding: 46px 0 40px;
}
.quote p {
  font-size: clamp(22px, 3.4vw, 36px);
  font-weight: 800;
  line-height: 1.12;
  max-width: 920px;
}
.quote .emoji { font-size: 0.85em; }
.quote .script {
  font-family: 'Rosallina', cursive;
  color: var(--mauve);
  font-weight: 400;
  font-size: 2.1em;
  line-height: 1;
  position: relative;
  top: 0.12em;
}

/* ---------- Card row ---------- */
.card-row {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 60px;
}
.card-row__feature {
  background: var(--green);
  color: #fff;
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 240px;
}
.card-row__brand {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.85;
}
.card-row__feature h3 {
  font-size: clamp(22px, 3.4vw, 28px);
  font-weight: 800;
  line-height: 1.05;
  margin-top: 8px;
}
.card-row__feature .btn { align-self: flex-start; margin-top: auto; }
.card-row__img {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 240px;
}
.plus {
  position: absolute;
  top: 14px; right: 14px;
  width: 34px; height: 34px;
  border: none;
  border-radius: 50%;
  background: var(--cream);
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.plus--light { background: var(--cream); }

/* ---------- Stacked cards (sticky) ---------- */
.stack {
  padding: 40px 0 80px;
}
.stack__heading {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--cream);
  padding: 18px 0 16px;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  line-height: 1;
}
.stack__card {
  position: sticky;
  min-height: 45vh;
  border-radius: var(--radius-lg);
  margin-bottom: 14px;
  padding: 12px;
  color: var(--cream);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}
/* Separación incremental del top: cada tarjeta se fija un poco más abajo
   para dejar visible la franja superior (donde irá el título) de la anterior */
.stack__card:nth-child(2) { top: 84px; background: var(--green); }
.stack__card:nth-child(3) { top: 144px; background: var(--mauve); }
.stack__card:nth-child(4) { top: 204px; background: var(--black); }
.stack__card:nth-child(5) { top: 264px; background: var(--green-dark); }
.stack__card:nth-child(6) { top: 324px; background: var(--mauve); }
.stack__card:nth-child(7) { top: 384px; background: var(--black); }
.stack__card:nth-child(8) { top: 444px; background: var(--green); z-index: 100;}
.stack__head {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 44px;
  z-index: 0;
}
.stack__num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  opacity: 0.8;
  font-family: 'Courier New', Courier, monospace;
}
.stack__title {
  font-family: inherit;
  font-size: clamp(18px, 3.4vw, 24px);
  font-weight: 300;
  line-height: 1;
  text-transform: none;
}

/* ---------- History ---------- */
.history {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 20px;
  align-items: end;
  padding: 10px 0 34px;
}
.history__text {
  font-size: 11px;
  color: var(--text-muted);
  max-width: 220px;

  }
.history__text2 {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 800px;
}
.history__title {
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 900;
  line-height: 1.04;
}

/* ---------- Hospedaje (carrusel deslizable) ---------- */
.lodging__slider {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 4px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.lodging__slider::-webkit-scrollbar { display: none; }
.lodging-card {
  position: relative;
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: clamp(220px, 27vw, 270px);
  min-height: 240px;
  background: var(--black);
  color: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}
.lodging-card__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.lodging-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(28, 30, 24, 0.45) 0%, rgba(28, 30, 24, 0.88) 100%);
}
.lodging-card__body,
.lodging-card__foot {
  position: relative;
  z-index: 2;
}
.lodging-card__eyebrow {
  font-size: 10px;
  letter-spacing: 0.6px;
  opacity: 0.65;
}
.lodging-card__name {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  margin-top: 8px;
}
.lodging-card__address {
  font-size: 11px;
  color: rgba(247, 243, 236, 0.65);
  line-height: 1.5;
  margin-top: 8px;
}
.lodging-card__foot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.lodging-card__time {
  font-size: 11px;
  font-weight: 600;
  color: var(--cream);
  opacity: 0.9;
}
.lodging__nav {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}
.lodging__arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--green);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.25s ease, background 0.25s ease;
}
.lodging__arrow:hover { transform: translateY(-2px); background: var(--green-dark); }
.divider {
  height: 2px;
  background: var(--green);
  margin: 22px 0 60px;
}

/* ---------- Feature ---------- */
.feature {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 16px;
  background: var(--mauve);
  border-radius: var(--radius-lg);
  padding: 36px;
  color: #fff;
  margin-bottom: 70px;
}
.feature__brand { font-size: 12px; opacity: 0.85; }
.feature__text h3 {
  font-size: clamp(22px, 3.4vw, 28px);
  font-weight: 800;
  line-height: 1.05;
  margin: 10px 0 16px;
}
.feature__desc {
  font-size: 12px;
  line-height: 1.55;
  max-width: 420px;
  opacity: 0.9;
  margin-bottom: 22px;
}
.feature__img {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 280px;
}

/* ---------- Collection ---------- */
.collection { margin-bottom: 64px; }
.collection__brand { font-size: 12px; color: var(--text-muted); }
.collection__title {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  margin: 6px 0 22px;
}
.collection__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.coll-card {
  background: var(--black);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 20px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.coll-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.coll-card__brand { font-size: 11px; opacity: 0.7; }
.coll-card .plus--light {
  position: static;
  background: var(--cream);
  color: var(--ink);
}
.coll-card__bottom h4 {
  font-size: 14px;
  font-weight: 800;
}
.coll-card__bottom p {
  font-size: 10px;
  color: #9a9189;
  margin-top: 6px;
}

/* ---------- Banner ---------- */
.banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 320px;
  margin-bottom: 60px;
}
.banner img { position: absolute; inset: 0; }
.banner__overlay {
  position: relative;
  z-index: 2;
  height: 100%;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  background: rgba(0,0,0,0.32);
  padding: 30px;
}
.banner__overlay h2 {
  color: #fff;
  font-size: clamp(22px, 3.4vw, 40px);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.05;
}

/* ---------- Footer ---------- */
.footer {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.6fr;
  gap: 24px;
  padding: 30px 0 50px;
  border-top: 1px solid #ddd6ca;
}
.footer__brand p {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
}
.footer__col h5,
.footer__news h5 {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}
.footer__col a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 12px;
  margin-bottom: 7px;
}
.footer__col a:hover { color: var(--ink); }
.newsletter {
  display: flex;
  border: 1px solid #cfc8bc;
  border-radius: 40px;
  overflow: hidden;
  background: #fff;
}
.newsletter input {
  flex: 1;
  border: none;
  outline: none;
  padding: 11px 16px;
  font-size: 12px;
  font-family: inherit;
  background: transparent;
}
.newsletter button {
  border: none;
  background: var(--green);
  color: #fff;
  width: 42px;
  cursor: pointer;
  font-size: 16px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .card-row { grid-template-columns: 1fr 1fr; }
  .history { grid-template-columns: 1fr; gap: 12px; }
  .feature { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .nav { display: none; }
  .hero__side { grid-template-rows: auto auto; }
  .card-row { grid-template-columns: 1fr; }
  .lodging-card { width: 74vw; }
  .collection__grid { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr; }
  .hero__buttons { flex-direction: column; }
  .quote p, .hero__title-card p { max-width: 100%; }
  .img-card--content { min-height: 210px; }
  .countdown-card { min-height: 210px; }
  .countdown-card__timer { gap: 10px; }
}
