/* =============================================================
   Casa Mariana · Apartamento vacacional en Calabardina
   Archetype: Editorial Light Cream (mediterráneo · arena + azul mar)
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  /* Palette — sand / off-white + Mediterranean sea blue */
  --bg:        #f6f1e7;   /* warm cream / arena clara */
  --bg-2:      #ece2d0;   /* sand */
  --paper:     #fffdf8;   /* off-white */
  --ink:       #1e2a2f;   /* deep sea ink */
  --ink-soft:  #3a4a50;
  --ink-mute:  #7f8b8d;
  --accent:    #2f6f86;   /* azul mar mediterráneo */
  --accent-d:  #235468;   /* deep sea */
  --accent-2:  #c2895d;   /* warm sand secondary */
  --line:      rgba(30, 42, 47, 0.12);
  --line-soft: rgba(30, 42, 47, 0.07);
  --shadow:    0 24px 60px -28px rgba(30, 42, 47, 0.4);
  --shadow-sm: 0 10px 30px -18px rgba(30, 42, 47, 0.45);

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --serif: "Fraunces", "Playfair Display", Georgia, "Times New Roman", serif;

  --gutter: clamp(1.2rem, 5vw, 5rem);
  --maxw: 1240px;

  --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);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  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; }
ul { list-style: none; padding: 0; }
p { text-wrap: pretty; }
h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  text-wrap: balance;
  line-height: 1.04;
  letter-spacing: -0.015em;
  font-weight: 400;
}
::selection { background: var(--accent); color: var(--paper); }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* =============================================================
   3. Utilities
   ============================================================= */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.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;
}
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--ink); color: var(--paper);
  z-index: 9999; border-radius: 8px; font-weight: 500;
  transition: top .25s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.kicker {
  font-family: var(--sans);
  font-size: .76rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
}

.section {
  padding-block: clamp(3.5rem, 9vw, 7.5rem);
  position: relative;
}
.section-head { max-width: 56ch; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin-top: .8rem;
}
.section-head h2 em { font-style: italic; color: var(--accent); }
.section-head p { margin-top: 1.1rem; font-size: 1.06rem; max-width: 52ch; }

/* =============================================================
   4. Buttons
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .95rem 1.7rem;
  border-radius: 100px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: .98rem;
  letter-spacing: .01em;
  transition: transform .4s var(--ease-out), background .35s var(--ease-out), color .35s var(--ease-out), box-shadow .4s var(--ease-out);
  will-change: transform;
}
.btn svg { width: 1.05em; height: 1.05em; }
.btn-primary {
  background: var(--accent);
  color: var(--paper);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--accent-d); transform: translateY(-3px); box-shadow: var(--shadow); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); }
.btn-light {
  background: rgba(255,253,248,0.92);
  color: var(--ink);
  backdrop-filter: blur(6px);
}
.btn-light:hover { background: var(--paper); transform: translateY(-3px); box-shadow: var(--shadow); }

/* =============================================================
   5. Splash
   ============================================================= */
.splash {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  background: var(--bg);
  animation: splashSafety .01s 4.5s forwards;
}
.splash.is-out {
  opacity: 0; pointer-events: none;
  transform: scale(1.02);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.splash-inner { text-align: center; }
.splash-mark {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(2rem, 6vw, 3.2rem);
  color: var(--ink);
  opacity: 0;
  animation: splashFade 1.1s .15s var(--ease-out) forwards;
}
.splash-line {
  display: block; width: 0; height: 1px; margin: 1rem auto 0;
  background: var(--accent);
  animation: splashGrow 1.4s .35s var(--ease-out) forwards;
}
@keyframes splashFade { to { opacity: 1; } }
@keyframes splashGrow { to { width: 120px; } }
@keyframes splashSafety { to { opacity: 0; pointer-events: none; visibility: hidden; } }

/* =============================================================
   6. Nav
   ============================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--gutter);
  transition: background .4s var(--ease-out), box-shadow .4s var(--ease-out), padding .4s var(--ease-out);
}
.nav.is-solid {
  background: rgba(246,241,231,0.86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--line-soft);
  padding-block: .85rem;
}
.nav-brand {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--ink);
  letter-spacing: -0.01em;
  display: flex; align-items: baseline; gap: .5rem;
}
.nav-brand .mark-dot { color: var(--accent); font-style: italic; }
/* Hero state: nav text light over image */
.nav:not(.is-solid) .nav-brand,
.nav:not(.is-solid) .nav-links a { color: var(--paper); }
.nav:not(.is-solid) .nav-brand .mark-dot { color: #aee0ef; }

.nav-links {
  display: none;
  align-items: center; gap: 2rem;
}
.nav-links a {
  font-size: .92rem; font-weight: 500; color: var(--ink-soft);
  position: relative; transition: color .3s var(--ease-out);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -5px;
  width: 0; height: 1.5px; background: currentColor;
  transition: width .35s var(--ease-out);
}
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: .8rem; }

.lang-switch {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: 100px;
  overflow: hidden; font-size: .78rem; font-weight: 600;
}
.nav:not(.is-solid) .lang-switch { border-color: rgba(255,253,248,0.5); }
.lang-switch button {
  padding: .38rem .7rem; letter-spacing: .04em;
  color: var(--ink-mute); transition: background .3s, color .3s;
}
.nav:not(.is-solid) .lang-switch button { color: rgba(255,253,248,0.8); }
.lang-switch button.is-active { background: var(--accent); color: var(--paper); }
.nav:not(.is-solid) .lang-switch button.is-active { background: rgba(255,253,248,0.95); color: var(--ink); }

.nav-cta { display: none; }

/* Hamburger */
.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 5px;
  width: 30px; padding: 6px 0;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%;
  background: var(--ink); border-radius: 2px;
  transition: transform .4s var(--ease-out), opacity .3s;
}
.nav:not(.is-solid) .nav-toggle span { background: var(--paper); }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--bg);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--gutter);
  transform: translateY(-100%);
  transition: transform .55s var(--ease-out);
  visibility: hidden;
}
.mobile-menu.is-open { transform: translateY(0); visibility: visible; }
.mobile-menu a {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 8vw, 2.6rem);
  color: var(--ink);
  padding-block: .5rem;
  border-bottom: 1px solid var(--line-soft);
  transition: color .3s, padding-left .3s var(--ease-out);
}
.mobile-menu a:hover { color: var(--accent); padding-left: .6rem; }

/* =============================================================
   7. Hero
   ============================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  overflow: hidden;
  background: #0e181d;   /* el telón abre desde un negro cálido */
}
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  transform-origin: 55% 42%;
  /* Entrada cinematográfica (zoom de asentamiento) + Ken Burns continuo.
     A t=0 la imagen está visible (solo más cerca), nunca oculta. */
  animation: heroIntro 2.6s var(--ease-out) both,
             kenburns 36s 2.6s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes heroIntro {
  from { transform: scale(1.26); }
  to   { transform: scale(1.05); }
}
@keyframes kenburns {
  from { transform: scale(1.05); }
  to   { transform: scale(1.19) translate(-2.2%, -1.3%); }
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(125% 95% at 50% 32%, transparent 50%, rgba(14,24,29,0.55) 100%),
    linear-gradient(180deg, rgba(20,32,38,0.5) 0%, rgba(20,32,38,0.03) 26%, rgba(20,32,38,0.12) 56%, rgba(20,32,38,0.8) 100%);
}
/* Bruma de luz dorada que deriva despacio sobre el mar (sensación de atardecer vivo) */
.hero-glow {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(42% 34% at 53% 37%, rgba(255,196,118,0.5), rgba(255,170,90,0.12) 55%, transparent 72%);
  mix-blend-mode: screen;
  opacity: .3;
  animation: heroGlow 11s var(--ease-soft) 1.4s infinite alternate;
}
@keyframes heroGlow {
  0%   { opacity: .28; transform: translate3d(0,0,0) scale(1); }
  100% { opacity: .62; transform: translate3d(1.6%, -1.1%, 0) scale(1.14); }
}
/* Grano de película sutil (textura premium) */
.hero-grain {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 150px 150px;
  animation: grainShift 1.1s steps(3) infinite;
}
@keyframes grainShift {
  0%{transform:translate(0,0)} 33%{transform:translate(-3%,2%)} 66%{transform:translate(2%,-3%)} 100%{transform:translate(0,0)}
}
.hero-inner {
  position: relative; z-index: 2;
  padding-bottom: clamp(3.5rem, 9vw, 7rem);
  padding-top: 8rem;
  color: var(--paper);
}
.hero-kicker { color: #cdeaf2; }
.js .hero-kicker { opacity: 0; transform: translateY(20px); }
.hero-title {
  font-size: clamp(3rem, 11vw, 7.5rem);
  line-height: 0.96;
  color: var(--paper);
  margin: 1rem 0 1.4rem;
  max-width: 14ch;
  text-shadow: 0 2px 40px rgba(0,0,0,0.3);
}
.hero-title em { font-style: italic; }
/* Degradado dorado animado dentro de "Mariana" (con fallback si no hay soporte) */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero-title em {
    background-image: linear-gradient(100deg, #f7e6c0 0%, #e7b66f 26%, #fff6df 50%, #e7b66f 74%, #f7e6c0 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: goldShift 7s linear infinite;
  }
}
@keyframes goldShift {
  from { background-position: 0% 50%; }
  to   { background-position: 220% 50%; }
}
.hero-title .ln { display: block; overflow: hidden; }
.hero-title .ln > span { display: inline-block; }
.js .hero-title .ln > span { opacity: 0; transform: translateY(110%); }
.hero-sub {
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  color: rgba(255,253,248,0.92);
  max-width: 44ch;
  font-weight: 300;
  letter-spacing: .04em;
}
.js .hero-sub { opacity: 0; transform: translateY(20px); }
.hero-sub strong { font-weight: 500; }
.hero-actions {
  margin-top: 2.2rem;
  display: flex; flex-wrap: wrap; gap: 1rem;
}
.js .hero-actions { opacity: 0; transform: translateY(20px); }
.hero-scroll {
  position: absolute; bottom: 1.8rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  color: rgba(255,253,248,0.7);
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
  z-index: 2;
}
.hero-scroll .mouse {
  width: 22px; height: 34px; border: 1.5px solid rgba(255,253,248,0.6);
  border-radius: 12px; position: relative;
}
.hero-scroll .mouse::after {
  content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 3px; height: 7px; border-radius: 2px; background: rgba(255,253,248,0.8);
  animation: scrollDot 1.8s var(--ease-soft) infinite;
}
@keyframes scrollDot {
  0% { opacity: 0; transform: translate(-50%, 0); }
  40% { opacity: 1; }
  80% { opacity: 0; transform: translate(-50%, 10px); }
  100% { opacity: 0; }
}

/* is-ready triggers hero entrance */
.is-ready .hero-kicker { animation: heroUp .9s .2s var(--ease-out) forwards; }
.is-ready .hero-title .ln:nth-child(1) > span { animation: heroLine 1s .35s var(--ease-out) forwards; }
.is-ready .hero-title .ln:nth-child(2) > span { animation: heroLine 1s .47s var(--ease-out) forwards; }
.is-ready .hero-sub { animation: heroUp .9s .7s var(--ease-out) forwards; }
.is-ready .hero-actions { animation: heroUp .9s .85s var(--ease-out) forwards; }
@keyframes heroUp { to { opacity: 1; transform: translateY(0); } }
@keyframes heroLine { to { opacity: 1; transform: translateY(0); } }
/* Brillo cálido que respira en el título (arranca tras la entrada) */
.is-ready .hero-title { animation: titleGlow 7s var(--ease-soft) 1.8s infinite alternate; }
@keyframes titleGlow {
  from { text-shadow: 0 2px 40px rgba(0,0,0,0.35); }
  to   { text-shadow: 0 0 34px rgba(255,201,131,0.45), 0 2px 44px rgba(0,0,0,0.35); }
}

/* =============================================================
   8. Reveal on scroll
   ============================================================= */
.reveal { transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.js .reveal { opacity: 0; transform: translateY(38px); }   /* hidden only when JS runs */
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split], .js .reveal[data-split] { opacity: 1; transform: none; } /* defensive */
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }

/* =============================================================
   9. Apartamento — intro + features
   ============================================================= */
.apto { background: var(--bg); }
.apto-intro {
  display: grid; gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: 1fr;
  align-items: start;
}
.apto-lead {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  line-height: 1.32;
  color: var(--ink);
  font-weight: 300;
}
.apto-lead em { font-style: italic; color: var(--accent); }
.apto-text p { margin-bottom: 1rem; font-size: 1.05rem; }
.apto-num {
  font-family: var(--serif); font-style: italic;
  font-size: 1.1rem; color: var(--ink-mute);
}

.features {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.feature {
  background: var(--paper);
  padding: 1.5rem 1.3rem;
  display: flex; flex-direction: column; gap: .7rem;
  transition: background .35s var(--ease-out);
}
.feature:hover { background: var(--bg-2); }
.feature-ic {
  width: 38px; height: 38px; color: var(--accent);
}
.feature-ic svg { width: 100%; height: 100%; stroke-width: 1.4; }
.feature h3 {
  font-family: var(--sans); font-size: .98rem; font-weight: 600;
  color: var(--ink); letter-spacing: 0;
}
.feature p { font-size: .85rem; color: var(--ink-mute); line-height: 1.45; }
.feature.is-no { background: #f4ece0; }
.feature.is-no .feature-ic { color: var(--accent-2); }

/* =============================================================
   10. Galería + lightbox
   ============================================================= */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 200px;
  gap: 12px;
}
.gallery-item {
  position: relative; overflow: hidden; border-radius: 14px;
  cursor: pointer; background: var(--bg-2);
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .9s var(--ease-out), filter .9s var(--ease-out);
}
.gallery-item:hover img { transform: scale(1.07); filter: saturate(1.12) brightness(1.04); }
.gallery-item::after {
  content: "↗"; position: absolute; top: 12px; right: 14px;
  width: 34px; height: 34px; display: grid; place-items: center;
  background: rgba(255,253,248,0.92); color: var(--ink); border-radius: 50%;
  font-size: 1rem; opacity: 0; transform: scale(.7);
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-bounce);
}
.gallery-item:hover::after { opacity: 1; transform: scale(1); }
.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }
.gallery-cap {
  position: absolute; left: 0; bottom: 0; right: 0;
  padding: 1.4rem 1rem .9rem;
  background: linear-gradient(transparent, rgba(20,32,38,0.66));
  color: var(--paper); font-size: .82rem; letter-spacing: .02em;
  opacity: 0; transform: translateY(8px);
  transition: opacity .4s var(--ease-out), transform .4s var(--ease-out);
}
.gallery-item:hover .gallery-cap { opacity: 1; transform: translateY(0); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(18,26,30,0.92);
  backdrop-filter: blur(8px);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease-out), visibility .4s;
  padding: clamp(1rem, 4vw, 3rem);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 92vw; max-height: 82vh;
  border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  transform: scale(.94); transition: transform .45s var(--ease-out);
}
.lightbox.is-open img { transform: scale(1); }
.lightbox-cap {
  position: absolute; bottom: clamp(1rem,3vw,2rem); left: 0; right: 0;
  text-align: center; color: rgba(255,253,248,0.85); font-size: .9rem;
}
.lb-btn {
  position: absolute; color: var(--paper);
  width: 52px; height: 52px; display: grid; place-items: center;
  background: rgba(255,253,248,0.12); border-radius: 50%;
  font-size: 1.4rem; transition: background .3s, transform .3s var(--ease-out);
}
.lb-btn:hover { background: rgba(255,253,248,0.25); }
.lb-close { top: clamp(1rem,3vw,2rem); right: clamp(1rem,3vw,2rem); }
.lb-prev { left: clamp(.5rem,2vw,2rem); top: 50%; transform: translateY(-50%); }
.lb-next { right: clamp(.5rem,2vw,2rem); top: 50%; transform: translateY(-50%); }
.lb-prev:hover { transform: translateY(-50%) scale(1.08); }
.lb-next:hover { transform: translateY(-50%) scale(1.08); }

/* =============================================================
   11. Tarifas
   ============================================================= */
.tarifas { background: var(--bg-2); }
.tarifas-grid {
  display: grid; gap: clamp(1.2rem, 3vw, 2rem);
  grid-template-columns: 1fr;
}
.rate-card {
  background: var(--paper);
  border-radius: 22px;
  padding: clamp(1.6rem, 3vw, 2.6rem);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line-soft);
}
.rate-card.high { border-top: 4px solid var(--accent); }
.rate-card.low { border-top: 4px solid var(--accent-2); }
.rate-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .5rem; margin-bottom: .4rem; }
.rate-head h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.rate-tag {
  font-family: var(--sans); font-size: .72rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  padding: .3rem .7rem; border-radius: 100px;
}
.rate-card.high .rate-tag { background: rgba(47,111,134,0.12); color: var(--accent); }
.rate-card.low .rate-tag { background: rgba(194,137,93,0.16); color: #a06636; }
.rate-meta { font-size: .9rem; color: var(--ink-mute); margin-bottom: 1.4rem; line-height: 1.5; }
.rate-meta strong { color: var(--ink-soft); font-weight: 600; }

.rate-list { display: flex; flex-direction: column; }
.rate-row {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; padding: .85rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.rate-row:last-child { border-bottom: 0; }
.rate-row .rl-name { color: var(--ink-soft); }
.rate-row .rl-name small { display: block; font-size: .78rem; color: var(--ink-mute); }
.rate-row .rl-price {
  font-family: var(--serif); font-size: 1.35rem; color: var(--ink);
  white-space: nowrap; font-weight: 500;
}
.rate-row .rl-price span { font-family: var(--sans); font-size: .82rem; color: var(--ink-mute); font-weight: 400; }

.rate-note {
  margin-top: 1.8rem; padding: 1.2rem 1.4rem;
  background: var(--bg); border-radius: 14px;
  font-size: .92rem; line-height: 1.6;
}
.rate-note .pending { color: var(--accent-2); font-weight: 600; }
.rate-note p + p { margin-top: .5rem; }
.rate-note .fine { color: var(--ink-mute); font-size: .85rem; }

/* Botón flotante de WhatsApp */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 200;
  display: inline-flex; align-items: center; gap: .55rem;
  background: #25D366; color: #fff;
  border-radius: 100px; padding: .7rem .95rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.28);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.wa-float:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 12px 32px rgba(0,0,0,0.34); color: #fff; }
.wa-float svg { width: 30px; height: 30px; display: block; flex: 0 0 auto; }
.wa-float .wa-label { font-weight: 600; font-size: .95rem; padding-right: .25rem; letter-spacing: .01em; }
.wa-float::after {
  content: ""; position: absolute; inset: 0; border-radius: 100px;
  box-shadow: 0 0 0 0 rgba(37,211,102,0.55);
  animation: waPulse 2.4s var(--ease-soft) infinite;
}
@keyframes waPulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
  70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
@media (max-width: 540px) {
  .wa-float .wa-label { display: none; }
  .wa-float { padding: .85rem; right: 14px; bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) { .wa-float::after { animation: none; } }

/* Calendario de disponibilidad */
.cal-wrap { margin-top: 2rem; }
.cal-heading {
  text-align: center; font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--ink); margin-bottom: 1.2rem;
}
.cal {
  max-width: 460px; margin-inline: auto;
  background: var(--paper); border: 1px solid var(--line-soft);
  border-radius: 18px; padding: 1.4rem; box-shadow: var(--shadow-sm);
}
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.cal-head button {
  width: 38px; height: 38px; border-radius: 50%; font-size: 1.3rem; color: var(--accent);
  background: var(--bg); transition: background .3s, transform .3s var(--ease-out);
}
.cal-head button:hover { background: var(--bg-2); transform: scale(1.08); }
.cal-title { font-family: var(--serif); font-size: 1.2rem; color: var(--ink); text-transform: capitalize; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { text-align: center; font-size: .72rem; font-weight: 600; color: var(--ink-mute); padding-bottom: .4rem; letter-spacing: .04em; }
.cal-day {
  aspect-ratio: 1; display: grid; place-items: center;
  font-size: .9rem; border-radius: 9px; color: var(--ink-soft);
}
.cal-day.empty { background: transparent; }
.cal-day.is-free { background: rgba(47,111,134,0.08); color: var(--ink); }
.cal-day.is-busy { background: rgba(176,73,47,0.14); color: #9a3f28; text-decoration: line-through; }
.cal-day.is-past { color: #c2bcae; }
.cal-legend { display: flex; justify-content: center; gap: 1.4rem; margin-top: 1.1rem; font-size: .85rem; color: var(--ink-soft); }
.cal-legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: .35rem; vertical-align: middle; }
.cal-legend .free { background: rgba(47,111,134,0.35); }
.cal-legend .busy { background: rgba(176,73,47,0.5); }
.cal-note { text-align: center; font-size: .82rem; color: var(--ink-mute); margin-top: .9rem; }

/* Lodgify placeholder */
.lodgify-box {
  margin-top: 2rem;
  border: 1.5px dashed rgba(47,111,134,0.4);
  background: rgba(255,253,248,0.6);
  border-radius: 18px;
  padding: clamp(1.6rem, 4vw, 2.4rem);
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: .9rem;
}
.lodgify-box .cal-ic { width: 46px; height: 46px; color: var(--accent); }
.lodgify-box h4 { font-family: var(--sans); font-weight: 600; color: var(--ink); font-size: 1.05rem; }
.lodgify-box p { font-size: .92rem; color: var(--ink-mute); max-width: 46ch; }

/* =============================================================
   12. La zona
   ============================================================= */
.zona-grid {
  display: grid; gap: clamp(1.2rem, 3vw, 1.8rem);
  grid-template-columns: 1fr;
}
.zona-card {
  position: relative; border-radius: 20px; overflow: hidden;
  min-height: 340px; display: flex; align-items: flex-end;
  color: var(--paper); box-shadow: var(--shadow-sm);
}
.zona-card img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -2;
  transition: transform 1s var(--ease-out);
}
.zona-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(transparent 30%, rgba(18,28,32,0.82));
}
.zona-card:hover img { transform: scale(1.06); }
.zona-body { padding: 1.6rem 1.5rem; }
.zona-body .num {
  font-family: var(--serif); font-style: italic; font-size: .95rem;
  color: #bfe2eb; margin-bottom: .3rem; display: block;
}
.zona-body h3 { color: var(--paper); font-size: 1.5rem; margin-bottom: .5rem; }
.zona-body p { font-size: .92rem; color: rgba(255,253,248,0.88); line-height: 1.5; }

/* =============================================================
   13. Cómo reservar + steps + form
   ============================================================= */
.reservar { background: var(--bg); }
.steps {
  display: grid; gap: clamp(1.2rem, 3vw, 2rem);
  grid-template-columns: 1fr;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}
.step {
  display: flex; gap: 1.1rem; align-items: flex-start;
  padding: 1.4rem; background: var(--paper); border-radius: 16px;
  border: 1px solid var(--line-soft);
}
.step-num {
  flex: 0 0 auto;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: var(--paper);
  font-family: var(--serif); font-size: 1.3rem; font-style: italic;
}
.step h3 { font-family: var(--sans); font-size: 1.02rem; font-weight: 600; color: var(--ink); margin-bottom: .3rem; }
.step p { font-size: .9rem; color: var(--ink-mute); }
.pay-note {
  text-align: center; font-size: .95rem; color: var(--ink-soft);
  margin-bottom: clamp(2rem, 5vw, 3rem);
}
.pay-note strong { color: var(--accent); }

/* Form */
.form-wrap {
  background: var(--paper);
  border-radius: 24px;
  padding: clamp(1.6rem, 4vw, 3rem);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line-soft);
  max-width: 760px; margin-inline: auto;
}
.req-form { display: grid; gap: 1.2rem; grid-template-columns: 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .82rem; font-weight: 600; color: var(--ink-soft); letter-spacing: .02em; }
.field label .opt { color: var(--ink-mute); font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; font-size: .95rem;
  padding: .8rem .95rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out), background .3s;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47,111,134,0.14);
  background: var(--paper);
}
.form-submit { grid-column: 1 / -1; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.form-submit .btn { width: auto; }
.form-msg {
  font-size: .92rem; color: var(--accent-d); font-weight: 500;
  opacity: 0; transition: opacity .4s var(--ease-out);
}
.form-msg.show { opacity: 1; }
.form-fine { grid-column: 1/-1; font-size: .8rem; color: var(--ink-mute); }

/* =============================================================
   14. Ubicación / mapa
   ============================================================= */
.mapa-frame {
  position: relative;
  border-radius: 22px; overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line-soft);
  aspect-ratio: 16 / 8; background: var(--bg-2);
}
/* Sin interacción: el mapa no se arrastra, así el pin queda centrado y el círculo encima */
.mapa-frame iframe { width: 100%; height: 100%; border: 0; display: block; pointer-events: none; }
/* Círculo azul: zona aproximada del apartamento (no marca el punto exacto) */
.mapa-circle {
  position: absolute; top: 50%; left: 50%;
  width: clamp(120px, 18%, 200px); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(47,111,134,0.20);
  border: 2.5px solid rgba(47,111,134,0.85);
  box-shadow: 0 0 0 6px rgba(47,111,134,0.10), 0 6px 20px rgba(35,84,104,0.25);
  pointer-events: none;
}
.mapa-note {
  margin-top: 1.2rem; text-align: center; color: var(--ink-soft); font-size: .98rem;
}
.mapa-note strong { color: var(--ink); }

/* =============================================================
   15. FAQ
   ============================================================= */
.faq { background: var(--bg-2); }
.faq-list { max-width: 820px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.4rem 0;
  font-family: var(--serif); font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  color: var(--ink);
}
.faq-q .faq-ic {
  flex: 0 0 auto; width: 26px; height: 26px; position: relative;
  transition: transform .4s var(--ease-out);
}
.faq-q .faq-ic::before, .faq-q .faq-ic::after {
  content: ""; position: absolute; top: 50%; left: 50%; background: var(--accent);
  transform: translate(-50%, -50%);
}
.faq-q .faq-ic::before { width: 16px; height: 2px; }
.faq-q .faq-ic::after { width: 2px; height: 16px; transition: transform .4s var(--ease-out); }
.faq-item.is-open .faq-q .faq-ic::after { transform: translate(-50%, -50%) scaleY(0); }
.faq-a {
  overflow: hidden; max-height: 0;
  transition: max-height .5s var(--ease-out);
}
.faq-a-inner { padding: 0 0 1.4rem; color: var(--ink-soft); font-size: 1rem; line-height: 1.65; max-width: 68ch; }
.faq-a-inner .pending { color: var(--accent-2); font-weight: 600; }

/* =============================================================
   16. Footer
   ============================================================= */
.footer {
  background: var(--ink); color: rgba(255,253,248,0.8);
  padding-block: clamp(3rem, 7vw, 5rem) 2rem;
}
.footer-top {
  display: grid; gap: 2rem; grid-template-columns: 1fr;
  padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,253,248,0.14);
}
.footer-brand .fb-name {
  font-family: var(--serif); font-size: 1.6rem; color: var(--paper);
}
.footer-brand .fb-name em { font-style: italic; color: #9fd4e4; }
.footer-brand p { margin-top: .7rem; font-size: .92rem; max-width: 40ch; color: rgba(255,253,248,0.65); }
.footer-col h4 {
  font-family: var(--sans); font-size: .78rem; letter-spacing: .16em;
  text-transform: uppercase; color: rgba(255,253,248,0.5); margin-bottom: 1rem; font-weight: 600;
}
.footer-col a, .footer-col p { display: block; font-size: .95rem; margin-bottom: .55rem; color: rgba(255,253,248,0.8); transition: color .3s; }
.footer-col a:hover { color: #9fd4e4; }
.footer-legal {
  margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .6rem 1.5rem;
  justify-content: space-between; align-items: center;
  font-size: .82rem; color: rgba(255,253,248,0.55);
}
.footer-legal a { color: rgba(255,253,248,0.7); transition: color .3s; }
.footer-legal a:hover { color: #9fd4e4; }
.footer-legal .reg { color: rgba(255,253,248,0.7); }
.footer-legal .pending { color: var(--accent-2); }

/* =============================================================
   17. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .gallery { grid-auto-rows: 230px; }
}
@media (min-width: 720px) {
  .features { grid-template-columns: repeat(3, 1fr); }
  .req-form { gap: 1.3rem 1.4rem; }
  .zona-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 220px; }
  .apto-intro { grid-template-columns: 1.1fr 1fr; gap: 3.5rem; }
}
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .nav-cta { display: inline-flex; }
  .features { grid-template-columns: repeat(5, 1fr); }
  .tarifas-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .gallery { grid-auto-rows: 250px; }
}
@media (min-width: 1280px) {
  .features { grid-template-columns: repeat(5, 1fr); }
}

/* =============================================================
   18. Reduced motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-scroll .mouse::after { animation: none; }
  .hero-bg { animation: none; transform: scale(1.04); }  /* sin zoom continuo */
  .hero-glow { animation: none; opacity: .4; }
  .hero-grain { animation: none; }
  .is-ready .hero-title { animation: none; }
  .hero-title em { animation: none; }   /* degradado dorado fijo, sin barrido */
  /* keep: reveals, hovers, tilts, fades */
}

/* Static pages (privacidad / creditos) */
.page-doc {
  max-width: 760px; margin-inline: auto;
  padding-top: 8rem; padding-bottom: 4rem;
}
.page-doc h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1.5rem; }
.page-doc h2 { font-size: 1.4rem; margin: 2rem 0 .8rem; }
.page-doc p, .page-doc li { font-size: 1rem; line-height: 1.7; margin-bottom: .8rem; }
.page-doc ul { list-style: disc; padding-left: 1.4rem; }
.page-doc a { color: var(--accent); text-decoration: underline; }
.back-link {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--accent); font-weight: 500; margin-bottom: 2rem;
}
.credits-list li {
  padding: 1rem 0; border-bottom: 1px solid var(--line-soft);
  font-size: .92rem; line-height: 1.6;
}
.credits-list a { color: var(--accent); text-decoration: underline; }
