/* =========================================================================
   Shanti Apartamentos — hoja de estilos
   Paleta cálida (crema + terracota del logo) · Cormorant Garamond + Manrope
   ========================================================================= */

:root {
  --bg: #f5eee4;
  --bg-2: #ebe0d1;
  --paper: #fffaf3;
  --ink: #2b1d15;
  --ink-soft: #4a3a2f;
  --ink-mute: #7a685a;
  --accent: #c0592f;
  --accent-deep: #9c4422;
  --accent-soft: #f2b48f;
  --sage: #66704f;
  --line: rgba(43, 29, 21, 0.14);
  --line-strong: rgba(43, 29, 21, 0.28);
  --wa: #1f9e55;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 24px 60px -28px rgba(43, 29, 21, 0.45);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 99px; z-index: 200; }
.skip:focus { left: 12px; }

/* ---------- Tipografía ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.05; margin: 0; letter-spacing: -0.01em; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--accent); }
.display { font-size: clamp(2.9rem, 7vw, 6.2rem); }
.h2 { font-size: clamp(2.2rem, 4.6vw, 3.9rem); }
.h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent-deep);
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--ink-soft); max-width: 56ch; }
.muted { color: var(--ink-mute); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; cursor: pointer; white-space: nowrap;
  transition: transform .35s var(--ease), background .3s, color .3s, box-shadow .35s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent-deep); box-shadow: 0 14px 30px -14px rgba(156, 68, 34, .8); }
.btn-ghost { border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--paper); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #17864a; box-shadow: 0 14px 30px -14px rgba(31, 158, 85, .8); }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .95rem;
  border-bottom: 1px solid var(--line-strong); padding-bottom: 3px; transition: gap .3s var(--ease), border-color .3s, color .3s;
}
.link-arrow svg { width: 16px; height: 16px; }
.link-arrow:hover { gap: 14px; border-color: var(--accent); color: var(--accent-deep); }

/* ---------- Navegación ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .4s, box-shadow .4s, padding .4s;
  padding: 14px 0;
}
.nav.is-solid { background: rgba(245, 238, 228, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); padding: 8px 0; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 60px; width: auto; transition: height .4s var(--ease); }
.nav.is-solid .brand img { height: 50px; }
.brand-text { font-family: var(--serif); font-size: 1.5rem; letter-spacing: .08em; font-weight: 600; line-height: 1; }
.brand-text small { display: block; font-family: var(--sans); font-size: .58rem; letter-spacing: .32em; font-weight: 600; color: var(--ink-mute); margin-top: 4px; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) { font-size: .93rem; font-weight: 500; position: relative; padding: 6px 0; }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav-links a:not(.btn):hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-links .btn { padding: 11px 20px; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); transition: transform .35s var(--ease), opacity .3s; }
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero (home) ---------- */
.hero { position: relative; padding: 150px 0 80px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; width: 760px; height: 760px; right: -220px; top: -260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 180, 143, .55), rgba(242, 180, 143, 0) 65%); pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero-copy .eyebrow { margin-bottom: 26px; }
.hero-copy h1 { margin-bottom: 26px; }
.hero-copy h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-copy h1 .line > span { display: inline-block; }
.hero-copy .lead { margin: 0 0 36px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { display: flex; gap: clamp(20px, 4vw, 48px); margin-top: 52px; padding-top: 28px; border-top: 1px solid var(--line); list-style: none; padding-left: 0; }
.hero-facts strong { display: block; font-family: var(--serif); font-size: 2.4rem; font-weight: 500; line-height: 1; }
.hero-facts span { font-size: .82rem; color: var(--ink-mute); }

.hero-art { position: relative; height: clamp(520px, 62vw, 680px); }
.hero-art figure { position: absolute; margin: 0; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow); background: var(--bg-2); }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-art .a1 { inset: 0 18% 8% 6%; border-radius: 240px 240px var(--radius-lg) var(--radius-lg); }
.hero-art .a1 img { animation: kenburns 22s ease-in-out infinite alternate; }
.hero-art .a2 { width: 38%; aspect-ratio: 3 / 4; right: 0; bottom: 0; border: 6px solid var(--bg); }
.hero-art .a3 { width: 30%; aspect-ratio: 1; left: -4%; bottom: -2%; border-radius: 50%; border: 6px solid var(--bg); }
.hero-art figcaption { position: absolute; left: 22px; bottom: 18px; color: #fff; font-size: .78rem; letter-spacing: .08em; text-shadow: 0 1px 12px rgba(0,0,0,.5); }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.14) translate(-2%, -1%); } }

.badge-rotor { position: absolute; top: 4%; right: 4%; width: 132px; height: 132px; z-index: 3; }
.badge-rotor svg { width: 100%; height: 100%; animation: spin 26s linear infinite; }
.badge-rotor text { font-family: var(--sans); font-size: 10.4px; letter-spacing: 3.4px; text-transform: uppercase; fill: var(--ink); font-weight: 600; }
.badge-rotor .om { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-size: 2.6rem; color: var(--accent); }
.badge-rotor::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--paper); box-shadow: 0 10px 30px -14px rgba(43,29,21,.5); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 20px 0; background: var(--paper); }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee-track span { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 2.6vw, 2.1rem); padding: 0 28px; white-space: nowrap; display: inline-flex; align-items: center; gap: 56px; }
.marquee-track span::after { content: "✦"; font-style: normal; font-size: .9rem; color: var(--accent); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.section { padding: clamp(80px, 11vw, 150px) 0; }
.section-tight { padding: clamp(60px, 8vw, 100px) 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: clamp(40px, 6vw, 64px); flex-wrap: wrap; }
.section-head h2 { margin-top: 16px; max-width: 16ch; }
.section-head .lead { margin: 0; }
.bg-paper { background: var(--paper); }
.bg-sand { background: var(--bg-2); }
.bg-ink { background: var(--ink); color: var(--bg); }
.bg-ink .eyebrow { color: var(--accent-soft); }
.bg-ink .muted, .bg-ink .lead { color: rgba(245, 238, 228, .72); }

/* Manifiesto */
.manifesto { display: grid; grid-template-columns: 220px 1fr; gap: clamp(24px, 5vw, 80px); align-items: start; }
.manifesto-side { font-family: var(--serif); font-size: 6rem; line-height: .8; color: var(--accent); }
.manifesto-side small { display: block; font-family: var(--sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); margin-top: 18px; line-height: 1.5; }
.manifesto p.big { font-family: var(--serif); font-size: clamp(1.7rem, 3.3vw, 2.75rem); line-height: 1.22; margin: 0; color: var(--ink); }
.manifesto p.big em { color: var(--accent); }
.manifesto .sign { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }

/* Filtros */
.filters { display: inline-flex; gap: 6px; padding: 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.filters button { border: 0; background: none; padding: 10px 18px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: .88rem; color: var(--ink-soft); transition: background .3s, color .3s; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.filters button:hover:not([aria-pressed="true"]) { background: var(--bg-2); }

/* Tarjetas de departamento */
.apt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.6vw, 36px); }
.apt-card { display: flex; flex-direction: column; transition: opacity .45s var(--ease), transform .45s var(--ease); }
.apt-card.is-hidden { display: none; }
.apt-media { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.apt-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter .6s; }
.apt-card:hover .apt-media img { transform: scale(1.07); filter: saturate(1.1); }
.apt-tag { position: absolute; top: 14px; left: 14px; background: rgba(255, 250, 243, .92); backdrop-filter: blur(6px); padding: 7px 13px; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .04em; }
.apt-cap { position: absolute; right: 14px; bottom: 14px; background: var(--ink); color: var(--paper); padding: 7px 12px; border-radius: 999px; font-size: .76rem; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.apt-cap svg { width: 14px; height: 14px; }
.apt-body { padding: 22px 4px 0; display: flex; flex-direction: column; flex: 1; }
.apt-body h3 { font-size: 2rem; }
.apt-body h3 a:hover { color: var(--accent-deep); }
.apt-place { font-size: .85rem; color: var(--ink-mute); margin: 6px 0 12px; display: flex; gap: 6px; align-items: center; }
.apt-place svg { width: 14px; height: 14px; color: var(--accent); }
.apt-lede { margin: 0 0 16px; color: var(--ink-soft); font-size: .95rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 20px; }
.chips li { font-size: .78rem; font-weight: 600; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,250,243,.6); }
.apt-actions { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wa-mini { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--wa); color: #fff; transition: transform .3s var(--ease); flex: none; }
.wa-mini svg { width: 20px; height: 20px; }
.wa-mini:hover { transform: scale(1.08) rotate(-6deg); }

/* Listado editorial (departamentos.html) */
.apt-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; padding: clamp(48px, 7vw, 90px) 0; border-top: 1px solid var(--line); }
.apt-row:nth-child(even) .apt-row-media { order: 2; }
.apt-row-media { display: grid; grid-template-columns: 1.6fr 1fr; gap: 12px; }
.apt-row-media a { display: block; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.apt-row-media a:first-child { grid-row: span 2; aspect-ratio: 3 / 4; }
.apt-row-media a:not(:first-child) { aspect-ratio: 1; }
.apt-row-media.single { grid-template-columns: 1fr; }
.apt-row-media.single a:first-child { grid-row: auto; aspect-ratio: 4 / 5; max-height: 640px; }
[data-city].is-hidden { display: none; }
.apt-row-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.apt-row-media a:hover img { transform: scale(1.06); }
.apt-row-num { font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 1.2rem; }
.apt-row h2 { font-size: clamp(2.4rem, 4.4vw, 3.8rem); margin: 8px 0 6px; }
.apt-row .lead { margin: 18px 0 24px; }
.feature-list { list-style: none; padding: 0; margin: 0 0 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; }
.feature-list svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 3px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* Pilares */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid rgba(245,238,228,.18); }
.pillar { padding: 34px 28px 10px 0; border-right: 1px solid rgba(245,238,228,.18); }
.pillar + .pillar { padding-left: 28px; }
.pillar:last-child { border-right: 0; }
.pillar .num { font-family: var(--serif); font-style: italic; color: var(--accent-soft); font-size: 1.1rem; }
.pillar h3 { font-size: 1.75rem; margin: 18px 0 12px; }
.pillar p { margin: 0; color: rgba(245, 238, 228, .72); font-size: .95rem; }

/* Ciudades */
.cities { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 36px); }
.city { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 560px; display: flex; align-items: flex-end; color: #fff; isolation: isolate; }
.city img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.4s var(--ease); }
.city::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,12,8,0) 25%, rgba(20,12,8,.85) 100%); }
.city:hover img { transform: scale(1.05); }
.city-body { padding: clamp(24px, 4vw, 44px); width: 100%; }
.city-body .eyebrow { color: var(--accent-soft); }
.city-body h3 { font-size: clamp(2.3rem, 4vw, 3.4rem); margin: 12px 0 10px; }
.city-body p { margin: 0 0 20px; color: rgba(255,255,255,.82); max-width: 44ch; }
.city-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.city-list a { display: inline-flex; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.4); font-size: .85rem; font-weight: 600; transition: background .3s, color .3s; }
.city-list a:hover { background: #fff; color: var(--ink); }

/* Reservar */
.book { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.steps { list-style: none; padding: 0; margin: 36px 0 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 54px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.steps li::before { content: "0" counter(s); font-family: var(--serif); font-style: italic; font-size: 1.6rem; color: var(--accent); line-height: 1.1; }
.steps h3 { font-family: var(--sans); font-size: 1.02rem; font-weight: 700; margin-bottom: 4px; letter-spacing: 0; }
.steps p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

.form-card { background: var(--paper); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 42px); box-shadow: var(--shadow); border: 1px solid var(--line); }
.form-card h3 { font-size: 2rem; margin-bottom: 6px; }
.form-card > p { margin: 0 0 24px; color: var(--ink-mute); font-size: .92rem; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bg);
  transition: border-color .25s, background .25s, box-shadow .25s; min-height: 50px;
}
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(192, 89, 47, .14); }
.field .err { font-size: .78rem; color: #b42318; min-height: 0; }
.book-summary { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; margin: 18px 0; padding: 14px 16px; border-radius: 12px; background: var(--bg); font-size: .9rem; color: var(--ink-soft); }
.book-summary strong { color: var(--ink); }
.form-note { font-size: .8rem; color: var(--ink-mute); margin: 14px 0 0; text-align: center; }

.hosts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.host { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.host .avatar { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); font-family: var(--serif); font-size: 1.6rem; color: var(--accent-deep); }
.host h3 { font-size: 1.7rem; }
.host p { margin: 0; color: var(--ink-soft); font-size: .92rem; }
.host .btn { margin-top: auto; }

/* CTA final */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(40px, 7vw, 90px); background: var(--ink); color: var(--bg); display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.cta-band::before { content: ""; position: absolute; width: 620px; height: 620px; border-radius: 50%; right: -180px; top: -240px; background: radial-gradient(circle, rgba(192,89,47,.55), rgba(192,89,47,0) 65%); }
.cta-band > * { position: relative; }
.cta-band h2 em { color: var(--accent-soft); }
.cta-band .btn-row { justify-content: flex-end; }
.cta-band .btn-ghost { border-color: rgba(245,238,228,.35); color: var(--bg); }
.cta-band .btn-ghost:hover { background: rgba(245,238,228,.1); }

/* ---------- Página de departamento ---------- */
.page-top { padding: 130px 0 0; }
.crumbs { font-size: .82rem; color: var(--ink-mute); display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.crumbs a:hover { color: var(--accent-deep); }
.prop-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 30px; }
.prop-head h1 { font-size: clamp(3rem, 7vw, 5.6rem); }
.prop-head .sub { margin: 10px 0 0; font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 2vw, 1.5rem); color: var(--ink-soft); }
.prop-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.prop-meta span { display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: .85rem; font-weight: 600; }
.prop-meta svg { width: 16px; height: 16px; color: var(--accent); }

.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 10px; height: clamp(380px, 52vw, 620px); border-radius: var(--radius-lg); overflow: hidden; }
.gallery button { position: relative; border: 0; padding: 0; margin: 0; cursor: zoom-in; overflow: hidden; background: var(--bg-2); min-height: 0; }
.gallery button:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .5s; }
.gallery button:hover img { transform: scale(1.05); filter: brightness(1.04); }
.gallery .more { position: absolute; right: 14px; bottom: 14px; background: var(--paper); color: var(--ink); padding: 9px 15px; border-radius: 999px; font-size: .82rem; font-weight: 700; display: inline-flex; gap: 6px; align-items: center; box-shadow: 0 8px 20px -10px rgba(0,0,0,.4); }
.gallery .more svg { width: 15px; height: 15px; }
.gallery.single { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.gallery.single button:first-child { grid-row: auto; }

.prop-body { display: grid; grid-template-columns: 1fr 400px; gap: clamp(32px, 6vw, 90px); padding-top: clamp(56px, 7vw, 90px); padding-bottom: clamp(56px, 7vw, 90px); align-items: start; }
.prop-main > section { padding: 0 0 44px; margin-bottom: 44px; border-bottom: 1px solid var(--line); }
.prop-main > section:last-child { border-bottom: 0; }
.prop-main h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); margin-bottom: 18px; }
.prop-main p { color: var(--ink-soft); margin: 0 0 14px; max-width: 64ch; }
.prop-main .intro { font-family: var(--serif); font-size: clamp(1.45rem, 2.2vw, 1.85rem); line-height: 1.3; color: var(--ink); }
.highlights { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; list-style: none; padding: 0; margin: 0; }
.highlights li { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); font-weight: 600; font-size: .95rem; }
.highlights .ic { width: 40px; height: 40px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; flex: none; color: var(--accent); }
.highlights .ic svg { width: 20px; height: 20px; }
.distances { list-style: none; padding: 0; margin: 0 0 22px; }
.distances li { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px dashed var(--line-strong); font-size: .95rem; }
.distances li span:last-child { font-weight: 700; white-space: nowrap; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; background: var(--bg-2); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.rules { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.rules li { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; }
.rules li svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--accent); }
.ideal { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.ideal li { padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: .86rem; font-weight: 600; }

.prop-aside { position: sticky; top: 100px; }
.prop-aside .form-card h3 { font-size: 1.8rem; }
.host-line { display: flex; align-items: center; gap: 12px; padding: 14px 0 0; margin-top: 18px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--ink-soft); }
.host-line .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); display: grid; place-items: center; font-family: var(--serif); font-size: 1.25rem; color: var(--accent-deep); flex: none; }

/* Notas */
.note { padding: 16px 18px; border-radius: 14px; background: rgba(192, 89, 47, .08); border: 1px solid rgba(192, 89, 47, .25); font-size: .92rem; color: var(--ink-soft); }

/* ---------- Sobre nosotros ---------- */
.page-hero { padding: 160px 0 70px; position: relative; overflow: hidden; }
.page-hero h1 { margin: 20px 0 22px; max-width: 14ch; }
.names { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.name-item { padding: 34px 28px 34px 0; border-bottom: 1px solid var(--line); }
.name-item:not(:nth-child(3n)) { border-right: 1px solid var(--line); }
.name-item:not(:nth-child(3n+1)) { padding-left: 28px; }
.name-item .sk { font-family: var(--serif); font-size: 1.4rem; color: var(--accent); }
.name-item h3 { font-size: 2.4rem; margin: 6px 0 8px; }
.name-item p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.split-media { border-radius: 260px 260px var(--radius-lg) var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--bg); padding: 90px 0 32px; margin-top: 0; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 60px; border-bottom: 1px solid rgba(245,238,228,.16); }
.footer .brand img { height: 92px; margin-bottom: 8px; }
.footer .brand-text small { color: rgba(245,238,228,.55); }
.footer p { color: rgba(245, 238, 228, .7); font-size: .93rem; max-width: 34ch; }
.footer h4 { font-family: var(--sans); font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-soft); margin-bottom: 18px; font-weight: 700; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .93rem; }
.footer ul a { color: rgba(245, 238, 228, .82); transition: color .25s; }
.footer ul a:hover { color: #fff; }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(245,238,228,.25); display: grid; place-items: center; transition: background .3s, border-color .3s; }
.socials a:hover { background: var(--accent); border-color: var(--accent); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; font-size: .82rem; color: rgba(245, 238, 228, .5); }
.footer-word { font-family: var(--serif); font-size: clamp(5rem, 19vw, 17rem); line-height: .8; letter-spacing: -.02em; color: rgba(245, 238, 228, .06); margin: 50px 0 -10px; text-align: center; user-select: none; }

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 90; }
.wa-float > button, .wa-float > a { width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff; border: 0; cursor: pointer; display: grid; place-items: center; box-shadow: 0 16px 34px -12px rgba(31, 158, 85, .85); transition: transform .35s var(--ease); }
.wa-float > button:hover, .wa-float > a:hover { transform: scale(1.07); }
.wa-float svg { width: 28px; height: 28px; }
.wa-float > button::before, .wa-float > a::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: ping 2.6s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 80%, 100% { transform: scale(1.6); opacity: 0; } }
.wa-menu { position: absolute; right: 0; bottom: 74px; width: 290px; background: var(--paper); border-radius: 18px; box-shadow: var(--shadow); border: 1px solid var(--line); padding: 10px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, transform .35s var(--ease), visibility .3s; }
.wa-float.is-open .wa-menu { opacity: 1; visibility: visible; transform: none; }
.wa-menu p { margin: 8px 10px 10px; font-size: .8rem; color: var(--ink-mute); }
.wa-menu a { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; transition: background .25s; }
.wa-menu a:hover { background: var(--bg); }
.wa-menu .avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--accent-soft); display: grid; place-items: center; font-family: var(--serif); font-size: 1.2rem; color: var(--accent-deep); flex: none; }
.wa-menu strong { display: block; font-size: .92rem; }
.wa-menu small { display: block; font-size: .76rem; color: var(--ink-mute); line-height: 1.35; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(20, 12, 8, .94); display: none; align-items: center; justify-content: center; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(92vw, 1200px); max-height: 84vh; width: auto; border-radius: 10px; object-fit: contain; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox button { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.2); width: 52px; height: 52px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; transition: background .25s; }
.lightbox button:hover { background: rgba(255,255,255,.22); }
.lightbox button svg { width: 22px; height: 22px; }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.75); font-size: .85rem; letter-spacing: .1em; }

/* ---------- Animaciones de entrada ----------
   El contenido es visible sin JS. Solo cuando main.js agrega .js al <html>
   se ocultan los elementos para revelarlos al hacer scroll. */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); animation: failsafe 0s 6s forwards; }
.js .reveal.is-in { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1 !important; transform: none !important; }
.js .hero-copy h1 .line > span { transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js .is-loaded .hero-copy h1 .line > span { transform: none; }
.js .hero-art figure { opacity: 0; transform: translateY(30px) scale(.98); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, .2s); }
.js .is-loaded .hero-art figure { opacity: 1; transform: none; }
/* Red de seguridad: si el JS falla, todo aparece a los 4.5s */
.js body:not(.is-loaded) .hero-copy h1 .line > span, .js body:not(.is-loaded) .hero-art figure { animation: failsafe 0s 4.5s forwards; }
@keyframes failsafe { to { opacity: 1; transform: none; } }

/* Solo efectos realmente intrusivos se desactivan con reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-art .a1 img, .marquee-track, .badge-rotor svg { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .apt-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .pillar { border-right: 0; padding-left: 0 !important; border-bottom: 1px solid rgba(245,238,228,.18); padding-bottom: 30px; }
  .prop-body { grid-template-columns: 1fr; }
  .prop-aside { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .hosts { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; z-index: 2; }
  .nav-links {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 22px;
    background: var(--bg); opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
  }
  .nav-links a:not(.btn) { font-family: var(--serif); font-size: 2.2rem; }
  .nav.is-open .nav-links { opacity: 1; visibility: visible; }
  .nav.is-open { background: var(--bg); }
  .hero { padding-top: 120px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { height: 520px; max-width: 520px; width: 100%; margin: 0 auto; }
  .manifesto { grid-template-columns: 1fr; }
  .manifesto-side { font-size: 4rem; }
  .apt-row, .book, .split, .cta-band { grid-template-columns: 1fr; }
  .apt-row:nth-child(even) .apt-row-media { order: 0; }
  .cta-band .btn-row { justify-content: flex-start; }
  .cities { grid-template-columns: 1fr; }
  .city { min-height: 460px; }
  .names { grid-template-columns: 1fr 1fr; }
  .name-item { border-right: 0 !important; padding-left: 0 !important; }
  .name-item:nth-child(odd) { border-right: 1px solid var(--line) !important; padding-right: 20px; }
  .name-item:nth-child(even) { padding-left: 20px !important; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .brand img { height: 50px; }
  .hero-facts { gap: 18px; justify-content: space-between; }
  .hero-facts strong { font-size: 2rem; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .hero-art { height: 430px; }
  .badge-rotor { width: 104px; height: 104px; }
  .apt-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; }
  .fgrid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 2fr 1fr; height: 460px; }
  .gallery button:first-child { grid-column: 1 / -1; grid-row: auto; }
  .gallery button:nth-child(n+4) { display: none; }
  .highlights { grid-template-columns: 1fr; }
  .names { grid-template-columns: 1fr; }
  .name-item { border-right: 0 !important; padding: 26px 0 !important; }
  .footer-top { grid-template-columns: 1fr; }
  .filters { width: 100%; justify-content: space-between; }
  .filters button { padding: 10px 12px; flex: 1; }
  .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }
  .lb-prev { left: 14px; } .lb-next { right: 14px; }
  .wa-menu { width: calc(100vw - 40px); }
}

/* Indicaciones originales de cada depto */
.prop-main .orig-h { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.prop-main section > p { margin: 0 0 14px; }
.prop-main section > p + ul, .prop-main section > ul + p { margin-top: 14px; }
.feature-list.one { grid-template-columns: 1fr; }
.book-note { padding: 28px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); }
.book-note h2 { margin-bottom: 12px; }
.apt-row p.muted { display: flex; gap: 8px; align-items: flex-start; font-size: .92rem; margin: -10px 0 22px; }
.apt-row p.muted svg { width: 18px; height: 18px; flex: none; color: var(--accent); margin-top: 2px; }
