/* Maik Homes — sistema de diseño. Lujo tranquilo: tamaño + aire, nunca negrita. */

@font-face { font-family: 'Inter'; font-weight: 300; font-display: swap; src: url('/assets/fonts/inter-300.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url('/assets/fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-display: swap; src: url('/assets/fonts/inter-500.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url('/assets/fonts/inter-600.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-display: swap; src: url('/assets/fonts/inter-700.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-weight: 300 600; font-display: swap; src: url('/assets/fonts/fraunces-var.woff2') format('woff2'); }

:root {
  --accent: #0d3b47;        /* petróleo noche — único acento de acción/ahorro */
  --accent-dark: #082830;
  --accent-soft: #eef3f4;
  --brass: #a5875a;         /* latón — solo numerales, eyebrows, reglas. Jamás fondos */
  --ink: #1a1a18;
  --ink-2: #5c5851;
  --ink-3: #6f695e;
  --line: #e4ddcf;
  --paper: #faf7f2;         /* fondo papel cálido */
  --paper-2: #f1ece2;
  --night: #08191f;
  --error: #b91c1c;
  --ok: #2f6b43;
  --warn: #8a5a2b;
  --radius: 2px;
  --radius-lg: 2px;
  --container: 1200px;
  --pad: 24px;
  --ease: cubic-bezier(.22,1,.36,1);
}
@media (min-width: 768px)  { :root { --pad: 48px; } }
@media (min-width: 1280px) { :root { --pad: 64px; } }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400; font-size: 17px; line-height: 1.65;
  color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--paper); }

.container { max-width: var(--container); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* Tipografía display: Fraunces (voz) para titulares, Inter (servicio) para el resto */
h1, .h1 { font-family: 'Fraunces', Georgia, serif; font-size: clamp(48px, 8vw, 104px); font-weight: 400; line-height: 1.03; letter-spacing: -0.02em; font-variation-settings: 'opsz' 72; }
h2, .h2 { font-family: 'Fraunces', Georgia, serif; font-size: clamp(34px, 5vw, 62px); font-weight: 400; line-height: 1.08; letter-spacing: -0.015em; }
h3, .h3 { font-family: 'Fraunces', Georgia, serif; font-size: clamp(26px, 3vw, 36px); font-weight: 400; line-height: 1.15; }
.lead    { font-size: clamp(18px, 2vw, 21px); color: var(--ink-2); font-weight: 300; }
.small   { font-size: 13px; color: var(--ink-3); }
.eyebrow { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--brass); font-weight: 500; }
.num, .price b, .rate b, .book-box .from b, .total-line b { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum'; }

/* Botones: 48px, MAYÚSCULAS espaciadas, transición suave */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; min-width: 200px; padding: 0 28px;
  font-family: inherit; font-size: 11px; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase;
  border: 1px solid var(--ink); background: transparent; color: var(--ink);
  border-radius: 0; cursor: pointer; transition: all .3s ease;
}
.btn:hover { background: var(--ink); color: #fff; }
.btn-solid { background: var(--ink); color: #fff; }
.btn-solid:hover { background: var(--accent); border-color: var(--accent); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-ghost { border-color: #fff; color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { font-size: 22px; font-weight: 600; letter-spacing: -0.5px; }
.logo span { color: var(--accent); }
.nav { display: flex; gap: 32px; align-items: center; }
.nav a:not(.btn) { font-size: 14px; color: var(--ink-2); transition: color .2s; }
.nav a:not(.btn):hover { color: var(--ink); }
.nav .nav-cta { color: var(--accent); font-weight: 500; }
@media (max-width: 767px) { .nav a:not(.nav-cta) { display: none; } }

/* Hero */
.hero { position: relative; min-height: 78vh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero .bg { position: absolute; inset: 0; object-fit: cover; width: 100%; height: 100%; object-position: 72% 62%; filter: brightness(.97) contrast(1.03) saturate(1.03); }
/* Scrim de tres capas (panel experto): luz lateral izq + vertical doble-parada + tinte plano.
   pointer-events:none → el buscador/calendario que cuelga siguen recibiendo clicks. */
.hero .veil {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8,25,31,.42) 0%, rgba(8,25,31,.20) 38%, rgba(8,25,31,.03) 70%, rgba(8,25,31,0) 100%),
    linear-gradient(180deg, rgba(8,25,31,.44) 0%, rgba(8,25,31,.26) 20%, rgba(8,25,31,.10) 46%, rgba(8,25,31,.40) 74%, rgba(8,25,31,.82) 100%),
    linear-gradient(rgba(8,25,31,.06), rgba(8,25,31,.06));
}
.hero .veil::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 85% at 12% 96%, rgba(8,25,31,.42) 0%, rgba(8,25,31,.18) 40%, rgba(8,25,31,0) 72%); }
.hero .inner { position: relative; width: 100%; padding-bottom: 80px; }
.hero h1 { max-width: 900px; text-shadow: 0 1px 2px rgba(8,25,31,.35), 0 2px 24px rgba(8,25,31,.30); }
.hero .lead { color: rgba(255,255,255,.94); margin-top: 16px; max-width: 560px; text-shadow: 0 1px 2px rgba(8,25,31,.45), 0 1px 14px rgba(8,25,31,.30); }
.hero .eyebrow { color: rgba(255,255,255,.82); text-shadow: 0 1px 2px rgba(8,25,31,.45); }

/* Cards de apartamento */
.grid-props { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 28px; }
.card {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--paper); transition: box-shadow .3s ease, transform .3s ease;
}
.card:hover { box-shadow: 0 12px 40px rgba(0,0,0,.10); transform: translateY(-2px); }
.card .ph { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--paper-2); }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .ph img { transform: scale(1.03); }
.card .body { padding: 20px; }
.card .name { font-size: 19px; font-weight: 500; }
.card .meta { font-size: 13px; color: var(--ink-3); margin-top: 4px; }
.card .price { margin-top: 14px; display: flex; align-items: baseline; gap: 6px; }
.card .price b { font-size: 20px; font-weight: 600; }
.card .price span { font-size: 13px; color: var(--ink-3); }
.badge {
  position: absolute; top: 14px; left: 14px;
  background: rgba(255,255,255,.94); color: var(--ink);
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600;
  padding: 6px 12px; border-radius: 999px;
}

/* Chips de amenities */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px;
}

/* Secciones */
.section { padding: 96px 0; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head .lead { margin-top: 12px; }
.section-alt { background: var(--paper-2); }

/* Franja de valor (la experiencia Maik) */
.value-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 40px; }
.value-item .icon { font-size: 26px; margin-bottom: 14px; }
.value-item h4 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.value-item p { font-size: 14px; color: var(--ink-2); }

/* Banner membresía */
.member-band { background: var(--accent); color: #fff; }
.member-band .inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 56px 0; }
.member-band h3 { color: #fff; max-width: 560px; }
.member-band p { color: rgba(255,255,255,.8); margin-top: 8px; font-size: 15px; }

/* Ficha: galería mosaico */
.mosaic { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 240px 240px; gap: 8px; border-radius: var(--radius-lg); overflow: hidden; }
.mosaic a { display: block; overflow: hidden; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.mosaic a:hover img { transform: scale(1.04); }
.mosaic a:first-child { grid-row: span 2; }
@media (max-width: 767px) { .mosaic { grid-template-columns: 1fr; grid-template-rows: 280px; } .mosaic a:not(:first-child) { display: none; } }

.ficha-grid { display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 1024px) { .ficha-grid { grid-template-columns: 1.6fr 1fr; align-items: start; } }
.book-box {
  position: sticky; top: 96px;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: 0 8px 32px rgba(0,0,0,.06);
}
.book-box .from { display: flex; align-items: baseline; gap: 8px; margin-bottom: 18px; }
.book-box .from b { font-size: 28px; font-weight: 600; }
.book-box .fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.book-box input, .book-box select {
  height: 48px; padding: 0 14px; font-family: inherit; font-size: 14px;
  border: 1px solid var(--line); border-radius: 10px; width: 100%;
}
.licencia { font-size: 12px; color: var(--ink-3); margin-top: 14px; }

/* Footer */
.site-footer { background: #101010; color: #bdbdbd; margin-top: 96px; }
.site-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 40px; padding: 72px 0 48px; }
.site-footer h5 { color: #fff; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; font-weight: 600; margin-bottom: 16px; }
.site-footer a { display: block; font-size: 14px; color: #bdbdbd; margin-bottom: 10px; transition: color .2s; }
.site-footer a:hover { color: #fff; }
.site-footer .legal { border-top: 1px solid #2a2a2a; padding: 24px 0; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; font-size: 12px; color: #8a8a8a; }
.site-footer .legal a { display: inline; font-size: 12px; color: #8a8a8a; margin: 0 0 0 16px; }
.site-footer .legal a:hover { color: #fff; }

/* Utilidades */
.mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mt-6 { margin-top: 48px; }
.center { text-align: center; }
.muted { color: var(--ink-2); }
.prose { max-width: 720px; }
.prose p { margin-bottom: 1em; }

/* Buscador hero — 2 pestañas como limehome */
.search-widget {
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
  max-width: 860px; margin-top: 36px; overflow: hidden;
}
.search-tabs { display: flex; border-bottom: 1px solid var(--line); }
.search-tabs button {
  flex: 1; height: 52px; font-family: inherit; font-size: 12px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase; color: var(--ink-3);
  background: var(--paper-2); border: 0; cursor: pointer; transition: all .2s;
}
.search-tabs button.on { background: #fff; color: var(--ink); }
.search-body { padding: 18px; }
.search-row { display: grid; grid-template-columns: 1fr 1fr 140px 200px; gap: 10px; align-items: end; }
@media (max-width: 860px) { .search-row { grid-template-columns: 1fr 1fr; } .search-row .btn { grid-column: span 2; } }
.search-row label { display: block; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; font-weight: 600; }
.search-row input, .search-row select {
  width: 100%; height: 48px; padding: 0 12px; font-family: inherit; font-size: 15px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
.search-row .btn { min-width: 0; width: 100%; }
.search-pane { display: none; }
.search-pane.on { display: block; }
.hero .search-note { color: rgba(255,255,255,.7); font-size: 12px; margin-top: 12px; }

/* Barra de fechas activas en resultados */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 18px; margin-bottom: 32px; font-size: 14px;
}
.filter-bar b { font-weight: 600; }
.filter-bar a { color: var(--accent); font-weight: 500; }
.card .total { font-size: 13px; color: var(--ink-3); }

/* ===== v2: más nivel ===== */
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.hero-badges span {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.12); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.25); border-radius: 999px;
  color: #fff; font-size: 12.5px; padding: 7px 14px; letter-spacing: .3px;
}

.card .ph .price-pill {
  position: absolute; right: 12px; bottom: 12px;
  background: rgba(16,16,16,.82); backdrop-filter: blur(6px); color: #fff;
  font-size: 13px; font-weight: 500; padding: 7px 12px; border-radius: 999px;
}
.card .ph .price-pill b { font-weight: 700; }

/* Banda fotográfica editorial */
.photo-band { position: relative; min-height: 480px; display: flex; align-items: center; color: #fff; overflow: hidden; }
.photo-band img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-band .veil { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,12,16,.62), rgba(8,12,16,.10)); }
.photo-band .inner { position: relative; }
.photo-band h2 { color: #fff; max-width: 640px; }
.photo-band p { color: rgba(255,255,255,.82); max-width: 480px; margin-top: 14px; }

/* Cómo funciona */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 40px; counter-reset: paso; }
.step .num { font-size: 56px; font-weight: 300; color: var(--line); line-height: 1; }
.step h4 { font-size: 17px; font-weight: 600; margin: 14px 0 6px; }
.step p { font-size: 14px; color: var(--ink-2); }

/* Edificios */
.buildings { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 24px; }
.building-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5; display: block; }
.building-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.building-card:hover img { transform: scale(1.04); }
.building-card .veil { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(8,12,16,.72)); }
.building-card .label { position: absolute; left: 22px; right: 22px; bottom: 20px; color: #fff; }
.building-card .label b { display: block; font-size: 22px; font-weight: 500; }
.building-card .label span { font-size: 13px; color: rgba(255,255,255,.75); }

/* Reveal sutil al hacer scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ===== v3: dirección de expertos ===== */
.logo { font-family: 'Fraunces', Georgia, serif; font-weight: 400; letter-spacing: -0.01em; }
.logo span { color: inherit; }
.site-header { background: rgba(250,247,242,.94); }
.nav a:not(.btn), .site-footer a { background: linear-gradient(currentColor,currentColor) 0 100%/0 1px no-repeat; transition: background-size .45s var(--ease); }
.nav a:not(.btn):hover, .site-footer a:hover { background-size: 100% 1px; }
.nav .nav-cta { border: 1px solid currentColor; height: 40px; padding: 0 20px; display: inline-flex; align-items: center; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.nav .nav-cta:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Hero facts (sustituye a hero-badges) */
.hero-facts { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.80); margin-top: 18px; text-shadow: 0 1px 2px rgba(8,25,31,.45); }

/* Rate pill en cards (sustituye price-pill) */
.card .ph .rate { position: absolute; right: 12px; bottom: 12px; background: rgba(8,25,31,.82); backdrop-filter: blur(6px); color: #fff; font-size: 13px; padding: 6px 11px; }
.card .ph .rate b { font-weight: 600; }

/* Menú móvil */
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.burger span { width: 24px; height: 1.5px; background: var(--ink); transition: all .3s var(--ease); }
.mobile-menu { position: fixed; inset: 0; z-index: 60; background: var(--paper); display: none; flex-direction: column; padding: 88px var(--pad) var(--pad); }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-family: 'Fraunces', Georgia, serif; font-size: 34px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mobile-menu .close { position: absolute; top: 24px; right: 20px; width: 44px; height: 44px; border: 0; background: none; font-size: 28px; cursor: pointer; }
@media (max-width: 767px) { .burger { display: flex; } .nav { display: none; } }

/* Book-bar sticky móvil (ficha) */
.book-bar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--paper); border-top: 1px solid var(--line); box-shadow: var(--shadow-bar, 0 -8px 24px rgba(8,25,31,.08)); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); align-items: center; justify-content: space-between; gap: 12px; }
.book-bar .bb-price { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.book-bar .bb-price small { display: block; font-size: 11px; color: var(--ink-3); font-weight: 400; }
.book-bar .btn { min-width: 0; flex: 1; max-width: 220px; }
@media (max-width: 1023px) { .book-bar { display: flex; } .book-box { position: static; } }

/* Inputs 16px (anti-zoom iOS) */
.search-row input, .search-row select, .book-box input, .book-box select { font-size: 16px; }

/* Botones: micro-refinado */
.btn-ghost { border-color: rgba(255,255,255,.9); }

/* ===== search dropdown ===== */
/* El calendario cuelga por debajo del widget: liberar los overflow que lo recortarían */
.hero, .search-widget { overflow: visible; }
.sw-form { position: relative; } /* ancla del dropdown de fechas */
.sw-field { position: relative; }

/* Campo-botón con la misma piel que los inputs del widget */
.sw-input {
  width: 100%; height: 48px; padding: 0 12px; text-align: left;
  font-family: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  cursor: pointer; overflow: hidden;
  transition: border-color .25s var(--ease);
}
.sw-input:hover { border-color: var(--ink-3); }
.sw-input[aria-expanded="true"] { border-color: var(--accent); }
.sw-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sw-val { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.sw-val.is-empty { color: var(--ink-3); }

/* Calendario — dropdown anclado bajo la fila de campos */
.sw-cal {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 70;
  width: 680px; max-width: calc(100vw - 2 * var(--pad));
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 24px 48px rgba(8, 25, 31, .16);
  padding: 20px;
  color: var(--ink); font-size: 15px; line-height: 1.4; text-align: left;
}
.sw-cal-top, .sw-cal-foot { display: none; }
.sw-cal-note { margin: 0 0 12px; font-size: 13px; color: var(--error); }
.sw-cal-body { position: relative; }
.sw-months { display: grid; grid-template-columns: 1fr 1fr; }
.sw-month { padding: 0 16px; min-width: 0; }
.sw-month + .sw-month { border-left: 1px solid var(--line); }
.sw-month-name { font-family: 'Fraunces', Georgia, serif; font-size: 18px; text-align: center; line-height: 34px; }
.sw-dow { display: grid; grid-template-columns: repeat(7, 1fr); margin: 12px 0 4px; text-align: center; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.sw-days { display: grid; grid-template-columns: repeat(7, 1fr); }
.sw-day {
  position: relative; height: 40px; border: 0; background: none; border-radius: var(--radius);
  font-family: inherit; font-size: 14px; color: var(--ink);
  font-variant-numeric: tabular-nums; font-feature-settings: 'tnum';
  cursor: pointer; transition: background-color .25s var(--ease), color .25s var(--ease);
}
.sw-day:hover:not(:disabled) { background: var(--accent); color: #fff; }
.sw-day:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.sw-day:disabled { color: var(--ink-3); opacity: .35; cursor: default; }
.sw-day.is-mid { background: var(--accent-soft); border-radius: 0; }
.sw-day.is-in, .sw-day.is-out { background: var(--accent); color: #fff; border-radius: var(--radius); }
.sw-day.is-today::after { content: ''; position: absolute; left: 50%; bottom: 5px; width: 3px; height: 3px; border-radius: 50%; background: var(--brass); transform: translateX(-50%); }
.sw-day.is-today.is-in::after, .sw-day.is-today.is-out::after, .sw-day.is-today:hover:not(:disabled)::after { background: #fff; }

/* Flechas de mes */
.sw-nav {
  position: absolute; top: 0; z-index: 1; width: 34px; height: 34px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  cursor: pointer; transition: border-color .25s var(--ease);
}
.sw-nav-prev { left: 0; }
.sw-nav-next { right: 0; }
.sw-nav::before { content: ''; position: absolute; top: 50%; left: 50%; width: 7px; height: 7px; border-left: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
.sw-nav-prev::before { transform: translate(-30%, -50%) rotate(45deg); }
.sw-nav-next::before { transform: translate(-70%, -50%) rotate(-135deg); }
.sw-nav:hover:not(:disabled) { border-color: var(--ink); }
.sw-nav:disabled { opacity: .3; cursor: default; }

/* Popover de huéspedes */
.sw-pop {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 70;
  width: 100%; min-width: 270px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 24px 48px rgba(8, 25, 31, .16);
  padding: 16px;
  color: var(--ink); line-height: 1.4; text-align: left;
}
.sw-step-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sw-step-name { font-size: 14px; }
.sw-stepper { display: flex; align-items: center; }
.sw-step {
  width: 32px; height: 32px; border: 1px solid var(--ink); border-radius: var(--radius);
  background: none; color: var(--ink); font-family: inherit; font-size: 16px; line-height: 1;
  cursor: pointer; transition: background-color .25s var(--ease), color .25s var(--ease), opacity .25s var(--ease);
}
.sw-step:hover:not(:disabled) { background: var(--ink); color: #fff; }
.sw-step:disabled { opacity: .3; cursor: default; }
.sw-step-n { min-width: 40px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Móvil: el dropdown pasa a sheet casi a pantalla completa */
html.sw-lock, html.sw-lock body { overflow: hidden; }
@media (max-width: 767px) {
  .sw-row .sw-field:nth-child(3) { grid-column: span 2; }
  .sw-backdrop { position: fixed; inset: 0; z-index: 79; background: rgba(8, 25, 31, .45); }
  .sw-cal {
    position: fixed; left: 0; right: 0; bottom: 0; top: 6vh; z-index: 80;
    width: auto; max-width: none; padding: 0;
    display: flex; flex-direction: column;
    border: 0; border-top: 1px solid var(--line);
    box-shadow: 0 -24px 48px rgba(8, 25, 31, .16);
  }
  .sw-cal[hidden] { display: none; }
  .sw-cal-top { display: flex; align-items: center; justify-content: center; position: relative; padding: 16px; border-bottom: 1px solid var(--line); }
  .sw-cal-title { font-size: 15px; font-weight: 600; }
  .sw-cal-x { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; background: none; font-size: 26px; line-height: 1; color: var(--ink); cursor: pointer; }
  .sw-cal-note { padding: 12px 16px 0; }
  .sw-cal-body { flex: 1; overflow-y: auto; padding: 16px; }
  .sw-months { grid-template-columns: 1fr; }
  .sw-month { padding: 0; }
  .sw-day { height: 44px; }
  .sw-cal-foot { display: block; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
  .sw-done { width: 100%; min-width: 0; }
}

/* ===== search widget en book-box (columna estrecha): calendario 1 mes, ancho contenido ===== */
.book-box .sw-form .sw-row { grid-template-columns: 1fr 1fr; gap: 8px; }
.book-box .sw-form .sw-submit { grid-column: span 2; margin-top: 8px; }
.book-box .sw-field:nth-child(3) { grid-column: span 2; }
.book-box .sw-cal { left: 0; right: 0; width: 100%; }
.book-box .sw-months { grid-template-columns: 1fr; }
.book-box .sw-month + .sw-month { display: none; }

/* ===== lightbox de galería ===== */
.mosaic a { position: relative; }
.mosaic-more { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(8,25,31,.55); color: #fff; font-size: 14px; letter-spacing: .06em; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8,25,31,.94); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; } /* el display:flex de arriba pisaría el atributo hidden */
.lightbox .lb-img { max-width: 92vw; max-height: 86vh; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; opacity: .85; transition: opacity .2s; }
.lightbox button:hover { opacity: 1; }
.lb-x { top: 20px; right: 24px; font-size: 40px; line-height: 1; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); font-size: 56px; padding: 0 20px; }
.lb-prev { left: 8px; } .lb-next { right: 8px; }
.lb-count { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.8); font-size: 13px; font-variant-numeric: tabular-nums; }
@media (max-width: 767px) { .lb-prev, .lb-next { font-size: 40px; padding: 0 10px; } }

/* ===== hero legibilidad móvil (receta expertos) ===== */
@media (max-width: 767px) {
  .hero { min-height: 82vh; }
  .hero .bg { object-position: 62% 60%; filter: brightness(.86) contrast(1.05) saturate(1.02); }
  .hero .veil { background: linear-gradient(180deg, rgba(8,25,31,.64) 0%, rgba(8,25,31,.44) 22%, rgba(8,25,31,.30) 48%, rgba(8,25,31,.62) 74%, rgba(8,25,31,.96) 100%), linear-gradient(rgba(8,25,31,.16), rgba(8,25,31,.16)); }
  .hero .inner { padding-bottom: 48px; }
  .hero h1 { font-size: clamp(34px, 9vw, 46px); line-height: 1.05; text-shadow: 0 1px 2px rgba(8,25,31,.45), 0 2px 20px rgba(8,25,31,.35); }
  .hero .lead { font-size: 16px; color: rgba(255,255,255,.96); }
  .hero-facts { font-size: 11px; }
}

/* ===== announcement bar + alta miembro + selector idioma (receta expertos) ===== */
.topbar { background: var(--accent); color: #fff; text-align: center; font-size: 13px; padding: 9px 16px; letter-spacing: .3px; }
.topbar .eyebrow { color: #fff; margin-right: 6px; }
.topbar a { color: #fff; text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
.topbar a:hover { opacity: .85; }
.nav-btn { height: 38px; min-width: 0; padding: 0 18px; font-size: 10px; letter-spacing: 2px; }

.lang-switch { position: relative; display: inline-flex; }
.lang-trigger { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px; border: 1px solid transparent; border-radius: 6px; background: none; cursor: pointer; font-size: 12px; letter-spacing: .08em; color: var(--ink-2); transition: color .2s, border-color .2s; }
.lang-trigger:hover { color: var(--ink); }
.lang-switch.open .lang-trigger { border-color: var(--line); color: var(--ink); }
.lang-code { font-weight: 500; text-transform: uppercase; }
.lang-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 70; display: none; min-width: 180px; flex-direction: column; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 20px 40px rgba(8,25,31,.14); }
.lang-switch.open .lang-menu { display: flex; }
.lang-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 10px; border-radius: 8px; font-size: 14px; color: var(--ink); background: none !important; }
.lang-item:hover { background: var(--paper-2); }
.lang-item .check { margin-left: auto; }
.lang-item.is-active { background: var(--accent); color: #fff; }
@media (max-width: 767px) { .lang-switch { display: none; } }

.member-hook { background: var(--accent-soft); border: 1px solid var(--line); padding: 18px 20px; margin-bottom: 20px; }
.member-hook p { margin: 0 0 12px; color: var(--ink); font-size: 15px; }
.member-hook-login { display: inline-block; margin-left: 14px; font-size: 13px; color: var(--accent); text-decoration: underline; }

/* ============================================================
   HERO DEFINITIVO — "Editorial Split" (elegido por Marcos 18-jul)
   Panel papel izq (texto tinta petróleo, AA por diseño) + foto
   derecha SIN velo, a plena luz. Scoped .hero-v2.
   Sin overflow:hidden en ningún nivel: el calendario cuelga libre.
   ============================================================ */
.hero-v2{
  position:relative;
  z-index:10; /* el calendario absoluto pinta por encima de secciones siguientes */
  display:grid;
  grid-template-columns:44fr 56fr;
  align-items:stretch;
  min-height:clamp(620px, calc(100svh - 72px), 860px);
  background:var(--paper);
}

/* FOTO: columna derecha, plena luz, cero velo */
.hero-v2 .hv2-media{ position:relative; order:2; min-height:100%; }
.hero-v2 .hv2-media picture{ position:absolute; inset:0; display:block; }
.hero-v2 .hv2-media img{
  position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover; object-position:64% 55%; display:block;
  /* NINGÚN filtro, NINGÚN overlay: la imagen es el producto */
}
/* filete latón 1px en la costura papel/foto, se desvanece hacia abajo */
.hero-v2 .hv2-media::after{
  content:""; position:absolute; left:0; top:0; bottom:0; width:1px;
  background:linear-gradient(180deg, rgba(165,135,90,.55) 0%, rgba(165,135,90,.18) 62%, rgba(165,135,90,0) 100%);
  z-index:2; pointer-events:none;
}

/* PANEL PAPEL: columna izquierda */
.hero-v2 .hv2-panel{
  order:1; display:flex; align-items:center; background:var(--paper);
  padding:clamp(56px, 9vh, 110px)
          clamp(28px, 3.2vw, 52px)
          clamp(56px, 9vh, 110px)
          max(var(--pad, 24px), calc((100vw - 1200px) / 2));
}
.hero-v2 .hv2-inner{ width:100%; max-width:560px; }

/* eyebrow con filete latón + numeral brass */
.hero-v2 .hv2-kicker{
  display:flex; align-items:center; gap:14px;
  font-size:12px; letter-spacing:.22em; text-transform:uppercase;
  color:var(--brass); margin:0 0 clamp(18px, 2.4vh, 26px);
}
.hero-v2 .hv2-kicker::before{ content:""; flex:0 0 40px; height:1px; background:var(--brass); }
.hero-v2 .hv2-num{
  margin-left:auto; font-family:'Fraunces', Georgia, serif;
  font-size:13px; letter-spacing:.14em; color:var(--brass); opacity:.85;
  font-feature-settings:"onum" 1; white-space:nowrap;
}

/* H1 Fraunces en tinta petróleo sobre papel: AA garantizado por diseño */
.hero-v2 .hv2-title{
  font-family:'Fraunces', Georgia, serif; font-optical-sizing:auto; font-weight:540;
  font-size:clamp(38px, 3.7vw, 58px); line-height:1.04; letter-spacing:-.015em;
  color:var(--accent); margin:0 0 clamp(14px, 2vh, 20px); text-wrap:balance;
}
.hero-v2 .hv2-lead{
  font-size:clamp(16px, 1.15vw, 18px); line-height:1.62;
  color:rgba(26,26,24,.74); max-width:44ch; margin:0 0 clamp(26px, 3.6vh, 36px);
}

/* BUSCADOR: tarjeta blanca que cruza la costura sobre la foto */
.hero-v2 .hv2-search{
  position:relative; z-index:6;
  width:calc(100% + clamp(0px, 9vw, 168px)); /* invade elegantemente la foto */
}
.hero-v2 .search-widget{
  width:100%; max-width:none; background:#fff;
  border:1px solid var(--line); border-radius:var(--radius-lg, 4px);
  box-shadow:0 1px 0 rgba(13,59,71,.04), 0 18px 44px rgba(13,59,71,.10);
}

/* FACTS: bajo filete fino */
.hero-v2 .hv2-facts{
  position:relative; z-index:1;
  margin:clamp(22px, 3vh, 30px) 0 0; padding-top:16px;
  border-top:1px solid var(--line);
  font-size:11px; letter-spacing:.18em; line-height:1.9; text-transform:uppercase;
  color:rgba(26,26,24,.72);
}
.hero-v2 .hv2-facts b{ color:var(--brass); font-weight:600; }

/* TABLET ESTRECHA: el buscador deja de invadir tanto */
@media (max-width:1023px) and (min-width:768px){
  .hero-v2{ grid-template-columns:1fr 1fr; }
  .hero-v2 .hv2-search{ width:calc(100% + clamp(24px, 6vw, 96px)); }
}

/* MÓVIL: composición superpuesta tipo limehome — foto vertical de fondo
   a pantalla casi completa y el contenido ENCIMA, anclado abajo sobre el
   sofá oscuro. Desktop (V2 split) queda intacto. */
@media (max-width:767px){
  .hero-v2{ display:block; position:relative; min-height:88svh; }
  .hero-v2 .hv2-media{ position:absolute; inset:0; min-height:0; }
  .hero-v2 .hv2-media img{ object-position:50% 74%; filter:brightness(.94); }
  /* la costura de latón desktop se convierte en scrim móvil */
  .hero-v2 .hv2-media::after{
    left:0; top:0; bottom:0; right:0; width:auto;
    background:
      linear-gradient(180deg, rgba(8,25,31,.62) 0%, rgba(8,25,31,.38) 26%, rgba(8,25,31,.16) 48%, rgba(8,25,31,0) 62%),
      linear-gradient(to top, rgba(8,25,31,.85) 0%, rgba(8,25,31,.48) 36%, rgba(8,25,31,0) 66%);
  }
  .hero-v2 .hv2-panel{
    position:relative; z-index:2; background:transparent;
    display:flex; align-items:flex-end;
    min-height:88svh;
    padding:24px var(--pad, 20px) 28px;
  }
  .hero-v2 .hv2-inner{ max-width:none; }
  .hero-v2 .hv2-kicker{ gap:10px; margin-bottom:12px; color:#cfae7d; text-shadow:0 1px 10px rgba(8,25,31,.5); }
  .hero-v2 .hv2-kicker::before{ flex-basis:28px; background:#cfae7d; }
  .hero-v2 .hv2-num{ color:#cfae7d; }
  .hero-v2 .hv2-title{ font-size:clamp(34px, 9.6vw, 44px); color:#fff; text-shadow:0 2px 22px rgba(8,25,31,.4); }
  .hero-v2 .hv2-lead{ margin-bottom:20px; color:rgba(250,247,242,.95); text-shadow:0 1px 14px rgba(8,25,31,.42); }
  .hero-v2 .hv2-search{ width:100%; }
  .hero-v2 .search-widget{ box-shadow:0 10px 40px rgba(8,25,31,.35); border:0; }
  .hero-v2 .hv2-facts{ margin-top:16px; padding-top:12px; border-top:1px solid rgba(250,247,242,.25); color:rgba(250,247,242,.85); text-shadow:0 1px 10px rgba(8,25,31,.5); }
  .hero-v2 .hv2-facts b{ color:#cfae7d; }
}

/* Días con noche ocupada en el calendario de ficha (estilo Airbnb) */
.sw-day.occ { color: #c9c2b4; text-decoration: line-through; text-decoration-thickness: 1px; }
.sw-day.occ.is-out { color: inherit; text-decoration: none; }

/* ===== ficha: recorrido de fotos por estancias (photo tour) ===== */
.tour h3 { margin: 28px 0 10px; font-size: 20px; display: flex; align-items: baseline; gap: 10px; }
.tour h3 .tour-n { color: var(--ink-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.tour-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.tour-grid a { display: block; overflow: hidden; border-radius: var(--radius-lg); }
.tour-grid img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; transition: transform .4s; }
.tour-grid a:hover img { transform: scale(1.04); }
@media (max-width: 767px) { .tour-grid { grid-template-columns: 1fr 1fr; } }
