/* 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 { font-size: 14px; color: var(--ink-2); transition: color .2s; }
.nav a: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%; }
.hero .veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.55)); }
.hero .inner { position: relative; width: 100%; padding-bottom: 72px; }
.hero h1 { max-width: 900px; }
.hero .lead { color: rgba(255,255,255,.85); margin-top: 16px; max-width: 560px; }

/* Cards de apartamento */
.grid-props { display: grid; grid-template-columns: repeat(auto-fill, minmax(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(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 .veil { background: linear-gradient(180deg, rgba(8,12,16,.10) 0%, rgba(8,12,16,.28) 55%, rgba(8,12,16,.62) 100%); }
.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(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(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, .site-footer a { background: linear-gradient(currentColor,currentColor) 0 100%/0 1px no-repeat; transition: background-size .45s var(--ease); }
.nav a: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,.72); margin-top: 18px; }

/* 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); }
