/* ==========================================================================
   Casa Luz · Casa Miel & Olivo
   Identidad compartida + un tema por casa (variables CSS).
   ========================================================================== */

:root {
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Colores de marca de cada casa (se usan también en la portada) */
  --luz-ink: #0e0e0e;
  --luz-paper: #f6f6f4;
  --luz-mid: #8a8a86;
  --miel-olive: #4b5631;
  --miel-olive-deep: #313a1f;
  --miel-honey: #b9832b;
  --miel-brown: #4a3622;
  --miel-cream: #f3eddf;

  /* Tema por defecto (portada): neutro cálido que une ambas casas */
  --bg: #f5f2ec;
  --surface: #fffdf9;
  --ink: #1b1915;
  --muted: #6c665b;
  --line: #e2dcd0;
  --accent: #1b1915;
  --accent-ink: #fffdf9;
  --accent-soft: #ebe5d9;
  --busy: #d8d2c6;
  --sel: #1b1915;
  --range: #e8e1d3;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgb(20 16 10 / .06), 0 2px 8px rgb(20 16 10 / .05);
  --shadow: 0 2px 6px rgb(20 16 10 / .05), 0 18px 40px -12px rgb(20 16 10 / .18);
  --shadow-lg: 0 30px 70px -20px rgb(20 16 10 / .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 68px;
  --wa: #1f8f4e;
  --wa-hover: #187540;
}

.theme-luz {
  --bg: var(--luz-paper);
  --surface: #ffffff;
  --ink: var(--luz-ink);
  --muted: #646460;
  --line: #e2e2de;
  --accent: var(--luz-ink);
  --accent-ink: #ffffff;
  --accent-soft: #ececea;
  --busy: #d9d9d5;
  --sel: var(--luz-ink);
  --range: #e7e7e4;
}

.theme-miel {
  --bg: var(--miel-cream);
  --surface: #fbf8f0;
  --ink: #2b2216;
  --muted: #6e624d;
  --line: #e0d6c1;
  --accent: var(--miel-olive);
  --accent-ink: #fbf8f0;
  --accent-soft: #e7e3cf;
  --busy: #d9cfb9;
  --sel: var(--miel-olive);
  --range: #e3e2c8;
}

/* ---------------------------------------------------------------- Base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .74rem; font-weight: 700; color: var(--muted); margin-bottom: .9em; }
.lead { font-size: clamp(1.1rem, 1.8vw, 1.35rem); line-height: 1.5; }
.lead-sm { font-size: 1.1rem; }
.muted { color: var(--muted); font-size: .94rem; }
.text-link { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* ---------------------------------------------------------------- Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  border: 1px solid transparent; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn svg { flex: none; }
.btn-solid { background: var(--accent); color: var(--accent-ink); }
.btn-outline { background: transparent; border-color: currentColor; }
.btn-outline:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-hover); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .92rem; }
.btn-block { width: 100%; min-height: 56px; font-size: 1.05rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------------------------------------------------------------- Cabecera */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-size: 1.3rem; }
.brand em { font-style: italic; color: var(--miel-honey); }
.brand-mark { display: inline-flex; width: 28px; height: 28px; border-radius: 50%; overflow: hidden; transform: rotate(-30deg); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .12); }
.brand-mark i { flex: 1; }
.brand-mark i:first-child { background: var(--luz-ink); }
.brand-mark i:last-child { background: var(--miel-olive); }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; font-size: .95rem; position: relative; padding: 6px 0; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
@media (max-width: 860px) {
  .nav { display: none; }
  .header-wa { margin-left: auto; }
}

/* ---------------------------------------------------------------- Portada: héroe dividido */
.split-hero {
  position: relative; display: flex; height: min(88vh, 860px); min-height: 560px;
  background: #111; overflow: hidden;
}
.half { position: relative; flex: 1; overflow: hidden; text-decoration: none; color: #fff; transition: flex-grow .8s var(--ease); }
.half img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.2s var(--ease), filter .8s; }
.half::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / .15), rgb(0 0 0 / .05) 40%, rgb(0 0 0 / .55)); }
.half-luz img { filter: grayscale(.85) contrast(1.05); }
.half-miel::after { background: linear-gradient(180deg, rgb(30 26 10 / .1), rgb(30 26 10 / 0) 40%, rgb(40 34 12 / .6)); }
.half:hover, .half:focus-visible { flex-grow: 1.35; }
.half:hover img, .half:focus-visible img { transform: scale(1.08); }
.half-luz:hover img { filter: grayscale(.2); }
.half-label { position: absolute; z-index: 2; left: clamp(20px, 4vw, 48px); bottom: clamp(24px, 5vw, 48px); display: grid; gap: 4px; }
.half-miel .half-label { left: auto; right: clamp(20px, 4vw, 48px); text-align: right; justify-items: end; }
.half-kicker { text-transform: uppercase; letter-spacing: .2em; font-size: .72rem; font-weight: 700; opacity: .85; }
.half-name { font-family: var(--font-display); font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1; }
.half-cta { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; margin-top: 8px; opacity: .9; }
.half-cta svg { transition: transform .3s var(--ease); }
.half:hover .half-cta svg { transform: translateX(4px); }
.hero-card {
  position: absolute; z-index: 3; left: 50%; top: 44%; transform: translate(-50%, -50%);
  width: min(560px, calc(100% - 32px)); padding: clamp(24px, 4vw, 40px);
  background: color-mix(in srgb, #fffdf9 92%, transparent); color: var(--ink);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); text-align: center;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: card-in 1s var(--ease) .2s both;
}
@keyframes card-in { from { opacity: 0; translate: 0 24px; } }
.hero-card h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
.hero-card p:last-child { margin: 0; color: var(--muted); }
@media (max-width: 800px) {
  .split-hero { flex-direction: column; height: auto; min-height: 0; }
  .half { min-height: 46vh; }
  .half:hover, .half:focus-visible { flex-grow: 1; }
  .half-miel .half-label { right: auto; left: 20px; text-align: left; justify-items: start; }
  .hero-card { position: relative; left: auto; top: auto; transform: none; margin: -40px auto 0; order: 3; width: calc(100% - 32px); }
  .split-hero { background: var(--bg); padding-bottom: 8px; }
}

.price-strip { border-block: 1px solid var(--line); background: var(--surface); }
.price-strip p { margin: 0; padding: 16px 0; text-align: center; font-weight: 600; letter-spacing: .01em; }

/* ---------------------------------------------------------------- Portada: casas */
.feature { padding: clamp(64px, 10vw, 128px) 0; position: relative; }
.feature-luz { background: var(--luz-paper); color: var(--luz-ink); --accent: var(--luz-ink); --accent-ink: #fff; --muted: #63635f; }
.feature-miel { background: var(--miel-cream); color: #2b2216; --accent: var(--miel-olive); --accent-ink: #fbf8f0; --muted: #6e624d; }
.feature-miel h2 { color: var(--miel-olive-deep); }
.feature-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.feature.is-reverse .feature-media { order: 2; }
.feature-media { position: relative; aspect-ratio: 1 / 1.02; perspective: 1200px; }
.stack { position: absolute; margin: 0; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-lg); transform-style: preserve-3d; transition: transform .5s var(--ease); background: #ddd; }
.stack img { width: 100%; height: 100%; object-fit: cover; }
.stack-a { inset: 0 22% 18% 0; }
.stack-b { width: 40%; aspect-ratio: 3 / 4; right: 0; top: 12%; }
.stack-c { width: 36%; aspect-ratio: 4 / 3.4; left: 18%; bottom: 0; }
.feature.is-reverse .stack-a { inset: 0 0 18% 22%; }
.feature.is-reverse .stack-b { right: auto; left: 0; }
.feature.is-reverse .stack-c { left: auto; right: 14%; }
.feature-luz .stack-a img { filter: grayscale(.25); }
.feature-copy p { max-width: 52ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 28px; }
.chips li { padding: 6px 14px; border-radius: 999px; border: 1px solid color-mix(in srgb, currentColor 22%, transparent); font-size: .88rem; }
.feature-miel .chips li { background: #e8e3cc; border-color: transparent; color: var(--miel-olive-deep); }
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature.is-reverse .feature-media { order: 0; }
  .feature-media { aspect-ratio: 1 / 1.05; }
}

/* ---------------------------------------------------------------- Pasos */
.steps { padding: clamp(64px, 9vw, 112px) 0; background: var(--surface); }
.step-list { list-style: none; padding: 0; margin: 32px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { padding: 28px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--bg); font-weight: 700; margin-bottom: 16px; }
.step:nth-child(2) .step-n { background: var(--miel-olive); }
.step:nth-child(3) .step-n { background: var(--wa); }
.step p { margin: 0; color: var(--muted); }
.notice { padding: 16px 20px; border-left: 3px solid var(--miel-honey); background: color-mix(in srgb, var(--miel-honey) 10%, var(--surface)); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 0; }
@media (max-width: 800px) { .step-list { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- Ubicación */
.location { padding: clamp(64px, 9vw, 112px) 0; }
.location-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.location-cards { display: grid; gap: 16px; }
.loc-card { padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow); }
.loc-luz { background: var(--luz-ink); color: #fff; }
.loc-miel { background: var(--miel-olive); color: #fbf8f0; }
.loc-card .btn-outline:hover { background: #fff; color: #111; border-color: #fff; }
.map-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 800px) { .location-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- Página de casa: héroe */
.prop-hero { position: relative; min-height: min(80vh, 760px); display: flex; align-items: flex-end; overflow: hidden; color: #fff; margin-top: calc(var(--header-h) * -1); padding-top: var(--header-h); }
.prop-hero-media { position: absolute; inset: 0; }
.prop-hero-media img { width: 100%; height: 115%; object-fit: cover; }
.prop-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / .35) 0%, rgb(0 0 0 / 0) 30%, rgb(0 0 0 / .7) 100%); }
.theme-miel .prop-hero::after { background: linear-gradient(180deg, rgb(30 24 8 / .35) 0%, rgb(30 24 8 / 0) 30%, rgb(38 32 12 / .78) 100%); }
.theme-luz .prop-hero-media img { filter: grayscale(.35) contrast(1.04); }
.prop-hero-copy { position: relative; z-index: 2; padding: 120px 0 56px; }
.prop-hero-copy .eyebrow { color: rgb(255 255 255 / .8); }
.prop-hero-copy .lead { max-width: 40ch; }
.facts { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; margin: 24px 0 28px; }
.facts li { display: grid; padding: 12px 18px; border-radius: 14px; background: rgb(255 255 255 / .12); border: 1px solid rgb(255 255 255 / .22); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); min-width: 120px; }
.facts strong { font-family: var(--font-display); font-size: 1.6rem; font-weight: 500; line-height: 1.1; }
.facts span { font-size: .82rem; opacity: .85; }
.prop-hero .btn-solid { background: #fff; color: #111; }
.theme-miel .prop-hero .btn-solid { background: var(--miel-honey); color: #1f1708; }
.theme-luz .site-header:not(.is-scrolled), .theme-miel .site-header:not(.is-scrolled) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; color: #fff; }

/* ---------------------------------------------------------------- Galería */
.gallery-section { padding: 48px 0 8px; }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 10px; border-radius: var(--radius); overflow: hidden; }
.g-item { position: relative; padding: 0; border: 0; cursor: zoom-in; overflow: hidden; background: var(--line); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .4s; }
.g-item:hover img { transform: scale(1.05); }
.g-0 { grid-row: span 2; }
.gallery-all { margin-top: 16px; }
@media (max-width: 700px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 150px 150px; }
  .g-0 { grid-column: span 2; grid-row: auto; }
  .g-4 { display: none; }
}

.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(8 8 8 / .94); color: #fff; }
.lightbox::backdrop { background: rgb(0 0 0 / .6); }
.lb-inner { position: relative; height: 100%; display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.lb-figure { margin: 0; display: grid; justify-items: center; gap: 12px; padding: 56px 0 24px; height: 100%; align-content: center; }
.lb-figure img { max-height: calc(100dvh - 140px); width: auto; max-width: 100%; object-fit: contain; border-radius: 8px; }
.lb-figure figcaption { font-size: .92rem; opacity: .8; text-align: center; padding: 0 12px; }
.lb-nav, .lb-close { background: rgb(255 255 255 / .1); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 28px; line-height: 1; cursor: pointer; justify-self: center; }
.lb-nav:hover, .lb-close:hover { background: rgb(255 255 255 / .22); }
.lb-close { position: absolute; top: 12px; right: 12px; z-index: 2; }
@media (max-width: 600px) {
  .lb-inner { grid-template-columns: 1fr; }
  .lb-nav { position: absolute; bottom: 16px; z-index: 2; }
  .lb-prev { left: 24px; } .lb-next { right: 24px; }
  .lb-figure { padding-bottom: 80px; }
}

/* ---------------------------------------------------------------- Cuerpo de casa */
.prop-body { padding: 40px 0 80px; }
.prop-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.block { padding: 32px 0; border-bottom: 1px solid var(--line); }
.block:last-child { border-bottom: 0; }
.block h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.amenities { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.amenities li { display: flex; gap: 10px; align-items: flex-start; }
.amenities svg { flex: none; margin-top: 4px; color: var(--accent); }
.theme-miel .amenities svg { color: var(--miel-honey); }
.kv { margin: 0 0 12px; display: grid; gap: 10px; }
.kv div { display: grid; grid-template-columns: 180px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }
.policy-mini { padding-left: 18px; }
.policy-mini li { margin-bottom: 8px; }
@media (max-width: 980px) {
  .prop-grid { grid-template-columns: minmax(0, 1fr); }
  .booking { order: -1; }
}
@media (max-width: 560px) {
  .amenities { grid-template-columns: 1fr; }
  .kv div { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------------------------------------------------------------- Módulo de reserva */
.booking { position: sticky; top: calc(var(--header-h) + 16px); }
.booking-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: var(--shadow); }
.booking-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.booking-head h2 { font-size: 1.35rem; margin: 0; }
.booking-head p { margin: 0; white-space: nowrap; }
.booking-head strong { font-family: var(--font-display); font-size: 1.4rem; font-weight: 500; }
@media (max-width: 980px) { .booking { position: static; } }

.cal { min-height: 300px; }
.cal-status { padding: 40px 0; text-align: center; color: var(--muted); }
.cal-status.is-error { color: #a12d1f; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-head strong { font-weight: 700; }
.cal-nav { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 20px; line-height: 1; transition: background .2s; }
.cal-nav:hover:not([disabled]) { background: var(--accent-soft); }
.cal-nav[disabled] { opacity: .3; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-dow { text-align: center; font-size: .72rem; font-weight: 700; color: var(--muted); padding: 4px 0; text-transform: uppercase; }
.day {
  position: relative; aspect-ratio: 1; border: 0; border-radius: 10px; background: transparent;
  font-size: .92rem; font-weight: 600; cursor: pointer; display: grid; place-items: center;
  transition: background .15s, color .15s, transform .15s;
}
.day:hover:not([disabled]) { background: var(--accent-soft); transform: scale(1.06); }
.day.is-past { color: color-mix(in srgb, var(--muted) 45%, transparent); cursor: default; }
.day.is-busy { background: repeating-linear-gradient(135deg, var(--busy) 0 4px, transparent 4px 8px); color: color-mix(in srgb, var(--ink) 40%, transparent); text-decoration: line-through; cursor: not-allowed; }
.day.is-busy.is-checkout-ok { cursor: pointer; text-decoration: none; color: var(--ink); }
.day.is-today::after { content: ''; position: absolute; bottom: 5px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.day.in-range { background: var(--range); border-radius: 0; }
.day.is-start, .day.is-end { background: var(--sel); color: var(--accent-ink); }
.day.is-start { border-radius: 10px 0 0 10px; }
.day.is-end { border-radius: 0 10px 10px 0; }
.day.is-start.is-end { border-radius: 10px; }
.day[disabled] { pointer-events: none; }
.cal-months { display: grid; gap: 18px; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; list-style: none; padding: 10px 0 0; margin: 0 0 14px; font-size: .82rem; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--line); }
.lg-busy { background: repeating-linear-gradient(135deg, var(--busy) 0 3px, transparent 3px 6px); }
.lg-sel { background: var(--sel); border-color: var(--sel) !important; }
.cal-hint { font-size: .86rem; color: var(--muted); margin: 6px 0 0; min-height: 1.4em; }

.book-form { display: grid; gap: 14px; border-top: 1px solid var(--line); padding-top: 16px; }
.book-form label { display: grid; gap: 6px; font-size: .86rem; font-weight: 600; }
.book-form input[type=text], .book-form input[type=tel], .book-form input[type=date], .book-form input[type=number] {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--bg); font-weight: 500; font-size: 1rem;
}
.book-form input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.book-form input[aria-invalid="true"] { border-color: #b3261e; background: #fdf1ef; }
.date-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.book-form input { min-width: 0; }
.opt { font-weight: 400; color: var(--muted); }
.stepper { display: grid; grid-template-columns: 46px 1fr 46px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg); }
.stepper button { border: 0; background: transparent; font-size: 1.3rem; cursor: pointer; }
.stepper button:hover { background: var(--accent-soft); }
.book-form .stepper input { border: 0; border-radius: 0; text-align: center; background: transparent; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.errors:empty { display: none; }
.errors { padding: 12px 14px; border-radius: 12px; background: #fdf1ef; color: #8c1d14; font-size: .92rem; }
.errors ul { margin: 0; padding-left: 18px; }
.alert { padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--miel-honey) 14%, var(--surface)); font-size: .92rem; margin: 0; }
.fine { font-size: .8rem; color: var(--muted); margin: 0; line-height: 1.5; }
.contact-line { margin-top: 12px; text-align: center; }

.quote { border-radius: 14px; background: var(--bg); border: 1px solid var(--line); padding: 14px 16px; animation: pop .35s var(--ease); }
.quote dl { margin: 0; display: grid; gap: 6px; font-size: .92rem; }
.quote dl div { display: flex; justify-content: space-between; gap: 12px; }
.quote dt { color: var(--muted); }
.quote dd { margin: 0; text-align: right; font-weight: 600; }
.quote .q-total { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; font-size: 1.1rem; }
.quote .q-total dt { color: var(--ink); font-weight: 700; }
.quote .q-total dd { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.98); } }

.success { display: grid; gap: 12px; animation: pop .4s var(--ease); }
.success h3 { margin: 0; font-size: 1.3rem; }
.success .ref { font-family: ui-monospace, Menlo, monospace; font-size: 1.05rem; background: var(--bg); padding: 2px 8px; border-radius: 6px; }
.success pre { white-space: pre-wrap; font: .82rem/1.5 var(--font-body); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin: 0; max-height: 220px; overflow: auto; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: color-mix(in srgb, var(--miel-honey) 18%, var(--surface)); font-size: .82rem; font-weight: 700; width: fit-content; }
.btn-ghost { background: transparent; border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--accent-soft); }

/* ---------------------------------------------------------------- Otra casa */
.other { padding: 0 0 96px; }
.other-card { position: relative; display: block; border-radius: 24px; overflow: hidden; color: #fff; text-decoration: none; min-height: 340px; box-shadow: var(--shadow-lg); transition: transform .5s var(--ease); }
.other-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.other-card:hover img { transform: scale(1.04); }
.other-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(0 0 0 / .65), rgb(0 0 0 / 0) 70%); }
.other-miel::after { background: linear-gradient(90deg, rgb(49 58 31 / .85), rgb(49 58 31 / 0) 70%); }
.other-luz img { filter: grayscale(.6); }
.other-card > span { position: absolute; z-index: 2; left: clamp(24px, 5vw, 56px); bottom: clamp(24px, 5vw, 48px); display: grid; gap: 6px; }
.other-card .eyebrow { color: rgb(255 255 255 / .8); margin: 0; }
.other-name { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); line-height: 1; }

/* ---------------------------------------------------------------- Políticas */
.page-head { padding: clamp(56px, 8vw, 96px) 0 24px; }
.policies { padding-bottom: 96px; }
.policy { padding: 24px 0; border-bottom: 1px solid var(--line); }
.policy h2 { font-size: 1.4rem; }
.pending { color: var(--muted); font-style: italic; }

/* ---------------------------------------------------------------- Pie */
.site-footer { background: #141310; color: #d9d4c8; padding: 56px 0 24px; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-brand { font-family: var(--font-display); font-size: 1.4rem; color: #fff; }
.footer-label { text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 700; color: #9a9384; }
.footer-note { border-top: 1px solid #2b2924; margin-top: 32px; padding-top: 20px; font-size: .85rem; color: #9a9384; }
.footer-note p { margin: 0; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 16px; } }

/* ---------------------------------------------------------------- Animaciones
   El contenido es visible por defecto; solo con JS (clase .js) se prepara
   la aparición progresiva. Con movimiento reducido se desactiva el desplazamiento. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .step.reveal:nth-child(2) { transition-delay: .08s; }
.js .step.reveal:nth-child(3) { transition-delay: .16s; }
[data-tilt] { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transform: none; transition: opacity .4s linear; }
  .half, .half img, .stack, .other-card img, .g-item img { transition: none; }
  .half:hover img, .other-card:hover img, .g-item:hover img { transform: none; }
  .quote, .success, .hero-card { animation: none; }
}
