/* Santa Elena de Maipo Home
   Identidad según docs/marca/guia-diseno-marca.md: casa de
   madera, araucarias y cordillera. Crema como fondo dominante, verde bosque
   institucional, terracota para la acción (reservar, pagar) y verde Araucanía
   como acento natural. Títulos en Cormorant Garamond, todo lo funcional en
   Montserrat. El arco de entrada y el techo de la casa son formas de marca. */

:root {
  /* Paleta oficial */
  --crema: #FAF4E6;
  --verde-bosque: #25220F;
  --verde-araucania: #3B4328;
  --terracota: #9A622B;
  --madera: #523218;
  --ocre: #DAA65F;
  --arena: #D3CBAE;
  --piedra: #AAAC96;

  --bg: var(--crema);
  --surface: #FFFCF4;
  --surface-2: #F3ECDA;
  --ink: var(--verde-bosque);
  --ink-2: #4A4128;
  --ink-3: #6E6448;
  --line: var(--arena);
  --line-2: #E7DEC6;
  --forest: var(--verde-araucania);
  --moss: var(--verde-araucania);
  --alerce: var(--terracota);
  --alerce-soft: #F2E4C9;
  /* Color de acción (conserva el nombre --copihue para no tocar el resto del código). */
  --copihue: var(--terracota);
  --copihue-hover: #7F4F21;
  --on-accent: var(--crema);
  --secondary: var(--verde-araucania);
  --secondary-hover: #2E3520;
  --band: var(--verde-bosque);
  --band-ink: var(--crema);
  --band-ink-2: var(--arena);
  --star: #A8742C;
  --ok: #3F5A24; --ok-bg: #E6EAD2;
  --warn: #85561A; --warn-bg: #F5E6C5;
  --bad: #9E3A22; --bad-bg: #F6DDD2;
  --info: #4C5A45; --info-bg: #E6E6D8;
  --shadow: 0 1px 2px rgba(37, 34, 15, .05), 0 10px 30px rgba(82, 50, 24, .08);
  --shadow-lg: 0 24px 60px rgba(37, 34, 15, .22);
  /* Paisaje (ilustraciones generadas) */
  --sky-1: #E9DFC6; --sky-2: #FAF4E6; --hill-far: #C9C7AE; --hill-mid: #8E8F72; --hill-near: #3B4328;
  --snow: #FFFCF4; --tree: #25220F; --mist: #FFFCF4; --window: #DAA65F; --house: #523218;
  --shingle: rgba(154, 98, 43, .13);

  --f-display: 'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
  --f-body: 'Montserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --f-mono: ui-monospace, 'SFMono-Regular', 'Cascadia Mono', Menlo, Consolas, monospace;
  --r-sm: 8px; --r: 12px; --r-lg: 18px;
  --maxw: 1180px;
  --gut: clamp(16px, 4vw, 32px);
  color-scheme: light;
}

/* La marca es crema (guía: 60 % crema), así que el sitio no cambia solo a modo
   oscuro. Queda la variante oscura solo si se pide con data-theme="dark". */
:root[data-theme="dark"] {
  --bg: #1B190B; --surface: #25220F; --surface-2: #2D2A16; --ink: #FAF4E6; --ink-2: #D3CBAE; --ink-3: #AAAC96;
  --line: #433D24; --line-2: #34301B; --forest: #C4CBA2; --moss: #B3BB8E; --alerce: #DAA65F; --alerce-soft: #3A2C17;
  --copihue: #A86B30; --copihue-hover: #BE7C3C; --on-accent: #FAF4E6; --secondary: #4A5433; --secondary-hover: #57633D;
  --band: #141207; --band-ink: #FAF4E6; --band-ink-2: #D3CBAE; --star: #DAA65F;
  --ok: #A9C27F; --ok-bg: #2A3318; --warn: #E6B96A; --warn-bg: #3B2E14; --bad: #F0A08A; --bad-bg: #3E2117; --info: #C3C8B0; --info-bg: #2E3024;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .3); --shadow-lg: 0 24px 60px rgba(0, 0, 0, .55);
  --sky-1: #141207; --sky-2: #25220F; --hill-far: #3A3720; --hill-mid: #2C2A17; --hill-near: #1E1C0C; --snow: #D3CBAE; --tree: #0E0D05; --mist: #AAAC96; --window: #DAA65F; --house: #141207;
  --shingle: rgba(218, 166, 95, .09);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; }
::selection { background: color-mix(in srgb, var(--ocre) 45%, transparent); color: var(--ink); }
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--copihue); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.mono { font-family: var(--f-mono); font-feature-settings: "zero"; }
.muted { color: var(--ink-3); }
.small { font-size: 14px; }
.sel { user-select: all; }
.num, .price, .lg-line, .lg-total, .lg-split, .kpi, table { font-variant-numeric: tabular-nums; }

/* Tipografía */
.display { font-family: var(--f-display); font-weight: 600; font-size: clamp(42px, 6.6vw, 82px); line-height: 1; letter-spacing: -.012em; margin: 0; text-wrap: balance; }
.h2 { font-family: var(--f-display); font-weight: 600; font-size: clamp(32px, 3.8vw, 46px); line-height: 1.05; letter-spacing: -.005em; margin: 0; text-wrap: balance; }
.h3 { font-family: var(--f-display); font-weight: 600; font-size: 28px; line-height: 1.1; margin: 0; text-wrap: balance; }
.h4 { font-family: var(--f-display); font-weight: 700; font-size: 22px; line-height: 1.15; margin: 0; }
.h5 { font-weight: 600; font-size: 15px; margin: 18px 0 8px; }
.eyebrow { font: 600 12px/1.3 var(--f-body); letter-spacing: .18em; text-transform: uppercase; color: var(--alerce); margin: 0 0 14px; }
.lede { font-size: clamp(16px, 1.5vw, 18px); line-height: 1.7; color: var(--ink-2); max-width: 36em; margin: 20px 0 0; text-wrap: pretty; }
p { margin: 0 0 10px; }

/* Íconos y botones */
.ic { width: 20px; height: 20px; flex: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: var(--r-sm); border: 1px solid transparent; font-weight: 600; font-size: 14.5px; letter-spacing: .01em; line-height: 1.1; cursor: pointer; text-decoration: none; transition: background .2s, border-color .2s, color .2s, transform .12s; white-space: nowrap; }
.btn:active:not(:disabled) { transform: translateY(1px) scale(.99); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--copihue); color: var(--on-accent); }
.btn-primary:hover:not(:disabled) { background: var(--copihue-hover); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover:not(:disabled) { border-color: var(--ink-3); background: var(--surface-2); }
.btn-soft { background: var(--secondary); color: var(--on-accent); }
.btn-soft:hover:not(:disabled) { background: var(--secondary-hover); }
.btn-danger { background: var(--bad); color: #fff; }
.btn-sm { min-height: 38px; padding: 8px 14px; font-size: 13.5px; }
.btn-lg { min-height: 52px; padding: 14px 26px; font-size: 15.5px; }
.btn.busy { position: relative; color: transparent; }
.btn.busy::after { content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid var(--on-accent); border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; color: var(--ink); }
.icon-btn:hover:not(:disabled) { border-color: var(--alerce); color: var(--alerce); }
.icon-btn:disabled { opacity: .35; cursor: default; }
.icon-btn.sm { width: 32px; height: 32px; }
.icon-btn.sm .ic { width: 16px; height: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row-end { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 18px; }

/* Barra de demo */
.demo-bar { display: flex; align-items: center; gap: 10px; justify-content: center; flex-wrap: wrap; padding: 8px var(--gut); background: var(--alerce-soft); color: var(--ink); font-size: 14px; border-bottom: 1px solid var(--line); }
.demo-bar .ic { color: var(--alerce); width: 18px; height: 18px; }
.demo-bar a { font-weight: 600; }

/* Cabecera: verde bosque, como pide la guía */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: var(--band); color: var(--band-ink); border-bottom: 1px solid color-mix(in srgb, var(--ocre) 28%, transparent); }
.head-row { display: flex; align-items: center; gap: 24px; min-height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.logo-mark { height: 44px; width: auto; flex: none; overflow: visible; }
.lm-arch, .lm-base { stroke: var(--ocre); }
.lm-se { fill: var(--band-ink); }
.brand-name { font: 600 22px/1 var(--f-display); letter-spacing: .005em; color: inherit; display: flex; flex-direction: column; gap: 4px; }
.brand-name small { font: 600 10px/1 var(--f-body); letter-spacing: .42em; text-transform: uppercase; color: var(--ocre); }
.site-nav { display: flex; gap: 26px; margin-left: auto; font-size: 14px; font-weight: 500; letter-spacing: .02em; }
.site-nav a { text-decoration: none; color: var(--band-ink-2); padding: 6px 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.site-nav a:hover { color: var(--band-ink); border-bottom-color: var(--ocre); }
.site-head .head-mine { color: var(--band-ink-2); }
.site-head :focus-visible { outline-color: var(--ocre); }
@media (max-width: 860px) {
  .site-nav { display: none; }
  .head-mine { display: inline; margin-left: auto; }
  .head-row { gap: 14px; }
}
.brand-name { white-space: nowrap; }
@media (max-width: 460px) { .brand-name { font-size: 18px; } .brand-name small { letter-spacing: .3em; } .site-head .logo-mark { height: 38px; } .site-head .head-mine { display: none; } .head-cta { margin-left: auto; } }

/* Portada: el logo dentro del arco de entrada de la casa */
.hero { position: relative; overflow: hidden; background:
  radial-gradient(ellipse 70% 60% at 85% 20%, color-mix(in srgb, var(--ocre) 14%, transparent), transparent 70%),
  linear-gradient(to bottom, var(--surface-2), var(--bg) 85%); border-bottom: 1px solid var(--line-2); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(36px, 6vw, 72px) 120px; }
.hero-copy .display { max-width: 11em; color: var(--ink); }
.hero-copy .display em { font-style: italic; font-weight: 500; color: var(--alerce); }
.hero-logo { position: relative; margin: 0; justify-self: center; width: min(100%, 470px); aspect-ratio: 10 / 11; background: var(--crema); border-radius: 50% 50% var(--r-lg) var(--r-lg) / 45% 45% var(--r-lg) var(--r-lg); box-shadow: var(--shadow); display: grid; place-items: end center; padding: 0 5% 6%; }
.hero-logo::after { content: ""; position: absolute; inset: 10px; border: 1px solid color-mix(in srgb, var(--terracota) 45%, transparent); border-radius: inherit; pointer-events: none; }
.hero-logo img { width: 100%; height: auto; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; padding-block: 28px 110px; gap: 28px; }
  .hero-logo { order: -1; width: min(100%, 340px); }
}
.rating { display: inline-flex; align-items: center; gap: 6px; margin-top: 26px; padding: 8px 14px 8px 11px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-size: 14px; color: var(--ink-2); transition: border-color .2s; }
.rating:hover { border-color: var(--alerce); }
.rating .ic { color: var(--star); width: 18px; height: 18px; }
.rating strong { color: var(--ink); }

.search-dock { position: relative; z-index: 5; margin-top: -64px; }
.searchbar { display: grid; grid-template-columns: 1fr 1fr 1.1fr auto; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 8px; }
.sb-field { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; width: 100%; padding: 10px 16px; background: transparent; border: 0; border-radius: var(--r); cursor: pointer; text-align: left; }
.sb-field:hover { background: var(--surface-2); }
.searchbar > .sb-field + .sb-field, .sb-guests { border-left: 1px solid var(--line-2); }
.sb-label { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.sb-label .ic { width: 15px; height: 15px; }
.sb-label em { font-style: normal; text-transform: none; letter-spacing: 0; color: var(--moss); font-weight: 600; }
.sb-value { font: 600 17px/1.2 var(--f-body); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.sb-guests { position: relative; }
.sb-go { align-self: stretch; min-height: 56px; padding-inline: 22px; border-radius: var(--r); }
.searchbar-compact { box-shadow: none; }
@media (max-width: 760px) {
  .searchbar { grid-template-columns: 1fr 1fr; }
  .sb-guests { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line-2); }
  .sb-go { grid-column: 1 / -1; margin-top: 6px; }
}

.pop { position: absolute; z-index: 40; top: calc(100% + 10px); right: 0; width: min(340px, 86vw); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 14px 16px; display: none; }
.pop.open { display: block; }
.pop-done { width: 100%; margin-top: 8px; }
@media (max-width: 760px) { .pop { left: 0; right: auto; width: 100%; } }
.stepper { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }
.stepper + .stepper { border-top: 1px solid var(--line-2); }
.stepper-label { font-weight: 600; }
.stepper-sub { font-size: 13px; color: var(--ink-3); }
.stepper-ctl { display: flex; align-items: center; gap: 10px; }
.stepper-ctl output { min-width: 22px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Secciones */
.section { padding-block: clamp(56px, 8vw, 96px) 0; }
.section-tight { padding-block: 32px; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; align-items: end; margin-bottom: 28px; }
.section-head p { color: var(--ink-2); margin: 0; max-width: 34em; }
.section-head .h2::before, .loc-card .eyebrow::before { content: ""; display: block; width: 34px; height: 14px; margin-bottom: 14px; background: var(--alerce); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 14'%3E%3Cpath d='M1 13 17 1.5 33 13' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 14'%3E%3Cpath d='M1 13 17 1.5 33 13' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
@media (max-width: 760px) { .section-head { grid-template-columns: 1fr; gap: 10px; } }

/* Habitaciones */
.rooms { display: grid; gap: 22px; }
.room { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: border-color .25s, box-shadow .25s; }
.room:hover { border-color: color-mix(in srgb, var(--terracota) 55%, var(--line)); box-shadow: var(--shadow); }
.room-visual, .rcard-visual { padding: 0; border: 0; background: none; cursor: zoom-in; display: block; min-height: 220px; position: relative; }
.room-visual img, .rcard-visual img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.plan-bg { position: absolute; inset: 0; display: grid; place-items: center; padding: 18px; background-color: var(--surface-2);
  background-image: radial-gradient(circle at 50% 100%, transparent 62%, var(--shingle) 64%, var(--shingle) 72%, transparent 74%), radial-gradient(circle at 50% 100%, transparent 62%, var(--shingle) 64%, var(--shingle) 72%, transparent 74%);
  background-size: 26px 15px; background-position: 0 0, 13px 7.5px; }
.plan-bg .fp { width: min(100%, 300px); max-height: 100%; }
.plan-big { position: relative; min-height: 300px; }
.plan-big .fp { width: min(100%, 420px); }
.fp-wall { fill: var(--surface); stroke: var(--ink); stroke-width: 3; }
.fp-bath { fill: var(--surface-2); stroke: var(--ink-2); stroke-width: 1.5; }
.fp-bed { fill: var(--alerce-soft); stroke: var(--alerce); stroke-width: 1.4; }
.fp-pillow { fill: var(--surface); stroke: var(--alerce); stroke-width: 1; }
.fp-kitchen { fill: var(--surface-2); stroke: var(--ink-2); stroke-width: 1.4; }
.fp-line { fill: none; stroke: var(--ink-3); stroke-width: 1.2; }
.fp-door { fill: none; stroke: var(--ink-3); stroke-width: 1.2; stroke-dasharray: 3 3; }
.fp-gap { stroke: var(--surface); stroke-width: 4; }
.fp-window { stroke: var(--info); stroke-width: 4; }
.fp-t { font: 500 9px var(--f-body); fill: var(--ink-3); }
.fp-dim { font: 500 11px var(--f-mono); fill: var(--ink-3); }
.room-body { padding: clamp(18px, 2.4vw, 28px); display: flex; flex-direction: column; gap: 12px; }
.room-desc { color: var(--ink-2); margin: 0; max-width: 40em; }
.facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--ink-2); }
.facts li { display: flex; align-items: center; gap: 6px; }
.facts .ic { width: 17px; height: 17px; color: var(--moss); }
.room-foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.price { margin: 0; color: var(--ink-3); font-size: 14px; }
.price strong { font: 600 20px var(--f-body); color: var(--ink); letter-spacing: -.01em; }
.room-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 760px) { .room { grid-template-columns: 1fr; } .room-visual { min-height: 200px; } }

/* Formularios */
.sel-wrap select, select, input:not([type="checkbox"]):not([type="radio"]), textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); }
.sel-wrap { flex: 1 1 200px; }
textarea { resize: vertical; min-height: 88px; }
input:hover, select:hover, textarea:hover { border-color: var(--ink-3); }
[aria-invalid="true"] { border-color: var(--bad) !important; }

/* Boleta */
.ledger { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 4px 16px 14px; font-size: 15px; }
.ledger-head { display: flex; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px dashed var(--line); font-weight: 600; font-size: 14px; }
.ledger-head .mono { font-weight: 400; color: var(--ink-3); font-size: 12px; }
.lg-group { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.lg-title { font-weight: 600; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; margin-bottom: 4px; }
.lg-title span { font-weight: 400; color: var(--ink-3); font-size: 14px; }
.lg-line { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; color: var(--ink-2); }
.lg-line > span:last-child { white-space: nowrap; color: var(--ink); }
.lg-disc > span:last-child { color: var(--ok); }
.lg-disc { padding: 8px 0 3px; }
.lg-nights summary { cursor: pointer; font-size: 14px; color: var(--moss); padding: 2px 0; }
.lg-night { font-size: 14px; }
.lg-note { font-size: 13px; color: var(--ink-3); margin: 6px 0 0; }
.tag { font-style: normal; font-size: 12px; padding: 1px 7px; border-radius: 999px; background: var(--alerce-soft); color: var(--alerce); white-space: nowrap; }
.tag-ok { background: var(--ok-bg); color: var(--ok); }
.lg-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 0 2px; border-top: 1px dashed var(--line); margin-top: 6px; font-weight: 600; }
.lg-total strong { font: 700 24px var(--f-body); letter-spacing: -.01em; }
.lg-vat { font-size: 13px; color: var(--ink-3); margin: 0 0 12px; }
.lg-split { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lg-split > div { background: var(--surface-2); border-radius: var(--r-sm); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.lg-split span { font-size: 13px; color: var(--ink-3); }
.lg-split strong { font-size: 18px; }
.lg-split > div:first-child { background: color-mix(in srgb, var(--copihue) 9%, var(--surface)); }
.lg-flow { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 10px; }
.lg-flow summary { cursor: pointer; display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--forest); list-style: none; }
.lg-flow summary::-webkit-details-marker { display: none; }
.lg-flow summary .ic { width: 17px; height: 17px; }
.lg-flow-body { padding-top: 10px; font-size: 14px; color: var(--ink-2); }
.flow-bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--line-2); margin-bottom: 10px; }
.flow-net { background: var(--moss); }
.flow-fee { background: var(--copihue); }
.flow-rows { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin-bottom: 10px; }
.flow-rows .num { text-align: right; color: var(--ink); white-space: nowrap; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; }
.dot-net { background: var(--moss); } .dot-fee { background: var(--copihue); }
.lg-policy { display: flex; gap: 6px; align-items: center; font-size: 14px; color: var(--ok); margin: 12px 0 0; }
.lg-policy .ic { width: 17px; height: 17px; }

/* Servicios */
.services { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden; }
.services li { display: flex; gap: 14px; padding: 22px 20px; background: var(--surface); }
.services .ic { width: 24px; height: 24px; color: var(--moss); }
.services strong { display: block; font: 700 19px/1.2 var(--f-display); margin-bottom: 2px; }
.services span { font-size: 14px; color: var(--ink-3); }
@media (max-width: 960px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* En celular: dos columnas compactas, solo ícono y título, para no empujar las habitaciones. */
@media (max-width: 480px) {
  .services li { flex-direction: column; gap: 8px; padding: 14px; }
  .services strong { font-size: 16px; margin: 0; }
  .services span { display: none; }
}

/* Ubicación y opiniones */
.loc { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 18px; }
.loc-card, .reviews { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 32px); }
.loc-card > p:not(.eyebrow) { color: var(--ink-2); max-width: 34em; margin-top: 12px; }
.reviews { display: flex; flex-direction: column; gap: 8px; background: var(--alerce-soft); border-color: transparent; }
.big-rating { display: flex; align-items: center; gap: 14px; }
.big-rating strong { font: 600 72px/1 var(--f-display); letter-spacing: -.01em; }
.stars { display: flex; color: var(--star); }
.stars .ic { width: 22px; height: 22px; }
.stars .half { opacity: .45; }
.reviews a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; margin-top: auto; }
.reviews a .ic { width: 18px; height: 18px; }
@media (max-width: 760px) { .loc { grid-template-columns: 1fr; } }

/* Políticas */
.policies { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 0; }
.policies > div { padding: 16px 0; border-top: 1px solid var(--line); }
.policies dt { font: 700 19px/1.3 var(--f-display); margin-bottom: 4px; }
.policies dd { margin: 0; color: var(--ink-2); max-width: 36em; }
.pol-wide { grid-column: 1 / -1; }
.pol-wide dd { max-width: none; }
.rules { margin: 0; padding-left: 18px; columns: 2 280px; column-gap: 32px; }
.rules li { margin-bottom: 4px; break-inside: avoid; }
@media (max-width: 760px) { .policies { grid-template-columns: 1fr; } }

/* Pie: verde bosque con el isotipo */
.site-foot { margin-top: clamp(64px, 9vw, 110px); padding-block: 52px 32px; background: var(--band); color: var(--band-ink); font-size: 14.5px; border-top: 3px solid var(--terracota); }
.site-foot a { color: var(--band-ink); }
.site-foot a:hover { color: var(--ocre); }
.site-foot :focus-visible { outline-color: var(--ocre); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.foot-brand { display: flex; flex-direction: column; gap: 14px; }
.foot-brand .brand-name { font-size: 26px; }
.foot-brand .logo-mark { height: 64px; }
.foot-brand p { color: var(--band-ink-2); margin: 0; }
.foot-h { font: 600 11px var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: var(--ocre); margin: 0 0 12px; }
.foot-grid p { color: var(--band-ink-2); }
.foot-small { font-size: 12.5px; color: var(--band-ink-2); margin-top: 36px; padding-top: 20px; border-top: 1px solid color-mix(in srgb, var(--band-ink) 14%, transparent); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* Resultados */
.results-top { background: var(--surface-2); border-bottom: 1px solid var(--line-2); padding-block: 14px; }
.res-head { margin-bottom: 18px; }
.res-head p { color: var(--ink-2); margin-top: 6px; }
.res-list { display: grid; gap: 14px; padding-bottom: 110px; }
.rcard { display: grid; grid-template-columns: 220px minmax(0, 1fr) 230px; background: var(--surface); border: 1.5px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden; transition: border-color .15s; }
.rcard-on { border-color: var(--copihue); }
.rcard-off { opacity: .7; }
.rcard-off .rcard-visual { filter: grayscale(.8); }
.rcard-visual { min-height: 180px; }
.rcard-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.rcard-reason { display: flex; gap: 6px; align-items: center; font-size: 14px; color: var(--ink-3); margin: 0; }
.rcard-reason .ic { width: 17px; height: 17px; }
.rcard-guests { display: flex; flex-wrap: wrap; gap: 0 22px; border-top: 1px solid var(--line-2); padding-top: 4px; }
.rcard-guests .stepper { padding: 6px 0; gap: 12px; border: 0; }
.rcard-price { padding: 18px 20px; border-left: 1px dashed var(--line); display: flex; flex-direction: column; gap: 8px; justify-content: center; align-items: stretch; }
.price-stay { margin: 0; display: flex; flex-direction: column; }
.price-stay strong { font: 700 23px/1.15 var(--f-body); letter-spacing: -.01em; }
.price-stay span, .price-night { font-size: 13px; color: var(--ink-3); margin: 0; }
@media (max-width: 900px) {
  .rcard { grid-template-columns: 150px minmax(0, 1fr); }
  .rcard-price { grid-column: 1 / -1; border-left: 0; border-top: 1px dashed var(--line); flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
}
@media (max-width: 520px) { .rcard { grid-template-columns: 1fr; } .rcard-visual { min-height: 150px; } }
.selbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px rgba(0, 0, 0, .08); padding-bottom: env(safe-area-inset-bottom, 0px); }
.selbar-row { display: flex; align-items: center; gap: 12px 20px; padding-block: 12px; flex-wrap: wrap; }
.selbar-text { flex: 1 1 200px; }
.selbar-total { display: flex; flex-direction: column; text-align: right; }
.selbar-total span { font-size: 13px; color: var(--ink-3); }
.selbar-total strong { font: 700 20px var(--f-body); }
@media (max-width: 520px) { .selbar-row [data-continue] { width: 100%; } }
.head-mine { display: none; font-size: 15px; color: var(--ink-2); }
.warn-text { color: var(--warn); font-style: normal; }

/* Alertas y avisos */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); background: var(--info-bg); color: var(--ink); margin-bottom: 14px; }
.alert p { margin: 0; }
.alert .ic { color: var(--info); margin-top: 2px; }
/* Empresas y factura: franja oscura de la marca con su propio llamado a WhatsApp. */
.biz { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px 40px; align-items: center; background: var(--band); color: var(--band-ink); border-radius: var(--r-lg); padding: clamp(22px, 4vw, 40px); }
.biz .eyebrow { color: var(--ocre); }
.biz .h3 { color: var(--band-ink); }
.biz-copy p:last-child { color: var(--band-ink-2); margin: 12px 0 0; max-width: 34em; }
.biz-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.biz-list li { display: flex; gap: 12px; align-items: flex-start; }
.biz-list .ic { color: var(--ocre); margin-top: 2px; }
.biz-list strong { display: block; font: 700 18px/1.2 var(--f-display); }
.biz-list span { color: var(--band-ink-2); font-size: 14px; }
.biz-cta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; padding-top: 18px; border-top: 1px solid color-mix(in srgb, var(--band-ink) 18%, transparent); }
.biz-link { color: var(--band-ink); font-weight: 600; font-size: 14.5px; }
@media (max-width: 760px) { .biz { grid-template-columns: 1fr; } .biz-cta .btn { width: 100%; } }
.alert-promo { align-items: center; flex-wrap: wrap; background: var(--alerce-soft); border: 1px solid color-mix(in srgb, var(--alerce) 35%, transparent); }
.alert-promo .ic { color: var(--alerce); margin-top: 0; }
.alert-promo p { flex: 1 1 260px; }
.alert-bad { background: var(--bad-bg); } .alert-bad .ic { color: var(--bad); }
.note { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--ink-2); background: var(--surface-2); padding: 10px 12px; border-radius: var(--r-sm); }
.loading { color: var(--ink-3); }
.msg { padding-block: 80px; max-width: 640px; }
.msg p { color: var(--ink-2); margin: 14px 0 22px; }
#toasts { position: fixed; z-index: 100; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: grid; gap: 8px; width: min(440px, calc(100% - 32px)); }
.toast { background: var(--ink); color: var(--bg); padding: 12px 16px; border-radius: var(--r); box-shadow: var(--shadow-lg); font-size: 15px; animation: toast-in .2s ease-out; }
.toast-bad { background: var(--bad); color: #fff; }
.toast.out { opacity: 0; transition: opacity .3s; }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } }

/* Hojas (modales) */
.sheet-wrap { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; }
.sheet-scrim { position: absolute; inset: 0; background: rgba(37, 34, 15, .55); opacity: 0; transition: opacity .2s; }
.sheet { position: relative; width: min(560px, 100%); max-height: calc(100dvh - 32px); overflow: auto; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); transform: translateY(12px); opacity: 0; transition: transform .22s ease-out, opacity .22s; outline: none; }
.sheet-wide { width: min(860px, 100%); }
.sheet-wrap.open .sheet { transform: none; opacity: 1; }
.sheet-wrap.open .sheet-scrim { opacity: 1; }
.sheet-body { padding: 24px; }
.sheet-x { position: absolute; top: 12px; right: 12px; z-index: 2; }
@media (max-width: 640px) {
  .sheet-wrap { place-items: end stretch; padding: 0; }
  .sheet, .sheet-wide { width: 100%; max-height: 92dvh; border-radius: var(--r-lg) var(--r-lg) 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .sheet-body { padding: 20px 16px; }
}
.confirm-body { color: var(--ink-2); margin-top: 10px; }

/* Selector de fechas */
.rp { margin-top: 12px; }
.rp-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.rp-hint { margin: 0; font-weight: 600; text-align: center; font-size: 15px; }
.rp-months { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.month-name { font: 700 19px var(--f-display); text-transform: capitalize; text-align: center; margin-bottom: 8px; }
.dow, .days { display: grid; grid-template-columns: repeat(7, 1fr); }
.dow span { text-align: center; font-size: 12px; color: var(--ink-3); padding: 4px 0; }
.day { aspect-ratio: 1; min-height: 40px; border: 0; background: none; cursor: pointer; font-variant-numeric: tabular-nums; border-radius: 0; position: relative; font-size: 15px; }
.day:hover:not(:disabled) { background: var(--surface-2); border-radius: 50%; }
.day.today { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.day.past { color: var(--line); cursor: default; }
.day.full { color: var(--ink-3); text-decoration: line-through; background: repeating-linear-gradient(135deg, transparent 0 4px, var(--line-2) 4px 5px); }
.day.inrange { background: color-mix(in srgb, var(--copihue) 12%, var(--surface)); }
.day.sel { background: var(--copihue); color: var(--on-accent); font-weight: 700; }
.day.start { border-radius: 50% 0 0 50%; } .day.end { border-radius: 0 50% 50% 0; } .day.start.end { border-radius: 50%; }
.rp-legend { font-size: 13px; color: var(--ink-3); display: flex; align-items: center; gap: 8px; margin: 10px 0 0; }
.lg-full { display: inline-block; width: 18px; height: 14px; background: repeating-linear-gradient(135deg, transparent 0 4px, var(--line) 4px 5px); border-radius: 3px; }

/* Detalle de habitación */
.room-detail { display: grid; gap: 20px; }
.gallery-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--r); gap: 8px; }
.gallery-track img { scroll-snap-align: start; aspect-ratio: 3 / 2; object-fit: cover; width: 100%; border-radius: var(--r); }
.plan-big { border-radius: var(--r); overflow: hidden; }
.rd-body { display: grid; gap: 12px; }
.rd-body > p { color: var(--ink-2); margin: 0; }
.amenities { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 16px; font-size: 15px; }
.amenities li { display: flex; gap: 8px; align-items: center; }
.amenities .ic { color: var(--moss); width: 18px; height: 18px; }
.conds { margin: 0; padding-left: 20px; color: var(--ink-2); display: grid; gap: 6px; }
.rd-cta { position: sticky; bottom: -24px; background: var(--surface); padding: 12px 0; border-top: 1px solid var(--line-2); }
.rd-cta .btn { width: 100%; }

/* Reserva */
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 390px); gap: clamp(24px, 4vw, 48px); padding-block: 24px 40px; align-items: start; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-3); text-decoration: none; font-size: 14px; margin-bottom: 12px; }
.back .ic { width: 16px; height: 16px; }
.co-step { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: clamp(18px, 2.5vw, 26px); margin-top: 18px; }
.co-step .h4 { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.stepn { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--forest); color: var(--bg); font: 600 13px var(--f-body); }
.stay-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stay-sum > div { display: flex; flex-direction: column; background: var(--surface-2); border-radius: var(--r-sm); padding: 12px 14px; }
.stay-sum span { font-size: 13px; }
.stay-rooms { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; }
.stay-rooms li { display: flex; gap: 8px; align-items: center; }
.stay-rooms .ic { color: var(--moss); }
.extras { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.extra { display: block; cursor: pointer; position: relative; }
.extra input { position: absolute; opacity: 0; }
.extra-box { display: flex; flex-direction: column; gap: 2px; border: 1.5px solid var(--line); border-radius: var(--r); padding: 12px 14px 12px 44px; height: 100%; position: relative; }
.extra-box::before { content: ""; position: absolute; left: 14px; top: 14px; width: 20px; height: 20px; border-radius: 5px; border: 1.5px solid var(--ink-3); background: var(--surface); }
.extra input:checked + .extra-box { border-color: var(--copihue); background: color-mix(in srgb, var(--copihue) 6%, var(--surface)); }
.extra input:checked + .extra-box::before { background: var(--copihue); border-color: var(--copihue); box-shadow: inset 0 0 0 3px var(--surface); }
.extra input:focus-visible + .extra-box { outline: 2.5px solid var(--copihue); outline-offset: 2px; }
.extra-box > span { font-size: 14px; color: var(--ink-3); }
.extra-box .extra-price { color: var(--ink); font-weight: 600; margin-top: 4px; }
/* Extras por día (almuerzo, cena): la tarjeta ocupa todo el ancho y se eligen los días. */
.extra-days { grid-column: 1 / -1; cursor: default; border: 1.5px solid var(--line); border-radius: var(--r); padding: 0 14px 14px; }
.extra-days .extra-box { border: 0; padding-left: 30px; padding-right: 0; height: auto; width: 100%; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; border-radius: var(--r-sm); }
.extra-days .extra-box::before { left: 0; }
.extra-days.is-on { border-color: var(--copihue); background: color-mix(in srgb, var(--copihue) 6%, var(--surface)); }
.extra-days.is-on .extra-box::before { background: var(--copihue); border-color: var(--copihue); box-shadow: inset 0 0 0 3px var(--surface); }
.xd-q { font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 4px 0 8px; }
.day-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.day-chip { min-height: 38px; padding: 6px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 13.5px; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.day-chip:hover { border-color: var(--ink-3); }
.day-chip[aria-pressed="true"] { border-color: var(--copihue); background: var(--copihue); color: var(--on-accent); }
.xd-people { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 14px; }
.opt { font-weight: 400; color: var(--ink-3); }
.hint { font-size: 13px; color: var(--ink-3); margin: 0; }
.field-err { font-size: 13px; color: var(--bad); margin: 0; }
@media (max-width: 560px) { .fields, .stay-sum { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--copihue); flex: none; }
.co-pay { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.co-pay .btn { white-space: normal; text-align: center; }
.co-pay .btn { width: 100%; }
.secure { display: flex; gap: 8px; font-size: 13px; color: var(--ink-3); margin: 0; }
.secure .ic { width: 16px; height: 16px; margin-top: 2px; }
.co-sticky { position: sticky; top: 84px; }
@media (max-width: 960px) { .checkout { grid-template-columns: minmax(0, 1fr); } .co-aside { order: -1; } .co-sticky { position: static; } }

/* Pasarela simulada */
.gateway { padding-block: 48px; display: grid; place-items: center; }
.gw-card { width: min(460px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow); }
.gw-demo { display: flex; gap: 8px; background: var(--warn-bg); padding: 10px 12px; border-radius: var(--r-sm); font-size: 14px; }
.gw-actions { display: grid; gap: 10px; margin-top: 18px; }

/* Reserva confirmada */
.booking { padding-block: 28px 20px; }
.bk-banner { display: flex; gap: 16px; align-items: flex-start; padding: clamp(18px, 3vw, 28px); border-radius: var(--r-lg); background: var(--surface-2); }
.bk-banner > .ic { width: 34px; height: 34px; padding: 6px; border-radius: 50%; flex: none; }
.bk-banner p { color: var(--ink-2); margin-top: 8px; max-width: 42em; }
.bk-ok { background: var(--ok-bg); } .bk-ok > .ic { background: var(--ok); color: var(--bg); }
.bk-warn { background: var(--warn-bg); } .bk-warn > .ic { background: var(--warn); color: var(--bg); }
.bk-bad { background: var(--bad-bg); } .bk-bad > .ic { background: var(--bad); color: var(--bg); }
.bk-muted > .ic { background: var(--ink-3); color: var(--bg); }
.bk-pay { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin-top: 12px; }
.timer { font-size: 15px; } .timer strong { font-variant-numeric: tabular-nums; }
.bk-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 390px); gap: clamp(20px, 4vw, 44px); margin-top: 24px; align-items: start; }
.bk-code { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.bk-code .code { font-size: clamp(24px, 4vw, 32px); font-weight: 600; letter-spacing: .04em; }
.bk-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin: 0; }
.bk-facts > div { padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.bk-facts dt { font-size: 13px; color: var(--ink-3); margin-bottom: 2px; }
.bk-facts dd { margin: 0; font-weight: 500; }
.bk-facts dd span { display: block; font-weight: 400; font-size: 14px; color: var(--ink-3); }
.bk-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 8px; }
@media (max-width: 900px) { .bk-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .bk-facts { grid-template-columns: 1fr; } }
.chg-box { margin-top: 16px; padding: 14px; border-radius: var(--r); background: var(--surface-2); display: grid; gap: 10px; }
.chg-bad { background: var(--bad-bg); }
.lookup { padding-block: 48px; max-width: 560px; }
.lookup > p { color: var(--ink-2); }
.lk-form { display: grid; gap: 14px; margin-top: 20px; }

/* Etiquetas de estado */
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-ok { background: var(--ok-bg); color: var(--ok); }
.pill-warn { background: var(--warn-bg); color: var(--warn); }
.pill-bad { background: var(--bad-bg); color: var(--bad); }
.pill-info { background: var(--info-bg); color: var(--info); }
.pill-muted { background: var(--surface-2); color: var(--ink-3); }

/* ---------- Movimiento ----------
   Solo transform y opacity (no recalculan el diseño) y una curva suave común.
   Con "reducir movimiento" activado en el sistema, todo aparece sin animación. */
:root { --ease-out: cubic-bezier(.22, 1, .36, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes arch-in { from { opacity: 0; transform: translateY(26px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* Cambio de página: el contenido entra con un fundido breve. */
#main { animation: fade-in .45s ease-out both; }

/* Portada: texto escalonado, el arco con el logo y luego el buscador. */
.hero-copy > * { animation: rise .9s var(--ease-out) both; }
.hero-copy > :nth-child(2) { animation-delay: .12s; }
.hero-copy > :nth-child(3) { animation-delay: .26s; }
.hero-copy > :nth-child(4) { animation-delay: .4s; }
.hero-logo { animation: arch-in 1.1s var(--ease-out) .15s backwards; }
.hero-logo img { animation: rise 1s var(--ease-out) .5s both; }
.hero-logo::after { animation: fade-in 1.2s ease-out .8s both; }
.search-dock { animation: rise .9s var(--ease-out) .55s both; }

/* Aparición al hacer scroll (la activa revealOnScroll en ui.js). */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }
/* El techo sobre cada título se dibuja de izquierda a derecha. */
[data-reveal] .h2::before, .loc-card[data-reveal] .eyebrow::before { transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease-out) .25s; }
[data-reveal].is-in .h2::before, .loc-card[data-reveal].is-in .eyebrow::before { transform: none; }

/* Detalles al pasar el mouse o el dedo. */
.room-visual img, .plan-bg .fp { transition: transform 1s var(--ease-out); }
.room:hover .room-visual img, .room:hover .plan-bg .fp, .rcard:hover .rcard-visual img { transform: scale(1.045); }
.btn-primary, .btn-soft { box-shadow: 0 0 0 rgba(82, 50, 24, 0); transition: background .2s, border-color .2s, color .2s, transform .25s var(--ease-out), box-shadow .25s; }
.btn-primary:hover:not(:disabled), .btn-soft:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(82, 50, 24, .55); }
.btn-primary:active:not(:disabled), .btn-soft:active:not(:disabled) { transform: translateY(1px) scale(.99); box-shadow: none; }
.services li { transition: background .3s; }
.services li:hover { background: var(--surface-2); }
.services li .ic { transition: transform .5s var(--ease-out); }
.services li:hover .ic { transform: translateY(-2px) scale(1.08); }
.reviews a .ic, .rating .ic { transition: transform .3s var(--ease-out); }
.reviews a:hover .ic { transform: translateX(4px); }
.rating:hover .ic { transform: rotate(-12deg) scale(1.1); }
.hero-logo { transition: transform .6s var(--ease-out), box-shadow .6s; }
.hero-logo:hover { transform: translateY(-4px); box-shadow: 0 22px 50px -18px rgba(82, 50, 24, .35); }

/* Cabecera: sombra suave cuando la página ya bajó. */
.site-head { transition: box-shadow .3s; }
.site-head.is-scrolled { box-shadow: 0 8px 28px -10px rgba(20, 18, 7, .55); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  [data-reveal], [data-reveal] .h2::before, .loc-card[data-reveal] .eyebrow::before { opacity: 1; transform: none; }
}
@media (max-width: 860px) { .head-mine { display: inline; margin-left: auto; } }

/* ---------- Mejoras de la auditoría (oct 2026) ---------- */
.hero-copy h1 { margin: 0; font: inherit; }
.hero-copy h1 .eyebrow, .hero-copy h1 .display { display: block; }
.hero-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-links .rating { margin-top: 0; }
.hero-links .rating .ic { color: var(--moss); }
.hero-links .rating:first-child .ic { color: var(--star); }

.trust { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-size: 13.5px; color: var(--ink-2); }
.trust li { display: inline-flex; align-items: center; gap: 7px; }
.trust .ic { width: 17px; height: 17px; color: var(--moss); }

/* Mosaico: una foto grande a la izquierda y hasta cuatro chicas a la derecha, con bordes redondeados solo por fuera. */
.house-photos { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 1fr; gap: 8px; margin-top: 18px; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 2 / 1; }
.house-photos .hp { position: relative; padding: 0; border: 0; background: var(--crema); overflow: hidden; cursor: zoom-in; min-height: 0; }
.house-photos .hp:first-child { grid-row: span 2; }
.house-photos img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out), filter .3s; }
.house-photos .hp:hover img { transform: scale(1.03); filter: brightness(1.05); }
.house-photos.n1 { grid-template-columns: 1fr; aspect-ratio: 16 / 9; }
.house-photos.n2 { grid-template-columns: 1fr 1fr; aspect-ratio: 2 / 1; }
.house-photos.n2 .hp:first-child, .house-photos.n1 .hp:first-child { grid-row: auto; }
.house-photos.n3 { grid-template-columns: 2fr 1fr; }
.house-photos.n4 .hp:last-child { grid-column: span 2; }
.hp-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(36, 28, 20, .45); color: #fff; font: 700 17px/1 var(--f-display); }
@media (max-width: 760px) {
  .house-photos, .house-photos.n3, .house-photos.n5 { grid-template-columns: 1fr 1fr; aspect-ratio: auto; grid-auto-rows: auto; }
  .house-photos .hp { aspect-ratio: 4 / 3; }
  .house-photos .hp:first-child { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 10; }
  .house-photos.n4 .hp:last-child { grid-column: auto; }
}

/* Preguntas frecuentes: introducción a la izquierda y lista con líneas finas, como "Antes de reservar". */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 24px 56px; align-items: start; }
.faq-intro { display: block; margin: 0; position: sticky; top: 96px; }
.faq-intro p { margin: 14px 0 18px; }
.faq { border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 0; cursor: pointer; list-style: none; font: 700 20px/1.25 var(--f-display); transition: color .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover, .faq details[open] summary { color: var(--alerce); }
.faq-ic { position: relative; flex: none; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; transition: border-color .2s, background .2s; }
.faq-ic::before, .faq-ic::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.6px; margin: -.8px 0 0 -5.5px; background: currentColor; border-radius: 1px; transition: transform .3s var(--ease-out); }
.faq-ic::after { transform: rotate(90deg); }
.faq details[open] .faq-ic { border-color: var(--alerce); background: var(--alerce-soft); }
.faq details[open] .faq-ic::after { transform: rotate(0deg); }
.faq details p { margin: -4px 0 20px; padding-right: 48px; color: var(--ink-2); max-width: 40em; }
@media (max-width: 760px) {
  .faq-wrap { grid-template-columns: 1fr; }
  .faq-intro { position: static; }
  .faq summary { font-size: 18px; }
  .faq details p { padding-right: 0; }
}

.gallery { position: relative; }
.gallery .g-prev, .gallery .g-next { position: absolute; top: 50%; transform: translateY(-50%); background: color-mix(in srgb, var(--surface) 88%, transparent); box-shadow: var(--shadow); }
.gallery .g-prev { left: 10px; }
.gallery .g-next { right: 10px; }
.bath-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bath-photos figure { margin: 0; }
.bath-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); background: var(--crema); }
.bath-photos figcaption { font-size: 13px; color: var(--ink-3); margin-top: 4px; }
.plan-more { margin: 10px 0 4px; }
.plan-more summary { cursor: pointer; font-size: 14px; color: var(--ink-3); }
.plan-more .plan-bg { margin-top: 10px; }

.lb-fig { margin: 0; }
.lb-fig img { width: 100%; max-height: 72vh; object-fit: contain; border-radius: var(--r); background: var(--crema); }
.lb-fig figcaption { margin-top: 8px; font-size: 14px; color: var(--ink-3); }
.lb-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 10px; font-size: 14px; color: var(--ink-3); }

.wa-float { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40; display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px 12px 14px; border-radius: 999px; background: #1F7A4D; color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; box-shadow: 0 6px 20px rgb(0 0 0 / .22); }
.wa-float .ic { width: 22px; height: 22px; }
.wa-float:hover { background: #18663f; }
@media (min-width: 761px) { .wa-float span { display: none; } .wa-float { padding: 14px; } }
body:not([data-view="inicio"]):not([data-view="mi-reserva"]) .wa-float { display: none; }
@media print { .wa-float { display: none; } }
@media (max-width: 760px) { body[data-view="inicio"] .site-foot, body[data-view="mi-reserva"] .site-foot { padding-bottom: calc(84px + env(safe-area-inset-bottom)); } }
