/* Estancia Carabassa — implementación de "Estancia Carabassa Web.dc.html".
   Tokens tomados del design system (tokens/colors, typography, motion). */
:root {
  --ec-olive-deep: #4D5043;
  --ec-mist: #E8EBE7;
  --ec-paper: #FFFCF7;
  --ec-parchment: #FCFAF5;
  --ec-sand: #EDE7DB;
  --ec-rule-soft: #EBE4D8;
  --ec-rule: #DFD6C6;
  --ec-brass: #C4A575;
  --ec-brass-deep: #A9814B;
  --ec-forest: #3D4630;
  --ec-stone: #8C8375;
  --ec-ink: #6F6659;
  --ec-black: #2A2621;
  --on-dark-muted: #D8D6D0;

  --font-display: "Cormorant Garamond", Cormorant, "EB Garamond", Georgia, "Times New Roman", serif;
  --font-sans: Jost, Futura, "Century Gothic", "Avenir Next", system-ui, sans-serif;

  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast: 150ms;

  --gutter: clamp(20px, 4vw, 48px);
  --hdr-h: 112px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: var(--hdr-h); }
body {
  margin: 0;
  background: var(--ec-paper);
  color: var(--ec-ink);
  font: 300 12.8px/1.83 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}
img, video { display: block; max-width: 100%; }
a { color: var(--ec-brass-deep); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--ec-forest); }
button, input, select, textarea { font: inherit; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
::selection { background: var(--ec-mist); color: var(--ec-forest); }
:focus-visible { outline: 1px solid var(--ec-brass-deep); outline-offset: 3px; }
[hidden] { display: none !important; }

@keyframes ecDrop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes ecFade { from { opacity: 0; } to { opacity: 1; } }

.wrap { max-width: 1280px; margin: 0 auto; padding-inline: var(--gutter); }
.brass { color: var(--ec-brass); }
.caps { letter-spacing: .2em; text-transform: uppercase; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  white-space: nowrap; cursor: pointer; border-radius: 6px;
  font: 400 10.9px/1 var(--font-sans); letter-spacing: .2em; text-transform: uppercase;
  padding: 17px 28px; border: 1px solid transparent; background: transparent;
  transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.btn:active { opacity: .86; }
.btn--forest { background: var(--ec-forest); color: #fff; border-color: var(--ec-forest); padding: 14px 22px; }
.btn--forest:hover { background: var(--ec-olive-deep); }
.btn--paper { background: var(--ec-paper); color: var(--ec-forest); border-color: var(--ec-paper); }
.btn--paper:hover { background: var(--ec-sand); }
.btn--ghost-light { color: #fff; border-color: #fff; }
.btn--ghost-light:hover { color: var(--ec-brass); border-color: var(--ec-brass); }
/* DS Button · secondary / primary */
.btn--secondary { font-size: 10.133px; padding: 14px 26px; min-height: 44px; color: var(--ec-forest); border-color: var(--ec-brass); }
.btn--secondary:hover { color: var(--ec-forest); border-color: var(--ec-olive-deep); }
.btn--primary { font-size: 10.133px; padding: 14px 26px; min-height: 44px; background: var(--ec-brass-deep); color: var(--ec-paper); border-color: var(--ec-brass-deep); }
.btn--primary:hover { background: var(--ec-olive-deep); border-color: var(--ec-olive-deep); }

/* ---------- Header ---------- */
.hdr { position: fixed; top: 0; left: 0; right: 0; z-index: 50; }
.topbar { background: var(--ec-forest); color: #fff; }
.topbar__in { height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 10.1px; letter-spacing: .2em; text-transform: uppercase; }
.topbar__loc { color: var(--on-dark-muted); }
.topbar__wa { color: #fff; display: flex; gap: 10px; align-items: center; }
.topbar__wa:hover { color: var(--ec-brass); }
.bar { background: var(--ec-paper); border-bottom: 1px solid var(--ec-rule-soft); }
.bar__in { height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.bar__logo img { height: 42px; width: auto; }
.bar__actions { display: flex; align-items: center; gap: 14px; }

.nav { display: flex; align-items: center; gap: 30px; font-size: 10.9px; letter-spacing: .2em; text-transform: uppercase; }
.nav a { color: var(--ec-forest); }
.nav a:hover, .nav a.is-active { color: var(--ec-brass-deep); }
.nav__ev { position: relative; height: 78px; display: flex; align-items: center; }
.nav__ev > a { display: flex; gap: 8px; align-items: center; }
.drop {
  display: none; position: absolute; top: 77px; left: -28px; min-width: 250px;
  background: var(--ec-paper); border-top: 2px solid var(--ec-brass); border-bottom: 1px solid var(--ec-rule);
  padding: 10px 0;
}
.nav__ev:hover .drop, .nav__ev:focus-within .drop { display: block; animation: ecDrop 260ms var(--ease-out); }
.nav__ev.is-closed .drop { display: none; }
.drop a { display: flex; gap: 14px; align-items: baseline; padding: 12px 28px; color: var(--ec-forest); border-bottom: 1px solid var(--ec-rule-soft); }
.drop a:hover { color: var(--ec-brass-deep); }
.drop .n, .mmenu .n { font-size: 9.6px; color: var(--ec-brass-deep); }

.menu-btn {
  display: none; white-space: nowrap; background: transparent; border: 1px solid var(--ec-brass); color: var(--ec-forest);
  font: 400 10.1px/1 var(--font-sans); letter-spacing: .2em; text-transform: uppercase; padding: 14px; cursor: pointer;
}
.mmenu {
  border-top: 1px solid var(--ec-rule-soft); padding: 8px var(--gutter) 24px; animation: ecDrop 260ms var(--ease-out);
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; display: flex; flex-direction: column;
  max-height: calc(100vh - var(--hdr-h)); overflow-y: auto;
}
.mmenu > a { padding: 14px 0; border-bottom: 1px solid var(--ec-rule-soft); color: var(--ec-forest); }
.mmenu > a.mmenu__top { border-top: 1px solid var(--ec-rule-soft); }
.mmenu > a.mmenu__last { border-bottom: 0; }
.mmenu__label { padding: 14px 0 6px; color: var(--ec-brass-deep); }
.mmenu [data-evmenu-mobile] a { display: block; padding: 10px 0 10px 18px; color: var(--ec-ink); }

@media (max-width: 1079px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 520px) {
  .bar__cta { display: none; }
  .topbar__loc { display: none; }
  .topbar__in { justify-content: flex-end; }
}

/* ---------- Media helpers ---------- */
.cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph { position: relative; overflow: hidden; background: var(--ec-sand); }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph--estancia { aspect-ratio: 4 / 3.3; }
.ph--43 { aspect-ratio: 4 / 3; }
.ph--45 { aspect-ratio: 4 / 5; }
.shade { position: absolute; inset: 0; pointer-events: none; }
.shade--hero { background: linear-gradient(90deg, rgba(28,32,22,.78) 0%, rgba(28,32,22,.45) 45%, rgba(28,32,22,.08) 80%); }
@media (max-width: 760px) {
  .shade--hero { background: linear-gradient(0deg, rgba(28,32,22,.82) 0%, rgba(28,32,22,.5) 55%, rgba(28,32,22,.25) 100%); }
}

/* ---------- Tipografía editorial ---------- */
.rule-accent { width: 56px; height: 2px; background: var(--ec-brass); margin-bottom: 22px; }
.eyebrow { font-size: 10.9px; letter-spacing: .2em; text-transform: uppercase; color: var(--ec-brass-deep); }
.eyebrow--brass { color: var(--ec-brass); }
.eyebrow--sm { margin-bottom: 6px; }
.h2 { margin: 14px 0 22px; font-family: var(--font-display); font-weight: 300; font-size: clamp(36px, 4vw, 52px); line-height: 1.08; color: var(--ec-forest); text-wrap: balance; }
.h2--light { color: #fff; margin-bottom: 0; }
.h2--narrow { max-width: 14ch; }
.h2--flush { margin-bottom: 0; }
.h3 { margin: 12px 0 0; font-family: var(--font-display); font-weight: 300; font-size: clamp(28px, 3vw, 41.3px); line-height: 1.1; color: var(--ec-forest); }
.body { margin: 0 0 30px; font-size: 15.3px; line-height: 1.83; max-width: 52ch; }
.body--wide { max-width: 54ch; margin-bottom: 36px; }
.body--tight { margin-bottom: 18px; }
.body--gap { margin-bottom: 40px; max-width: 48ch; }
.body--wide.body--gap { max-width: 54ch; }

/* ---------- Secciones ---------- */
section[id] { scroll-margin-top: var(--hdr-h); }
.sec { padding: clamp(64px, 9vw, 112px) var(--gutter); }
.sec > .wrap { padding-inline: 0; }
.sec--tall { padding-block: clamp(64px, 9vw, 120px); }
.sec--forest { background: var(--ec-forest); color: #fff; }
.sec--band { background: var(--ec-sand); }
.sec__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px; margin-bottom: 44px; }
.sec__head--tight { gap: 20px; margin-bottom: 40px; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(40px, 6vw, 88px); }
.split--center { align-items: center; }
.split--start { align-items: start; }
.split--contact { grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: clamp(40px, 6vw, 96px); }
#estancia { padding-block: clamp(64px, 9vw, 120px); }

/* Hero home */
.hero { position: relative; min-height: max(640px, 100vh); min-height: max(640px, 100svh); display: flex; align-items: flex-end; overflow: hidden; background: var(--ec-forest); }
.hero__in { position: relative; width: 100%; padding-top: 180px; padding-bottom: clamp(56px, 9vh, 96px); color: #fff; }
.hero__eyebrow { font-size: 10.9px; letter-spacing: .28em; text-transform: uppercase; color: var(--ec-mist); margin-bottom: 18px; }
.hero__title { color: #fff; font-family: var(--font-display); font-weight: 300; font-size: clamp(56px, 10vw, 128px); line-height: .95; letter-spacing: .08em; text-transform: uppercase; }
.hero__lead { margin-top: 22px; font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.25; max-width: 520px; }
.hero__rule { width: 64px; height: 1px; background: var(--ec-brass); margin: 30px 0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__loc { position: absolute; right: var(--gutter); bottom: 28px; font-size: 10.1px; letter-spacing: .28em; text-transform: uppercase; color: var(--ec-mist); }
@media (max-width: 760px) { .hero__loc { display: none; } }

/* Portada interna */

/* Historia · archivo (copias en papel) */
.hist__archive {
  grid-column: 1 / -1; width: 100%; max-width: 1180px; margin-inline: auto;
  padding: clamp(48px, 6vw, 88px) clamp(20px, 5vw, 80px) clamp(64px, 9vw, 120px);
  display: grid; grid-template-columns: 1.15fr 1fr 1.1fr; gap: 28px clamp(24px, 4vw, 56px); align-items: start;
}
.hist__archive-k { grid-column: 1 / -1; text-align: center; margin-bottom: 4px; }
.print {
  background: #FBF8F1; padding: 12px 12px 0; border-radius: 4px;
  box-shadow: 0 22px 44px -18px rgba(40, 38, 25, .35), 0 2px 6px rgba(40, 38, 25, .08);
  transition: transform 900ms var(--ease-out), box-shadow 900ms var(--ease-out);
}
.print img { display: block; width: 100%; height: auto; border-radius: 2px; }
.print figcaption { padding: 14px 4px 18px; font-family: var(--font-display); font-style: italic; font-size: 16px; line-height: 1.3; color: var(--ec-forest); }
.print--a { transform: rotate(-1.6deg); }
.print--b { transform: rotate(2deg) translateY(44px); }
.print--c { transform: rotate(-1.2deg) translateY(12px); }
@media (hover: hover) {
  .print:hover { transform: rotate(0) translateY(-4px); box-shadow: 0 30px 56px -20px rgba(40, 38, 25, .4), 0 2px 6px rgba(40, 38, 25, .08); }
}
@media (max-width: 960px) {
  .hist__archive { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .hist__archive { grid-template-columns: 1fr; gap: 36px; }
  .print--a { transform: rotate(-1deg); }
  .print--b { transform: rotate(1.4deg); width: 86%; margin-left: auto; }
  .print--c { transform: rotate(-.8deg); width: 92%; }
}

body:not([data-page="home"]) main { padding-top: var(--hdr-h); }

/* Eventos */
.tabs { display: flex; flex-wrap: wrap; border-bottom: 1px solid rgba(255,255,255,.18); }
.tab {
  white-space: nowrap; background: transparent; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
  color: var(--on-dark-muted); font: 400 10.9px/1 var(--font-sans); letter-spacing: .2em; text-transform: uppercase;
  padding: 16px 22px; cursor: pointer; transition: color var(--t-fast);
}
.tab:hover { color: #fff; }
.tab[aria-selected="true"] { color: #fff; border-bottom-color: var(--ec-brass); }
.ev { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: clamp(36px, 5vw, 72px); align-items: stretch; }
.ev__media { position: relative; min-height: 420px; overflow: hidden; background: rgba(255,255,255,.04); }
.ev__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 600ms var(--ease-out); }
.ev__media img.is-on { opacity: 1; }
.ev__body { display: flex; flex-direction: column; justify-content: center; }
.ev__body.is-anim { animation: ecFade 600ms var(--ease-out); }
.ev__n { font-family: var(--font-display); font-weight: 300; font-size: 20px; color: var(--ec-brass); }
.ev__title { margin: 10px 0 18px; color: #fff; font-family: var(--font-display); font-weight: 300; font-size: clamp(30px, 3vw, 40px); line-height: 1.12; text-wrap: balance; }
.ev__text { margin-bottom: 28px; font-size: 15.3px; line-height: 1.83; color: var(--on-dark-muted); max-width: 52ch; }
.ev__list { border-top: 1px solid var(--ec-brass); padding-top: 18px; margin-bottom: 32px; }
.ev__lt { font-size: 10.1px; letter-spacing: .2em; text-transform: uppercase; color: var(--ec-brass); margin-bottom: 12px; }
.ev__it { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 14px; line-height: 1.5; color: #fff; }
.ev__it::before { content: "·"; color: var(--ec-brass); }
.ev__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.ev__actions .btn { padding-inline: 26px; }
.ev__actions .btn--ghost-light { border-color: rgba(255,255,255,.6); }
.ev__actions .btn--ghost-light:hover { border-color: var(--ec-brass); }

/* Espacios */
.titled { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.titled span { height: 1px; background: var(--ec-rule); }
.titled div { font-size: 13px; letter-spacing: .28em; text-transform: uppercase; color: var(--ec-forest); }
.titled__sub { text-align: center; margin: 12px 0 48px; font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: 20px; }
.spaces { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 28px; }
.space { display: flex; flex-direction: column; gap: 16px; }
.space figcaption { text-align: center; }
.space__name { font-family: var(--font-display); font-weight: 400; font-size: 20px; letter-spacing: .08em; text-transform: uppercase; color: var(--ec-forest); }
.space__text { margin-top: 6px; font-size: 13px; line-height: 1.6; text-wrap: balance; }

/* Galería */
.gal__intro { max-width: 40ch; font-size: 14px; line-height: 1.83; }
.gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); grid-auto-rows: 220px; grid-auto-flow: dense; gap: 14px; }
.gal .ph { height: 100%; }
@media (max-width: 500px) { .gal > * { grid-column: auto !important; } }

/* Galería · fotos colgadas del hilo */
.gal-line { height: clamp(520px, 74svh, 720px); margin-top: calc(-1 * clamp(40px, 7vw, 110px)); }
.pl-root { position: relative; width: 100%; overflow: hidden; color: var(--ec-forest); user-select: none; -webkit-user-select: none; touch-action: pan-y; outline: none; cursor: grab; }
.pl-root[data-drag="1"] { cursor: grabbing; }
.pl-root:focus-visible { box-shadow: inset 0 0 0 2px var(--ec-brass); }
.pl-string { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.pl-string path { stroke: var(--ec-brass-deep); }
.pl-card { position: absolute; left: 0; top: 0; width: var(--pl-cw, 300px); transform-origin: 50% 0; will-change: transform; visibility: hidden; }
.pl-print { margin-top: 10px; background: #FBF8F1; padding: 10px 10px 0; border-radius: 3px; box-shadow: 0 1px 2px rgba(40,38,25,.12), 0 18px 30px -16px rgba(40,38,25,.45); transition: transform .5s cubic-bezier(.2,.7,.2,1), filter .5s ease; }
.pl-card[data-on="0"] .pl-print { transform: scale(.9); filter: saturate(.7) brightness(.96); }
.pl-shot { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--ec-rule); border-radius: 2px; }
.pl-shot img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; pointer-events: none; }
.pl-note { height: 46px; display: flex; align-items: center; justify-content: center; padding: 0 6px; font: italic 400 17px/1.1 var(--font-display); color: var(--ec-black); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-peg { position: absolute; left: 50%; top: 0; width: 10px; height: 26px; margin-left: -5px; border-radius: 2px; background: linear-gradient(90deg, #c9a67a, #e3c9a1 45%, #b8915f); box-shadow: 0 2px 3px rgba(0,0,0,.25); }
.pl-peg::after { content: ""; position: absolute; left: 4px; top: 8px; width: 2px; height: 7px; background: rgba(80,60,30,.45); border-radius: 1px; }
.pl-bar { position: absolute; left: clamp(16px, 4vw, 56px); right: clamp(16px, 4vw, 56px); bottom: clamp(20px, 4vh, 40px); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 18px; text-align: center; cursor: default; }
.pl-cap { flex: 0 0 100%; min-width: 0; overflow: hidden; padding-bottom: .15em; }
.pl-cap > * { display: block; animation: plIn .55s cubic-bezier(.2,.8,.2,1) both; }
.pl-title { font: 400 clamp(20px, 2.4vw, 28px)/1.15 var(--font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-sub { margin-top: 4px; font: 300 13px/1.5 var(--font-sans); color: var(--ec-ink); }
.pl-count { font: 400 11px/1 var(--font-sans); letter-spacing: .2em; color: var(--ec-stone); }
.pl-count b { color: var(--ec-forest); font-weight: 500; }
.pl-btn { appearance: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--ec-rule); background: transparent; color: inherit; display: grid; place-items: center; cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.pl-btn:hover { background: var(--ec-forest); border-color: var(--ec-forest); color: var(--ec-paper); }
.pl-btn:focus-visible { outline: 2px solid var(--ec-brass); outline-offset: 2px; }
.pl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@keyframes plIn { from { transform: translateY(100%); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pl-cap > * { animation: none; } .pl-print { transition: none; } }

/* Historia */
.hist { display: grid; grid-template-columns: 1fr; background: var(--ec-parchment); }
@media (min-width: 900px) { .hist { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); } }
.hist__media { position: relative; min-height: clamp(420px, 70vh, 760px); overflow: hidden; }
.hist__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hist__body { padding: clamp(56px, 7vw, 112px) clamp(20px, 6vw, 112px); display: flex; flex-direction: column; justify-content: center; }
.hist__body .body, .hist__sig { max-width: 54ch; }
.hist__sig { display: flex; align-items: center; gap: 22px; padding-top: 26px; border-top: 1px solid var(--ec-rule); }
.hist__sig img { width: 56px; height: 56px; }
.hist__sig div { font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: 22px; color: var(--ec-brass-deep); }

/* Nosotros */
.principle { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-top: 1px solid var(--ec-rule); }
.principle__n { font-family: var(--font-display); font-weight: 300; font-size: 26.7px; color: var(--ec-brass-deep); line-height: 1; }
.principle__t { font-family: var(--font-display); font-weight: 400; font-size: 22px; color: var(--ec-black); }
.principle__x { margin-top: 6px; font-size: 14px; line-height: 1.75; }

/* Testimonios */
.sec--testi { padding-block: clamp(72px, 10vw, 128px); }
.testi { max-width: 880px; margin: 0 auto; text-align: center; }
.testi__tick { width: 1px; height: 16px; background: var(--ec-brass); margin: 22px auto; }
/* Testimonios en masonry: columnas CSS, cada tarjeta entra subiendo al hacer scroll */
.tgrid { columns: 1; column-gap: 16px; margin-top: 8px; }
@media (min-width: 640px) { .tgrid { columns: 2; } }
@media (min-width: 1024px) { .tgrid { columns: 3; column-gap: 20px; } }
.tcard { position: relative; margin: 0 0 16px; break-inside: avoid; overflow: hidden; border-radius: 16px; background: var(--ec-sand); }
@media (min-width: 1024px) { .tcard { margin-bottom: 20px; } }
.js .tcard[data-reveal] { transform: translateY(20px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.js .tcard[data-reveal].is-in { transform: none; }
.tcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1200ms var(--ease-out); }
.tcard::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to bottom, rgba(42,38,33,.72) 0%, rgba(42,38,33,.28) 45%, rgba(42,38,33,0) 75%); }
.tcard::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px var(--ec-brass); opacity: 0; transition: opacity 700ms var(--ease-out); }
.tcard__cap { position: relative; z-index: 2; padding: 22px 22px 0; color: var(--ec-paper); }
.tcard__by { display: flex; align-items: center; gap: 12px; font-size: 10.9px; letter-spacing: .2em; text-transform: uppercase; }
.tcard__by .dot { color: var(--ec-brass); }
.tcard__av { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255,252,247,.8); font-family: var(--font-display); font-size: 15px; letter-spacing: 0; }
.tcard__q { margin: 14px 0 0; font-family: var(--font-display); font-weight: 300; font-style: italic; font-size: clamp(19px, 1.7vw, 22px); line-height: 1.35; text-wrap: pretty; text-shadow: 0 1px 12px rgba(42,38,33,.35); }
@media (hover: hover) {
  .tcard:hover img { transform: scale(1.05); }
  .tcard:hover::after { opacity: 1; }
}

.greviews { margin-top: clamp(64px, 8vw, 104px); padding-inline: 0; }
.greviews__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; padding-bottom: 28px; border-bottom: 1px solid var(--ec-rule); }
.greviews__meta { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.grating { display: flex; align-items: baseline; gap: 10px; }
.grating__n { font-family: var(--font-display); font-weight: 300; font-size: 56px; line-height: 1; color: var(--ec-forest); }
.grating__l { display: flex; flex-direction: column; gap: 4px; font-size: 10.1px; letter-spacing: .2em; text-transform: uppercase; color: var(--ec-stone); }
.btn-line { white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; padding: 0 24px; border: 1px solid var(--ec-brass); color: var(--ec-forest); font-size: 10.9px; letter-spacing: .2em; text-transform: uppercase; }
.btn-line:hover { border-color: var(--ec-olive-deep); color: var(--ec-forest); }
.link-caps { white-space: nowrap; font-size: 10.9px; letter-spacing: .2em; text-transform: uppercase; }
.greviews__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 0 44px; }
.review { display: flex; flex-direction: column; gap: 16px; padding: 28px 0; border-bottom: 1px solid var(--ec-rule); }
.review__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.review__a { font-family: var(--font-display); font-size: 22px; color: var(--ec-black); }
.review__r { font-size: 10.1px; letter-spacing: .2em; text-transform: uppercase; color: var(--ec-brass-deep); white-space: nowrap; }
.review__t { font-size: 14px; line-height: 1.83; }
.review__d { font-size: 10.1px; letter-spacing: .2em; text-transform: uppercase; color: var(--ec-stone); }
@media (max-width: 1080px) { .greviews { padding-inline: 0; } }

/* Contacto */
.facts { border-top: 1px solid var(--ec-brass); }
.facts > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--ec-rule); }
.facts dt { font-size: 10.1px; letter-spacing: .2em; text-transform: uppercase; color: var(--ec-stone); padding-top: 4px; }
.facts dd { font-family: var(--font-display); font-size: 22px; color: var(--ec-forest); }
.facts dd a { font-size: 24px; color: var(--ec-forest); }
.facts dd a:hover { color: var(--ec-brass-deep); }
@media (max-width: 420px) { .facts > div { grid-template-columns: 100px minmax(0, 1fr); } }

.form { background: var(--ec-parchment); border-top: 2px solid var(--ec-brass); padding: clamp(28px, 4vw, 48px); }
.form__title { font-family: var(--font-display); font-weight: 300; font-size: 26.7px; color: var(--ec-forest); margin-bottom: 28px; }
.form__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 26px 28px; }
.form label { display: flex; flex-direction: column; gap: 8px; }
.form label.full { grid-column: 1 / -1; }
.form label > span { font-size: 10.1px; letter-spacing: .2em; text-transform: uppercase; color: var(--ec-stone); }
.form input, .form select, .form textarea {
  border: 0; border-bottom: 1px solid var(--ec-rule); border-radius: 0; background: transparent;
  padding: 8px 0; font-size: 16px; color: var(--ec-black); outline: none; transition: border-color var(--t-fast);
}
.form textarea { line-height: 1.6; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-bottom-color: var(--ec-brass-deep); }
.form ::placeholder { color: #B5AC9E; }
.form__foot { margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.form__foot span { font-size: 12px; color: var(--ec-stone); max-width: 30ch; line-height: 1.6; }

/* Footer */
.ftr { background: var(--ec-forest); color: var(--on-dark-muted); padding: 64px 0 32px; }
.ftr__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.16); }
.ftr__logo { height: 88px; width: auto; }
.ftr__nav { display: flex; flex-wrap: wrap; gap: 14px 28px; font-size: 10.9px; letter-spacing: .2em; text-transform: uppercase; }
.ftr__nav a, .ftr__bottom a { color: #fff; }
.ftr__nav a:hover, .ftr__bottom a:hover { color: var(--ec-brass); }
.ftr .btn { padding-inline: 26px; }
.ftr__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 24px; font-size: 10.1px; letter-spacing: .2em; text-transform: uppercase; }

/* WhatsApp flotante */
.wafloat {
  position: fixed; right: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 32px); bottom: max(clamp(16px, 3vw, 32px), env(safe-area-inset-bottom)); z-index: 60;
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.22);
  animation: ecFade 600ms 1.2s both; transition: transform var(--t-fast), background-color var(--t-fast);
}
.wafloat:hover { background: #1EBE5A; transform: scale(1.06); }
.wafloat:focus-visible { outline: 2px solid var(--ec-brass); outline-offset: 3px; }

/* ---------- Marcos de foto: bordes, apertura y hover ---------- */
.ph, .ev__media, .hist__media { --r: 16px; border-radius: var(--r); clip-path: inset(0 round var(--r)); }
.gal .ph { --r: 12px; }
.hist__media { --r: 0px; border-radius: 0 0 16px 16px; }
@media (min-width: 900px) { .hist__media { border-radius: 0 16px 16px 0; } }
/* Arcos del casco (Espacios) */
.space .ph { aspect-ratio: 4 / 5; border-radius: 50% 50% 16px 16px / 40% 40% 16px 16px; }
.space .ph::after { opacity: 1; box-shadow: inset 0 0 0 1px var(--ec-rule); transition: box-shadow 700ms var(--ease-out); }
.space .ph:hover::after { box-shadow: inset 0 0 0 1px var(--ec-brass); }

/* Apertura: la foto se abre como una ventana al entrar en pantalla */
.js .ph[data-frame], .js .ev__media[data-frame], .js .hist__media[data-frame] {
  clip-path: inset(7% 7% round var(--r));
  transition: clip-path 1200ms var(--ease-out);
}
.js [data-frame] img { transform: scale(1.14); transition: transform 1600ms var(--ease-out), opacity 600ms var(--ease-out); }
.js [data-frame].is-open { clip-path: inset(0 round var(--r)); }
.js [data-frame].is-open img { transform: scale(1); }

/* Hover: zoom lento + filete dorado */
.ph::after, .ev__media::after, .hist__media::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px var(--ec-brass); opacity: 0; transition: opacity 700ms var(--ease-out);
}
@media (hover: hover) {
  .ph:hover::after, .ev__media:hover::after, .hist__media:hover::after { opacity: 1; }
  .js [data-frame].is-open:hover img { transform: scale(1.04); }
}

/* Reveal al scroll */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 1000ms var(--ease-out), transform 1000ms var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
.hero__img { object-position: 55% 60%; }
.facts dd.facts__social a { font-size: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--ec-rule); }

/* Accesibilidad: texto solo para lectores de pantalla y buscadores */
.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; }

/* Formulario: aviso legal y error */
.form__legal { margin-top: 18px; font-size: 12px; line-height: 1.6; color: var(--ec-stone); }
.form__legal a { color: var(--ec-forest); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--ec-rule); }
.form input[aria-invalid="true"] { border-bottom-color: #A4462F; }
.form label:has(input[aria-invalid="true"]) span::after { content: " · contanos tu nombre"; color: #A4462F; text-transform: none; letter-spacing: 0; }

/* Reseñas: estrellas */
.review__r { font-size: 15px; letter-spacing: 3px; }

/* Páginas legales y 404 */
.legal__in { max-width: 760px; }
.legal .h3 { margin: 40px 0 12px; font-family: var(--font-display); font-weight: 400; font-size: 26px; color: var(--ec-forest); }
.legal .body { margin-bottom: 0; }
.legal a { color: var(--ec-forest); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--ec-rule); }
.legal__aaip { margin-top: 16px; font-size: 12px; }
.legal__fecha { margin-top: 40px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ec-stone); }
.legal__acciones { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.ftr__bottom span a { color: inherit; }

/* Calificación de Google en el hero */
.hero__rating { display: inline-block; margin-top: 22px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ec-mist); border-bottom: 1px solid rgba(255,255,255,.35); padding-bottom: 4px; transition: color .2s ease, border-color .2s ease; }
.hero__rating span { color: #E9B521; letter-spacing: 0; }
.hero__rating:hover { color: #fff; border-bottom-color: var(--ec-brass); }
.facts__social span[aria-hidden] { color: #C99A1A; }
.sec--testi .greviews { margin-top: 0; }

/* ---------- Testimonios: título palabra por palabra + marquesina ---------- */
.testi-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding-bottom: clamp(36px, 5vw, 56px); }
.testi-head__title { margin-bottom: 8px; }
.testi-head__sub { max-width: 46ch; font-size: 15px; line-height: 1.7; color: var(--ec-ink); }
.testi-head__links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 28px; margin-top: 24px; }

[data-words] .w { display: inline-block; }
.js [data-words] .w { opacity: 0; filter: blur(6px); transform: translateY(12px); transition: opacity .4s ease-in-out, filter .4s ease-in-out, transform .4s ease-in-out; }
.js [data-words].is-in .w { opacity: 1; filter: none; transform: none; }

.marquee { --gap: 20px; display: flex; flex-direction: column; gap: var(--gap); }
.marquee__row { display: flex; gap: var(--gap); overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; flex-shrink: 0; min-width: 100%; justify-content: space-around; gap: var(--gap); animation: canopy-x 60s linear infinite; }
.marquee__row--rev .marquee__track { animation-direction: reverse; animation-duration: 70s; }
.marquee__row:hover .marquee__track { animation-play-state: paused; }
@keyframes canopy-x { from { transform: translateX(0); } to { transform: translateX(calc(-100% - var(--gap))); } }

.tq { flex: none; width: min(78vw, 360px); margin: 0; padding: 24px 26px 26px; background: var(--ec-paper); border: 1px solid var(--ec-rule-soft); border-radius: 16px; box-shadow: 0 14px 30px -22px rgba(40, 38, 25, .35); transition: border-color .4s ease, transform .4s ease; }
.tq:hover { border-color: var(--ec-brass); transform: translateY(-3px); }
.tq__top { display: flex; align-items: center; gap: 12px; }
.tq__av { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--ec-forest); color: var(--ec-paper); font: 400 18px/1 var(--font-display); }
.tq__who { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.tq__name { font: 400 19px/1.1 var(--font-display); color: var(--ec-black); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tq__via { font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ec-stone); }
.tq__stars { flex: none; font-size: 13px; letter-spacing: 2px; color: #C99A1A; }
.tq__text { margin: 18px 0 0; font: italic 300 19px/1.4 var(--font-display); color: var(--ec-forest); text-wrap: pretty; }

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .marquee__track[aria-hidden] { display: none; }
  .marquee__row { overflow-x: auto; -webkit-mask-image: none; mask-image: none; padding-inline: 20px; }
}
.sec--testi { overflow-x: clip; }
.sec--testi .marquee { width: 100vw; margin-left: calc(50% - 50vw); }

/* Contacto: cómo llegar */
.facts dd a.facts__map { display: inline-block; margin-top: 6px; font-family: var(--font-sans); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ec-brass-deep); }
.facts dd a.facts__map:hover { color: var(--ec-forest); }

/* Preguntas frecuentes */
.faq { padding-top: 0; }
.faq__in { display: grid; grid-template-columns: 1fr; gap: 28px 64px; }
@media (min-width: 960px) { .faq__in { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; } .faq__head { position: sticky; top: calc(var(--hdr-h) + 24px); } .faq__cta { grid-column: 2; } }
.faq__list { border-top: 1px solid var(--ec-rule); }
.faq__item { border-bottom: 1px solid var(--ec-rule); }
.faq__q { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; cursor: pointer; list-style: none; font: 400 clamp(19px, 1.8vw, 22px)/1.3 var(--font-display); color: var(--ec-forest); }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: "+"; flex: none; font: 300 24px/1 var(--font-sans); color: var(--ec-brass-deep); transition: transform .3s var(--ease-out); }
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__q:hover { color: var(--ec-brass-deep); }
.faq__q:focus-visible { outline: 2px solid var(--ec-brass); outline-offset: 4px; }
.faq__a { margin: 0; padding: 0 40px 24px 0; font-size: 14px; line-height: 1.8; color: var(--ec-ink); }
.faq__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.faq__cta span { font: italic 300 22px/1.2 var(--font-display); color: var(--ec-forest); }
.h2--wide { max-width: 24ch; }

/* ---------- Mobile compacto: menos alto, letra y fotos a escala de teléfono ---------- */
@media (max-width: 760px) {
  :root { --gutter: 18px; --hdr-h: 88px; }
  .topbar__in { height: 30px; }
  .bar__in { height: 58px; }
  .bar__logo img { height: 32px; }
  .menu-btn { padding: 10px 12px; }
  .nav__ev { height: 58px; }

  /* Hero: entra el título, el texto y los dos botones sin scrollear */
  .hero { min-height: 82svh; min-height: max(560px, 82svh); }
  .hero__in { padding-top: 120px; padding-bottom: 40px; }
  .hero__eyebrow { font-size: 9.5px; letter-spacing: .22em; margin-bottom: 12px; }
  .hero__title { font-size: clamp(40px, 12vw, 52px); letter-spacing: .06em; }
  .hero__lead { margin-top: 14px; font-size: 18px; max-width: 30ch; }
  .hero__rule { margin: 20px 0; width: 48px; }
  .hero__actions { gap: 10px; }
  .hero__actions .btn { flex: 1 1 100%; padding: 14px 18px; }
  .hero__rating { margin-top: 16px; font-size: 10px; }

  /* Tipografía */
  .h2 { font-size: clamp(28px, 8vw, 32px); margin: 10px 0 16px; }
  .h3 { font-size: 24px; }
  .body, .ev__text { font-size: 14.5px; line-height: 1.7; margin-bottom: 22px; }
  .body--wide, .body--gap { margin-bottom: 26px; }
  .rule-accent { margin-bottom: 16px; width: 44px; }
  .btn { padding: 14px 20px; }

  /* Secciones más juntas */
  .sec, .sec--tall, #estancia, .sec--testi { padding-block: 52px; }
  .sec__head, .sec__head--tight { gap: 16px; margin-bottom: 28px; }
  .split, .split--contact { gap: 28px; }
  .ph--estancia { aspect-ratio: 16 / 10; }

  /* Eventos */
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { padding: 12px 12px; font-size: 9.5px; letter-spacing: .16em; }
  .ev { gap: 24px; }
  .ev__media { min-height: 0; aspect-ratio: 4 / 3; }
  .ev__title { font-size: 26px; margin: 6px 0 12px; }
  .ev__list { margin-bottom: 24px; padding-top: 12px; }
  .ev__it { padding: 7px 0; font-size: 13.5px; }
  .ev__actions .btn { flex: 1 1 100%; }

  /* Espacios: carrusel que se desliza en vez de tres fotos gigantes apiladas */
  .titled__sub { margin: 8px 0 24px; font-size: 17px; }
  .spaces {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 6px; scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .spaces::-webkit-scrollbar { display: none; }
  .space { flex: 0 0 68%; scroll-snap-align: start; gap: 12px; }
  .space__name { font-size: 16px; }
  .space__text { font-size: 12.5px; }

  /* Historia */
  .hist__media { min-height: 0; aspect-ratio: 4 / 3; }
  .hist__body { padding: 40px var(--gutter); }
  .hist__sig { gap: 14px; padding-top: 18px; }
  .hist__sig img { width: 42px; height: 42px; }
  .hist__sig div { font-size: 18px; }
  .hist__archive { gap: 18px; padding: 8px var(--gutter) 52px; }
  .print { padding: 8px 8px 0; }
  .print figcaption { font-size: 14px; padding: 10px 2px 12px; }
  .print--a { width: 82%; }
  .print--b { width: 74%; }
  .print--c { width: 78%; }

  /* Galería del hilo */
  .gal-line { height: 400px; margin-top: -24px; }
  .gal { grid-auto-rows: 160px; gap: 10px; }

  /* Nosotros y FAQ */
  .principle { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 16px 0; }
  .principle__n { font-size: 22px; }
  .principle__t { font-size: 19px; }
  .principle__x { font-size: 13.5px; }
  .faq__q { padding: 16px 0; font-size: 18px; }
  .faq__a { padding-right: 0; font-size: 13.5px; }
  .faq__cta span { font-size: 19px; }

  /* Reseñas */
  .testi-head { padding-bottom: 28px; }
  .testi-head__sub { font-size: 14px; }
  .marquee { --gap: 12px; }
  .tq { width: min(76vw, 290px); padding: 18px 18px 20px; }
  .tq__av { width: 34px; height: 34px; font-size: 16px; }
  .tq__name { font-size: 17px; }
  .tq__text { margin-top: 12px; font-size: 16.5px; }
  .tcard__q { font-size: 17px; }
  .grating__n { font-size: 44px; }
  .review { padding: 20px 0; gap: 10px; }
  .review__a { font-size: 19px; }
  .review__t { font-size: 13.5px; }

  /* Contacto */
  .facts > div { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 14px 0; }
  .facts dd, .facts dd a { font-size: 18px; }
  .form { padding: 24px 18px; }
  .form__title { font-size: 22px; margin-bottom: 20px; }
  .form__grid { gap: 20px; }

  /* Footer y WhatsApp */
  .ftr { padding: 44px 0 24px; }
  .ftr__top { gap: 24px; padding-bottom: 28px; }
  .ftr__logo { height: 60px; }
  .ftr__nav { gap: 12px 20px; font-size: 10px; }
  .ftr__bottom { font-size: 9.5px; gap: 10px; }
  .wafloat { width: 50px; height: 50px; }
  .wafloat svg { width: 24px; height: 24px; }
}

/* Contraste AA en etiquetas chicas (≥ 4,5:1) y antispam */
.eyebrow { color: #7E5E2B; }
.eyebrow--brass, .ev__lt { color: #CDB083; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
