/* =============================================================
   MONARCA VILLAGE — styles.css
   Estética Apple · negro / blanco / grises
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  /* Grises Apple */
  --white:      #ffffff;
  --bg:         #ffffff;
  --bg-soft:    #f5f5f7;   /* gris claro firma Apple */
  --bg-mid:     #e8e8ed;
  --black:      #000000;
  --ink:        #1d1d1f;   /* casi negro Apple */
  --ink-soft:   #424245;
  --mute:       #6e6e73;   /* gris texto secundario */
  --mute-2:     #86868b;
  --line:       rgba(29, 29, 31, 0.1);
  --line-dark:  rgba(255, 255, 255, 0.16);

  /* Tipografía — Inter para cuerpo, Playfair Display (elegante) para títulos y marca */
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --display: "Playfair Display", "Inter Tight", Georgia, serif;

  /* Easings */
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Layout */
  --nav-h: 64px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 24px;
  --radius-sm: 14px;
  --maxw: 1200px;
  --maxw-text: 720px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.12; letter-spacing: -0.01em; font-family: var(--display); font-weight: 600; }
::selection { background: var(--ink); color: var(--white); }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--ink); color: var(--white);
  z-index: 9999; border-radius: 8px; font-weight: 500;
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Utilidades
   ============================================================= */
.container {
  width: min(100% - 2 * var(--gutter), var(--maxw));
  margin-inline: auto;
}
.container-text {
  width: min(100% - 2 * var(--gutter), var(--maxw-text));
  margin-inline: auto;
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Secciones */
.section { padding-block: clamp(4.5rem, 10vw, 8.5rem); }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--black); color: var(--white); }
.section-dark ::selection { background: var(--white); color: var(--black); }

/* Kicker + títulos */
.kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute-2);
  margin-bottom: 1.1rem;
}
.section-dark .kicker { color: var(--line-dark); color: rgba(255,255,255,0.55); }
.title-xl {
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  font-weight: 600;
  max-width: 16ch;
}
.title-lg {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 600;
  max-width: 20ch;
}
.title-md {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 600;
}
.centered { text-align: center; }
.centered .title-xl, .centered .title-lg { margin-inline: auto; }
.lead {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.55;
  color: var(--mute);
  max-width: 58ch;
}
.centered .lead { margin-inline: auto; }
.section-dark .lead { color: rgba(255,255,255,0.65); }

/* Botones — pastilla Apple */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.7rem;
  border-radius: 980px;
  font-size: 1rem;
  font-weight: 500;
  transition: transform .35s var(--ease-out), background .3s var(--ease-out),
              color .3s var(--ease-out), box-shadow .35s var(--ease-out);
  will-change: transform;
}
.btn:hover { transform: scale(1.035); }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--black); box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.btn-ghost {
  background: transparent;
  color: inherit;
  box-shadow: inset 0 0 0 1.5px currentColor;
}
.btn strong { font-weight: 500; }
.btn svg { width: 1.15em; height: 1.15em; flex: 0 0 auto; }

/* Grupo de canales de reserva (WhatsApp + OTAs) */
.booking-actions {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  align-items: flex-start;
  margin-top: 2rem;
}
.ota-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .6rem .7rem;
}
.ota-label {
  font-size: .82rem;
  color: var(--mute);
  margin: 0;
  width: 100%;
}
.section-dark .ota-label { color: rgba(255,255,255,.6); }
.ota-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1rem;
  border-radius: 12px;
  font-size: .92rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--white);
  box-shadow: inset 0 0 0 1.5px var(--line);
  transition: box-shadow .3s var(--ease-out), transform .3s var(--ease-out);
}
.ota-btn:hover {
  box-shadow: inset 0 0 0 1.5px var(--ink);
  transform: translateY(-1px);
}
.ota-btn svg { height: 20px; width: 20px; flex: 0 0 auto; }
.ota-btn .ota-logo { height: 20px; width: auto; flex: 0 0 auto; }
.ota-badge {
  display: inline-grid;
  place-items: center;
  width: 21px; height: 21px;
  border-radius: 5px;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  font-size: .68rem;
  letter-spacing: -.02em;
  flex: 0 0 auto;
}

/* Enlace flecha */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 500;
  transition: gap .3s var(--ease-out), opacity .3s;
}
.link-arrow::after { content: "→"; transition: transform .3s var(--ease-out); }
.link-arrow:hover { gap: .65rem; }
.link-arrow:hover::after { transform: translateX(2px); }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
html.no-js .reveal { opacity: 1; transform: none; }

/* =============================================================
   4. Navegación — barra glass estilo Apple
   ============================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background .4s var(--ease-out);
  color: var(--white);
  /* fallback sólido */
  background: rgba(0, 0, 0, 0.94);
  border-bottom: 1px solid var(--line-dark);
}
@supports (backdrop-filter: blur(20px)) {
  .nav {
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
  }
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-brand { color: var(--white); }

/* Logo — símbolo de palmera (imagen blanca sobre header oscuro) */
.logo {
  display: inline-flex;
  align-items: center;
}
.logo-img {
  height: 42px;
  width: auto;
  display: block;
}
.footer .logo-img { height: 68px; }
.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
  list-style: none;
  padding: 0;
}
.nav-links a {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.72);
  transition: color .25s;
  position: relative;
}
.nav-links a:hover { color: var(--white); }
.nav-links a[aria-current="page"] { color: var(--white); font-weight: 600; }
.nav-cta {
  display: none;
  padding: .42rem 1.05rem;
  border-radius: 980px;
  background: var(--white);
  color: var(--black);
  font-size: 0.84rem;
  font-weight: 500;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.nav-cta:hover { transform: scale(1.05); box-shadow: 0 6px 18px rgba(255,255,255,.25); }

/* Selector de idioma ES/EN */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .78rem;
  color: rgba(255,255,255,0.45);
}
.lang-switch button {
  padding: .3rem .45rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: rgba(255,255,255,0.55);
  border-radius: 6px;
  transition: color .25s, background .25s;
}
.lang-switch button:hover { color: var(--white); }
.lang-switch button.is-active {
  color: var(--white);
  background: rgba(255,255,255,0.14);
}

/* Hamburguesa móvil */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  align-items: center;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--white);
  transition: transform .35s var(--ease-out), opacity .25s;
}
.nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
  position: fixed;
  inset: var(--nav-h) 0 auto 0;
  z-index: 999;
  background: rgba(0,0,0,0.97);
  color: var(--white);
  border-bottom: 1px solid var(--line-dark);
  padding: 1.2rem var(--gutter) 1.8rem;
  display: grid;
  gap: .3rem;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: transform .4s var(--ease-out), opacity .35s, visibility 0s .4s;
}
@supports (backdrop-filter: blur(20px)) {
  .nav-mobile {
    background: rgba(0,0,0,0.88);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
  }
}
.nav.is-open + .nav-mobile,
.nav-mobile.is-open {
  transform: none;
  opacity: 1;
  visibility: visible;
  transition: transform .4s var(--ease-out), opacity .35s, visibility 0s;
}
.nav-mobile a {
  padding: .75rem .25rem;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--line-dark);
}
.nav-mobile a:last-child { border-bottom: 0; }
.nav-mobile a[aria-current="page"] { color: rgba(255,255,255,0.55); }

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle, .nav-mobile { display: none; }
}

/* =============================================================
   5. Hero
   ============================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: clip;
  background: var(--black);
  color: var(--white);
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  will-change: transform;
}
.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,.18) 40%, rgba(0,0,0,.55) 100%);
}

/* Hero de inicio: fachada brillante → capa negra + halo concentrado
   detrás del texto, de modo que la arquitectura luzca en los bordes
   y el texto blanco resalte con contraste cómodo y elegante */
.hero-home .hero-media img { transform: scale(1.06); }
.hero-home .hero-scrim {
  background:
    radial-gradient(75% 60% at 50% 46%, rgba(0,0,0,.62) 0%, rgba(0,0,0,.34) 55%, rgba(0,0,0,.18) 100%),
    linear-gradient(180deg, rgba(0,0,0,.50) 0%, rgba(0,0,0,.30) 40%, rgba(0,0,0,.58) 100%);
}
.hero-home .hero-title,
.hero-home .hero-sub,
.hero-home .hero-kicker {
  text-shadow: 0 2px 24px rgba(0,0,0,.55), 0 1px 6px rgba(0,0,0,.5);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: calc(var(--nav-h) + 3rem) var(--gutter) 5rem;
  max-width: 900px;
}
.hero-kicker {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 1.4rem;
}
.hero-title {
  font-size: clamp(3rem, 9vw, 6.8rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.015em;
  max-width: 14ch;
  margin-inline: auto;
}
.hero-sub {
  margin-top: 1.6rem;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: rgba(255,255,255,0.8);
  font-weight: 400;
  max-width: 44ch;
  margin-inline: auto;
}
.hero-actions {
  margin-top: 2.4rem;
  display: flex;
  gap: .9rem;
  justify-content: center;
  flex-wrap: wrap;
}
@media (max-width: 539px) {
  .hero-actions { flex-direction: column; align-items: stretch; width: min(100%, 320px); margin-inline: auto; }
  .hero-actions .btn { justify-content: center; }
}
.hero-scroll {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
}
.hero-scroll::after {
  content: "";
  width: 1px; height: 34px;
  background: linear-gradient(180deg, rgba(255,255,255,.7), transparent);
  animation: scrollHint 2.2s var(--ease-soft) infinite;
}
@keyframes scrollHint {
  0%   { transform: scaleY(0); transform-origin: top; }
  45%  { transform: scaleY(1); transform-origin: top; }
  55%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Hero interior (páginas secundarias) */
.hero-page {
  min-height: 72vh;
  min-height: 72svh;
}
.hero-page .hero-title { font-size: clamp(2.6rem, 7vw, 5.2rem); }
/* Refuerzo de contraste para fotos reales con cielo claro */
.hero-page .hero-scrim {
  background:
    radial-gradient(80% 65% at 50% 48%, rgba(0,0,0,.52) 0%, rgba(0,0,0,.30) 60%, rgba(0,0,0,.20) 100%),
    linear-gradient(180deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,.22) 42%, rgba(0,0,0,.52) 100%);
}
.hero-page .hero-title,
.hero-page .hero-sub,
.hero-page .hero-kicker {
  text-shadow: 0 2px 22px rgba(0,0,0,.5), 0 1px 5px rgba(0,0,0,.45);
}

/* =============================================================
   6. Secciones de contenido
   ============================================================= */

/* Manifiesto */
.manifesto {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3.4vw, 2.5rem);
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: -0.01em;
  max-width: 30ch;
  margin-inline: auto;
  text-align: center;
}
.manifesto em {
  font-style: italic;
  color: var(--mute-2);
}
.section-dark .manifesto em { color: rgba(255, 255, 255, 0.55); }

/* Grid de tarjetas de apartamentos */
.apt-grid {
  display: grid;
  gap: 1.4rem;
  margin-top: 3rem;
}
@media (min-width: 720px) {
  .apt-grid { grid-template-columns: repeat(3, 1fr); }
}
.apt-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
@media (min-width: 720px) {
  .apt-card { aspect-ratio: 3.4 / 4; }
}
.apt-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 1.1s var(--ease-out);
}
.apt-card::after {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.62) 100%);
}
.apt-card:hover img { transform: scale(1.05); }
.apt-card-body {
  padding: 1.8rem;
  color: var(--white);
}
.apt-card-body .eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: .5rem;
}
.apt-card-body h3 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 600;
}
.apt-card-body p {
  margin-top: .5rem;
  font-size: .95rem;
  color: rgba(255,255,255,0.78);
  max-width: 40ch;
}
.apt-card-body .link-arrow { margin-top: 1rem; color: var(--white); font-size: .95rem; }

/* Franja imagen full-bleed con texto */
.band {
  position: relative;
  min-height: 62vh;
  display: grid;
  place-items: center;
  overflow: clip;
  color: var(--white);
  text-align: center;
}
@media (min-width: 960px) {
  .band { min-height: 80vh; }
}
.band img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  transform: scale(1.06);
  will-change: transform;
}
.band::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  background: rgba(0,0,0,.42);
}
.band-content { position: relative; z-index: 2; padding: 5rem var(--gutter); }
.band-content .title-lg { margin-inline: auto; }
.band-content .title-lg,
.band-content .kicker { text-shadow: 0 2px 20px rgba(0,0,0,.45), 0 1px 4px rgba(0,0,0,.4); }

/* Features 3-up */
.features {
  display: grid;
  gap: 2.5rem;
  margin-top: 3.5rem;
}
@media (min-width: 720px) {
  .features { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}
.feature { text-align: center; }
.feature-icon {
  width: 52px; height: 52px;
  margin: 0 auto 1.2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg-soft);
  font-size: 1.4rem;
}
.section-dark .feature-icon { background: rgba(255,255,255,0.09); }
.feature h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: .5rem; }
.feature p { font-size: .95rem; color: var(--mute); max-width: 30ch; margin-inline: auto; }
.section-dark .feature p { color: rgba(255,255,255,0.6); }

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 1.5rem;
  text-align: center;
}
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat-num {
  font-family: var(--display);
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
}
.stat-label {
  margin-top: .5rem;
  font-size: .85rem;
  color: var(--mute-2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Mosaico galería — contiguo, sin espacios, moderno */
.mosaic {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-flow: dense;
  margin-top: 3rem;
  border-radius: var(--radius);
  overflow: hidden;
}
@media (min-width: 720px) { .mosaic { grid-template-columns: repeat(4, 1fr); } }
.mosaic figure {
  overflow: hidden;
  aspect-ratio: 1;
  cursor: zoom-in;
  position: relative;
  margin: 0;
}
.mosaic figure.wide { grid-column: span 2; aspect-ratio: 2 / 1; }
.mosaic img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out), filter .6s;
}
.mosaic figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background .4s var(--ease-out);
  pointer-events: none;
}
.mosaic figure:hover img { transform: scale(1.07); }
.mosaic figure:hover::after { background: rgba(0, 0, 0, 0.12); }

/* Lightbox */
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(94vw, 1100px);
  max-height: 90vh;
}
.lightbox::backdrop {
  background: rgba(0,0,0,.88);
  backdrop-filter: blur(8px);
}
.lightbox img {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}
.lightbox-close {
  position: absolute;
  top: -2.6rem; right: 0;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  padding: .4rem;
}

/* =============================================================
   7. Página apartamentos
   ============================================================= */
.apt-block {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 960px) {
  .apt-block { grid-template-columns: 1.15fr 1fr; gap: 4rem; }
  .apt-block.is-reversed .apt-carousel { order: 2; }
}

/* Carrusel de fotos por apartamento — estilo Apple */
.apt-carousel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-mid);
  box-shadow: 0 18px 50px -18px rgba(0,0,0,.35), 0 2px 8px rgba(0,0,0,.06);
  isolation: isolate;
}
.carousel-viewport {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: inherit;
}
.carousel-track {
  display: flex;
  height: 100%;
  transition: transform .7s cubic-bezier(0.22, 1, 0.36, 1);
  touch-action: pan-y;
}
.carousel-track img {
  flex: 0 0 100%;
  width: 100%; height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 7s ease-out;
}
.apt-carousel:hover .carousel-track img { transform: scale(1.05); }

/* Gradiente inferior sutil para legibilidad de controles */
.apt-carousel::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 42%;
  background: linear-gradient(to top, rgba(0,0,0,.34), rgba(0,0,0,.08) 55%, transparent);
  pointer-events: none;
  z-index: 1;
}

/* Flechas — glass refinado, aparecen al interactuar */
.carousel-arrow {
  position: absolute;
  top: 50%;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
  opacity: 0;
  transform: translateY(-50%) scale(0.9);
  transition: opacity .3s var(--ease-out), transform .35s var(--ease-out), background .25s;
  z-index: 3;
}
@supports (backdrop-filter: blur(6px)) {
  .carousel-arrow { background: rgba(255,255,255,0.5); backdrop-filter: blur(14px) saturate(160%); }
}
.apt-carousel:hover .carousel-arrow,
.apt-carousel:focus-within .carousel-arrow {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}
.carousel-arrow:hover { background: var(--white); }
.apt-carousel:hover .carousel-arrow:hover { transform: translateY(-50%) scale(1.09); }
.carousel-arrow:active { transform: translateY(-50%) scale(0.94) !important; }
.carousel-arrow svg { width: 21px; height: 21px; }
.carousel-prev { left: 1rem; }
.carousel-next { right: 1rem; }

/* Contador de fotos — pastilla glass */
.carousel-counter {
  position: absolute;
  top: 1rem; right: 1rem;
  z-index: 2;
  display: inline-flex;
  align-items: baseline;
  gap: .12em;
  padding: .34rem .7rem;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
  color: var(--white);
  background: rgba(0, 0, 0, 0.34);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out);
}
@supports (backdrop-filter: blur(6px)) {
  .carousel-counter { background: rgba(0,0,0,0.24); backdrop-filter: blur(12px); }
}
.apt-carousel:hover .carousel-counter,
.apt-carousel:focus-within .carousel-counter { opacity: 1; transform: none; }
.carousel-counter .cc-cur { font-weight: 600; }
.carousel-counter .cc-sep { opacity: .5; margin: 0 .15em; }

/* Indicadores tipo pill (estilo iOS) */
.carousel-dots {
  position: absolute;
  left: 0; right: 0; bottom: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .4rem;
  z-index: 2;
}
.carousel-dot {
  width: 7px; height: 7px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 1px 3px rgba(0,0,0,.3);
  transition: width .4s cubic-bezier(0.22, 1, 0.36, 1), background .3s var(--ease-out);
}
.carousel-dot:hover { background: rgba(255,255,255,0.8); }
.carousel-dot.is-active {
  width: 24px;
  background: var(--white);
}

/* En táctil o pantallas pequeñas: controles siempre visibles (no hay hover) */
@media (hover: none), (max-width: 640px) {
  .carousel-arrow { opacity: 1; transform: translateY(-50%) scale(1); width: 40px; height: 40px; }
  .carousel-counter { opacity: 1; transform: none; }
  .apt-carousel:hover .carousel-track img { transform: none; }
}
.apt-block-body .kicker { margin-bottom: .8rem; }
.apt-block-body h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 600; }
.apt-block-body > p { margin-top: 1.1rem; color: var(--mute); max-width: 52ch; }
.apt-units {
  margin-top: .9rem;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute-2);
}
.amenities {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: .65rem 1.2rem;
  list-style: none;
  padding: 0;
}
@media (min-width: 540px) {
  .amenities { grid-template-columns: repeat(2, 1fr); }
}
.amenities li {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .95rem;
  color: var(--ink-soft);
}
.amenities li::before {
  content: "✓";
  font-size: .8rem;
  font-weight: 600;
  flex: 0 0 auto;
  width: 20px; height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg-soft);
}
.apt-block-body .btn { margin-top: 2rem; }

/* Subtítulo editorial de cada apartamento */
.apt-subtitle {
  font-family: var(--display);
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-weight: 500;
  color: var(--mute);
  margin-top: .6rem;
}

/* Sprite de iconos (oculto, solo define símbolos) */
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Lista de comodidades con iconos */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.7rem 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: .85rem 1.5rem;
}
@media (min-width: 480px) {
  .feature-list { grid-template-columns: 1fr 1fr; }
}
.feature-list li {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: .95rem;
  color: var(--ink-soft);
}
.feature-list svg {
  width: 21px; height: 21px;
  flex: 0 0 auto;
  color: var(--mute);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.apt-divider {
  height: 1px;
  background: var(--line);
  margin-block: clamp(4rem, 8vw, 7rem);
}

/* =============================================================
   8. Página experiencias
   ============================================================= */
.exp-list { display: grid; gap: 1.4rem; margin-top: 3rem; }
.exp-row {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  isolation: isolate;
}
@media (min-width: 720px) { .exp-row { min-height: 440px; } }
.exp-row img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 1.2s var(--ease-out);
}
.exp-row::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.65) 100%);
}
.exp-row:hover img { transform: scale(1.045); }
.exp-row-body { padding: clamp(1.5rem, 4vw, 2.6rem); max-width: 60ch; }
.exp-row-body .eyebrow {
  font-size: .75rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin-bottom: .5rem;
}
.exp-row-body h3 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 600; }
.exp-row-body p { margin-top: .6rem; color: rgba(255,255,255,.82); font-size: .98rem; }

/* =============================================================
   9. Página contacto
   ============================================================= */
/* Panel de reserva */
.booking-panel {
  margin-top: 3rem;
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter);
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius);
  text-align: center;
}
.booking-panel .title-lg { margin-inline: auto; }
.booking-panel .lead { color: rgba(255,255,255,0.65); margin-inline: auto; margin-top: 1rem; }
.booking-panel .btn { margin-top: 2rem; font-size: 1.05rem; padding: .95rem 2.2rem; }
.booking-note {
  margin-top: 1.2rem;
  font-size: .85rem;
  color: rgba(255,255,255,0.45);
}

/* Tarjetas de contacto */
.contact-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  margin-top: clamp(3rem, 7vw, 5rem);
  text-align: center;
}
@media (min-width: 540px) { .contact-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .contact-cards { grid-template-columns: repeat(4, 1fr); } }
.contact-card {
  padding: 2rem 1.4rem;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
}
.contact-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: .5rem;
}
.contact-card p { color: var(--mute); font-size: .93rem; }
.contact-card a {
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: border-color .3s;
}
.contact-card a:hover { border-color: var(--ink); }
.map-wrap {
  margin-top: clamp(3rem, 7vw, 5rem);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 7;
  background: var(--bg-soft);
}
.map-wrap iframe {
  width: 100%; height: 100%;
  border: 0;
  display: block;
  filter: grayscale(1) contrast(1.04);
}

/* =============================================================
   10. CTA final + footer
   ============================================================= */
.cta-final { text-align: center; }
.cta-final .title-lg { margin-inline: auto; }
.cta-final .lead { margin-inline: auto; }
.cta-final .btn { margin-top: 2.2rem; }

.footer {
  background: var(--black);
  color: rgba(255,255,255,0.65);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 2.5rem;
  font-size: .9rem;
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line-dark);
  text-align: center;
}
.footer-grid .logo { margin-inline: auto; }
.footer-brand + p { margin-inline: auto; }
@media (min-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 2rem;
    text-align: left;
  }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-grid .logo { margin-inline: 0; }
  .footer-brand + p { margin-inline: 0; }
}
@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    align-items: start;
  }
  .footer-grid > div:first-child { grid-column: auto; }
}
.footer-brand {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.01em;
}
.footer-brand + p { margin-top: .8rem; max-width: 34ch; }

/* Iconos de redes sociales */
.social-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: .7rem;
  justify-content: center;
}
@media (min-width: 560px) {
  .social-links { justify-content: flex-start; }
}
.social-link {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.22);
  transition: background .3s var(--ease-out), transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.social-link svg { width: 18px; height: 18px; fill: currentColor; }
.social-link:hover {
  background: var(--white);
  color: var(--black);
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px var(--white);
}
.footer h4 {
  color: var(--white);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer ul { list-style: none; padding: 0; display: grid; gap: .55rem; }
.footer a { transition: color .25s; }
.footer a:hover { color: var(--white); }
.footer-bottom {
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: .8rem;
  color: rgba(255,255,255,0.4);
}
@media (min-width: 720px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}
.footer-credits a { text-decoration: underline; text-underline-offset: 3px; }

/* =============================================================
   11. Página créditos
   ============================================================= */
.credits-list {
  list-style: none;
  padding: 0;
  margin-top: 2.5rem;
  display: grid;
  gap: 1rem;
}
.credits-list li {
  padding: 1.1rem 1.3rem;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  font-size: .92rem;
  color: var(--mute);
}
.credits-list a {
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.credits-list a:hover { border-color: var(--ink); }

/* =============================================================
   11b. Chat flotante — Asistente Monarca
   ============================================================= */
.chat-root {
  position: fixed;
  right: clamp(1rem, 3vw, 1.6rem);
  bottom: clamp(1rem, 3vw, 1.6rem);
  z-index: 1300;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .9rem;
  font-family: var(--sans);
  /* El contenedor deja pasar los toques; solo el botón y el panel
     (cuando está abierto) los reciben. Evita que el panel oculto
     bloquee los botones del sitio en móvil/tablet. */
  pointer-events: none;
}
.chat-fab { pointer-events: auto; }
.chat-root.is-open .chat-panel { pointer-events: auto; }
.chat-fab {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
  transition: transform .35s var(--ease-out), box-shadow .35s;
}
.chat-fab:hover { transform: scale(1.08); box-shadow: 0 14px 36px rgba(0,0,0,.38); }
.chat-fab:active { transform: scale(0.95); }

.chat-panel {
  width: min(370px, calc(100vw - 2rem));
  height: min(520px, calc(100vh - 120px));
  height: min(520px, calc(100dvh - 120px));
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(0,0,0,.32);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(0.97);
  transform-origin: bottom right;
  visibility: hidden;
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out), visibility 0s .35s;
}
.chat-root.is-open .chat-panel {
  opacity: 1;
  transform: none;
  visibility: visible;
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out), visibility 0s;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .95rem 1.1rem;
  background: var(--black);
  color: var(--white);
}
.chat-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
}
.chat-header-info { flex: 1; min-width: 0; }
.chat-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: .98rem;
  line-height: 1.2;
}
.chat-status {
  font-size: .72rem;
  color: rgba(255,255,255,0.55);
  margin-top: .1rem;
}
.chat-status::before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #34c759;
  margin-right: .35rem;
}
.chat-close {
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  padding: .4rem;
  transition: color .25s;
}
.chat-close:hover { color: var(--white); }

.chat-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  background: var(--bg-soft);
}
.chat-msg {
  max-width: 85%;
  padding: .7rem .95rem;
  border-radius: 16px;
  font-size: .89rem;
  line-height: 1.5;
  overflow-wrap: break-word;
}
.chat-msg.is-bot {
  align-self: flex-start;
  background: var(--white);
  color: var(--ink);
  border-bottom-left-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.chat-msg.is-user {
  align-self: flex-end;
  background: var(--black);
  color: var(--white);
  border-bottom-right-radius: 6px;
}
.chat-msg a {
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
}

.chat-typing { display: inline-flex; gap: 4px; padding: .2rem 0; }
.chat-typing i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--mute-2);
  animation: chatTyping 1.1s ease-in-out infinite;
}
.chat-typing i:nth-child(2) { animation-delay: .15s; }
.chat-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes chatTyping {
  0%, 60%, 100% { transform: translateY(0); opacity: .45; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  padding: .7rem 1.1rem;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}
.chat-chip {
  padding: .38rem .85rem;
  border-radius: 980px;
  background: var(--white);
  color: var(--ink);
  font-size: .78rem;
  font-weight: 500;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background .25s, color .25s, transform .25s var(--ease-out);
}
.chat-chip:hover { background: var(--black); color: var(--white); transform: scale(1.04); }

.chat-input-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem .9rem;
  background: var(--white);
  border-top: 1px solid var(--line);
}
.chat-input {
  flex: 1;
  font: inherit;
  font-size: .9rem;
  color: var(--ink);
  border: 0;
  outline: none;
  padding: .5rem .3rem;
  background: transparent;
}
.chat-send {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  transition: transform .3s var(--ease-out);
}
.chat-send:hover { transform: scale(1.1); }

@media (max-width: 539px) {
  .chat-panel { width: calc(100vw - 2rem); }
  .chat-fab { width: 54px; height: 54px; }
}

/* =============================================================
   12. Transiciones de página
   ============================================================= */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.5s;
  animation-timing-function: var(--ease-out);
}
::view-transition-old(root) { animation-name: vtFadeOut; }
::view-transition-new(root) { animation-name: vtFadeIn; }
@keyframes vtFadeOut { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vtFadeIn { from { opacity: 0; transform: translateY(10px); } }

/* =============================================================
   13. Reduced motion — solo efectos intrusivos
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-scroll::after { animation: none; }
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none; }
}
