/* Casa de la Arboleda: site styles v9 (E2 images + spacing, 2026-10-12).
   System taken from the approved palette E board: linen page, one arched photo with a brass outline,
   hairline bands, 6px corners. Colors and fonts only from tokens.css.
   Order: tokens, base, header, menu, hero, stats, questions, day, guide, reviews, services, daycenter,
   steps/plan, faq, footer, bubble, pending, inner page, split-section order rule (mobile, 2026-10-13).
   Plan: docs/e2-images-spacing-review-2026-10-12.md */

/* ---------- Tokens ---------- */
:root {
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px;
  --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --rule: 1px solid var(--ca-linen-deep);
  --radius: 6px;
  /* Spacing scale: tiers follow the layout collapse points (1000 / 600) */
  --section: 96px;
  --gutter: 24px;
  --gap-eyebrow: 12px;
  --gap-lede: 20px;
  --gap-head: 48px;
  --gap-grid: 40px;
  --gap-card-img: 20px;
  --gap-card-title: 6px;
  --gap-card-text: 10px;
  --gap-cta: 40px;
}
@media (max-width: 999px) {
  :root { --section: 72px; --gutter: 20px; --gap-head: 40px; --gap-grid: 32px; --gap-cta: 32px; }
}
@media (max-width: 599px) {
  :root { --section: 64px; --gutter: 16px; --gap-eyebrow: 10px; --gap-lede: 16px; --gap-grid: 48px; --gap-card-img: 16px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
body {
  margin: 0; background: var(--ca-linen); color: var(--ca-ink);
  font: 400 1.125rem/1.65 var(--ca-font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
/* Photos ship as <picture> (AVIF + WebP); the wrapper adds no box, so img rules and grid placement hold.
   The surface tone shows in the photo's box until its bytes arrive. */
picture { display: contents; }
picture source { display: none; } /* with the picture as contents, Chrome would lay out the source as a grid item */
picture img { background: var(--ca-surface); }
a { color: var(--ca-green); text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--ca-brass-leaf); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--ca-font-head); font-weight: 500; color: var(--ca-green); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 4.6vw, 3.5rem); line-height: 1.07; letter-spacing: -.005em; }
h2 { font-size: clamp(1.875rem, 3.4vw, 2.5rem); line-height: 1.1; }
h3 { font-size: clamp(1.375rem, 2vw, 1.5rem); line-height: 1.25; }
p { margin: 0; }
.wrap { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--section); }
.band-surface { background: var(--ca-surface); border-block: var(--rule); }
.eyebrow { font: 600 .8125rem/1.3 var(--ca-font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--ca-brass-text); margin-bottom: var(--gap-eyebrow); }
.lede { font-size: 1.25rem; line-height: 1.55; max-width: 40ch; }
.measure { max-width: 62ch; }
.text-link { font-weight: 600; }
/* Standalone text links: a 44px row. Links inside running text get a 44px hit area from ::after. */
.daycenter .text-link { display: inline-flex; align-items: center; min-height: 44px; }
a[data-reviews], .faq details a { position: relative; }
a[data-reviews]::after, .faq details a::after { content: ""; position: absolute; inset: -12px -6px; }

/* The one CTA */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 58px; padding: 0 var(--s-6);
  background: var(--ca-green); color: var(--ca-linen);
  font: 600 1.0625rem/1 var(--ca-font-body); letter-spacing: .01em; text-decoration: none;
  border-radius: 6px; transition: background-color .15s ease;
  box-shadow: inset 0 0 0 3px var(--ca-green), inset 0 0 0 4px var(--ca-brass);
}
.btn:hover { background: var(--ca-ink); box-shadow: inset 0 0 0 3px var(--ca-ink), inset 0 0 0 4px var(--ca-brass); }
.btn svg { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }
.btn--sm, .btn--sm:hover { min-height: 44px; padding: 0 var(--s-4); font-size: .9375rem; box-shadow: none; }
.on-green { background: var(--ca-green); color: var(--ca-linen); }
.on-green h2, .on-green h3 { color: var(--ca-linen); }
.on-green .eyebrow { color: var(--ca-brass); }
.on-green .btn { background: var(--ca-linen); color: var(--ca-green); box-shadow: none; }
.on-green .btn:hover { background: var(--ca-surface); }

/* Icons: one family, 1.5px line */
.s-icon, .q-icon, .sv-icon { display: grid; place-items: center; flex: none; color: var(--ca-green); }
.s-icon svg, .q-icon svg { width: 24px; height: 24px; }
.sv-icon svg { width: 20px; height: 20px; }
.s-icon, .q-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--ca-surface); outline: 1px solid var(--ca-brass-leaf); outline-offset: -1px; }

/* Logo: canonical export file, untouched (horizontal lockup, 5.057:1, no padding in the file) */
.logo { --h: 52px; display: block; height: var(--h); width: calc(var(--h) * 5.057); flex: none; }
.logo img { display: block; height: var(--h); width: auto; max-width: none; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--ca-linen); border-bottom: var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); height: 80px; }
.nav { display: flex; gap: var(--s-6); }
.nav a { color: var(--ca-ink); text-decoration: none; font-weight: 600; font-size: .9375rem; white-space: nowrap; }
.nav a:hover { color: var(--ca-green); text-decoration: underline; }
.header-actions { display: flex; align-items: center; gap: var(--s-2); flex: none; }
.site-header .btn--sm { white-space: nowrap; }
@media (max-width: 960px) { .nav { gap: var(--s-4); } .nav a { font-size: .875rem; } }
/* 1019px: below this, logo + 5 links + header button wrap in the header row (re-measured 2026-10-13 with Leonardo's horizontal logo; was 846px).
   The same query hides .nav and shows the menu button. */
@media (max-width: 1019px) { .nav { display: none; } }
@media (max-width: 600px) { .site-header .lbl-long { display: none; } } /* "WhatsApp" alone keeps the button on one line */
@media (max-width: 480px) {
  .site-header .wrap { height: 68px; gap: var(--s-3); }
  .site-header .logo { --h: 40px; box-sizing: content-box; padding-block: 2px; } /* 44px tap target */
  .site-header .btn--sm { font-size: .8125rem; padding: 0 var(--s-3); gap: .4em; }
}
@media (max-width: 400px) { .site-header .logo { --h: 36px; padding-block: 4px; } .header-actions { gap: var(--s-1); } }
/* 320-360px phones: logo + WhatsApp icon + menu button. The label stays in the markup for screen readers. */
@media (max-width: 360px) {
  .site-header .logo { --h: 34px; padding-block: 5px; }
  .site-header .btn--sm { width: 44px; padding: 0; }
  .site-header .btn--sm .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* ---------- Menu (phones and tablets, where .nav is hidden) ---------- */
.menu-btn {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0; flex: none;
  background: none; border: 1px solid var(--ca-linen-deep); border-radius: var(--radius); color: var(--ca-green); cursor: pointer;
}
.menu-btn[hidden] { display: none; }
@media (min-width: 1020px) { .menu-btn { display: none; } }
.menu-btn svg { width: 24px; height: 24px; }
.menu-btn .i-close, .menu-btn[aria-expanded="true"] .i-menu { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }
.menu-btn:hover { background: var(--ca-surface); }
.menu { display: none; background: var(--ca-linen); }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu li { border-top: var(--rule); }
.menu a {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  min-height: 48px; padding: 0 var(--gutter);
  font: 600 1.0625rem/1.3 var(--ca-font-body); color: var(--ca-green); text-decoration: none;
}
.menu a:hover span { text-decoration: underline; }
.menu svg { width: 20px; height: 20px; flex: none; color: var(--ca-brass-text); }
@media (max-width: 1019px) {
  .menu { display: block; } /* without JS: a plain list under the header */
  .js .menu {
    position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100dvh - 100%); overflow-y: auto;
    border-bottom: var(--rule); visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
  }
  .js .menu.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .18s ease, transform .18s ease; }
  /* A tap anywhere outside the panel lands on this layer and closes the menu */
  .site-header.is-open::after { content: ""; position: fixed; inset: 0; z-index: -1; }
  html:not(.js) .site-header { position: relative; }
}
html.menu-open { overflow: hidden; }

/* ---------- Hero: the one arch ---------- */
.hero { padding-block: var(--s-8); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--s-7); align-items: center; }
.hero-copy { display: grid; gap: var(--s-5); justify-items: start; }
.hero-copy h1 { max-width: none; }
.hero-copy .eyebrow { margin: 0; }
.hero-proofs { display: flex; flex-direction: column; gap: var(--s-2); }
.hero-proof { display: inline-flex; align-items: center; gap: var(--s-2); font-size: .9375rem; color: var(--ca-ink); }
.hero-proof img { width: 20px; height: 20px; }
.hero-proof .stars, .rating .stars { color: var(--ca-brass-leaf); letter-spacing: .08em; }
.proof-icon { display: grid; place-items: center; width: 20px; height: 20px; color: var(--ca-green); }
.proof-icon svg { width: 20px; height: 20px; }
.arch-wrap { display: grid; justify-items: center; padding: var(--s-2); }
.arch { width: 100%; max-width: 380px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 999px 999px var(--radius) var(--radius); outline: 1px solid var(--ca-brass-leaf); outline-offset: 7px; }
.fp-dibujo { object-position: 50% 35%; }
@media (max-width: 900px) {
  .hero { padding-block: var(--s-7) var(--s-8); }
  .hero .wrap { grid-template-columns: 1fr; gap: var(--s-7); }
  .arch { max-width: 300px; }
}
@media (max-width: 600px) { .hero-proof { font-size: 1rem; } }
@media (max-width: 480px) {
  .hero-copy .eyebrow { display: none; }
  .hero-cta, .hero-cta .btn { width: 100%; }
}

/* Home hero on green (concept C, 2026-10-13): copy left, brass-framed photo right.
   Brass is the accent on green; linen carries the text (10.3:1), brass the stars and shield (5.7:1). */
.hero--green .wrap { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--s-8); }
.hero--green h1 { color: var(--ca-linen); font-size: clamp(2.25rem, 3.6vw, 3.25rem); }
.hero--green .hero-proof { color: var(--ca-linen); }
.hero--green .hero-proof .stars, .hero--green .proof-icon { color: var(--ca-brass); }
.hero--green .hero-proof img { box-sizing: content-box; padding: 2px; border-radius: 50%; background: var(--ca-linen); }
.hero-photo { margin: 0; padding: 9px; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: var(--radius); outline: 1px solid var(--ca-brass); outline-offset: 8px; }
@media (max-width: 900px) {
  .hero--green { padding-block: var(--s-6) var(--s-7); }
  .hero--green .sec-body { gap: var(--s-5); }
  .hero--green .eyebrow { margin-bottom: var(--gap-eyebrow); }
  .hero-photo { padding: 9px 0; }
  .hero-photo img { aspect-ratio: auto; height: clamp(180px, 40vw, 360px); object-position: 45% 28%; outline-offset: 6px; }
}
@media (max-width: 480px) {
  .hero--green .sec-body { gap: var(--s-4); }
  .hero--green h1 { font-size: 2rem; }
  .hero--green .lede { font-size: 1.0625rem; }
}

/* ---------- Stats band (unchanged) ---------- */
.stats { background: var(--ca-linen); border-block: var(--rule); }
.stats ul { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats li { padding: var(--s-6) var(--s-5); border-right: var(--rule); display: flex; gap: var(--s-4); align-items: flex-start; }
.stats li:first-child { padding-left: 0; }
.stats li:last-child { border-right: 0; }
.stats li > div { display: grid; gap: var(--s-1); }
.stats .s-icon { background: var(--ca-surface); }
.stats .n { font-family: var(--ca-font-head); font-size: 2.5rem; line-height: 1; color: var(--ca-green); margin-bottom: var(--s-2); }
.stats b { font-weight: 600; font-size: 1.0625rem; }
.stats span.t { font-size: .9375rem; line-height: 1.5; }
.stats .pending { background: transparent; padding: 0; color: var(--ca-green); }
@media (max-width: 720px) {
  .stats li { padding: var(--s-4) var(--s-3); flex-direction: column; gap: var(--s-2); }
  .stats li:first-child { padding-left: 0; }
  .stats .s-icon { width: 40px; height: 40px; }
  .stats .n { font-size: 2rem; }
  .stats b { font-size: .9375rem; line-height: 1.3; }
  .stats span.t { display: none; }
}
@media (max-width: 400px) { .stats .n { font-size: 1.625rem; } }
@media (max-width: 360px) { .stats .n { font-size: 1.5rem; } }

/* ---------- Preguntas: centered heading over a 2x2 hairline grid ---------- */
.questions { background: var(--ca-surface); border-bottom: var(--rule); }
.questions h2 { max-width: 50ch; margin: 0 auto var(--gap-head); text-align: center; }
.q-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; max-width: 1040px; margin-inline: auto; background: var(--ca-linen-deep); border: 1px solid var(--ca-linen-deep); border-radius: var(--radius); overflow: hidden; }
.q-tile { background: var(--ca-surface); padding: var(--s-6); display: grid; gap: var(--s-2); align-content: start; color: var(--ca-ink); }
.q-tile .q-icon { margin-bottom: var(--s-2); }
.q-tile h3 { font-size: clamp(1.375rem, 2.1vw, 1.5rem); line-height: 1.25; }
.q-tile p { font-size: 1rem; line-height: 1.55; max-width: 52ch; }
@media (max-width: 720px) { .q-grid { grid-template-columns: 1fr; } .q-tile { padding: var(--s-5); } }

/* ---------- Un día: three straight-cut photos, each beside its words ---------- */
.day-head { margin-bottom: var(--gap-head); }
.day-head .lede { margin-top: var(--gap-lede); max-width: 62ch; }
.day-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-grid); }
.day-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); margin-bottom: var(--gap-card-img); }
.day-card .eyebrow { margin-bottom: var(--gap-card-title); }
.day-card h3 { margin-bottom: var(--gap-card-text); }
.day-card p { font-size: 1.0625rem; line-height: 1.55; }
/* Un día by width: 3 columns from 768px; 600-767 one row per card (photo left, words right);
   phones stack the cards with 4:3 crops placed per photo so heads and hands stay in frame. */
@media (max-width: 767px) {
  .day-grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .day-card { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); grid-template-rows: 1fr auto auto auto 1fr; column-gap: var(--s-5); }
  .day-card img { grid-row: 1 / -1; margin-bottom: 0; }
  .day-card > :not(img) { grid-column: 2; }
  .day-card .eyebrow { grid-row: 2; } .day-card h3 { grid-row: 3; } .day-card p:last-child { grid-row: 4; }
}
@media (max-width: 599px) {
  .day-grid { gap: 48px; }
  .day-card { display: block; }
  .day-card img { aspect-ratio: 4 / 3; margin-bottom: var(--gap-card-img); }
  .day-card img[src*="jardin-caminata"] { object-position: 50% 45%; }
  .day-card img[src*="manos-pintura"] { object-position: 50% 4%; }
  .day-card img[src*="voluntario"] { object-position: 50% 0%; }
}
@media (max-width: 560px) { .day-card h3 { font-size: 1.25rem; } .day-card p { font-size: 1rem; } }

/* ---------- Leonardo on green ---------- */
.guide .wrap { display: grid; grid-template-columns: 7fr 5fr; gap: var(--s-8); align-items: center; }
.guide .copy { display: grid; gap: var(--s-4); }
.guide .copy h2 { margin-bottom: var(--s-2); }
.guide .copy p { max-width: 54ch; }
.guide-cta { margin-top: calc(var(--gap-cta) - var(--s-4)); }
.portrait { aspect-ratio: 4 / 5; border-radius: var(--radius); outline: 1px solid var(--ca-brass); outline-offset: 7px; display: grid; place-items: center; text-align: center; padding: var(--s-5); color: var(--ca-brass); font-size: .9375rem; max-width: 380px; width: 100%; justify-self: center; }
.portrait span { max-width: 18ch; }
.portrait.has-photo { padding: 0; overflow: hidden; aspect-ratio: 4 / 3; max-width: 520px; } /* 2026-10-28: the whole scene, Leonardo and the resident */
.portrait.has-photo picture, .portrait.has-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .guide .sec-body { gap: var(--s-4); }
  .guide .copy h2 { margin-bottom: 0; }
  .portrait { max-width: 200px; justify-self: start; margin: var(--s-2) 0 var(--s-2) 7px; } /* 7px: the outline offset */
  .portrait.has-photo { max-width: calc(100% - 14px); }
}

/* ---------- Reseñas: rating card + quote beside one photo ---------- */
.reviews { background: var(--ca-surface); border-block: var(--rule); }
.reviews h2 { margin-bottom: var(--gap-head); }
.reviews-feature { display: grid; grid-template-columns: 7fr 5fr; gap: var(--s-8); align-items: start; margin-bottom: var(--s-8); }
.reviews-left { display: grid; gap: var(--s-6); align-content: start; }
.reviews-feature > .carousel { width: 100%; max-width: 420px; min-width: 0; justify-self: end; }
/* Carousel: a native scroll-snap track (swipe, trackpad, keyboard scroll without JS); the script adds buttons and dots. */
.carousel-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; border-radius: var(--radius); aspect-ratio: 4 / 5; }
.carousel.is-ready .carousel-track { scrollbar-width: none; }
.carousel.is-ready .carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide { flex: 0 0 100%; min-width: 0; overflow: hidden; scroll-snap-align: start; scroll-snap-stop: always; }
.carousel-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.carousel-nav { display: flex; align-items: center; justify-content: center; margin-top: var(--s-2); }
.carousel-nav[hidden] { display: none; }
.carousel-btn, .carousel-dot { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--ca-green); cursor: pointer; border-radius: 50%; }
.carousel-btn svg { width: 24px; height: 24px; }
.carousel-prev svg { transform: scaleX(-1); }
.carousel-btn[aria-disabled="true"] { opacity: .35; cursor: default; }
.carousel-dot::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--ca-green); box-sizing: border-box; }
.carousel-dot[aria-current="true"]::before { background: var(--ca-green); }
.carousel-btn:hover, .carousel-dot:hover { background: var(--ca-linen); }
@media (prefers-reduced-motion: no-preference) { .carousel-track { scroll-behavior: smooth; } }
.rating-card { display: flex; gap: var(--s-4); align-items: center; padding: var(--s-4) var(--s-5); background: var(--ca-white); border: var(--rule); border-radius: var(--radius); justify-self: start; }
.rating-card img { width: 32px; height: 32px; }
.rating { display: flex; align-items: baseline; gap: var(--s-3); }
.rating .score { font-family: var(--ca-font-head); font-size: 2.5rem; line-height: 1; color: var(--ca-green); }
.rating .stars { font-size: 1.125rem; }
.rating-sub { font-size: 1rem; margin-top: var(--s-1); }
.featured { margin: 0; }
.featured blockquote { margin: 0; max-width: 52ch; font-family: var(--ca-font-head); font-size: clamp(1.5rem, 2.8vw, 1.875rem); line-height: 1.33; color: var(--ca-ink); }
.featured figcaption, .review-cols figcaption { margin-top: var(--s-4); font-weight: 600; font-size: 1rem; color: var(--ca-green); }
.featured figcaption span, .review-cols figcaption span { font-weight: 400; color: var(--ca-ink); }
.review-cols { display: grid; grid-template-columns: repeat(3, 1fr); border-top: var(--rule); }
.review-cols figure { margin: 0; padding: var(--s-6) var(--s-6) 0; border-right: var(--rule); }
.review-cols figure:first-child { padding-left: 0; }
.review-cols figure:last-child { border-right: 0; }
.review-cols blockquote { margin: 0; font-size: 1.0625rem; line-height: 1.6; }
.after-reviews { margin-top: var(--gap-cta); }
/* Phones and tablets: the quote, rating and reviews carry the section; the photos show from 901px. */
@media (max-width: 900px) {
  .reviews-feature { grid-template-columns: 1fr; gap: var(--s-6); margin-bottom: var(--s-7); }
  .reviews-feature > .carousel { display: none; }
}
@media (max-width: 820px) {
  .review-cols { grid-template-columns: 1fr; }
  .review-cols figure { border-right: 0; border-bottom: var(--rule); padding: var(--s-5) 0; }
}

/* ---------- Servicios: two hairline lists + photo strip (room photos pending) ---------- */
.services-head { max-width: 640px; margin-bottom: var(--gap-head); }
.service-groups { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); }
.service-groups h3 { padding-bottom: var(--s-4); border-bottom: 1px solid var(--ca-green); }
.service-groups ul { list-style: none; margin: 0; padding: 0; }
.service-groups li { padding: var(--s-4) 0; border-bottom: var(--rule); display: flex; gap: var(--s-4); align-items: flex-start; }
.service-groups li > div { display: grid; gap: var(--s-1); }
.service-groups li b { font-weight: 600; font-size: 1.0625rem; color: var(--ca-ink); }
.service-groups li span { font-size: 1rem; line-height: 1.55; }
.service-groups .sv-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--ca-surface); margin-top: 2px; }
.rooms { margin-top: var(--s-8); }
.rooms h3 { margin-bottom: var(--s-4); }
.rooms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.rooms-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 820px) { .service-groups { grid-template-columns: 1fr; gap: var(--s-7); } }
@media (max-width: 720px) { .rooms-grid { grid-template-columns: 1fr 1fr; } .rooms-grid picture:last-child img { grid-column: 1 / -1; aspect-ratio: 16 / 9; object-position: 50% 30%; } }

/* ---------- Centro de día band ---------- */
.daycenter { background: var(--ca-surface); border-block: var(--rule); padding-block: calc(var(--section) * 1.33); }
.daycenter .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-9); align-items: center; }
.daycenter img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.daycenter--facade img { aspect-ratio: 3 / 2; }
.daycenter .copy { display: grid; gap: var(--s-5); justify-items: start; }
.daycenter h2 { max-width: 20ch; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .35em; font-family: var(--ca-font-head); font-size: clamp(2.25rem, 4vw, 2.75rem); line-height: 1; color: var(--ca-green); }
.price small { font-family: var(--ca-font-body); font-size: 1rem; color: var(--ca-ink); margin-left: 0; }
@media (max-width: 900px) {
  .daycenter .sec-body { gap: var(--s-5); }
  .daycenter .eyebrow { margin-bottom: var(--gap-eyebrow); }
}

/* ---------- Así empezamos: a real sequence, stacked ---------- */
.steps { list-style: none; margin: var(--s-4) 0 var(--s-6); padding: 0; width: 100%; display: grid; grid-template-columns: 1fr; border-top: var(--rule); }
.steps li { padding: var(--s-4) 0; border-bottom: var(--rule); display: grid; grid-template-columns: 48px 1fr; column-gap: var(--s-4); }
.steps .n { grid-row: span 2; font-family: var(--ca-font-head); font-size: 2rem; line-height: 1; color: var(--ca-brass-text); }
.steps h3 { margin-bottom: var(--s-1); }

/* Así empezamos: same split grammar as the centro de día band, mirrored (photo right, contained) */
.plan { background: var(--ca-linen); }
.plan .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-9); align-items: center; }
.plan-copy .steps { margin: var(--s-6) 0; }
.plan-photo { position: relative; margin: 0; }
.plan-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 50%; border-radius: var(--radius); } /* same frame as .daycenter img; horizontal so the whole house shows */
.facade-tag { position: absolute; left: var(--s-4); bottom: var(--s-4); margin: 0; padding: var(--s-2) var(--s-4); background: var(--ca-surface); color: var(--ca-green); font-weight: 600; font-size: .9375rem; border-radius: 4px; }
@media (max-width: 900px) {
  .plan .sec-body { width: 100%; }
  .plan-copy .steps { margin-top: 0; }
  .plan-photo img { aspect-ratio: 3 / 2; }
}
@media (max-width: 560px) { .facade-tag { font-size: .875rem; left: var(--s-3); bottom: var(--s-3); } }

/* ---------- FAQ ---------- */
.faq .wrap > * { max-width: 820px; margin-inline: auto; }
.faq .eyebrow, .faq h2 { text-align: center; }
.faq h2 { margin-bottom: var(--gap-head); }
.faq details { border-bottom: var(--rule); }
.faq details:first-of-type { border-top: var(--rule); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); padding: var(--s-5) 0; font-family: var(--ca-font-head); font-size: 1.375rem; line-height: 1.3; color: var(--ca-green); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.5rem/1 var(--ca-font-body); color: var(--ca-brass-text); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: var(--s-5); max-width: 62ch; }
.faq .after { margin-top: var(--gap-cta); display: flex; justify-content: center; }
/* Phones: the +/– moves to the left of the question, out of the bubble's lane at the right edge */
@media (max-width: 600px) {
  .faq summary { justify-content: flex-start; }
  .faq summary::after { order: -1; flex: none; width: 1ch; }
  .faq details p { padding-left: var(--faq-indent, 28px); }
}

/* ---------- Footer ---------- */
.site-footer { padding-block: var(--s-8) var(--s-6); }
.site-footer .wrap { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: var(--s-7); }
.site-footer .logo { --h: 144px; width: 180px; } /* vertical lockup (1.252:1): drawing above his lettering */
.site-footer a { color: var(--ca-linen); }
.site-footer h3 { font: 600 .8125rem/1.3 var(--ca-font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--ca-brass); margin-bottom: var(--s-2); }
.site-footer .foot-h { margin-top: var(--s-6); }
.site-footer p { margin: 0; font-size: 1rem; line-height: 22px; }
/* Contact column: one rhythm. WhatsApp, calls, email, Instagram: each a 44px row (22px line + 11px above and below).
   Cómo llegar: the address with its pin, then the Maps link indented to the address text (20px icon + 12px gap). */
.site-footer .addr { padding-block: 11px; }
.site-footer p > a.row-link, .site-footer p.row-link { display: flex; align-items: center; gap: var(--s-3); }
.site-footer p.row-link { align-items: flex-start; }
.site-footer p.row-link svg { margin-top: 2px; color: var(--ca-brass); }
.site-footer .row-link span { overflow-wrap: anywhere; }
.site-footer .row-link svg { width: 20px; height: 20px; flex: none; color: var(--ca-brass); }
.site-footer .row-link svg[data-icon="whatsapp"] { fill: currentColor; }
.site-footer p.row-link svg { margin-top: 2px; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--ca-brass); padding-top: var(--s-5); font-size: .875rem; }
/* Contact links: one 44px row each (22px line + 11px above and below) */
.site-footer p > a { display: block; width: fit-content; padding-block: 11px; }
.site-footer .maps a { margin-left: 32px; }
.site-footer .visit-note { padding-block: 11px; }
/* The bubble is always on screen: the last line keeps clear of it at every width */
.site-footer { padding-bottom: calc(120px + env(safe-area-inset-bottom)); }
@media (max-width: 900px) { .site-footer .legal { font-size: 1rem; } }
/* Legal line: the foundation's name, then the privacy link (2026-10-31). The link keeps its 44px row. */
.site-footer .legal { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; column-gap: var(--s-5); }
.site-footer .legal a { margin-block: -11px; }
@media (max-width: 820px) { .site-footer .wrap { grid-template-columns: 1fr; gap: var(--s-6); } .site-footer .logo { --h: 128px; width: 160px; } }

/* ---------- Floating WhatsApp bubble ---------- */
.wa-float {
  position: fixed; z-index: 30; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom));
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: #25D366; color: var(--ca-white);
  outline: 1px solid var(--ca-brass); outline-offset: 3px;
  box-shadow: inset 0 0 0 2px var(--ca-linen);
}
/* Permanent and stable (2026-10-13): always visible, never moves or animates. */
.wa-float svg { width: 30px; height: 30px; fill: currentColor; }

/* ---------- Content still pending from Leonardo (preview only) ---------- */
.pending { background: var(--ca-linen-deep); color: var(--ca-ink); border-radius: 3px; padding: 0 .35em; }
.on-green .pending { background: transparent; color: var(--ca-brass); }

/* ---------- Inner page (centro de día) ---------- */
.two-col { display: grid; grid-template-columns: 5fr 7fr; gap: var(--s-8); align-items: start; }
.checklist { list-style: none; padding: 0; margin: 0; border-top: var(--rule); }
.checklist li { padding: var(--s-4) 0 var(--s-4) var(--s-6); border-bottom: var(--rule); position: relative; }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 1.45em; width: 12px; height: 1px; background: var(--ca-brass-leaf); }
.after-list { margin-top: var(--s-6); }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; gap: var(--s-6); } }

/* ---------- Split sections: mobile order rule ----------
   Last in the file so it wins over each section's own grid. */
/* Split sections on desktop: the head and body wrappers are transparent, so each .copy grid sees its own children. */
.sec-head, .sec-body { display: contents; }
/* Mobile order rule (≤900px): eyebrow + title, then the photo, then the body and CTA. Same DOM as desktop. */
@media (max-width: 900px) {
  .hero--green .wrap, .guide .wrap, .daycenter .wrap, .plan .wrap {
    grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "photo" "body"; gap: var(--s-5);
  }
  .hero-copy, .guide .copy, .daycenter .copy, .plan-copy { display: contents; }
  .sec-head { display: block; grid-area: head; }
  .sec-body { display: grid; grid-area: body; justify-items: start; min-width: 0; }
  .hero-photo, .portrait, .daycenter .wrap > picture > img, .plan-photo { grid-area: photo; }
}
@media (max-width: 480px) { .hero--green .wrap { gap: var(--s-4); } }

/* ---------- Phones: CTA lane, steps, stats, Hogardía rhythm, landscape (E2 mobile pass, wave 2) ---------- */
@media (max-width: 900px) {
  .daycenter { padding-block: var(--section); }
  .daycenter h2 { max-width: none; }
}
/* Every CTA: full width, left-aligned, stopping short of the WhatsApp bubble's lane
   (bubble 60px + 4px outline + 8px gap + its right offset, minus the 16px gutter). */
@media (max-width: 600px) {
  main .btn { width: 100%; max-width: calc(100% - 56px - max(20px, env(safe-area-inset-right))); padding: 0 var(--s-4); }
  .hero-cta, .guide-cta { width: 100%; }
  .faq .after { justify-content: flex-start; }
}
@media (max-width: 359px) {
  main .btn { font-size: 1rem; padding: 0 var(--s-3); }
  main .btn svg { display: none; } /* 320px: the label alone fits the lane on one line */
}
@media (max-width: 480px) {
  .steps li { grid-template-columns: 2rem 1fr; column-gap: var(--s-3); }
}
/* 320-374px: the three figures stack as rows (icon, number, label) so the labels stay on one or two lines */
@media (max-width: 374px) {
  .stats ul { grid-template-columns: 1fr; }
  .stats li, .stats li:first-child { flex-direction: row; align-items: center; gap: var(--s-4); padding: var(--s-3) 0; border-right: 0; }
  .stats li + li { border-top: var(--rule); }
  .stats li > div { display: flex; align-items: baseline; gap: var(--s-3); }
  .stats .n { margin: 0; flex: none; min-width: 2.6ch; }
}
/* Phones held sideways: a compact header and the hero back in two columns, so H1 and CTA share the first screen */
/* ---------- Privacy page (/privacidad/, 2026-10-31): one reading column ---------- */
.policy .wrap { max-width: 68ch; }
.policy .lede { max-width: none; margin-top: var(--gap-lede); }
.policy .updated { margin-top: var(--s-4); font-size: 1rem; color: var(--ca-brass-text); }
.policy h2 { font-size: clamp(1.5rem, 2.6vw, 1.875rem); margin: var(--s-7) 0 var(--s-3); }
.policy p + p, .policy ul + p, .policy ol + p { margin-top: var(--s-3); }
.policy ul, .policy ol { margin: var(--s-3) 0 0; padding-left: 1.25em; }
.policy li + li { margin-top: var(--s-2); }
.policy a { overflow-wrap: anywhere; }
@media (orientation: landscape) and (max-height: 500px) {
  html { scroll-padding-top: 72px; }
  .site-header .wrap { height: 56px; }
  .site-header .logo { --h: 36px; box-sizing: content-box; padding-block: 4px; }
  .hero--green { padding-block: var(--s-5) var(--s-6); }
  .hero--green .wrap { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); grid-template-areas: "head photo" "body photo"; align-items: start; column-gap: var(--s-6); row-gap: var(--s-4); }
  .hero--green .eyebrow { display: none; }
  .hero--green h1 { font-size: 1.75rem; }
  .hero--green .lede { font-size: 1.0625rem; }
  .hero--green .sec-body { gap: var(--s-4); }
  .hero-photo { padding: 9px; align-self: center; }
  .hero-photo img { height: auto; max-height: 55svh; aspect-ratio: 4 / 5; }
}
