/* DEPORVILLA — estilo Aman / Raffles (fase 1) */

:root {
  --bg-main: #f5f2ed;
  --bg-section: #ebe6df;
  --text-dark: #2c2c2c;
  --text-muted: #6b6560;
  --accent: #8a7b6a;
  --white: #fafaf8;
  --overlay: rgba(20, 18, 16, 0.35);
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --max-width: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-dark);
  background: var(--bg-main);
  -webkit-font-smoothing: antialiased;
}

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 9999;
  background: var(--white);
  padding: 0.5rem 1rem;
}

/* —— Hero (vídeo pantalla completa, estilo Raffles) —— */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__poster {
  position: absolute;
  inset: 0;
  background:
    url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?w=1920&q=80") center / cover no-repeat;
  z-index: 0;
}

.hero__video {
  position: relative;
  z-index: 1;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 12, 10, 0.25) 0%,
    rgba(15, 12, 10, 0.45) 55%,
    rgba(15, 12, 10, 0.55) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.hero__top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem clamp(1.25rem, 4vw, 2.5rem);
}

.hero__brand {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
}

.btn-reserve {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.75rem 1.35rem;
  border: 1px solid rgba(250, 250, 248, 0.85);
  color: var(--white);
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}

.btn-reserve:hover {
  background: var(--white);
  color: var(--text-dark);
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  max-width: 42rem;
}

.hero__eyebrow {
  font-size: 0.6875rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.9;
  margin: 0 0 1rem;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.75rem, 8vw, 5rem);
  font-weight: 400;
  line-height: 1.05;
  margin: 0 0 1rem;
  letter-spacing: 0.04em;
}

.hero__lead {
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  font-weight: 300;
  opacity: 0.92;
  margin: 0 0 2rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.btn-ghost {
  display: inline-block;
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.85rem 1.75rem;
  border: 1px solid rgba(250, 250, 248, 0.6);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
}

.btn-ghost:hover {
  background: rgba(250, 250, 248, 0.12);
  border-color: var(--white);
}

.hero__scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 1.5rem;
  height: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  display: grid;
  place-items: center;
}

.hero__scroll span {
  width: 4px;
  height: 8px;
  background: var(--white);
  border-radius: 2px;
  animation: scroll-hint 2s ease-in-out infinite;
}

@keyframes scroll-hint {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  50% {
    transform: translateY(6px);
    opacity: 1;
  }
}

/* —— Intro —— */

.intro {
  padding: clamp(4rem, 10vw, 7rem) clamp(1.25rem, 5vw, 2.5rem);
  background: var(--bg-main);
}

.intro__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 900px) {
  .intro__inner {
    grid-template-columns: 1fr 1fr;
  }
}

.section-eyebrow {
  font-size: 0.6875rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.intro__text h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 1.25rem;
}

.intro__text p {
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.intro__figure {
  margin: 0;
}

.intro__figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* —— Experiences (Seasonal Experiences, estilo Aman) —— */

.experiences {
  padding: clamp(4rem, 10vw, 6.5rem) clamp(1.25rem, 5vw, 2.5rem);
  background: var(--bg-section);
}

.experiences__header {
  max-width: 36rem;
  margin: 0 auto clamp(2.5rem, 6vw, 4rem);
  text-align: center;
}

.experiences__header h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  margin: 0 0 1rem;
}

.experiences__lead {
  color: var(--text-muted);
  margin: 0;
  font-size: 1.05rem;
}

.experiences__grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 32rem);
  gap: clamp(1.25rem, 3vw, 2rem);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0.25rem;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}

.experiences__grid.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.experiences__grid.is-dragging .experience-card__link {
  pointer-events: none;
}

.experiences__grid::-webkit-scrollbar {
  display: none;
}

.experience-card {
  background: var(--white);
  scroll-snap-align: start;
  min-height: 100%;
}

.experience-card__link {
  display: grid;
  height: 100%;
}

@media (min-width: 768px) {
  .experience-card__link {
    grid-template-columns: 1fr 1fr;
  }

  .experiences__grid {
    grid-auto-columns: minmax(560px, 68vw);
  }
}

.experience-card__media {
  overflow: hidden;
  min-height: 220px;
}

@media (min-width: 768px) {
  .experience-card__media {
    min-height: 100%;
  }
}

.experience-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.experience-card__link:hover .experience-card__media img {
  transform: scale(1.04);
}

.experience-card__body {
  padding: clamp(1.25rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.experience-card__tag {
  font-size: 0.625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

.experience-card__title {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 500;
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.experience-card__text {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin: 0 0 1.25rem;
  flex-grow: 1;
}

.experience-card__cta {
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dark);
  border-bottom: 1px solid var(--accent);
  align-self: flex-start;
  padding-bottom: 2px;
}

/* —— Footer —— */

.site-footer {
  padding: 2rem 1.5rem 2.5rem;
  text-align: center;
  background: var(--bg-main);
  border-top: 1px solid rgba(138, 123, 106, 0.15);
}

.site-footer__copy {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* —— Scroll reveal —— */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reserve-anchor {
  height: 0;
}
