/* Apartamentos Palacio — shared styles
   Palette: "stadium night meets the apartment".
   Cancha (pitch green) and Arcilla (clay) bring the energy of match nights;
   Mármol, Nogal, Roble and Salvia come from the units (see /brand/palacio-brand-guide.html). */
/* Brand fonts, self-hosted (Google Fonts, SIL Open Font License). Jost is variable: one file = weights 300–600. */
@font-face { font-family: "Jost"; font-style: normal; font-weight: 300 600; font-display: swap; src: url("/assets/fonts/jost-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Marcellus"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/marcellus-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* brand */
  --cancha: #16372B;        /* deep pitch green: hero, reviews */
  --cancha-2: #21493A;
  --cancha-3: #0F271E;
  --arcilla: #B24A24;       /* clay: primary actions (white text 5.4:1) */
  --arcilla-hover: #963C1B;
  --arcilla-soft: #F3E3D9;
  --nogal: #3B2A21;         /* walnut: footer, logo */
  --roble: #B6834F;         /* oak: rules, slats */
  --roble-lt: #DDB07A;      /* oak on dark green (6.5:1) */
  --salvia: #95A283;
  --salvia-lt: #E3E8DA;
  --marmol: #F4F1EB;
  --white: #FFFFFF;

  /* roles */
  --bg: var(--marmol);
  --surface: var(--white);
  --ink: #1B1D1A;
  --muted: #5D625C;
  --line: #E2DDD3;
  --on-dark: #CFDAD2;
  --on-dark-2: #A9BCB1;
  --accent-text: var(--arcilla);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(22, 55, 43, .06), 0 2px 8px -2px rgba(22, 55, 43, .08);
  --shadow: 0 24px 48px -24px rgba(15, 39, 30, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --serif: "Marcellus", "Optima", Georgia, serif;
  --sans: "Jost", "Avenir Next", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(64px, 9vw, 112px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -.005em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: 1.3rem; line-height: 1.2; }
p { margin: 0 0 1em; }
b, strong { font-weight: 600; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em; margin-bottom: 1.1em;
  font-size: .76rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; color: var(--accent-text);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.eyebrow a { text-decoration: none; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 58ch; }
section { padding-block: var(--section); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 32px 64px; align-items: end; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { margin: 0; }
.section-head .lead { margin: 0; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--white); padding: 8px 12px; z-index: 99; }
:focus-visible { outline: 2px solid var(--arcilla); outline-offset: 3px; border-radius: 4px; }
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 48px;
  padding: .8em 1.4em; border-radius: 999px; font: 600 .95rem/1 var(--sans); letter-spacing: .01em;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn .i { width: 18px; height: 18px; transition: transform .18s var(--ease); }
.btn:hover .i-arrow { transform: translateX(3px); }
.btn-primary { background: var(--arcilla); color: #fff; }
.btn-primary:hover { background: var(--arcilla-hover); }
.btn-dark { background: var(--cancha); color: #fff; }
.btn-dark:hover { background: var(--cancha-2); }
.btn-ghost { border-color: currentColor; background: transparent; }
.btn-ghost:hover { background: rgba(127, 127, 127, .1); }
.btn-light { background: var(--marmol); color: var(--cancha); }
.btn-light:hover { background: #fff; }
.btn-airbnb { background: #E0004D; color: #fff; }  /* darker than Airbnb pink for 4.9:1 contrast */
.btn-booking { background: #003580; color: #fff; }
.btn-wa { background: #17803F; color: #fff; }  /* 5.0:1 contrast */
.btn-airbnb:hover, .btn-booking:hover, .btn-wa:hover { filter: brightness(.92); }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btn svg:not(.i) { width: 18px; height: 18px; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; color: var(--accent-text); text-decoration: none; }
.link-arrow .i { width: 18px; height: 18px; transition: transform .18s var(--ease); }
.link-arrow:hover .i, a:hover .link-arrow .i { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(244, 241, 235, .9); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: .95rem; position: relative; padding-block: 6px; }
.nav a:not(.btn):not(.lang)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--arcilla); transform: scaleX(0); transform-origin: left; transition: transform .2s var(--ease); }
.nav a:not(.btn):not(.lang):hover::after { transform: scaleX(1); }
.nav .btn { min-height: 42px; padding: .6em 1.2em; }
.lang { font-size: .78rem !important; font-weight: 600 !important; letter-spacing: .08em; border: 1px solid var(--line); border-radius: 999px; padding: 6px 11px !important; }
.lang:hover { border-color: var(--ink); }
.menu-btn { display: none; background: none; border: 0; width: 48px; height: 48px; margin-right: -12px; cursor: pointer; }
.menu-btn span { display: block; width: 22px; height: 1.75px; background: var(--ink); margin: 5px auto; transition: transform .2s var(--ease), opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.75px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.75px) rotate(-45deg); }
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .logo img { height: 40px; }
  .nav { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--marmol); border-bottom: 1px solid var(--line); display: none; padding: 8px var(--gutter) 20px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav .btn { margin-top: 14px; }
  .lang { align-self: flex-start; margin-top: 14px; border-bottom: 1px solid var(--line) !important; }
}

/* ---------- Hero (pitch at night) ---------- */
.hero { background: var(--cancha); color: var(--marmol); padding-block: clamp(48px, 7vw, 88px) 0; position: relative; overflow: hidden; }
.hero::before { /* mown-grass stripes, very faint */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.028) 0 120px, transparent 120px 240px);
}
.hero .wrap { position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero .eyebrow { color: var(--roble-lt); }
.hero h1 { color: #fff; margin-bottom: .4em; }
.hero h1 em { font-style: normal; color: var(--roble-lt); }
.hero .lead { color: var(--on-dark); margin-bottom: 2em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn-ghost { color: var(--marmol); border-color: rgba(244, 241, 235, .45); }
.hero .btn-ghost:hover { border-color: var(--marmol); background: rgba(244, 241, 235, .08); }
.proof { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 32px; font-size: .92rem; color: var(--on-dark); }
.proof span { display: inline-flex; align-items: center; gap: 8px; }
.proof .i { width: 18px; height: 18px; color: var(--roble-lt); }
.proof b { color: #fff; font-weight: 600; }
.stars { display: inline-flex; gap: 2px; color: var(--roble-lt); }
.stars .i { width: 15px; height: 15px; }

.hero-media { position: relative; }
.hero-media .ph { aspect-ratio: 4 / 5; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.hero-media .ph[data-label]:not(:has(img)) { background: repeating-linear-gradient(90deg, #4a3527 0 18px, #3B2A21 18px 20px); }
.hero-media .ph[data-label]:not(:has(img))::after { color: var(--on-dark); }
.distance-tag {
  position: absolute; left: -28px; bottom: 36px; background: var(--marmol); color: var(--ink); border-radius: var(--radius);
  padding: 16px 20px 14px; box-shadow: var(--shadow); display: grid; gap: 2px; min-width: 190px;
}
.distance-tag .n { font-family: var(--serif); font-size: 3.2rem; line-height: 1; color: var(--cancha); }
.distance-tag .n small { font-size: .45em; color: var(--arcilla); margin-left: .08em; }
.distance-tag span { font-size: .85rem; color: var(--muted); }

/* the 90 m ruler: door → stadium, 10 m ticks */
.ruler { margin-top: clamp(40px, 6vw, 64px); padding-block: 22px 26px; border-top: 1px solid rgba(207, 218, 210, .18); display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; font-size: .85rem; color: var(--on-dark); }
.ruler strong { display: block; color: #fff; font-weight: 600; font-size: .95rem; }
.ruler .end { text-align: right; }
.ruler .scale { position: relative; height: 26px; }
.ruler .scale::before { content: ""; position: absolute; left: 0; right: 0; top: 12px; height: 2px; background: var(--roble-lt); }
.ruler .scale::after {
  content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 14px;
  background: repeating-linear-gradient(90deg, var(--roble-lt) 0 1.5px, transparent 1.5px calc(100% / 9));
  mask: linear-gradient(90deg, #000 calc(100% - 2px), #000);
}
.ruler .scale span { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--cancha); padding: 0 10px; color: var(--roble-lt); font-weight: 600; letter-spacing: .06em; white-space: nowrap; }
.ruler .scale i { position: absolute; right: -1px; top: 4px; width: 2px; height: 18px; background: var(--roble-lt); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; display: none; }
}
@media (max-width: 560px) {
  .ruler { grid-template-columns: 1fr 1fr; align-items: end; }
  .ruler .scale { grid-column: 1 / -1; grid-row: 1; margin-bottom: 8px; }
}

/* ---------- Booking bar (overlaps hero) ---------- */
.book-wrap { /* continues the hero's pitch stripes behind the top half of the bar */
  background: linear-gradient(transparent 50%, var(--bg) 50%), repeating-linear-gradient(90deg, rgba(255,255,255,.028) 0 120px, transparent 120px 240px), var(--cancha);
}
.book-bar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 14px; display: grid; grid-template-columns: 1.35fr 1fr 1fr .75fr auto; gap: 6px; align-items: end; }
.book-bar > div { padding: 8px 12px; border-radius: var(--radius); transition: background-color .15s; }
.book-bar > div:hover { background: var(--marmol); }
.book-bar label, .form label { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.book-bar input, .book-bar select { border: 0 !important; background: transparent !important; padding: 0 !important; height: 32px !important; font-weight: 500; font-size: 1rem !important; }
.book-bar .btn { height: 56px; padding-inline: 1.8em; align-self: center; }
.form input, .form select, .form textarea, .book-card input, .book-card select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); font: inherit; font-size: 1rem; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.form input:focus, .form select:focus { border-color: var(--cancha); box-shadow: 0 0 0 3px rgba(22, 55, 43, .12); outline: none; }
.book-bar select, .book-bar input { width: 100%; font: inherit; color: var(--ink); cursor: pointer; }
@media (max-width: 900px) {
  .book-bar { grid-template-columns: 1fr 1fr; }
  .book-bar > div:first-child { grid-column: 1 / -1; }
  .book-bar .btn { grid-column: 1 / -1; width: 100%; }
}

/* ---------- Key facts strip ---------- */
.facts-strip { list-style: none; margin: clamp(32px, 5vw, 48px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.facts-strip li { padding: 22px 20px; display: grid; gap: 4px; }
.facts-strip li + li { border-left: 1px solid var(--line); }
.facts-strip .n { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1; color: var(--cancha); font-variant-numeric: lining-nums tabular-nums; }
.facts-strip span { color: var(--muted); font-size: .92rem; }
@media (max-width: 760px) {
  .facts-strip { grid-template-columns: 1fr 1fr; }
  .facts-strip li:nth-child(3) { border-left: 0; }
  .facts-strip li:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Photo placeholders ---------- */
.ph { position: relative; background: var(--salvia-lt); border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
picture { display: contents; }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.ph[data-label]:not(:has(img)) { background: repeating-linear-gradient(90deg, #c69565 0 14px, #B6834F 14px 16px); }
.ph[data-label]:not(:has(img))::after {
  content: attr(data-label); position: absolute; inset: auto 12px 12px 12px; text-align: left; padding: 8px 12px;
  background: rgba(15, 39, 30, .72); color: #fff; font-size: .8rem; font-weight: 500; border-radius: var(--radius-sm); backdrop-filter: blur(4px);
}

/* ---------- Why ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.feature { padding: 32px 28px 8px 0; }
.feature + .feature { padding-left: 28px; border-left: 1px solid var(--line); }
.feature .ico { width: 52px; height: 52px; border-radius: 50%; background: var(--salvia-lt); color: var(--cancha); display: grid; place-items: center; margin-bottom: 22px; }
.feature .ico .i { width: 24px; height: 24px; }
.feature h3 { font-size: 1.35rem; }
.feature p { color: var(--muted); font-size: .98rem; margin: 0; }
@media (max-width: 960px) {
  .why-grid { grid-template-columns: 1fr 1fr; }
  .feature:nth-child(3) { padding-left: 0; border-left: 0; }
  .feature:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 24px; }
}
@media (max-width: 560px) {
  .why-grid { grid-template-columns: 1fr; }
  .feature, .feature + .feature { padding: 24px 0 0; border-left: 0; }
  .feature + .feature { border-top: 1px solid var(--line); margin-top: 24px; }
}

/* ---------- Units ---------- */
.units { background: var(--white); }
.units-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; }
.unit-card { position: relative; background: var(--marmol); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.unit-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.unit-card:hover .ph img { transform: scale(1.03); }
.unit-card .ph { border-radius: 0; aspect-ratio: 16 / 10; }
.unit-no { position: absolute; top: 14px; right: 20px; z-index: 2; font-family: var(--serif); font-size: 4.6rem; line-height: 1; color: #fff; text-shadow: 0 2px 20px rgba(0, 0, 0, .25); }
.unit-card .body { padding: 26px 28px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.unit-card h3 { font-size: 1.7rem; margin: 0; }
.unit-card .meta { color: var(--muted); font-size: .95rem; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.unit-card .meta span { display: inline-flex; align-items: center; gap: 6px; }
.unit-card .meta .i { width: 17px; height: 17px; color: var(--cancha); }
.unit-card .tag { position: absolute; top: 18px; left: 18px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; background: var(--white); color: var(--ink); border-radius: 999px; padding: 7px 13px; font-size: .8rem; font-weight: 600; box-shadow: var(--shadow-sm); }
.unit-card .tag .i { width: 15px; height: 15px; color: var(--arcilla); }
.unit-card .tag.soon { background: var(--cancha); color: #fff; }
.unit-card .more { margin-top: auto; padding-top: 12px; }
.unit-card.soon { background: var(--cancha); color: var(--marmol); }
.ph-soon { /* Apartamento 2: architect's sheet until photos exist */
  display: grid; place-items: center; background:
    linear-gradient(rgba(244,241,235,.07) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(244,241,235,.07) 1px, transparent 1px) 0 0 / 28px 28px,
    radial-gradient(120% 90% at 50% 100%, var(--cancha-2), var(--cancha-3));
}
.ph-soon .soon-mark { width: 44%; height: auto; object-fit: contain; opacity: .95; }
.unit-card:hover .ph-soon .soon-mark { transform: none; }
.ph-soon .soon-note { position: absolute; left: 20px; bottom: 16px; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--roble-lt); font-weight: 600; }
.unit-card .ph img { object-position: center 55%; }
.unit-card.soon .meta { color: var(--on-dark); }
.unit-card.soon .link-arrow { color: var(--roble-lt); }
.rating { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
@media (max-width: 860px) { .units-grid { grid-template-columns: 1fr; } }

/* ---------- Who it's for ---------- */
.for { background: var(--salvia-lt); }
.for .eyebrow { color: var(--arcilla-hover); }  /* 5.7:1 on salvia */
.for-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.for-card { background: var(--white); border-radius: var(--radius); padding: 28px 24px 26px; display: grid; gap: 10px; align-content: start; border: 1px solid rgba(22, 55, 43, .06); }
.for-card .i { width: 26px; height: 26px; color: var(--arcilla); margin-bottom: 10px; }
.for-card h3 { margin: 0; }
.for-card p { color: var(--muted); font-size: .96rem; margin: 0; }
@media (max-width: 960px) { .for-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .for-grid { grid-template-columns: 1fr; } }

/* ---------- Location ---------- */
.loc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.dist-list { list-style: none; padding: 0; margin: 28px 0 0; }
.dist-list li { display: grid; grid-template-columns: 36px 1fr auto; gap: 14px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.dist-list .i { width: 20px; height: 20px; color: var(--muted); justify-self: center; }
.dist-list li.walk .i { color: var(--arcilla); }
.dist-list li span:last-child { font-weight: 600; color: var(--cancha); white-space: nowrap; font-variant-numeric: tabular-nums; }
.map-card { position: relative; }
.map-frame { width: 100%; aspect-ratio: 1 / 1; border: 0; border-radius: var(--radius-lg); background: var(--salvia-lt); display: block; }
.map-pin-tag { position: absolute; left: 16px; top: 16px; display: inline-flex; align-items: center; gap: 8px; background: var(--cancha); color: #fff; padding: 9px 14px; border-radius: 999px; font-size: .85rem; font-weight: 600; box-shadow: var(--shadow); }
.map-pin-tag .i { width: 16px; height: 16px; color: var(--roble-lt); }
.note { font-size: .88rem; color: var(--muted); margin-top: 14px; }
.dist-note { font-size: .84rem; max-width: 46ch; margin: 12px 0 0; }
@media (max-width: 900px) { .loc-grid { grid-template-columns: 1fr; } }

/* ---------- Reviews / trust ---------- */
.trust { background: var(--cancha); color: var(--marmol); }
.trust .eyebrow { color: var(--roble-lt); }
.score-wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.score-big { font-family: var(--serif); font-size: clamp(5rem, 11vw, 8.5rem); line-height: .9; color: #fff; display: grid; gap: 14px; justify-items: start; margin-bottom: 18px; font-variant-numeric: lining-nums; }
.score-big .stars .i { width: 22px; height: 22px; }
.score-big .stars { gap: 4px; }
.trust p { color: var(--on-dark); }
.trust .btn-dark { background: var(--marmol); color: var(--cancha); }
.trust .btn-dark:hover { background: #fff; }
.trust-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.trust .btn-ghost { color: var(--marmol); border-color: rgba(244, 241, 235, .45); }
.subscores { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 40px; }
.sub { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; font-size: .98rem; }
.sub b { font-variant-numeric: tabular-nums; color: #fff; }
.sub .bar { grid-column: 1 / -1; height: 4px; background: rgba(207, 218, 210, .16); border-radius: 9px; overflow: hidden; }
.sub .bar i { display: block; height: 100%; background: var(--roble-lt); border-radius: 9px; }
@media (max-width: 800px) { .score-wrap { grid-template-columns: 1fr; } .subscores { grid-template-columns: 1fr; } }

/* ---------- Direct booking ---------- */
.direct-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
.perks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.perks li { display: flex; gap: 12px; align-items: flex-start; }
.perks .i { color: var(--arcilla); margin-top: 3px; }
.channels { display: grid; gap: 10px; margin-top: 32px; }
.channel { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 14px 14px 20px; }
.channel small { display: block; color: var(--muted); font-size: .85rem; }
.channel .btn { min-height: 44px; padding: .6em 1.2em; }
.form { background: var(--white); color: var(--ink); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 34px); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.form .full { grid-column: 1 / -1; }
.form h3 { grid-column: 1 / -1; margin: 0; font-size: 1.7rem; }
.form .sub-h { grid-column: 1 / -1; margin: -10px 0 4px; color: var(--muted); font-size: .95rem; }
.form .fine { grid-column: 1 / -1; font-size: .82rem; color: var(--muted); margin: 0; }
.form .fine a { color: var(--accent-text); }
@media (max-width: 900px) { .direct-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .form { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { background: var(--white); }
.faq-grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.faq-grid > div:first-child { position: sticky; top: 104px; }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 500; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; min-height: 48px; }
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line);
  background: linear-gradient(var(--ink), var(--ink)) center / 10px 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1.5px 10px no-repeat;
  transition: transform .2s var(--ease), background-color .2s;
}
summary:hover::after { border-color: var(--ink); }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0; padding: 0 44px 22px 0; color: var(--muted); max-width: 64ch; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } .faq-grid > div:first-child { position: static; } }

/* ---------- Unit page ---------- */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; height: clamp(320px, 48vw, 540px); margin-top: 28px; }
.gallery .ph { aspect-ratio: auto; height: 100%; border-radius: var(--radius-sm); }
.gallery .ph:first-child { grid-row: 1 / 3; border-radius: var(--radius-lg) var(--radius-sm) var(--radius-sm) var(--radius-lg); }
.gallery .ph:nth-child(3) { border-top-right-radius: var(--radius-lg); }
.gallery .ph:last-child { border-bottom-right-radius: var(--radius-lg); }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 2fr 1fr 1fr; height: 560px; } .gallery .ph:first-child { grid-column: 1 / -1; grid-row: auto; border-radius: var(--radius-lg); } }
.unit-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 64px; align-items: start; }
.facts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; color: var(--muted); margin: 8px 0 28px; }
.facts span { display: inline-flex; align-items: center; gap: 7px; }
.facts .i { width: 17px; height: 17px; color: var(--arcilla); }
.facts b { color: var(--ink); }
.rooms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 20px 0 36px; }
.room { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.room b { display: block; margin-bottom: 4px; font-weight: 600; }
.room span { color: var(--muted); font-size: .94rem; }
.amen { columns: 2; gap: 32px; padding: 0; list-style: none; margin: 16px 0 40px; }
.amen li { break-inside: avoid; padding: 9px 0 9px 32px; position: relative; border-bottom: 1px solid var(--line); }
.amen li::before {
  content: ""; position: absolute; left: 0; top: 13px; width: 20px; height: 20px; border-radius: 50%; background: var(--salvia-lt);
}
.amen li::after { content: ""; position: absolute; left: 7px; top: 17px; width: 6px; height: 10px; border: solid var(--cancha); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.good-to-know { background: var(--arcilla-soft); border-radius: var(--radius); padding: 24px 28px; }
.good-to-know h3 { font-size: 1.4rem; }
.good-to-know ul { margin: 0; padding-left: 20px; }
.good-to-know li { margin: 6px 0; }
.good-to-know li::marker { color: var(--arcilla); }
.book-card { position: sticky; top: 96px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow); display: grid; gap: 12px; }
.book-card h3 { margin: 0; font-size: 1.7rem; }
.book-card .rating-line { color: var(--muted); font-size: .92rem; margin-top: -4px; display: flex; align-items: center; gap: 6px; }
.book-card .rating-line .i { width: 15px; height: 15px; color: var(--arcilla); }
.book-card .or { text-align: center; color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .14em; display: flex; align-items: center; gap: 12px; }
.book-card .or::before, .book-card .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.book-card .btn { width: 100%; }
.book-card .form { border: 0; box-shadow: none; background: none; border-radius: 0; }
.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0 36px; }
@media (max-width: 960px) { .unit-layout { grid-template-columns: 1fr; } .book-card { position: static; } }
@media (max-width: 640px) { .rooms, .rules { grid-template-columns: 1fr; } .amen { columns: 1; } }

/* ---------- Footer (walnut) ---------- */
.site-footer { background: var(--nogal); color: #CDBFB1; padding: 72px 0 32px; font-size: .94rem; position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: repeating-linear-gradient(90deg, var(--roble) 0 14px, #9d6f40 14px 16px); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.site-footer .foot-h { font-family: var(--sans); line-height: 1.4; text-wrap: wrap;  color: #fff; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; margin: 0 0 16px; font-weight: 600; }
.site-footer a { text-decoration: none; display: block; padding: 4px 0; }
.site-footer a:hover { color: #fff; }
.site-footer .logo { margin-bottom: 18px; }
.site-footer .logo img { height: 52px; }
.site-footer .copy { border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding-top: 22px; font-size: .84rem; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; } }

/* ---------- Floating WhatsApp ---------- */
.wa-float { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); width: 58px; height: 58px; border-radius: 50%; background: #1f8f4e; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.25); z-index: 60; transition: transform .18s var(--ease); }
.wa-float:hover { transform: scale(1.05); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float[hidden] { display: none; }

/* Grid children + native date inputs must be allowed to shrink (prevents overflow on phones) */
.book-bar > *, .form > *, .hero-grid > *, .loc-grid > *, .direct-grid > *, .unit-layout > *, .score-wrap > *, .faq-grid > * { min-width: 0; }
input[type="date"] { min-width: 0; max-width: 100%; -webkit-appearance: none; appearance: none; }
.form select, .form input, .book-card select, .book-card input { height: 50px; }

.form-msg { grid-column: 1 / -1; margin: 0; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--arcilla-soft); color: #7a2f14; font-size: .92rem; font-weight: 500; }
[aria-invalid="true"] { border-color: var(--arcilla) !important; }
.book-bar > div:has([aria-invalid="true"]) { background: var(--arcilla-soft); }

/* ---------- Legal pages ---------- */
.legal { max-width: 780px; }
.legal h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); }
.legal h2 { font-size: 1.55rem; margin-top: 2.2em; }
.legal p, .legal li { color: #34372F; }
.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal .updated { color: var(--muted); font-size: .9rem; }
.legal .callout { background: var(--salvia-lt); border-radius: var(--radius); padding: 18px 22px; margin: 24px 0; }
.legal table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .95rem; }
.legal th, .legal td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.legal a:not(.btn) { color: var(--accent-text); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Cookie consent (only shown when Google Analytics is configured) ---------- */
.consent { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 70; max-width: 560px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px 18px; display: grid; gap: 12px; font-size: .92rem; }
.consent p { margin: 0; }
.consent a { color: var(--accent-text); }
.consent-btns { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.consent .btn { padding: .6em 1.2em; }
@media (min-width: 700px) { .consent { right: auto; } }

/* ---------- Mobile / iPhone Safari hardening ---------- */
/* Nothing may widen the page: on iPhone a single stray pixel makes the whole page zoom out or slide sideways.
   "clip" (unlike "hidden") keeps the sticky header working. */
html, body { overflow-x: clip; }
@supports not (overflow: clip) { body { overflow-x: hidden; } }
/* iOS date fields: keep them inside their column and left-aligned like the other fields */
input[type="date"] { display: block; width: 100%; min-width: 0; text-align: left; }
input[type="date"]::-webkit-date-and-time-value { text-align: left; margin: 0; }
/* iOS iframes can ignore width:100%; this pins the map to its box */
.map-frame { width: 1px; min-width: 100%; }
/* Phones: the cookie notice and the WhatsApp bubble share the bottom edge, so show one at a time */
@media (max-width: 699px) { body:has(.consent) .wa-float { display: none; } }
a, button, summary { -webkit-tap-highlight-color: rgba(22, 55, 43, .12); }
