/* ============================================================
   MORADA LUNA — CSS
   Diseño minimalista estilo Apple
   Tipografía: Cormorant Garamond + DM Sans
   Paleta: #0A0A0A / #FFFFFF / #E8E8E8
   ============================================================ */

/* ─── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: #ffffff;
  color: #0a0a0a;
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

/* ─── TOKENS ────────────────────────────────────────────────── */
:root {
  --black:       #0a0a0a;
  --white:       #ffffff;
  --gray-50:     #fafafa;
  --gray-100:    #f4f4f4;
  --gray-200:    #e8e8e8;
  --gray-400:    #b0b0b0;
  --gray-600:    #6b6b6b;
  --brand:       #1b5e7b;

  --font-display: 'Cormorant Garamond', serif;
  --font-body:    'DM Sans', sans-serif;

  --nav-h:       100px;
  --section-gap: 120px;
  --container:   1200px;
  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
}

/* ─── TYPOGRAPHY UTILITIES ──────────────────────────────────── */
.label {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-600);
  margin-bottom: 20px;
}

.display-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.display-title em {
  font-style: italic;
  font-weight: 300;
}

/* ─── LAYOUT ────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 48px;
}

@media (max-width: 768px) {
  .container { padding: 0 24px; }
}

/* ─── BUTTONS ───────────────────────────────────────────────── */
.btn-sep { display: inline; }
.btn-break { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 2px;
  transition: all 0.25s var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn--dark {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.btn--dark:hover {
  background: #2a2a2a;
  border-color: #2a2a2a;
}

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
}

.btn--outline-white:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

/* ─── NAVIGATION ────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--gray-200);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 48px;
}

.nav__logo {
  height: 88px;
  width: auto;
  object-fit: contain;
  transition: opacity 0.35s var(--ease);
}

/* logo blanco: visible por defecto, se oculta al hacer scroll */
.nav__logo--white {
  display: block;
  opacity: 1;
  position: relative;
}

/* logo de color: oculto por defecto, se muestra al hacer scroll */
.nav__logo--color {
  display: none;
  opacity: 0;
}

.nav.is-scrolled .nav__logo--white {
  display: none;
}

.nav.is-scrolled .nav__logo--color {
  display: block;
  opacity: 1;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav__link {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.25s;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav__link:hover::after { transform: scaleX(1); }

.nav.is-scrolled .nav__link {
  color: var(--black);
}

.nav__cta {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 24px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--white);
  border-radius: 2px;
  transition: all 0.25s var(--ease);
}

.nav__cta:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.nav.is-scrolled .nav__cta {
  border-color: var(--black);
  color: var(--black);
  background: transparent;
}

.nav.is-scrolled .nav__cta:hover {
  background: var(--black);
  color: var(--white);
}

.nav__ig {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.25s, opacity 0.25s;
  flex-shrink: 0;
}

.nav__ig:hover {
  color: var(--white);
  opacity: 0.75;
}

.nav.is-scrolled .nav__ig {
  color: var(--black);
}

.nav.is-scrolled .nav__ig:hover {
  opacity: 0.6;
}

.nav__lang {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.nav__lang-btn {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.25s;
}

.nav__lang-btn:hover,
.nav__lang-btn.is-active {
  color: var(--white);
}

.nav__lang-sep {
  color: rgba(255, 255, 255, 0.4);
}

.nav.is-scrolled .nav__lang-btn {
  color: rgba(0, 0, 0, 0.5);
}

.nav.is-scrolled .nav__lang-btn:hover,
.nav.is-scrolled .nav__lang-btn.is-active {
  color: var(--black);
}

.nav.is-scrolled .nav__lang-sep {
  color: rgba(0, 0, 0, 0.3);
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 32px;
  height: 32px;
}

.nav__hamburger span {
  display: block;
  height: 1.5px;
  background: var(--white);
  transition: background 0.3s, transform 0.3s;
}

.nav.is-scrolled .nav__hamburger span {
  background: var(--black);
}

@media (max-width: 768px) {
  .nav__inner { padding: 0 24px; }
  .nav__menu { display: none; }
  .nav__hamburger { display: flex; }
}

/* ─── HERO ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.04);
  animation: heroZoom 12s ease-out forwards;
}

@keyframes heroZoom {
  to { transform: scale(1); }
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.72) 0%,
    rgba(0,0,0,0.45) 40%,
    rgba(0,0,0,0.18) 70%,
    rgba(0,0,0,0.08) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 48px 96px;
  max-width: 700px;
  animation: heroFadeUp 1.2s 0.3s var(--ease) both;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__eyebrow {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 20px;
}

.hero__heading {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 24px;
}

.hero__heading em {
  font-style: italic;
  font-weight: 300;
}

.hero__sub {
  font-size: 16px;
  font-weight: 300;
  color: rgba(255,255,255,0.75);
  margin-bottom: 36px;
  max-width: 420px;
  line-height: 1.6;
}

.hero__scroll {
  position: absolute;
  right: 48px;
  bottom: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
  animation: heroFadeUp 1.4s 0.8s var(--ease) both;
}

.hero__scroll-line {
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
  animation: scrollPulse 2.4s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(0.8); }
  50% { opacity: 1; transform: scaleY(1); }
}

@media (max-width: 768px) {
  .hero__content { padding: 0 24px 72px; max-width: 100%; }
  .hero__scroll { right: 24px; bottom: 24px; }
  .hero__heading { font-size: clamp(2.2rem, 8vw, 3.2rem); }
  .hero__sub { font-size: 14px; max-width: 100%; word-break: break-word; overflow-wrap: break-word; }
  .btn--outline-white { white-space: normal; text-align: center; line-height: 1.4; }
  .btn-sep { display: none; }
  .btn-break { display: inline; }
}

@media (max-width: 480px) {
  .hero__heading { font-size: clamp(1.9rem, 7.5vw, 2.6rem); }
  .hero__eyebrow { font-size: 10px; }
  .btn { padding: 12px 22px; font-size: 12px; }
  .hero__sub { font-size: 13px; }
}

/* ─── MANIFESTO ─────────────────────────────────────────────── */
.manifesto {
  padding: var(--section-gap) 0;
  background: var(--white);
}

.manifesto__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.manifesto__heading {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

.manifesto__text {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--gray-600);
  max-width: 480px;
}

.manifesto__kpis {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--gray-200);
}

.kpi {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 28px 0;
  border-bottom: 1px solid var(--gray-200);
  gap: 24px;
}

.kpi__num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.kpi__num sup {
  font-size: 0.55em;
  vertical-align: super;
}

.kpi__label {
  font-size: 13px;
  font-weight: 300;
  color: var(--gray-600);
  text-align: right;
  max-width: 180px;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .manifesto__grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .manifesto__text { max-width: 100%; }
}

/* ─── ROOMS ─────────────────────────────────────────────────── */
.rooms {
  padding: var(--section-gap) 0;
  background: var(--gray-50);
}

.section-header {
  margin-bottom: 64px;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-top: 4px;
}

.rooms__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.room {
  background: var(--white);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.3s var(--ease);
}

.room:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  z-index: 1;
  position: relative;
}

.room__img-wrap {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.room__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.room:hover .room__img-wrap img {
  transform: scale(1.04);
}

.room__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background 0.4s;
}

.room:hover .room__overlay {
  background: rgba(0,0,0,0.04);
}

.room__info {
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.room__num {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--gray-400);
}

.room__name {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.room__desc {
  font-size: 14px;
  font-weight: 300;
  color: var(--gray-600);
  line-height: 1.6;
  flex: 1;
}

.room__cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--black);
  margin-top: 8px;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--black);
  width: fit-content;
  transition: gap 0.25s var(--ease), opacity 0.25s;
}

.room__cta:hover {
  gap: 10px;
  opacity: 0.6;
}

@media (max-width: 1024px) {
  .rooms__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .rooms__grid { grid-template-columns: 1fr; gap: 1px; }
  .room__info { padding: 20px 20px 24px; }
}

/* ─── AMENITIES ─────────────────────────────────────────────── */
.amenities {
  padding: var(--section-gap) 0;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.amenities__inner {
  max-width: 900px;
}

.amenities__inner .label {
  margin-bottom: 48px;
}

.amenities__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 32px;
}

.amenity {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.amenity__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.amenity__icon svg {
  width: 24px;
  height: 24px;
  color: var(--black);
}

.amenity span {
  font-size: 14px;
  font-weight: 300;
  color: var(--gray-600);
  line-height: 1.4;
}

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

@media (max-width: 480px) {
  .amenities__grid { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
}

/* ─── LOCATION ──────────────────────────────────────────────── */
.location {
  padding: var(--section-gap) 0;
  background: var(--white);
}

.location__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.location__heading {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.location__text {
  font-size: 16px;
  font-weight: 300;
  color: var(--gray-600);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 440px;
}

.location__map {
  position: relative;
  height: 420px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  filter: grayscale(1) contrast(1.05);
  transition: filter 0.4s var(--ease);
}

.location__map:hover {
  filter: grayscale(0) contrast(1);
}

.location__map iframe {
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 900px) {
  .location__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .location__text { max-width: 100%; }
}

/* ─── FOOTER ────────────────────────────────────────────────── */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 64px 0 40px;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}

.footer__logo {
  height: 52px;
  width: auto;
  object-fit: contain;
  opacity: 0.9;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 32px;
}

.footer__nav a {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.06em;
  transition: color 0.2s;
}

.footer__nav a:hover { color: var(--white); }

.footer__copy {
  font-size: 12px;
  font-weight: 300;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.05em;
}

/* ─── WHATSAPP FAB ──────────────────────────────────────────── */
.fab-whatsapp {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 50;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  overflow: visible;
}

.fab-whatsapp:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.55);
}

@media (max-width: 768px) {
  .fab-whatsapp {
    bottom: 20px;
    right: 16px;
    width: 50px;
    height: 50px;
  }
}

/* ─── SCROLL REVEAL ─────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

.reveal--delay {
  transition-delay: 0.15s;
}

/* ─── MOBILE NAV OPEN STATE ─────────────────────────────────── */
@media (max-width: 768px) {
  .nav__menu.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: var(--nav-h) 0 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 40px 24px;
    gap: 0;
    z-index: 99;
  }

  .nav__menu.is-open .nav__link {
    color: var(--black);
    font-size: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--gray-200);
  }
}

/* ─── SCROLLBAR ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--white); }
::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* ─── SELECTION ─────────────────────────────────────────────── */
::selection {
  background: var(--black);
  color: var(--white);
}
