/* Home Project Arquitectura — homepage styles. Mobile first; tokens per HPA_WEBSITE_BRIEF.md §9.1
   Owner direction 2026-10-23: rounded "iOS" edges everywhere, Montserrat Light for titles and text,
   Cinzel only for development names, one title size, full-width layout, sections stack over each other. */

/* tokens:start
   The brand tokens. Only this block holds a raw color, font family, size, weight, or radius.
   The rules below it, the components (src/) and main.js use a token: var(--name).
   Layer 1 is the paint: the raw values. Layer 2 is the jobs: a job names where a paint goes, and a rule uses the
   job when 1 exists. `npm run lint:tokens` stops on a color or a font outside this block. The brand page (/brand/)
   shows each token. Format: 1 token per line, a comment after it says what it is for, and
   "group: <id> | <title>" starts a group. */
@font-face { font-family: 'Cinzel'; src: url('/assets/fonts/cinzel-latin.woff2') format('woff2'); font-weight: 400 900; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('/assets/fonts/montserrat-latin.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  /* group: paint | Paint (layer 1): the solid colors */
  --white: #fff;                                 /* cards, form fields, map roads */
  --paper: #fffbf7;                              /* the page */
  --cream: #faf0e6;                              /* the linen sections, text on navy */
  --sand: #d0bfad;                               /* decoration */
  --navy: #002147;                               /* text, actions, navy sections */
  --navy-2: #0a2d57;                             /* one step up from navy: hover, surfaces on navy */
  --navy-deep: #00142d;                          /* the base of the shadows and the photo shades */
  --red: #a3261b;                                /* errors */
  --red-deep: #7d1d14;                           /* error text on the red tint */
  --red-tint: #f6e4e1;                           /* the ground of an error message, visible on cream */
  --gray-text: #4d627c;                          /* gray text: labels, placeholders, map names */
  --gray-edge: #7d8c9d;                          /* the edge of a form control */
  --gray-line: #d1d4d7;                          /* the 1 px edge of a card */

  /* group: paint-gray | Paint (layer 1): the grays of the location map, light to dark */
  --gray-1: #eeeeec;                             /* map land */
  --gray-2: #e9eaeb;                             /* map frame ground */
  --gray-3: #e0e5dc;                             /* map golf course */
  --gray-4: #dde3e8;                             /* map sea */
  --gray-5: #d9dcdf;                             /* map road casing */
  --gray-6: #d0d9e0;                             /* map river */
  --gray-7: #cdd2d7;                             /* map of Spain */
  --gray-8: #c6ced5;                             /* map shore */
  --gray-9: #c4cacf;                             /* map road shield edge */
  --gray-10: #b7bdc3;                            /* map distance ring */

  /* group: paint-alpha | Paint (layer 1): a base color with an alpha. 1 token per base and alpha. */
  --white-a0: rgba(255, 255, 255, 0);
  --white-a16: rgba(255, 255, 255, .16);
  --white-a18: rgba(255, 255, 255, .18);
  --white-a22: rgba(255, 255, 255, .22);
  --white-a25: rgba(255, 255, 255, .25);
  --white-a30: rgba(255, 255, 255, .3);
  --white-a42: rgba(255, 255, 255, .42);
  --white-a66: rgba(255, 255, 255, .66);
  --white-a70: rgba(255, 255, 255, .7);
  --white-a90: rgba(255, 255, 255, .9);
  --white-a92: rgba(255, 255, 255, .92);
  --paper-a06: rgba(255, 251, 247, .06);
  --paper-a14: rgba(255, 251, 247, .14);
  --paper-a28: rgba(255, 251, 247, .28);
  --paper-a85: rgba(255, 251, 247, .85);
  --paper-a86: rgba(255, 251, 247, .86);
  --paper-a92: rgba(255, 251, 247, .92);
  --cream-a10: rgba(250, 240, 230, .1);
  --cream-a14: rgba(250, 240, 230, .14);
  --cream-a16: rgba(250, 240, 230, .16);
  --cream-a50: rgba(250, 240, 230, .5);
  --cream-a55: rgba(250, 240, 230, .55);
  --cream-a74: rgba(250, 240, 230, .74);
  --cream-a80: rgba(250, 240, 230, .8);
  --navy-a0: rgba(0, 33, 71, 0);
  --navy-a025: rgba(0, 33, 71, .025);
  --navy-a045: rgba(0, 33, 71, .045);
  --navy-a05: rgba(0, 33, 71, .05);
  --navy-a06: rgba(0, 33, 71, .06);
  --navy-a07: rgba(0, 33, 71, .07);
  --navy-a08: rgba(0, 33, 71, .08);
  --navy-a09: rgba(0, 33, 71, .09);
  --navy-a10: rgba(0, 33, 71, .1);
  --navy-a12: rgba(0, 33, 71, .12);
  --navy-a14: rgba(0, 33, 71, .14);
  --navy-a16: rgba(0, 33, 71, .16);
  --navy-a18: rgba(0, 33, 71, .18);
  --navy-a20: rgba(0, 33, 71, .2);
  --navy-a22: rgba(0, 33, 71, .22);
  --navy-a30: rgba(0, 33, 71, .3);
  --navy-a45: rgba(0, 33, 71, .45);
  --navy-a70: rgba(0, 33, 71, .7);
  --navy-deep-a0: rgba(0, 20, 45, 0);
  --navy-deep-a04: rgba(0, 20, 45, .04);
  --navy-deep-a05: rgba(0, 20, 45, .05);
  --navy-deep-a06: rgba(0, 20, 45, .06);
  --navy-deep-a08: rgba(0, 20, 45, .08);
  --navy-deep-a20: rgba(0, 20, 45, .2);
  --navy-deep-a22: rgba(0, 20, 45, .22);
  --navy-deep-a30: rgba(0, 20, 45, .3);
  --navy-deep-a32: rgba(0, 20, 45, .32);
  --navy-deep-a34: rgba(0, 20, 45, .34);
  --navy-deep-a35: rgba(0, 20, 45, .35);
  --navy-deep-a38: rgba(0, 20, 45, .38);
  --navy-deep-a40: rgba(0, 20, 45, .4);
  --navy-deep-a42: rgba(0, 20, 45, .42);
  --navy-deep-a45: rgba(0, 20, 45, .45);
  --navy-deep-a50: rgba(0, 20, 45, .5);
  --navy-deep-a55: rgba(0, 20, 45, .55);
  --navy-deep-a60: rgba(0, 20, 45, .6);
  --navy-deep-a62: rgba(0, 20, 45, .62);
  --navy-deep-a82: rgba(0, 20, 45, .82);
  --navy-shade-a55: rgba(0, 18, 42, .55);        /* base 0, 18, 42: the veil of the plot map */
  --black-a15: rgba(0, 0, 0, .15);               /* base 0, 0, 0: shadows on photos */
  --black-a55: rgba(0, 0, 0, .55);
  --black-a60: rgba(0, 0, 0, .6);
  --black-a70: rgba(0, 0, 0, .7);
  --red-a10: rgba(163, 38, 27, .1);

  /* group: job | Jobs (layer 2): where a paint goes */
  --text: var(--navy);                           /* text on a light ground */
  --text-soft: var(--navy-a70);                  /* secondary text on a light ground */
  --text-label: var(--gray-text);                /* a form label, a placeholder, a name on a map */
  --text-inverse: var(--cream);                  /* text on navy and on photos */
  --text-inverse-soft: var(--cream-a74);         /* secondary text on navy */
  --surface: var(--paper);                       /* the page */
  --surface-section: var(--cream);               /* a linen section */
  --surface-card: var(--white);                  /* cards and form fields */
  --surface-inverse: var(--navy);                /* a navy section */
  --action: var(--navy);                         /* the primary button */
  --action-hover: var(--navy-2);                 /* the primary button under the pointer */
  --action-text: var(--cream);                   /* text on the primary button */
  --line: var(--navy-a18);                       /* a rule or an edge on a light ground */
  --line-inverse: var(--cream-a16);              /* a rule or an edge on navy */
  --control-edge: var(--gray-edge);              /* the edge of a form field and of a choice */
  --error: var(--red);                           /* the edge and the text of a field error */
  --error-ring: var(--red-a10);                  /* the glow around a field with an error */
  --error-text: var(--red-deep);                 /* the text of an error message */
  --error-surface: var(--red-tint);              /* the ground of an error message */

  /* group: effect | Edges and shadows that repeat */
  --edge: inset 0 0 0 1px var(--white-a22);      /* a light inner edge on photos and on navy */
  --edge-ink: inset 0 0 0 1px var(--gray-line);  /* the 1 px edge of a light card */
  --float: 0 1px 2px var(--navy-deep-a08), 0 18px 40px -18px var(--navy-deep-a35); /* the shadow of a part that floats */

  /* group: font | Fonts */
  --f-display: 'Cinzel', 'Marcellus', Georgia, serif; /* development names only */
  --f-body: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif; /* all other text */
  --f-mono: ui-monospace, SFMono-Regular, Menlo, monospace; /* cookie names in the legal tables. Not in the target of 2 fonts. */

  /* group: weight | Font weights */
  --w-light: 300;                                /* titles and text */
  --w-regular: 400;                              /* form fields, small text */
  --w-medium: 500;                               /* labels, buttons, bold */
  --w-semi: 600;                                 /* not in the target of 3 weights */

  /* group: size | Font sizes that repeat. The name holds the size in px (16 px = 1rem); "px" at the end: a fixed size. */
  --fs-7-5px: 7.5px;
  --fs-9: .5625rem;
  --fs-10: .625rem;
  --fs-11: .6875rem;
  --fs-12: .75rem;
  --fs-13: .8125rem;
  --fs-14: .875rem;
  --fs-14px: 14px;
  --fs-15: .9375rem;
  --fs-16: 1rem;
  --fs-17: 1.0625rem;
  --fs-18: 1.125rem;
  --fs-19-2: 1.2rem;
  --fs-20: 1.25rem;
  --fs-22: 1.375rem;
  --fs-24: 1.5rem;
  --fs-30: 1.875rem;
  --fs-36: 2.25rem;

  /* group: tracking | Letter spacing that repeats. The name holds hundredths of 1em. */
  --ls-neg-2: -.02em;
  --ls-neg-1: -.01em;
  --ls-1: .01em;
  --ls-2: .02em;
  --ls-4: .04em;
  --ls-5: .05em;
  --ls-6: .06em;
  --ls-8: .08em;
  --ls-10: .1em;
  --ls-12: .12em;
  --ls-14: .14em;
  --ls-16: .16em;
  --ls-20: .2em;
  --ls-24: .24em;
  --ls-32: .32em;

  /* group: radius | Corner radii */
  --r-2xs: 2px;                                  /* thin bars */
  --r-xs: 8px;                                   /* small controls (old site) */
  --r-sm: 12px;                                  /* inner boxes, notes (old site) */
  --r-md: 18px;                                  /* cards and photos (old site) */
  --r-lg: 28px;                                  /* panels, modals, the rounded sections (old site) */
  --pill: 999px;                                 /* buttons and badges */
  --r-3: 3px;                                    /* a small mark */
  --r-4: 4px;                                    /* a focus ring inside a list */
  --r-10: 10px;                                  /* the inset of the map */
  --r-11: 11px;                                  /* the photo of a choice card */
  --r-14: 14px;                                  /* form fields */
  --r-16: 16px;                                  /* choices */
  --r-22: 22px;                                  /* the cookie banner */
  --r-lg-in: calc(var(--r-lg) - 10px);           /* a box 10px inside a --r-lg box */
  --r-round: 50%;                                /* circles: a box as wide as it is high */

  /* group: layout | Motion and layout. The 2 :root rules below this block change 3 of them by screen width. */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: 20px;                                /* the side margin of the page */
  --max: 1840px;                                 /* the widest content */
  --section: 72px;                               /* the space above and below a section */
  --header-h: 68px;                              /* the height of the header */
}
/* tokens:end */
@media (min-width: 768px) { :root { --gutter: 32px; --section: 96px; } }
@media (min-width: 1024px) { :root { --gutter: clamp(40px, 3.6vw, 80px); --section: 112px; --header-h: 84px; } }
/* A visitor who asks for more contrast: the soft text, the labels, the rules and the edges of the fields are navy */
@media (prefers-contrast: more) { :root { --text-soft: var(--navy); --text-label: var(--navy); --line: var(--navy-a45); --control-edge: var(--navy); } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--surface); color: var(--text);
  font: var(--w-light) var(--fs-15)/1.7 var(--f-body);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
/* Touch: a tap acts at once (the browser does not wait for a second tap, which zooms), and a long press does not
   select the text of a control. Text that is content stays selectable. A strip or a handle with its own
   `touch-action` keeps it: a class wins over these element rules. */
a, button, summary, label { touch-action: manipulation; }
button, summary { -webkit-user-select: none; user-select: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, fieldset, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
b, strong { font-weight: var(--w-medium); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: var(--r-xs); }
::selection { background: var(--navy); color: var(--text-inverse); }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: fixed; top: 10px; left: 10px; z-index: 100; padding: 12px 20px; border-radius: var(--pill); background: var(--cream); color: var(--text); transform: translateY(-160%); transition: transform .25s var(--ease); }
.skip:focus { transform: none; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.band { position: relative; padding: var(--section) 0; }
.band--paper { background: var(--surface); }
.band--linen { background: var(--surface-section); }
.band--navy { background: var(--surface-inverse); color: var(--text-inverse); }
.ph { font-style: italic; overflow-wrap: anywhere; }

/* ---------- Smooth scrolling (Lenis, main.js) ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- Overlap: only Promociones and Ubicaciones ride over their neighbours ---------- */
.stack { display: contents; }
.raise {
  position: relative; z-index: 3;
  border-radius: var(--r-lg); margin: calc(-1 * var(--r-lg)) 0;
  box-shadow: 0 -18px 40px -24px var(--navy-deep-a35), 0 18px 40px -24px var(--navy-deep-a35);
}
/* Everything that is not held still paints above the held sections */
.stack > section:not(.hero), .footer { position: relative; z-index: 2; }
.stack > section.raise { z-index: 3; }
/* Phone: the section is as wide as the screen, and a shadow with a spread of -24px starts 24px inside each side.
   So a box inside the section draws the 2 shadows with a spread of +48px: they pass each side of the screen by 48px,
   and the page gets no horizontal scroll, because a shadow adds no scroll width. The box is 72px inside the top and
   the bottom edge (48 + 24), so each shadow has the height and the depth that it had. The clip keeps only the 80px
   band above the section and the 80px band below it: the box is above the ground of the section, and its shadow
   must not show there. No `overflow-x: clip` on the section: iPhone Safari then hides the shadow above and below. */
@media (max-width: 767px) {
  .raise { box-shadow: none; }
  .raise::before {
    content: ''; position: absolute; inset: 72px 0; z-index: -1; pointer-events: none;
    box-shadow: 0 -18px 40px 48px var(--navy-deep-a35), 0 18px 40px 48px var(--navy-deep-a35);
    clip-path: polygon(0 -152px, 100% -152px, 100% -72px, 0 -72px, 0 calc(100% + 72px), 100% calc(100% + 72px), 100% calc(100% + 152px), 0 calc(100% + 152px));
  }
}
.under { padding-bottom: calc(var(--section) + var(--r-lg)); }
.after-raise { padding-top: calc(var(--section) + var(--r-lg)); }
.js-stack .stack > section.under { position: relative; z-index: 1; }
.js-stack .stack > section.under.is-held { position: sticky; top: var(--stick, 0px); } /* from just before its hold (main.js) */
/* Its opacity follows the scroll every frame: its own (solid-colour, cheap) layer, so Safari recomposites
   instead of repainting the section under it on each frame. Only as tall as the screen, over the part of the
   section that shows while it is held — not the whole section (a layer the height of the Portfolio grid). */
.veil { position: absolute; left: 0; right: 0; top: max(0px, calc(-1 * var(--stick, 0px))); height: 100vh; height: 100lvh; z-index: 6; border-radius: inherit; background: var(--navy-deep); opacity: 0; pointer-events: none; will-change: opacity; }

/* ---------- Type ---------- */
.h-title { font: var(--w-light) clamp(1.9rem, 3vw, 3.1rem)/1.15 var(--f-body); letter-spacing: -.015em; text-wrap: balance; }
/* break-word: a word longer than its box (a long name on a small phone) breaks rather than run off the screen */
.dev-name { font-family: var(--f-display); font-weight: var(--w-medium); letter-spacing: var(--ls-2); overflow-wrap: break-word; }
.eyebrow { font: var(--w-medium) var(--fs-12)/1.4 var(--f-body); letter-spacing: var(--ls-24); text-transform: uppercase; margin-bottom: 16px; color: var(--text-soft); }
.band--navy .eyebrow { color: var(--text-inverse-soft); }
.section-head { display: grid; gap: 14px; margin-bottom: 44px; }
.section-head__sub { font: var(--w-light) var(--fs-16)/1.6 var(--f-body); max-width: 44ch; }
@media (min-width: 1024px) {
  .section-head { grid-template-columns: 1fr auto; align-items: end; gap: 40px; margin-bottom: 56px; }
  .section-head__sub { text-align: right; }
}
/* Phones and tablets: the home map's heading is centred, as the head of a main section (owner, 2026-12-03) */
@media (max-width: 1023px) { #ubicaciones .section-head { justify-items: center; text-align: center; } }

/* ---------- Links & buttons ---------- */
.link { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease); padding-bottom: 2px; }
.link:focus-visible { background-size: 100% 1px; }
.link--btn { border: 0; padding: 0 0 2px; cursor: pointer; background-color: transparent; }
.link-cta { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; padding-bottom: 6px; font: var(--w-medium) var(--fs-13)/1 var(--f-body); letter-spacing: var(--ls-16); text-transform: uppercase; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }
/* A finger gets 44 px of height on a text link that asks for an action. The link looks the same. */
@media (pointer: coarse) {
  .link-cta, .link--btn { position: relative; }
  .link-cta::after, .link--btn::after { content: ''; position: absolute; inset: -13px 0; }
}
.link-cta--quiet { border: 0; background-color: transparent; color: var(--text-inverse-soft); cursor: pointer; transition: color .25s; }
.arrow { width: 14px; height: 12px; flex: none; transition: transform .3s var(--ease); }
.maplist__row.is-active .arrow { transform: translateX(4px); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px; white-space: nowrap;
  min-height: 50px; padding: 0 26px; border: 0; border-radius: var(--pill);
  font: var(--w-medium) var(--fs-13)/1 var(--f-body); letter-spacing: var(--ls-12); text-transform: uppercase; text-decoration: none;
  cursor: pointer; -webkit-user-select: none; user-select: none;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease);
}
.btn:active { transform: scale(.97); transition-duration: .1s; }
.btn--dark { background: var(--action); color: var(--action-text); box-shadow: inset 0 1px 0 var(--white-a16), 0 1px 2px var(--navy-deep-a20), 0 10px 22px -10px var(--navy-deep-a55); }
.btn--light { background: var(--cream); color: var(--text); box-shadow: inset 0 0 0 1px var(--white-a70), 0 1px 2px var(--black-a15), 0 12px 28px -12px var(--black-a55); }
.btn--ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--navy-a30); }
.btn--sm { min-height: 42px; padding: 0 16px; font-size: var(--fs-11); letter-spacing: var(--ls-8); }
.btn--lg { min-height: 58px; padding: 0 34px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: progress; }
/* Sending a lead (main.js busy()): the label fades out and a small ring + "Enviando" fades in over it, after 150 ms
   so a quick answer never flashes it. Full colour (not the dimmed disabled look): it's working, not unavailable. */
.btn:has(> .btn__busy) { position: relative; }
.btn.is-busy, .btn.is-busy[disabled] { opacity: 1; color: transparent; transition: color .15s ease-out .15s; }
.btn__busy { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--text); opacity: 0; pointer-events: none; transition: opacity .15s ease-out; }
.btn--dark .btn__busy { color: var(--text-inverse); }
.btn.is-busy .btn__busy { opacity: 1; transition: opacity .2s var(--ease) .15s; }
.btn__spin { width: 14px; height: 14px; border-radius: var(--r-round); border: 1.5px solid currentColor; border-right-color: transparent; opacity: .8; }
.btn.is-busy .btn__spin { animation: btn-spin .8s linear infinite; }
@keyframes btn-spin { to { transform: rotate(1turn); } }
@media (prefers-reduced-motion: reduce) { .btn.is-busy .btn__spin { animation: btn-breathe 1.2s ease-in-out infinite alternate; } }
@keyframes btn-breathe { from { opacity: .35; } to { opacity: .9; } }
@media (max-width: 479px) { .btn { padding: 0 20px; gap: 12px; letter-spacing: .07em; } .btn--lg { padding: 0 24px; } }
/* Phones: a label wider than its column (a long label at 320px, or larger text set by the visitor) breaks onto two
   lines. It does not push its column wider than the screen. A label that fits stays on one line at the same size. */
@media (max-width: 479px) {
  .btn { padding-block: 10px; line-height: 1.3; text-align: center; white-space: normal; }
  .link-cta { text-align: center; white-space: normal; }
}
/* The smallest phones (320px): a long label on a full-width button breaks onto two lines instead of pushing the page wide */
@media (max-width: 359px) {
  .btn--block, .lead__next .btn, .tray__closing .btn, .hero .btn { white-space: normal; padding: 10px 16px; line-height: 1.3; text-align: center; }
  .link-cta { letter-spacing: var(--ls-8); } /* "Contáctanos por WhatsApp" stays on one line in the 280px column */
}
/* Hover only where there is a real pointer: on a touch screen a tap leaves the element stuck in its hover look
   until the next tap elsewhere. The press (:active) is the feedback there. */
@media (hover: hover) and (pointer: fine) {
  .link:hover { background-size: 100% 1px; }
  .link-cta--quiet:hover { color: var(--text-inverse); }
  .link-cta:hover .arrow, .btn:hover .arrow, .feat:hover .arrow, .tile:hover .arrow { transform: translateX(4px); }
  .btn:hover { transform: translateY(-1px); }
  .btn:active { transform: scale(.97); }
  .btn--dark:hover { background: var(--action-hover); box-shadow: inset 0 1px 0 var(--white-a18), 0 2px 4px var(--navy-deep-a20), 0 16px 30px -12px var(--navy-deep-a60); }
  .btn--light:hover { background: var(--white); }
  .btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--navy); }
  .lang a:hover { opacity: 1; }
  .acc__img:hover img { transform: scale(1.03); }
  .lightbox__btn:hover { background: var(--paper-a28); }
  .modal__x:hover { background: var(--navy-a12); }
  .lead__back:hover { background: var(--navy-a06); color: var(--text); }
  .lead__back:hover .arrow { transform: rotate(180deg) translateX(3px); }
  .choice > span:hover { box-shadow: inset 0 0 0 1px var(--navy), 0 6px 16px -10px var(--navy-deep-a40); }
  .choice input:checked + span:hover { box-shadow: inset 0 1px 0 var(--white-a16); }
  .fab__item:hover { background: var(--white); }
}

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; min-height: 26px; padding: 0 12px; border-radius: var(--pill); font: var(--w-medium) var(--fs-11)/1 var(--f-body); letter-spacing: var(--ls-10); text-transform: uppercase; background: var(--navy); color: var(--text-inverse); white-space: nowrap; }
.badge--glass { background: var(--paper-a92); color: var(--text); box-shadow: inset 0 0 0 1px var(--white-a70), 0 4px 14px -6px var(--navy-deep-a35); }
.badge--line { background: transparent; color: var(--text-soft); box-shadow: inset 0 0 0 1px var(--navy-a30); }
.badge--line.badge--vendido { background: var(--navy-a07); box-shadow: inset 0 0 0 1px var(--navy-a14); }

/* ---------- Media frames: rounded with a faint glossy rim ---------- */
.media { position: relative; overflow: hidden; border-radius: var(--r-md); background: var(--cream); isolation: isolate; }
.media::after { content: ''; position: absolute; inset: 0; z-index: 3; border-radius: inherit; box-shadow: var(--edge); pointer-events: none; }
.media picture, .media img { width: 100%; height: 100%; }
.media img { object-fit: cover; }

/* ---------- Header ---------- */
/* The paper ground is on the header element, not on `::after`: iPhone Safari colors the status bar zone from the
   `background-color` of the fixed element at the top of the screen, and it does not read a pseudo-element. */
.header { position: fixed; inset: 0 0 auto; z-index: 40; color: var(--text-inverse); transition: color .25s linear, background-color .25s linear; }
.header::before { content: ''; position: absolute; inset: 0 0 -40px; pointer-events: none; background: linear-gradient(var(--navy-deep-a50), var(--navy-deep-a0)); transition: opacity .25s linear; }
/* After the hero (and from load on a page with no hero): the light frosted header of the development pages.
   The open phone menu is navy, so the header over it stays clear with cream text. */
.header::after { content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: 0 1px 0 var(--navy-a07), 0 10px 30px -24px var(--navy-deep-a50); opacity: 0; transition: opacity .25s linear; }
.header.is-solid { color: var(--text); background-color: var(--paper-a85); }
.header.is-solid::before { opacity: 0; }
/* The blur only once the header is solid: over the hero it would blur the moving night and day views again on
   every frame of the scroll, the lag of the phone hero (owner, final changes). */
.header.is-solid::after { opacity: 1; -webkit-backdrop-filter: blur(12px) saturate(140%); backdrop-filter: blur(12px) saturate(140%); }
.drawer-open .header.is-solid { color: var(--text-inverse); background-color: transparent; }
.drawer-open .header.is-solid::after { opacity: 0; }
.header__inner { position: relative; z-index: 1; display: flex; align-items: center; gap: 28px; height: var(--header-h); max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.header__logo { position: relative; margin-right: auto; border-radius: var(--r-xs); }
.header__logo img { width: auto; height: 32px; transition: opacity .25s linear; }
.header__logo-n { position: absolute; inset: 0; opacity: 0; }
.header.is-solid .header__logo-c { opacity: 0; }
.header.is-solid .header__logo-n { opacity: 1; }
.drawer-open .header.is-solid .header__logo-c { opacity: 1; }
.drawer-open .header.is-solid .header__logo-n { opacity: 0; }
/* The Contact pill of both headers: a small navy pill in the type of the links beside it (owner, final changes:
   the blue button stays, set in line with the header letters). */
.header__contact, .dhead__contact { flex: none; min-height: 40px; padding: 0 20px; font-size: var(--fs-12); letter-spacing: var(--ls-14); box-shadow: none; }
.drawer-open .header__contact { visibility: hidden; } /* the open menu has its own Contact link */
@media (min-width: 1024px) { .header__logo img { height: 40px; } }
.header__nav { display: none; gap: 36px; font: var(--w-medium) var(--fs-13)/1 var(--f-body); letter-spacing: var(--ls-16); text-transform: uppercase; }
.header__nav .link.is-current { background-size: 100% 1px; }   /* current page: underline, not colour alone */
.lang { position: relative; display: flex; align-items: center; gap: 8px; font: var(--w-medium) var(--fs-13)/1 var(--f-body); letter-spacing: var(--ls-10); }
/* The other language at .75: 4.5 and more as navy on the light header, and as cream on the shade below. */
.lang a { text-decoration: none; opacity: .75; padding: 12px 2px; transition: opacity .2s; }
.lang a[aria-current] { opacity: 1; }
.drawer-open .header.is-solid .lang a:not([aria-current]) { opacity: .6; }
.lang span { opacity: .4; }
.header__burger { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px; background: none; border: 0; border-radius: var(--pill); cursor: pointer; transition: transform .12s var(--ease); }
.burger { display: grid; gap: 7px; width: 24px; }
.burger i { display: block; height: 1.5px; border-radius: var(--r-2xs); background: currentColor; transition: transform .3s var(--ease); }
.drawer-open .burger i:first-child { transform: translateY(4.25px) rotate(45deg); }
.drawer-open .burger i:last-child { transform: translateY(-4.25px) rotate(-45deg); }
@media (min-width: 1024px) { .header__nav { display: flex; } .header__burger { display: none; } }
/* Phones and tablets: the languages are in the menu (owner, final changes), so the row is the logo, the pill and
   the burger. The pill's box is 36px high and its tap target 44px. */
@media (max-width: 1023px) { .header__inner > .lang { display: none; } }
@media (max-width: 479px) {
  .header__inner { gap: 12px; }
  .header__contact { position: relative; min-height: 36px; padding: 0 14px; font-size: var(--fs-11); letter-spacing: var(--ls-12); }
  .header__contact::after { content: ''; position: absolute; inset: -4px 0; }
}
.drawer { position: fixed; inset: 0; z-index: 39; background: var(--navy); color: var(--text-inverse); padding: calc(var(--header-h) + 40px) var(--gutter) calc(32px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.drawer__nav { display: grid; gap: 6px; }
.drawer__nav a { font: var(--w-light) var(--fs-36)/1.45 var(--f-body); text-decoration: none; }
.drawer__nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 10px; }
/* The languages in the menu: the same plain ES | EN, a size up */
.drawer__lang { margin-bottom: auto; gap: 14px; font-size: var(--fs-16); } /* right under the links; the WhatsApp button keeps the bottom */

/* ---------- Hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; background: var(--navy); color: var(--text-inverse); }
.hero__stage { position: absolute; inset: 0; }
/* The page moves from the first scroll (owner, 2026-12-01: visitors of 40+ thought the page had stopped while the
   hero held still, and went for the header). As on a development page, the photo stays where it is and "Quiénes
   somos" rides up over it with a rounded top, while the day view fades in (main.js). The hero is sticky only while
   it shows (.is-stuck), so it is not kept pinned, unseen, under the rest of the page. */
.hero.is-stuck { position: sticky; top: 0; }
.hero-ride .about { border-radius: var(--r-lg) var(--r-lg) 0 0; box-shadow: 0 -18px 40px -24px var(--navy-deep-a45); }
.hero__media { position: absolute; inset: 0; transform: scale(1.06); will-change: transform; } /* night view a touch closer; scroll eases it to 1 */
.hero__media picture { height: 100%; }
.hero__day { position: absolute; inset: 0; opacity: 0; will-change: opacity; } /* the day view, faded in on scroll (main.js) */
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.hero__shade { position: absolute; inset: 0; background: var(--navy); opacity: .12; will-change: opacity; }
.hero__scrim { position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(var(--navy-deep-a0), var(--navy-deep-a50)); pointer-events: none; }
/* A phone: the tagline is a fixed distance above the bottom edge, not a share of the height. On a short screen it
   was above the shade. The shade is 400 px high or more, so the tagline has 3:1 or more (test/contrast.test.mjs). */
@media (max-width: 767px) { .hero__scrim { height: max(40%, 400px); } }
.hero__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* minmax(0, 1fr), here and on each 1-column grid of the phone layout: the column is as wide as its box, never as
   wide as its widest child. A child that does not wrap would move the centred column off the middle of the screen. */
.hero__settle { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 var(--gutter) calc(104px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; justify-items: center; text-align: center; max-width: var(--max); margin: 0 auto; }
.hero__tagline { font: var(--w-light) clamp(1.5rem, 2.8vw, 2.6rem)/1.2 var(--f-body); letter-spacing: var(--ls-neg-1); max-width: 20ch; text-wrap: balance; text-shadow: 0 1px 28px var(--navy-deep-a45); } /* holds over the bright day view too */
.hero__cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: grid; justify-items: center; gap: 10px; font: var(--w-medium) var(--fs-11)/1 var(--f-body); letter-spacing: var(--ls-24); text-transform: uppercase; opacity: .85; }
/* The loop runs only while the hero is on screen (main.js sets .is-live) */
.hero__cue i { width: 1px; height: 36px; background: currentColor; transform-origin: top; animation: cue 2.2s var(--ease) infinite paused; }
.is-live .hero__cue i, .is-live .dhero__cue i { animation-play-state: running; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
/* On load the tagline, button and cue rise in once over the night view (transform and opacity only) */
.hero__settle > *, .hero__cue > * { animation: hero-in .9s var(--ease) backwards; }
.hero__settle > :nth-child(2) { animation-delay: .12s; }
.hero__cue > * { animation-delay: .3s; }
.hero__cue i { animation: hero-in .9s var(--ease) .3s backwards, cue 2.2s var(--ease) 1.2s infinite paused; }
.is-live .hero__cue i { animation-play-state: running; }
@keyframes hero-in { from { opacity: 0; transform: translateY(18px); } }
@media (min-width: 1024px) { .hero__settle { grid-template-columns: 1fr auto; align-items: end; justify-items: start; text-align: left; padding-bottom: 72px; } }

/* ---------- Quiénes somos: an annotation between two thin lines ---------- */
.about__note { max-width: 980px; margin: 0 auto; padding: 52px 0 56px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; justify-items: center; text-align: center; }
.about__note .h-title { margin-bottom: 22px; }
.about__text { font: var(--w-light) var(--fs-16)/1.85 var(--f-body); max-width: 64ch; letter-spacing: var(--ls-1); }
.about__proof { display: flex; flex-direction: column; align-items: center; gap: 24px; margin-top: 40px; }
.about__stat { display: flex; align-items: center; gap: 16px; text-align: left; }
.about__stat b { font: var(--w-light) 3rem/1 var(--f-body); letter-spacing: var(--ls-neg-2); }
.about__stat span { font: var(--w-regular) var(--fs-13)/1.45 var(--f-body); color: var(--text-soft); max-width: 17ch; }
.about__stat--logo img { width: auto; height: 22px; }
.about__stat--logo span { font-weight: var(--w-medium); letter-spacing: .18em; text-transform: uppercase; font-size: var(--fs-12); color: var(--text); }
.about__sep { width: 48px; height: 1px; background: var(--line); }
@media (min-width: 768px) {
  .about__proof { flex-direction: row; gap: 44px; }
  .about__sep { width: 1px; height: 48px; }
}

/* ---------- Promociones ----------
   Phones and tablets (under 1280px, and touch screens up to 1400px): centred heading and one swipe carousel.
   Desktop: Pinalbert featured beside a side column, the other developments in a grid below. */
.promos__title { margin-bottom: 20px; text-align: center; }
.promos__layout { display: grid; gap: 28px; }
.promos__aside { display: contents; }
.promos__sub { order: 1; justify-self: center; text-align: center; text-wrap: balance; font: var(--w-light) var(--fs-17)/1.6 var(--f-body); letter-spacing: .03em; max-width: 30ch; }
.promos__main { order: 2; min-width: 0; }
.promos__note { order: 2; }
.promos__all { order: 3; justify-self: center; }

.feat { display: grid; gap: 22px; text-decoration: none; color: var(--text); border-radius: var(--r-md); }
.feat__media { aspect-ratio: 3 / 2; box-shadow: var(--float); }
.feat__media img { transform: scale(1.1); transform-origin: 46% 60%; transition: transform .9s var(--ease); }
.feat__media::before, .tile::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.feat__media::before { background: linear-gradient(to top, var(--navy-deep-a55), var(--navy-deep-a0) 38%); }
.feat__badge { position: absolute; z-index: 2; top: 16px; left: 16px; }
.feat__over { position: absolute; z-index: 2; left: 20px; right: 16px; bottom: 16px; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; color: var(--text-inverse); }
.feat__info { display: grid; gap: 14px; justify-items: start; }
.feat__head { display: grid; gap: 14px; }
.feat__name { font-size: clamp(2.4rem, 4.4vw, 4.8rem); line-height: 1; }
.feat__blurb { font: var(--w-light) var(--fs-15)/1.75 var(--f-body); color: var(--text-soft); max-width: 34ch; text-wrap: pretty; }
.feat__facts { display: flex; flex-wrap: wrap; gap: 8px 26px; font: var(--w-light) var(--fs-22)/1.2 var(--f-body); }
.feat__facts b { font-weight: var(--w-light); }
.feat__facts small { font-size: .55em; color: var(--text-soft); letter-spacing: var(--ls-2); } /* 4.5:1 or more on the page */

.promos__more { margin: 64px 0 24px; text-align: center; font: var(--w-light) clamp(1.4rem, 2vw, 2rem)/1.2 var(--f-body); letter-spacing: var(--ls-neg-1); }
.promos__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
/* Hover effects here and on the Portfolio cards only move and fade (transform, opacity): cards pass under a still
   pointer while the page scrolls, and a shadow, filter or height that animates there repaints a whole photo on
   every frame — the lag felt on the homepage and the Portfolio (owner, Modification v3). */
/* Each card is a size container: on a narrow one (laptops between 1280 and about 1440px wide) the badge goes
   compact and the button keeps its arrow only, as on the phone cards, so the price never runs under the button
   nor the name under the badge (found at 1280px, 2026-11-12). */
.tile { display: block; aspect-ratio: 1.08; color: var(--text-inverse); text-decoration: none; box-shadow: var(--float); transition: transform .4s var(--ease); container-type: inline-size; }
.tile picture { position: absolute; inset: 0; }
.tile img { transition: transform .9s var(--ease); }
.tile:active { transform: scale(.985); transition-duration: .12s; }
.tile::before { background: linear-gradient(var(--navy-deep-a50), var(--navy-deep-a0) 30%, var(--navy-deep-a0) 55%, var(--navy-deep-a62)); }
.tile__top, .tile__bottom { position: absolute; z-index: 2; left: 18px; right: 16px; display: flex; justify-content: space-between; gap: 12px; }
/* A name whose longest word does not fit beside the badge sends the badge to the line below it */
.tile__top { top: 16px; align-items: flex-start; flex-wrap: wrap; row-gap: 8px; }
.tile__top .badge { flex: none; }
.tile__bottom { bottom: 16px; align-items: flex-end; }
.tile__name { flex: 1 1 0; min-width: min-content; font-size: clamp(1.25rem, 1.7vw, 1.75rem); line-height: 1.08; max-width: 11ch; }
/* minmax(0, 1fr): the hidden facts line (one line, never wraps) must not set the block's width */
.tile__info { flex: 1 1 auto; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; font: var(--w-light) var(--fs-15)/1.4 var(--f-body); }
.tile__info b { font-weight: var(--w-regular); font-size: var(--fs-17); }
/* The facts line is always there, below the price and hidden; on hover the text block rises one line to show it */
.tile__info--more { transform: translateY(calc(.8125rem * 1.4 + 1px)); transition: transform .45s var(--ease); }
.tile__facts { display: block; overflow: hidden; font-size: var(--fs-13); white-space: nowrap; text-overflow: ellipsis; opacity: 0; transition: opacity .35s var(--ease); }
.tile:focus-visible .tile__info--more { transform: none; }
.tile:focus-visible .tile__facts { opacity: .92; }
.tile__go { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 34px; padding: 0 12px; border-radius: var(--pill); background: var(--navy-deep-a32); box-shadow: inset 0 0 0 1px var(--white-a42), inset 0 1px 0 var(--white-a25); font: var(--w-medium) var(--fs-10)/1 var(--f-body); letter-spacing: var(--ls-10); text-transform: uppercase; white-space: nowrap; transition: background-color .3s var(--ease), color .3s var(--ease); }
.feat:focus-visible .tile__go, .tile:focus-visible .tile__go { background: var(--cream); color: var(--text); }
/* Hover only where there is a real pointer: on touch screens a tap would leave the card stuck "hovered" */
@media (hover: hover) and (pointer: fine) {
  .tile:hover { transform: translateY(-3px); }
  .tile:hover img { transform: scale(1.03); }
  .tile:hover .tile__info--more { transform: none; }
  .tile:hover .tile__facts { opacity: .92; }
  .feat:hover .feat__media img { transform: scale(1.13); }
  .feat:hover .tile__go, .tile:hover .tile__go { background: var(--cream); color: var(--text); }
}

/* Carousel: phone cards keep only what fits — name and badge on top, location and price with an arrow below */
.carousel { margin: 0 calc(-1 * var(--gutter)); }
.carousel__track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); padding: 4px var(--gutter) 40px; margin-bottom: -18px; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.carousel__track::-webkit-scrollbar { display: none; }
.tile--slide { flex: 0 0 min(86%, 420px); scroll-snap-align: start; scroll-snap-stop: always; aspect-ratio: 4 / 5; box-shadow: 0 1px 2px var(--navy-deep-a06), 0 12px 22px -16px var(--navy-deep-a30); }
.tile--slide .tile__name { font-size: var(--fs-19-2); max-width: none; }
.tile--slide .tile__top .badge { font-size: var(--fs-9); min-height: 22px; padding: 0 9px; letter-spacing: var(--ls-8); }
.tile--slide .tile__bottom { left: 16px; right: 14px; bottom: 14px; gap: 10px; }
.tile--slide .tile__info { gap: 0; line-height: 1.3; }
.tile--slide .tile__info b { white-space: nowrap; font-size: var(--fs-15); }
.tile--slide .tile__go { width: 38px; min-height: 38px; padding: 0; }
.tile--slide .tile__go-label { display: none; }
@media (min-width: 768px) {
  .carousel__track { gap: 16px; }
  .tile--slide .tile__name { font-size: 1.4rem; }
  .tile--slide .tile__go { width: auto; padding: 0 12px; }
  .tile--slide .tile__go-label { display: inline; }
}
.carousel__dots { display: flex; justify-content: center; gap: 8px; }
.carousel__dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: var(--pill); background: var(--control-edge); cursor: pointer; transition: width .35s var(--ease), background-color .2s ease, opacity .12s ease-out; } /* 3:1 or more on the page: a state mark */
.carousel__dots button[aria-current] { width: 24px; background: var(--navy); }
.promos__note { margin: -6px auto 0; max-width: 72ch; text-align: center; font: var(--w-light) var(--fs-13)/1.5 var(--f-body); color: var(--text-soft); }
@media (max-width: 767px) { .promos__note { max-width: 44ch; font-size: var(--fs-11); color: var(--text-label); } }

.promos__desk { display: none; }
@container (max-width: 332px) {
  .tile__name { font-size: var(--fs-19-2); }
  .tile__top .badge { font-size: var(--fs-9); min-height: 22px; padding: 0 9px; letter-spacing: var(--ls-8); }
  .tile__go { width: 38px; min-height: 38px; padding: 0; }
  .tile__go-label { display: none; }
}
@media (min-width: 1280px) and (pointer: fine), (min-width: 1401px) {
  .promos__desk { display: block; }
  .carousel { display: none; }
  .promos__title { margin-bottom: 44px; text-align: left; }
  .promos__layout { grid-template-columns: minmax(220px, 19%) 1fr; gap: 0; }
  /* The side column (and its rule) runs to the foot of the cards, so "Ver el portfolio" sits level with them; the
     price note is a row of its own below (owner, homepage round 2026-11-02) */
  .promos__aside { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 8px 40px 0 0; border-right: 1px solid var(--line); }
  .promos__note { grid-column: 2; margin-top: 22px; padding-left: 56px; }
  .promos__sub { text-align: left; }
  .promos__main { padding-left: 56px; }
  .feat { grid-template-columns: 1.7fr 1fr; gap: 48px; align-items: stretch; }
  /* Height from its 3:2 shape from the first paint: stretched, it borrowed the text column's height until the
     photo loaded, and the page grew by 100px mid-scroll (a full scroll recalculation and a visible hitch). */
  .feat__media { align-self: start; }
  .feat__info { display: flex; flex-direction: column; align-items: flex-end; text-align: right; padding: 4px 0 8px; }
  /* The blurb is as wide as the name above it (it adds no width of its own), so the two edges line up. */
  .feat__head { min-width: 22ch; }
  .feat__blurb { width: 0; min-width: 100%; max-width: none; }
  .feat__facts { flex: 1; flex-direction: column; align-items: flex-end; justify-content: space-evenly; gap: 0; font-size: clamp(1.6rem, 2.2vw, 2.5rem); line-height: 1; }
  .promos__more { margin: 88px 0 28px; }
}

/* ---------- Trayectoria (quieter than Promociones: muted badges, no prices, no CTAs) ---------- */
.tray__head { display: grid; justify-items: center; text-align: center; margin-bottom: 44px; }
.tray__hint { margin-top: 12px; color: var(--text-soft); text-wrap: balance; }
.acc { max-width: 1320px; margin: 0 auto; }
.acc__item { border-top: 1px solid var(--line); }
.acc__item:last-child { border-bottom: 1px solid var(--line); }
.acc__btn { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 16px; padding: 22px 2px; background: none; border: 0; border-radius: var(--r-sm); text-align: left; cursor: pointer; transition: opacity .12s ease-out; }
.acc__name { grid-column: 1; font-size: clamp(1.3rem, 2vw, 1.9rem); line-height: 1.2; letter-spacing: var(--ls-5); color: var(--text); transition: transform .35s var(--ease); }
.acc__badges { grid-column: 1; grid-row: 2; display: flex; gap: 6px; flex-wrap: wrap; }
.acc__badges .badge { min-height: 22px; padding: 0 10px; font-size: var(--fs-9); }
.acc__icon { grid-column: 2; grid-row: 1 / span 2; position: relative; flex: none; width: 36px; height: 36px; border-radius: var(--pill); box-shadow: inset 0 0 0 1px var(--line); transition: background-color .3s var(--ease); }
.acc__icon::before, .acc__icon::after { content: ''; position: absolute; left: 11px; right: 11px; top: 50%; height: 1.5px; margin-top: -.75px; border-radius: var(--r-2xs); background: var(--text); transition: transform .25s var(--ease); }
.acc__icon::after { transform: rotate(90deg); }
.acc__btn[aria-expanded='true'] .acc__icon::after { transform: rotate(0); }
@media (hover: hover) and (pointer: fine) {
  .acc__btn:hover .acc__name { transform: translateX(4px); }
  .acc__btn:hover .acc__icon { background: var(--navy-a06); }
}
/* Opening and closing: the height morphs on one calm ease-in-out (.6s, the same curve main.js scrolls on);
   the photos and text fade in once it is under way and fade out first when it closes. The clip has no padding
   of its own, so the height runs from exactly 0 — nothing snaps at the start or the end. */
.acc__panel { display: grid; grid-template-rows: 0fr; }
.acc__panel.is-open { grid-template-rows: 1fr; }
/* The height changes in one step and main.js moves only layers: the rows below glide (translate) and the photos are
   uncovered by a curtain (.acc__curtain and .acc__inner slide in opposite directions). Animating the height itself
   re-laid out and repainted everything below on every frame, which a 5K screen could not keep up with (2026-11-13).
   While a panel closes its clip lets the curtain show past the collapsed row. */
.acc__clip { min-height: 0; overflow: hidden; }
.acc__panel.is-closing .acc__clip { overflow: visible; }
.acc__curtain { overflow: hidden; }
.acc__panel.is-closing .acc__curtain { pointer-events: none; }
.acc__inner { display: grid; gap: 16px; padding-bottom: 32px; }
.acc__img { aspect-ratio: 16 / 9; padding: 0; border: 0; cursor: zoom-in; display: block; width: 100%; }
.acc__img img { transition: transform .8s var(--ease); }

.acc__text { display: grid; gap: 6px; align-content: start; font: var(--w-light) var(--fs-16)/1.75 var(--f-body); color: var(--text-soft); max-width: 80ch; padding-top: 6px; }
.acc__loc { font-weight: var(--w-medium); color: var(--text); }
@media (min-width: 1024px) { .acc__text { max-width: none; } } /* the description runs on one line where it fits */
@media (min-width: 768px) {
  .acc__btn { display: flex; flex-wrap: wrap; gap: 12px 20px; padding: 24px 4px; }
  .acc__badges { margin-right: auto; }
  .acc__badges .badge { min-height: 26px; padding: 0 12px; font-size: var(--fs-11); }
  .acc__inner { grid-template-columns: 1fr 1fr; gap: 20px; }
  .acc__inner--2 .acc__text { grid-column: 1 / -1; }
  .acc__inner--1 .acc__text { align-self: center; padding: 0 24px; }
}
.tray__closing { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 22px; margin-top: 64px; text-align: center; }
.tray__closing p { font: var(--w-light) clamp(1.5rem, 2.4vw, 2.3rem)/1.2 var(--f-body); letter-spacing: var(--ls-neg-1); color: var(--text); }

/* Photo viewer, the same on every page: the photos sit in a native swipe strip clipped to the photo, with small
   arrows on it and the position dots below it (Instagram-style). --ar is the group's widest photo (main.js). */
.lightbox { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 64px 16px; overscroll-behavior: contain; touch-action: manipulation; /* quick taps on the arrows never zoom the page */
  --ar: 1.7778; --lb-w: min(1400px, 100vw - 32px, (100vh - 150px) * var(--ar)); --lb-h: calc(var(--lb-w) / var(--ar)); }
@supports (height: 100svh) { .lightbox { --lb-w: min(1400px, 100vw - 32px, (100svh - 150px) * var(--ar)); } }
.lightbox__backdrop { position: absolute; inset: 0; background: var(--navy-deep-a82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); opacity: 0; transition: opacity .3s linear; }
.lightbox__frame { position: relative; width: var(--lb-w); margin: 0; opacity: 0; transform: scale(.96); transition: opacity .4s var(--ease), transform .5s var(--ease); }
.lightbox.is-open .lightbox__backdrop { opacity: 1; }
.lightbox.is-open .lightbox__frame { opacity: 1; transform: none; }
.lightbox__btn { position: absolute; z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: var(--pill); background: var(--paper-a14); color: var(--text-inverse); cursor: pointer; box-shadow: inset 0 0 0 1px var(--white-a30); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background-color .25s; font-size: 26px; line-height: 1; }
.lightbox__x { top: 14px; right: 14px; }
.lightbox__media { position: relative; height: var(--lb-h); border-radius: var(--r-md); box-shadow: var(--edge), 0 40px 90px -30px var(--black-a70); }
/* A finger or a two-finger trackpad swipe moves the strip itself; it stops at every photo, a dark gap between them */
.lightbox__track { display: flex; gap: 16px; height: 100%; overflow-x: auto; overflow-y: hidden; border-radius: inherit; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; touch-action: pan-x pinch-zoom; }
.lightbox__track::-webkit-scrollbar { display: none; }
.lightbox__slide { flex: 0 0 100%; display: grid; place-items: center; scroll-snap-align: center; scroll-snap-stop: always; }
.lightbox__fig { position: relative; display: block; width: min(100%, var(--lb-h) * var(--r, 1.7778)); }
.lightbox__tag { position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px; border-radius: var(--pill); background: var(--navy); color: var(--text-inverse); font: var(--w-medium) var(--fs-12)/1 var(--f-body); letter-spacing: var(--ls-14); text-transform: uppercase; box-shadow: 0 4px 12px -4px var(--navy-deep-a45); pointer-events: none; }
@media (max-width: 1023px) { .lightbox__tag { top: 10px; right: 10px; min-height: 28px; padding: 0 12px; font-size: var(--fs-11); } }
.lightbox__slide img { display: block; width: 100%; height: auto; aspect-ratio: var(--r, 1.7778); object-fit: cover; border-radius: var(--r-md); background: var(--paper-a06); }
.lightbox__step { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; margin-top: -22px; padding: 0; border: 0; background: none; color: var(--text); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.lightbox__step span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: var(--r-round); background: var(--paper-a86); box-shadow: 0 2px 8px -2px var(--navy-deep-a35); transition: background-color .2s ease, transform .16s cubic-bezier(0.23, 1, 0.32, 1); }
.lightbox__step svg { width: 13px; height: 13px; }
.lightbox__step--prev { left: 4px; } .lightbox__step--prev svg { transform: rotate(180deg); }
.lightbox__step--next { right: 4px; }
.lightbox__step:active span { transform: scale(.9); }
.lightbox__step:focus-visible { outline: none; } .lightbox__step:focus-visible span { outline: 2px solid var(--white); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .lightbox__step:hover span { background: var(--white); } }
.lightbox__dots { display: flex; justify-content: center; gap: 6px; min-height: 22px; padding-top: 16px; }
.lightbox__dots i { width: 6px; height: 6px; border-radius: var(--r-round); background: var(--cream); opacity: .4; transition: opacity .2s ease, transform .2s ease; }
.lightbox__dots i.is-on { opacity: 1; transform: scale(1.2); }

/* ---------- Map ---------- */
.mapb .section-head__sub { color: var(--text-soft); }
.mapb__grid { display: grid; gap: 40px; }
.mapb__map { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--gray-1); box-shadow: var(--edge-ink), 0 30px 60px -36px var(--navy-deep-a35); }
.map__svg { width: 114%; max-width: none; margin-left: -2.8%; height: auto; }
@media (min-width: 768px) { .map__svg { width: 100%; margin-left: 0; } }
.map__land { fill: var(--gray-1); }
.map__sea { fill: var(--gray-4); }
.map__shore { fill: none; stroke: var(--gray-8); stroke-width: 1.2; stroke-linejoin: round; }
.map__sea-label { font: var(--w-regular) var(--fs-14px) var(--f-body); letter-spacing: var(--ls-32); fill: var(--text-label); text-transform: uppercase; }
.map__town circle { fill: var(--gray-edge); }
.map__town text { font: var(--w-regular) var(--fs-14px) var(--f-body); fill: var(--text-label); letter-spacing: var(--ls-4); }
@media (max-width: 767px) {
  .map__town text { font-size: 25px; }
  .map__town circle { r: 4.5px; }
  .map__sea-label { font-size: 20px; }
}
.pin { cursor: pointer; outline: none; }
.pin__g { transition: transform .2s var(--ease), opacity .2s linear; }
.pin__halo { fill: var(--navy); opacity: 0; transition: opacity .2s linear; }
.pin__dot { fill: var(--navy); stroke: var(--white); stroke-width: 2; }
.pin__hit { fill: transparent; }
.pin__num { font: var(--w-medium) 12px var(--f-body); fill: var(--text-inverse); pointer-events: none; }
.pin__tag { opacity: 0; transition: opacity .2s linear; pointer-events: none; }
.pin__tag rect { fill: var(--navy); }
.pin__tag text { font: var(--w-medium) 16px var(--f-display); letter-spacing: var(--ls-4); fill: var(--text-inverse); }
.has-active .pin:not(.is-active) .pin__g { opacity: .5; }
.pin.is-active .pin__g { transform: scale(1.15); }
.pin.is-active .pin__halo { opacity: .2; }
.pin.is-active .pin__tag { opacity: 1; }

.mapb__side { display: grid; gap: 28px; align-content: start; }
.mapb__caption { font: var(--w-light) var(--fs-16)/1.7 var(--f-body); color: var(--text-soft); max-width: 46ch; }
.maplist__row { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; padding: 30px 8px; text-decoration: none; border-top: 1px solid var(--line); border-radius: var(--r-2xs); transition: opacity .2s linear; }
.maplist li:last-child .maplist__row { border-bottom: 1px solid var(--line); }
.maplist__num { font: var(--w-medium) var(--fs-13)/1 var(--f-body); color: var(--text-label); font-variant-numeric: tabular-nums; }
.maplist__main { display: grid; gap: 8px; }
.maplist__main b { font-size: var(--fs-24); line-height: 1.2; transition: transform .2s var(--ease); transform-origin: left center; }
.maplist__main span { font: var(--w-light) var(--fs-15)/1.5 var(--f-body); color: var(--text-soft); letter-spacing: var(--ls-2); }
.has-active .maplist__row:not(.is-active) { opacity: .5; }
.maplist__row.is-active .maplist__main b { transform: scale(1.05); }
@media (min-width: 1024px) { .mapb__grid { grid-template-columns: 6fr 5fr; gap: 72px; align-items: center; } }

/* ---------- Vista: the sea view between "Quiénes somos" and Promociones ----------
   Scrolls in with the page, holds under the header and Promociones slides over it (main.js, initStack).
   5:4 on phones held sideways, 16:9 on tablets, a wide 2.75:1 strip from 1024px; on phones held upright
   it fills the screen below the header (a tall crop of the photo). Its caption sits over the middle. */
.vista { position: relative; z-index: 2; aspect-ratio: 5 / 4; overflow: hidden; background: var(--cream); color: var(--white); }
.vista.under { padding: 0; }
.vista__img, .vista__img img { position: absolute; inset: 0; width: 100%; height: 100%; }
.vista__img img { object-fit: cover; object-position: 50% 58%; }
@media (max-width: 767px) and (orientation: portrait) {
  .vista { aspect-ratio: auto; height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h)); }
  .vista__img img { object-position: 50% 50%; }
}
/* A soft shade behind the words only, so white type reads on the bright town without dimming the sea */
.vista::after { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 55% at 50% 52%, var(--navy-deep-a34), var(--navy-deep-a0) 72%); pointer-events: none; }
.vista__text { position: relative; z-index: 1; display: grid; align-content: center; justify-items: center; gap: clamp(12px, 1.6vw, 26px); height: 100%; padding: 0 var(--gutter); text-align: center; text-shadow: 0 1px 18px var(--navy-deep-a35); }
.vista__title { margin-right: -.32em; font: var(--w-light) clamp(1.7rem, 5.4vw, 6rem)/1 var(--f-body); letter-spacing: var(--ls-32); }
.vista__lines { display: grid; gap: .15em; font: var(--w-regular) clamp(.8125rem, 1.2vw, 1.375rem)/1.55 var(--f-body); letter-spacing: var(--ls-6); }
.vista__lines span { text-wrap: balance; }   /* one sentence per line; a long one wraps on its own */
/* Phones: the name is the section, as on a computer — stacked on two lines at a size that fills the width, with the
   sentences at reading size (they were 27px and 13px, lost on the photo). */
@media (max-width: 639px) {
  .vista__text { gap: 22px; }
  .vista__title { margin-right: -.2em; font-size: clamp(2.75rem, 14.5vw, 4rem); line-height: 1.04; letter-spacing: var(--ls-20); }
  .vista__title span { display: block; }
  .vista__lines { max-width: 30ch; font-size: var(--fs-17); line-height: 1.5; letter-spacing: var(--ls-2); gap: .5em; }
  .vista::after { background: radial-gradient(95% 55% at 50% 52%, var(--navy-deep-a34), var(--navy-deep-a0) 80%); } /* soft and still (owner, final changes) */
}
@media (min-width: 640px) { .vista { aspect-ratio: 16 / 9; } .vista__lines { letter-spacing: var(--ls-10); } }
@media (min-width: 640px) and (max-width: 767px) and (orientation: portrait) { .vista { aspect-ratio: auto; } }
@media (min-width: 1024px) { .vista { aspect-ratio: 2.75 / 1; } }

/* ---------- Cierre: palm-leaf shadows on cream (Homepage/graphics/Creamy Background) ---------- */
/* A roomy band, so the palm shadows have space around the line (owner, 2026-10-27: "a bit wider") */
.cierre { display: grid; align-content: center; min-height: 58svh; overflow: hidden; }
@media (min-width: 1024px) { .cierre { min-height: min(70svh, 780px); } }
.cierre__bg { position: absolute; inset: 0; pointer-events: none; }
.cierre__bg picture, .cierre__bg img { width: 100%; height: 100%; }
/* The leaves sway a little around the big palm at the top right, slowly enough to read as a breeze;
   paused while off screen (main.js) and still under reduced motion. Transform only. */
.cierre__bg img { object-fit: cover; object-position: 72% 30%; transform: scale(1.08); transform-origin: 85% 0; animation: sway 14s ease-in-out infinite alternate paused; }
.cierre__bg.is-live img { animation-play-state: running; }
@keyframes sway { to { transform: scale(1.08) translate3d(-1.2%, .8%, 0) rotate(.8deg); } }
.cierre__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; justify-items: center; text-align: center; padding-top: 32px; padding-bottom: 32px; }

/* ---------- Portfolio (Portfolio/PORTFOLIO_BRIEF.md) ----------
   One catalogue: every card the same shape. On sale = white, lifted, navy badge, price, arrow.
   Delivered and sold = linen, flatter, outline badges, softer photo, every photo in a swipeable strip. */
.pf { padding-top: calc(var(--header-h) + clamp(44px, 6vw, 96px)); }
.pf-intro { display: grid; gap: 18px 64px; padding-bottom: clamp(26px, 3.4vw, 44px); border-bottom: 1px solid var(--line); }
.pf-intro__title { font: var(--w-light) clamp(3.2rem, 9vw, 8.5rem)/.92 var(--f-body); letter-spacing: -.04em; margin-left: -.04em; }
.pf-intro__sub { max-width: 40ch; font: var(--w-light) clamp(1.15rem, 1.7vw, 1.55rem)/1.35 var(--f-body); letter-spacing: -.005em; text-wrap: balance; }
@media (min-width: 1024px) { .pf-intro { grid-template-columns: auto minmax(0, 56ch); justify-content: space-between; align-items: end; }
  .pf-intro__sub { justify-self: end; text-align: right; } } /* the line ends on the content's right edge (owner, 2026-12-03) */

/* ---------- Contact page: the Portfolio's head, then the ways to reach HPA beside the contact form ----------
   The channels read as a short table — what, then the number or address in large type, then its hours and the one
   action — so a visitor finds the number first. The form sits on a white card that eases to each step's height. */
.ct { padding-top: calc(var(--header-h) + clamp(44px, 6vw, 96px)); padding-bottom: var(--section); }
.ct__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; margin-top: clamp(32px, 4vw, 56px); }
.ct__card { align-self: start; padding: 26px 20px 24px; border-radius: var(--r-lg); background: var(--surface-card); box-shadow: var(--edge-ink), 0 30px 70px -40px var(--navy-deep-a45); }
.ct__card .lead__title, .ct__card .step__head, .ct__card .lead__q { padding-right: 0; }
.ct__channels { display: grid; align-content: start; }
.ct__block { display: grid; gap: 10px; padding: 24px 0; border-top: 1px solid var(--line); }
.ct__block:first-child { border-top: 0; padding-top: 0; }
.ct__h { font: var(--w-medium) var(--fs-11)/1.5 var(--f-body); letter-spacing: var(--ls-16); text-transform: uppercase; color: var(--text-soft); }
.ct__body { display: grid; gap: 6px; justify-items: start; }
/* Each track is as wide as its column and not as its longest word, so a long value breaks and stays in the column */
.ct__channels, .ct__block, .ct__body { grid-template-columns: minmax(0, 1fr); }
.ct__mail .link { overflow-wrap: anywhere; } /* the address is 1 long word: it breaks with larger text */
.ct__tel { font: var(--w-light) clamp(1.5rem, 2.3vw, 2rem)/1.2 var(--f-body); letter-spacing: var(--ls-neg-1); font-variant-numeric: tabular-nums; color: var(--text); text-decoration: none; }
.ct__addr { font: var(--w-light) clamp(1.15rem, 1.6vw, 1.375rem)/1.4 var(--f-body); font-style: normal; color: var(--text); }
.ct__hours, .ct__mail { font: var(--w-light) var(--fs-16)/1.55 var(--f-body); color: var(--text-soft); }
.ct__body .link-cta { margin-top: 12px; }
@media (max-width: 359px) { .ct__mail { font-size: var(--fs-15); } } /* 320px: the address is whole on one line */
/* Phones: the first step of the form, with its button, is whole in the first screen (390 x 844) */
@media (max-width: 639px) {
  .ct .pf-intro { padding-bottom: 18px; }
  .ct__grid { margin-top: 20px; }
  .ct__card { padding-top: 22px; }
}
/* Phones and tablets: every channel centred, as the rest of the page (owner, Contacto v2) */
@media (max-width: 1023px) {
  .ct__block { justify-items: center; text-align: center; }
  .ct__body { justify-items: center; }
  .ct__socials { justify-content: center; }
}
.ct__socials { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 4px; }
.ct__social { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; font: var(--w-regular) var(--fs-16)/1 var(--f-body); color: var(--text); text-decoration: none; }
.ct__social svg { width: 22px; height: 22px; }
@media (hover: hover) and (pointer: fine) {
  .ct__tel, .ct__social { transition: opacity .2s ease; }
  .ct__tel:hover, .ct__social:hover { opacity: .7; }
  .ct__body .link-cta:hover .arrow { transform: translateX(4px); }
}
@media (min-width: 640px) { .ct__card { padding: 36px 36px 32px; } }
@media (min-width: 1024px) {
  /* The channels on the left, the form on the right, as the dosier band sets its text and form */
  .ct__grid { grid-template-columns: minmax(0, 1fr) minmax(420px, 520px); gap: 6vw; align-items: start; }
  .ct__card { grid-column: 2; grid-row: 1; padding: 40px 40px 36px; }
  .ct__channels { grid-column: 1; grid-row: 1; }
  .ct__block { padding: 30px 0; }
  .ct__block:first-child { padding-top: 8px; }
}
/* The label beside its body only when the body holds its longest line ("Contáctanos por WhatsApp", 293 px, which
   does not break). Below this width the label is above the body, or the body is over the form card. */
@media (min-width: 1160px) {
  .ct__block { grid-template-columns: minmax(150px, .8fr) minmax(0, 1.6fr); gap: 24px; }
  .ct__h { padding-top: .7em; }
}

/* Filter tabs: a soft track; the navy pill is a clipped copy of the row, so it slides and recolours in one move */
.pf-filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; margin: 24px 0 28px; }
.pf-filters__scroll { position: relative; max-width: calc(100% + 2 * var(--gutter)); margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter); overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.pf-filters__scroll::-webkit-scrollbar { display: none; }
.pf-filters__row { display: flex; gap: 4px; width: max-content; padding: 4px; border-radius: var(--pill); background: var(--navy-a05); box-shadow: inset 0 0 0 1px var(--navy-a07); }
.pf-filters__row--on { position: absolute; top: 4px; left: var(--gutter); background: var(--navy); box-shadow: inset 0 1px 0 var(--white-a16); pointer-events: none; transition: clip-path .34s cubic-bezier(0.23, 1, 0.32, 1); }
.pf-tab { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px 0 18px; border: 0; border-radius: var(--pill); background: transparent; color: var(--text); font: var(--w-medium) var(--fs-12)/1 var(--f-body); letter-spacing: .13em; text-transform: uppercase; white-space: nowrap; cursor: pointer; -webkit-user-select: none; user-select: none; transition: background-color .2s ease, transform .16s ease-out; }
.pf-filters__row--on .pf-tab { color: var(--text-inverse); }
.pf-tab:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; border-radius: var(--pill); }
.pf-tab[aria-selected='false']:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .pf-tab[aria-selected='false']:hover { background: var(--navy-a06); } }
.pf-filters__count { font: var(--w-regular) var(--fs-13)/1 var(--f-body); letter-spacing: var(--ls-4); color: var(--text-soft); }
@media (min-width: 640px) {
  .pf-filters__scroll { max-width: 100%; margin: 0; padding: 4px 0; overflow: visible; }
  .pf-filters__row--on { left: 0; }
}

/* Grid: 1 / 2 / 3 columns */
.pgrid { --gap: 16px; display: grid; gap: var(--gap); }
@media (min-width: 640px) { .pgrid { --gap: 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .pgrid { --gap: 32px; grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1440px) { .pgrid { --gap: 40px; } }
.pgrid__cell { display: flex; min-width: 0; }
.pgrid__empty { grid-column: 1 / -1; padding: 56px 24px; text-align: center; border-radius: var(--r-lg); background: var(--cream); color: var(--text-soft); }

.pcard { position: relative; flex: 1; display: flex; flex-direction: column; min-width: 0; padding: 10px 10px 0; border-radius: var(--r-lg); background: var(--surface-card); box-shadow: var(--edge-ink), 0 1px 2px var(--navy-deep-a05), 0 22px 44px -30px var(--navy-deep-a42); transition: transform .25s cubic-bezier(0.23, 1, 0.32, 1); }
/* The deeper hover shadow is drawn once, on its own layer, and faded in */
.pcard--sale::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; box-shadow: 0 2px 4px var(--navy-deep-a06), 0 28px 50px -30px var(--navy-deep-a50); opacity: 0; transition: opacity .25s cubic-bezier(0.23, 1, 0.32, 1); pointer-events: none; }
.pcard__media { aspect-ratio: 4 / 3; border-radius: var(--r-lg-in); }
.pcard__media img { transition: transform .6s var(--ease); }
.pcard__body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 18px 12px 20px; }
.pcard__badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.pcard__name { font-size: clamp(1.3rem, 1.55vw, 1.6rem); line-height: 1.15; }
.pcard__hit { padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.pcard__hit::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: var(--r-lg); }   /* the whole card is the one target */
.pcard__hit:focus-visible { outline: none; }
.pcard__hit:focus-visible::after { outline: 2px solid var(--navy); outline-offset: 3px; }
.pcard__place { font: var(--w-light) var(--fs-15)/1.5 var(--f-body); color: var(--text-soft); }
.pcard__meta { font: var(--w-light) var(--fs-15)/1.5 var(--f-body); }
.pcard__meta b { font-weight: var(--w-medium); }
.pcard__cta { margin-top: auto; padding-top: 18px; display: inline-flex; align-items: center; gap: 10px; font: var(--w-medium) var(--fs-12)/1 var(--f-body); letter-spacing: var(--ls-14); text-transform: uppercase; }
.pcard--sale .pcard__cta { padding-bottom: 6px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }

.pcard--done { background: var(--cream); box-shadow: inset 0 0 0 1px var(--navy-a07), 0 1px 2px var(--navy-deep-a04); }
/* Delivered and sold: the photos a touch muted by a faint cream wash (a filter on every photo and its loop copy
   cost a repaint each time the strip or the page moved) */
.pcard--done .pcard__media::before { content: ''; position: absolute; inset: 0; z-index: 2; border-radius: inherit; background: var(--cream-a14); pointer-events: none; }
.pcard--sale:active { transform: scale(.99); transition-duration: .1s; }
@media (hover: hover) and (pointer: fine) {
  .pcard--sale:hover { transform: translateY(-3px); }
  .pcard--sale:hover::before { opacity: 1; }
  .pcard--sale:hover .pcard__media img { transform: scale(1.03); }
  .pcard--sale:hover .pcard__cta .arrow { transform: translateX(4px); }
}

/* Photo strip on delivered / sold cards: native swipe that snaps one photo at a time and loops (main.js).
   Dots say there is more; arrows appear on hover where there is a mouse (touch screens swipe). */
.gal__track { display: flex; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; border-radius: inherit; }
.gal__track::-webkit-scrollbar { display: none; }
.gal__track.is-still { overflow-x: hidden; } /* mouse and trackpad: moved by script only (main.js) */
.gal__track.is-dragging, .lightbox__track.is-dragging, .scar__track.is-dragging, .carousel__track.is-dragging { cursor: grabbing; user-select: none; }
.gal__slide { flex: 0 0 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.gal__slide picture, .gal__slide img { width: 100%; height: 100%; }
.gal__open { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: inherit; -webkit-tap-highlight-color: transparent; }
.gal__open:focus-visible { outline: 2px solid var(--white); outline-offset: -5px; }
.gal__btn { position: absolute; top: 50%; z-index: 4; display: grid; place-items: center; width: 38px; height: 38px; margin-top: -19px; padding: 0; border: 0; border-radius: var(--pill); background: var(--paper-a92); color: var(--text); cursor: pointer; box-shadow: 0 6px 18px -8px var(--navy-deep-a50); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s cubic-bezier(0.23, 1, 0.32, 1), background-color .2s ease; }
.gal__btn .arrow { width: 14px; height: 12px; }
.gal__btn--prev { left: 12px; transform: translateX(6px); }
.gal__btn--prev .arrow { transform: rotate(180deg); }
.gal__btn--next { right: 12px; transform: translateX(-6px); }
.gal__btn:focus-visible { opacity: 1; pointer-events: auto; transform: none; outline-color: var(--white); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .gal:hover .gal__btn { opacity: 1; pointer-events: auto; transform: none; }
  .gal__btn:hover { background: var(--white); }
  .gal .gal__btn:active { transform: scale(.94); transition-duration: .1s; }
}
.gal__dots { position: absolute; left: 50%; bottom: 12px; z-index: 4; display: flex; gap: 6px; padding: 6px 8px; border-radius: var(--pill); background: var(--navy-deep-a38); transform: translateX(-50%); pointer-events: none; }
.gal__dots i { width: 6px; height: 6px; border-radius: var(--r-round); background: var(--white); opacity: .5; transition: opacity .2s ease, transform .2s ease; }
.gal__dots i.is-on { opacity: 1; transform: scale(1.2); }

/* Closing line with its supporting sentence (Portfolio §7.5) */
.cierre__words { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; justify-items: center; }
.cierre__sub { max-width: 46ch; font: var(--w-light) var(--fs-17)/1.65 var(--f-body); color: var(--text-soft); text-wrap: balance; }

/* ---------- Footer ---------- */
/* The footer of the old site at each width (owner, final changes: clearer to find a way through). */
/* Phones: one centred column — office, phones, social, email, then the small print — after mered.ae
   (owner, 2026-10-27). From 768px the same blocks sit in columns under the logo row. */
.footer { position: relative; padding-bottom: 40px; text-align: center; }
@media (max-width: 1023px) { .footer { padding-bottom: calc(102px + env(safe-area-inset-bottom)); } } /* phones, tablets: the last line ends above the WhatsApp button */
.footer__top { display: flex; justify-content: center; padding-bottom: 28px; }
.footer__logo { width: auto; height: 40px; }
.footer__cta { display: none; } /* phones: the closing section just above already has the button */
.footer__kicker { max-width: 30ch; margin: 0 auto; font: var(--w-regular) var(--fs-12)/1.6 var(--f-body); letter-spacing: var(--ls-16); text-transform: uppercase; color: var(--text-inverse-soft); text-wrap: balance; }
.footer__contact { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; padding-top: 52px; }
.footer__block { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 8px; }
.footer__block + .footer__block { margin-top: 44px; }
.footer__h { font: var(--w-regular) var(--fs-18)/1.3 var(--f-body); color: var(--text-inverse); }
address { font-style: normal; }
.footer__tel { padding: 4px 0; font: var(--w-light) var(--fs-24)/1.2 var(--f-body); letter-spacing: var(--ls-1); color: var(--text-inverse); text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap; }
.footer__hours { font: var(--w-regular) var(--fs-13)/1.4 var(--f-body); color: var(--text-inverse-soft); }
.footer__block.footer__block--reach { gap: 0; margin-top: 60px; }
.footer__block--reach .footer__h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.footer__social { display: flex; justify-content: center; gap: 20px; }
.footer__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r-round); color: var(--text-inverse); box-shadow: inset 0 0 0 1px var(--cream-a50); transition: background-color .2s ease, color .2s ease, transform .16s ease-out; }
.footer__icon svg { width: 20px; height: 20px; }
.footer__icon:active { transform: scale(.94); }
.footer__mail { margin-top: 40px; font: var(--w-regular) var(--fs-14)/1.4 var(--f-body); }
.footer__mail .link { background-size: 100% 1px; overflow-wrap: anywhere; } /* 1 long word: it breaks with larger text */
.footer__links { display: grid; justify-items: center; gap: 24px; margin-top: 52px; padding-top: 36px; border-top: 1px solid var(--line-inverse); }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 24px; font: var(--w-medium) var(--fs-12)/1.4 var(--f-body); letter-spacing: var(--ls-14); text-transform: uppercase; }
.footer__nav li, .footer__legal li { padding: 10px 0; }
.footer__legal { display: grid; justify-items: center; font: var(--w-regular) var(--fs-13)/1.4 var(--f-body); color: var(--text-inverse-soft); }
.footer__legal li { padding: 8px 0; }
.footer__legal .link { background-size: 100% 1px; }
@media (hover: hover) and (pointer: fine) {
  .footer__icon:hover { background: var(--cream); color: var(--text); }
  .footer__legal .link:hover { color: var(--text-inverse); }
}
.footer__name { font: var(--w-light) 5.6vw/1 var(--f-body); letter-spacing: var(--ls-neg-2); color: var(--cream-a10); white-space: nowrap; overflow: hidden; margin: 28px 0 24px; padding-bottom: .24em; text-align: center; }
/* padding-bottom: room below the line for the descenders (the j and q were cut at line-height 1, owner 2026-11-18) */
/* The contact page: the links, the name and the company line only (owner, Contacto v2) */
.footer--compact { padding-top: 44px; }
.footer--compact .footer__links { margin-top: 0; padding-top: 0; border-top: 0; }
.footer__id { display: grid; gap: 2px; font: var(--w-light) var(--fs-13)/1.6 var(--f-body); color: var(--text-inverse-soft); }   /* phones: name, CIF and address one per line */
@media (min-width: 768px) {
  .footer { text-align: left; }
  .footer__top { flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: center; padding-bottom: 48px; }
  .footer__logo { height: 44px; }
  .footer__cta { display: inline-flex; }
  .footer__kicker { display: none; }
  .footer__contact { grid-template-columns: repeat(2, minmax(0, 1fr)); justify-items: start; gap: 40px 24px; padding: 44px 0; border-top: 1px solid var(--line-inverse); }
  .footer__block { justify-items: start; gap: 4px; }
  .footer__block + .footer__block, .footer__block.footer__block--reach { margin-top: 0; }
  .footer__h, .footer__block--reach .footer__h { position: static; width: auto; height: auto; overflow: visible; clip: auto; margin-bottom: 12px; font: var(--w-medium) var(--fs-12)/1.4 var(--f-body); letter-spacing: var(--ls-20); text-transform: uppercase; color: var(--sand); }
  .footer__tel { font-size: var(--fs-20); }
  .footer__social { gap: 12px; }
  .footer__icon { width: 44px; height: 44px; }
  .footer__mail { margin-top: 18px; }
  .footer__mail .link, .footer__legal .link { background-size: 0 1px; }
  /* The columns line up on three lines (owner, footer v4: "make all lineal and coherent"): the label, the
     main line (each phone, the email) and the details (the hours, Instagram). Every column is a
     plain stack with the same fixed line heights, so each line starts at the same height in all of them by
     construction. Not a subgrid with baseline alignment: Chrome sometimes sized those rows hundreds of pixels too
     tall until the next relayout (owner, 2026-12-03). The text of a smaller size is nudged down (relative, so the
     layout is untouched) onto the baseline of the 20px phones; the nudges are measured, Montserrat. */
  .footer__block { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
  .footer__tel { padding: 0; line-height: 28px; }
  .footer__mail { line-height: 28px; position: relative; top: 2px; }
  .footer__mail { order: 1; margin-top: 0; font: var(--w-light) var(--fs-15)/28px var(--f-body); }
  .footer__hours { margin-top: 6px; line-height: 18px; position: relative; top: 4px; }
  .footer__social { order: 2; margin-top: 8px; }
  @media (hover: hover) and (pointer: fine) { .footer__mail .link:hover, .footer__legal .link:hover { background-size: 100% 1px; } }
  .footer__id { display: block; text-align: center; } /* name, CIF and address on one centred line (owner, v3) */
  .footer__id span + span::before { content: '·'; margin: 0 .6em; }
  .footer__links { grid-template-columns: auto auto; justify-content: space-between; align-items: center; gap: 8px 40px; margin-top: 0; padding-top: 20px; }
  .footer__nav { justify-content: flex-start; gap: 0 28px; }
  .footer__legal { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 24px; }
}
/* From 900: each column takes its own width and the three spread across the row with equal gaps, as the links below
   do: the first starts on the content's left edge and the last (the email) ends on its right edge (owner, 2026-12-03).
   Below 900 the three do not fit on one row: two by two, as on a tablet. */
@media (min-width: 900px) { .footer__contact { grid-template-columns: repeat(3, auto); justify-content: space-between; } }

/* ---------- Floating contact button: still, no pulse; opens WhatsApp / the contact form ---------- */
.fab { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 30; display: grid; justify-items: end; gap: 10px; pointer-events: none; transition: opacity .35s var(--ease), transform .35s var(--ease); }
@media (min-width: 1024px) { .fab { right: 28px; bottom: 48px; } } /* PC: off the corner, and below the name of the footer at the very bottom of the page */
.fab.is-off { opacity: 0; transform: translateY(16px); visibility: hidden; transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s .35s; } /* after the fade, the keyboard skips it also */
.fab.is-off .fab__btn { pointer-events: none; }
.fab__btn { position: relative; pointer-events: auto; display: grid; place-items: center; width: 58px; height: 58px; border: 0; border-radius: var(--pill); background: var(--navy); color: var(--text-inverse); cursor: pointer; box-shadow: inset 0 1px 0 var(--white-a18), 0 14px 30px -10px var(--navy-deep-a55); transition: transform .3s var(--ease); }
.fab__btn svg { width: 26px; height: 26px; transform: translate(.5px, -.5px); }
@media (hover: hover) and (pointer: fine) { .fab__btn:hover { transform: scale(1.05); } }
.fab__btn:active { transform: scale(.95); }
.fab__menu { display: grid; justify-items: end; gap: 8px; }
.fab__item { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 18px 0 14px; border: 0; border-radius: var(--pill); background: var(--surface); color: var(--text); text-decoration: none; font: var(--w-medium) var(--fs-13)/1 var(--f-body); letter-spacing: var(--ls-4); cursor: pointer; box-shadow: var(--edge-ink), 0 12px 28px -12px var(--navy-deep-a50); opacity: 0; translate: 0 10px; scale: .96; transform-origin: 100% 100%; pointer-events: none; visibility: hidden; transition: opacity .12s ease-out, translate .15s var(--ease), scale .15s var(--ease), transform .12s ease-out, background-color .2s, visibility 0s .15s; } /* closed: after the fade, the keyboard skips the items also */
.fab__item svg { width: 20px; height: 20px; }
/* The menu is small and next to its button: it grows from the button (the lower right corner), opens in .2s and
   closes faster. `translate` and `scale` open and close it; `transform` is the press look only (see "Press
   feedback"), so a release takes the press time and not the open time. */
.fab.is-open .fab__item { opacity: 1; translate: none; scale: none; pointer-events: auto; visibility: visible; transition: opacity .15s ease-out var(--fab-wait, 0s), translate .2s var(--ease) var(--fab-wait, 0s), scale .2s var(--ease) var(--fab-wait, 0s), transform .12s ease-out, background-color .2s; }
.fab.is-open .fab__item:nth-child(1) { --fab-wait: .04s; } /* the item far from the button comes second */
/* A form, the photo viewer or the map is open: whatever loops under its blurred backdrop stands still, or the
   browser would blur the whole screen again on every frame */
.is-locked .cierre__bg.is-live img, .is-locked .is-live .hero__cue i, .is-locked .is-live .dhero__cue i { animation-play-state: paused; }

/* ---------- Cookie banner ---------- */
.cookies { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 45; max-width: 540px; margin-inline: auto; padding: 12px; border-radius: var(--r-22); background: var(--surface); color: var(--text); box-shadow: var(--edge-ink), 0 24px 60px -20px var(--navy-deep-a45); font: var(--w-regular) var(--fs-13)/1.5 var(--f-body); display: grid; gap: 10px; }
.cookies__btns { display: flex; gap: 6px; }
.cookies__btns .btn { flex: 1 1 auto; padding: 0 6px; }
.cookies__prefs { display: grid; gap: 8px; }
.cookies__prefs label { display: flex; gap: 10px; align-items: center; }
/* A phone: the open banner stands where the button of the home hero is. While the page has .cookie-ask (the head
   script sets it at the first visit, main.js keeps it equal to the banner), the hero content is higher: the button
   ends 16 px over the banner. The banner starts 12 px + its height over the bottom, the button ends 104 px over it.
   Before main.js gives the real height, --cookie-h is the height of the shut banner: its text has 3 lines (135 px)
   up to 403 px in Spanish and up to 367 px in English, then 2 lines (115 px). So the content does not move when
   main.js runs. Only a transform moves, so the return after the choice is calm. */
@media (max-width: 767px) {
  :root { --cookie-h: 135px; }
  .hero__settle { transition: transform .4s var(--ease); }
  .cookie-ask .hero__settle { transform: translateY(min(0px, 76px - var(--cookie-h))); }
}
@media (min-width: 368px) and (max-width: 767px) { :root:lang(en) { --cookie-h: 115px; } }
@media (min-width: 404px) and (max-width: 767px) { :root { --cookie-h: 115px; } }
/* From 768 px: 1 thin row in the center, the text on the left and the buttons on the right. The checkboxes open under the text.
   The row stays in the lowest 60 px of the screen: the proof line and the button of the home hero start 67 px over the bottom. */
@media (min-width: 768px) {
  .cookies { left: 24px; right: 24px; bottom: 8px; width: fit-content; max-width: 880px; padding: 5px 5px 5px 22px; border-radius: var(--r-lg); grid-template-columns: minmax(0, 1fr) auto; gap: 0 20px; align-items: center; }
  .cookies p { grid-column: 1; max-width: 360px; text-wrap: balance; }
  .cookies:has(.cookies__prefs:not([hidden])) { padding: 12px 12px 12px 22px; }
  .cookies__prefs { grid-column: 1; grid-row: 2; display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 6px 0; }
  .cookies__btns { grid-column: 2; grid-row: 1 / span 2; }
  .cookies__btns .btn { flex: none; padding: 0 14px; }
}

/* ---------- Modal (HPA_WEBSITE_BRIEF.md §7.4) ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; align-items: end; }
.modal__backdrop { position: absolute; inset: 0; background: var(--navy-a45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; transition: opacity .25s linear; }
.modal__panel { position: relative; width: 100%; max-height: 92svh; overflow-y: auto; overscroll-behavior: contain; background: var(--surface); color: var(--text); border-radius: var(--r-lg) var(--r-lg) 0 0; padding: 12px 22px calc(28px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .4s var(--ease); box-shadow: inset 0 1px 0 var(--white-a90), 0 -10px 40px var(--navy-deep-a20); outline: none; }
.modal.is-open .modal__backdrop { opacity: 1; }
.modal.is-open .modal__panel { transform: none; }
.modal.is-closing .modal__backdrop { opacity: 0; transition-duration: .25s; }
.modal.is-closing .modal__panel { transform: translateY(100%); transition-duration: .25s; }
.modal__handle { display: grid; place-items: center; height: 24px; margin-bottom: 4px; cursor: grab; touch-action: none; }
.modal__handle i { width: 44px; height: 5px; border-radius: var(--r-3); background: var(--navy-a20); }
.modal__x { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: var(--pill); background: var(--navy-a06); font-size: 22px; line-height: 1; cursor: pointer; color: var(--text); transition: background-color .2s, transform .12s var(--ease); }
@media (min-width: 768px) {
  .modal { place-items: center; padding: 24px; }
  .modal__panel { max-width: 520px; max-height: calc(100vh - 48px); border-radius: var(--r-lg); padding: 48px 44px 40px; transform: translateY(24px); opacity: 0; transition: transform .4s var(--ease), opacity .4s var(--ease); box-shadow: var(--edge-ink), 0 40px 90px -30px var(--navy-deep-a55); }
  .modal.is-open .modal__panel { opacity: 1; }
  .modal.is-closing .modal__panel { transform: translateY(12px); opacity: 0; }
  .modal__handle { display: none; }
}

.lead { display: grid; grid-template-columns: minmax(0, 1fr); }
.step { display: none; gap: 16px; }
.step.is-active { display: grid; }   /* step changes are animated in main.js (fade, resize, slide) */
.step__count { font: var(--w-medium) var(--fs-11)/1 var(--f-body); letter-spacing: var(--ls-14); text-transform: uppercase; color: var(--text-soft); }
.lead__title { font: var(--w-light) 1.75rem/1.2 var(--f-body); letter-spacing: var(--ls-neg-1); padding-right: 40px; }
.lead__intro { font: var(--w-light) var(--fs-15)/1.55 var(--f-body); color: var(--text-soft); margin-bottom: 6px; }
.step__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-right: 48px; min-height: 24px; }
.lead__back { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; margin-left: -6px; border: 0; border-radius: var(--pill); background: none; color: var(--text-soft); font: var(--w-medium) var(--fs-12)/1 var(--f-body); letter-spacing: var(--ls-8); text-transform: uppercase; cursor: pointer; transition: background-color .2s, color .2s, transform .12s var(--ease); }
.lead__back .arrow { transform: rotate(180deg); }
.step__head .step__count { margin-left: auto; }
.step__head .step__count:first-child { margin-left: 0; }
.progress { display: grid; grid-template-columns: repeat(var(--steps, 5), 1fr); gap: 6px; margin: -4px 0 6px; }
.progress i { height: 4px; border-radius: var(--pill); background: var(--navy-a12); overflow: hidden; position: relative; }
.progress i.on::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: var(--navy); }
.step.is-active .progress i.now::after { animation: bar-fill .6s var(--ease) .1s both; transform-origin: left; }
@keyframes bar-fill { from { transform: scaleX(0); } to { transform: none; } }
.lead__q { font: var(--w-light) var(--fs-24)/1.25 var(--f-body); padding: 0 40px 6px 0; }
.field { display: grid; gap: 6px; }
.float { position: relative; flex: 1; min-width: 0; }
.float label { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); font: var(--w-regular) var(--fs-16)/1.2 var(--f-body); color: var(--text-label); pointer-events: none; transition: opacity .15s linear; }
.float input { min-height: 54px; padding-right: 44px; }
.float input:not(:placeholder-shown) + label { opacity: 0; }
.field__ok { position: absolute; right: 14px; top: 50%; display: grid; place-items: center; width: 22px; height: 22px; margin-top: -11px; border-radius: var(--pill); background: var(--navy); color: var(--text-inverse); opacity: 0; transform: scale(.6); transition: opacity .25s var(--ease), transform .35s var(--ease); }
.field__ok svg { width: 14px; height: 14px; }
.is-valid .field__ok, .float.is-valid .field__ok { opacity: 1; transform: none; }
.phone { display: flex; gap: 8px; }
.phone__cc { position: relative; flex: 0 0 90px; }
.phone__cc span { position: absolute; z-index: 1; left: 16px; top: 50%; transform: translateY(-50%); font: var(--w-regular) var(--fs-16)/1 var(--f-body); color: var(--text); pointer-events: none; }
.field input:not([type=checkbox]), .lead textarea { width: 100%; min-height: 50px; padding: 12px 16px; border: 0; border-radius: var(--r-14); background: var(--surface-card); color: var(--text); font: var(--w-regular) var(--fs-16)/1.4 var(--f-body); box-shadow: inset 0 0 0 1px var(--control-edge), 0 1px 2px var(--navy-deep-a05); transition: box-shadow .2s; }
.lead textarea { min-height: 120px; resize: vertical; }
.lead textarea::placeholder { color: var(--text-label); opacity: 1; }
/* Country code: after the generic field rule so its own left padding (room for the fixed "+") wins */
.field .phone__cc input { padding: 12px 10px 12px 32px; min-height: 54px; }
@media (hover: hover) and (pointer: fine) { .phone__cc input:hover { box-shadow: inset 0 0 0 1px var(--navy-a70); } }
.phone__cc input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--navy), 0 0 0 4px var(--navy-a10); }
@media (hover: hover) and (pointer: fine) { .float input:hover, .lead textarea:hover { box-shadow: inset 0 0 0 1px var(--navy-a70); } }
.float input:focus, .lead textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--navy), 0 0 0 4px var(--navy-a10); }
.field.is-error .float input, .field.is-error .phone__cc input { box-shadow: inset 0 0 0 1.5px var(--error), 0 0 0 4px var(--error-ring); }
.field__err { font: var(--w-medium) var(--fs-13)/1.3 var(--f-body); color: var(--error); }
.field__err:empty { display: none; }
.legal { font: var(--w-regular) var(--fs-11)/1.5 var(--f-body); color: var(--text-soft); }
.legal summary { cursor: pointer; list-style: none; width: fit-content; text-decoration: underline; text-underline-offset: 3px; border-radius: var(--r-xs); }
.legal summary::-webkit-details-marker { display: none; }
.legal b { font-weight: var(--w-medium); color: var(--text); }
.legal p { margin-top: 8px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--cream); }
/* The line that the data is safe: the caption of the send button, so it is nearer to it than a field is. */
.lead__trust { margin-top: -6px; }
.trust { font: var(--w-medium) var(--fs-13)/1.4 var(--f-body); }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font: var(--w-regular) var(--fs-14)/1.45 var(--f-body); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--navy); }
.lead__error { padding: 12px 14px; border-radius: var(--r-sm); background: var(--error-surface); color: var(--error-text); font: var(--w-medium) var(--fs-14)/1.4 var(--f-body); }
.lead__skip { justify-self: start; border: 0; background: none; padding: 10px 0; font: var(--w-regular) var(--fs-13)/1 var(--f-body); color: var(--text-soft); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; border-radius: var(--r-xs); transition: opacity .12s ease-out; }
.choices { display: grid; gap: 10px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice > span { display: flex; align-items: center; min-height: 54px; padding: 14px 18px; border-radius: var(--r-16); background: var(--surface-card); font: var(--w-regular) var(--fs-16)/1.35 var(--f-body); cursor: pointer; box-shadow: inset 0 0 0 1px var(--control-edge), 0 1px 2px var(--navy-deep-a05); transition: box-shadow .2s, background-color .2s, color .2s, transform .1s; }
.choice input:focus-visible + span { outline: 2px solid var(--navy); outline-offset: 2px; }
.choice input:checked + span { background: var(--navy); color: var(--text-inverse); box-shadow: inset 0 1px 0 var(--white-a16); }
.choice > span:active { transform: scale(.98); }
.choice small { margin-left: auto; padding-left: 16px; font-size: var(--fs-14); font-variant-numeric: tabular-nums; opacity: .62; }
.choices--img { grid-template-columns: 1fr 1fr; }
.choice--img > span { display: grid; align-content: start; gap: 2px; padding: 6px 6px 12px; }
.choice--img picture { aspect-ratio: 4 / 3; margin-bottom: 8px; overflow: hidden; border-radius: var(--r-11); }
.choice--img img { width: 100%; height: 100%; object-fit: cover; }
.choice--img b, .choice--img small { padding: 0 8px; }
.choice--img b { font: var(--w-medium) var(--fs-16)/1.2 var(--f-display); }
.choice--img small { font: var(--w-regular) var(--fs-12)/1.3 var(--f-body); opacity: .75; }
.choice--general { grid-column: 1 / -1; }
.choice--general > span { padding: 16px 14px; min-height: 54px; align-content: center; }
.choice--general b { font-family: var(--f-body); font-weight: var(--w-regular); }
.lead__demo { padding: 12px 14px; border-radius: var(--r-sm); background: var(--cream); font: var(--w-medium) var(--fs-13)/1.45 var(--f-body); }
.lead__next { display: grid; gap: 10px; margin-top: 8px; }

/* ---------- Reveal on scroll (§9.5) — only once JS has armed it ---------- */
.reveal-ready [data-reveal]:not([data-reveal='image']) { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.reveal-ready [data-reveal='image'] { opacity: 0; transition: opacity .9s var(--ease), transform .4s var(--ease); transition-delay: calc(var(--d, 0) * 90ms), 0s; }
.reveal-ready [data-reveal='image'] > picture, .reveal-ready [data-reveal='image'] > svg { transform: scale(1.06); transition: transform 1.2s var(--ease); }
.reveal-ready [data-reveal].is-in { opacity: 1; transform: none; }
.reveal-ready [data-reveal='image'].is-in > picture, .reveal-ready [data-reveal='image'].is-in > svg { transform: none; }
@media (hover: hover) and (pointer: fine) { .reveal-ready .tile.is-in:hover { transform: translateY(-3px); } }

/* =========================================================================================
   Development pages — Developments/PRODUCT_PAGE_LAYOUT.md. Motion: transform and opacity only.
   ========================================================================================= */
.arrow--back { transform: rotate(180deg); }
.ico { width: 24px; height: 24px; flex: none; }

/* ---------- S0 Header: transparent over the hero, away on the way down, frosted on the way up ---------- */
/* The paper ground is on the header element, not on `::before`: iPhone Safari colors the status bar zone from the
   `background-color` of the fixed element at the top of the screen, and it does not read a pseudo-element. */
.dhead { position: fixed; inset: 0 0 auto; z-index: 40; color: var(--text-inverse); transition: color .25s ease, background-color .25s ease; }
.dhead::before { content: ''; position: absolute; inset: 0; box-shadow: 0 1px 0 var(--navy-a07), 0 10px 30px -24px var(--navy-deep-a50); opacity: 0; transition: opacity .25s ease; pointer-events: none; }
/* The light shade of the header on the hero photo, as on the old site (owner, final changes: no blue shadows). */
.dhead::after { content: ''; position: absolute; inset: 0 0 -48px; background: linear-gradient(var(--navy-deep-a42), var(--navy-deep-a0)); transition: opacity .25s ease; pointer-events: none; }
.dhead[data-state='shown'] { color: var(--text); background-color: var(--paper-a85); }
.dhead[data-state='shown']::before { opacity: 1; -webkit-backdrop-filter: blur(12px) saturate(140%); backdrop-filter: blur(12px) saturate(140%); } /* the blur only when shown, as on the home header */
.dhead:not([data-state='top'])::after { opacity: 0; }
.dhead__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; height: var(--header-h); max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.dhead__back { justify-self: start; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px 0 15px; border-radius: var(--pill); box-shadow: inset 0 0 0 1px var(--cream-a55); font: var(--w-medium) var(--fs-12)/1 var(--f-body); letter-spacing: var(--ls-14); text-transform: uppercase; text-decoration: none; transition: background-color .25s ease, box-shadow .25s ease, transform .16s var(--ease); }
.dhead[data-state='shown'] .dhead__back { box-shadow: inset 0 0 0 1px var(--navy-a30); }
.dhead__back:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .dhead__back:hover { background: var(--cream-a14); }
  .dhead[data-state='shown'] .dhead__back:hover { background: var(--navy-a06); }
  .dhead__back:hover .arrow { transform: rotate(180deg) translateX(3px); }
}
.dhead__logo { position: relative; display: block; border-radius: var(--r-xs); }
.dhead__logo img { width: auto; height: 26px; transition: opacity .25s ease; }
.dhead__logo-n { position: absolute; inset: 0; opacity: 0; }
.dhead[data-state='shown'] .dhead__logo-c { opacity: 0; }
.dhead[data-state='shown'] .dhead__logo-n { opacity: 1; }
.dhead__end { justify-self: end; display: flex; align-items: center; gap: 20px; }
/* Phones: the back control loses its outline (same 44px target) so the centred logo has room around it */
@media (max-width: 767px) {
  .dhead__back, .dhead[data-state='shown'] .dhead__back { gap: 8px; margin-left: -8px; padding: 0 8px; box-shadow: none; font-size: var(--fs-11); letter-spacing: var(--ls-10); }
  .dhead__logo img { height: 22px; }
}
/* A phone (owner, final changes): "← Portfolio" keeps its word, as on the old site, so the arrow reads as the way
   back to the Portfolio and not as the logo's link. A thin rule stands between them. The languages are plain text,
   and the Contact pill is the small one. A finger gets 44 px on the back link and on the pill. */
@media (max-width: 767px) {
  .dhead__inner { grid-template-columns: auto 1fr auto; gap: 0; }
  .dhead__back, .dhead[data-state='shown'] .dhead__back { gap: 6px; margin-left: -8px; padding: 0 8px; font-size: var(--fs-10); letter-spacing: var(--ls-8); }
  .dhead__logo { --logo-pad: 12px; justify-self: start; margin-left: 6px; padding-left: var(--logo-pad); border-radius: 0; box-shadow: inset 1px 0 0 var(--cream-a50); }
  /* Scrolled: the same places as at the top (owner, final changes). The navy logo sits exactly on the cream one,
     after the rule, and the rule turns navy on the cream header. */
  .dhead__logo-n { inset: 0 auto auto var(--logo-pad); }
  .dhead[data-state='shown'] .dhead__logo { box-shadow: inset 1px 0 0 var(--navy-a45); }
  .dhead__logo img { height: 18px; }
  .dhead__end { gap: 10px; }
  .dhead .lang { gap: 5px; font-size: var(--fs-10); letter-spacing: var(--ls-8); } /* the same size and spacing as Portfolio and Contact */
  .dhead .lang a { padding-inline: 1px; }
  .dhead__contact { position: relative; min-height: 32px; padding: 0 11px; font-size: var(--fs-10); letter-spacing: var(--ls-8); }
  .dhead__contact::after { content: ''; position: absolute; inset: -6px 0; }
}
/* Larger phones (400 px and up) have room for a size up: the 3 words stay 1 size and 1 spacing */
@media (min-width: 400px) and (max-width: 767px) {
  .dhead__back, .dhead[data-state='shown'] .dhead__back, .dhead .lang, .dhead__contact { font-size: var(--fs-11); letter-spacing: var(--ls-10); }
}
/* 360 px and under: the row is full. The side margin, the logo and the gaps each give some px. */
@media (max-width: 374px) {
  .dhead__inner { padding: 0 14px; }
  .dhead__back, .dhead[data-state='shown'] .dhead__back { margin-left: -6px; padding: 0 6px; letter-spacing: var(--ls-4); }
  .dhead__logo { --logo-pad: 8px; margin-left: 2px; }
  .dhead__logo img { height: 15px; }
  .dhead__end { gap: 6px; }
  .dhead .lang { gap: 3px; letter-spacing: var(--ls-4); }
  .dhead__contact { padding: 0 8px; letter-spacing: var(--ls-4); }
}
/* The smallest phones (320 px): a smaller logo and a tighter word, so the logo does not touch the languages */
@media (max-width: 359px) {
  .dhead__inner { padding: 0 10px; }
  .dhead__back, .dhead[data-state='shown'] .dhead__back, .dhead .lang, .dhead__contact { letter-spacing: 0; }
  .dhead__back, .dhead[data-state='shown'] .dhead__back { gap: 4px; }
  .dhead__logo img { height: 13px; }
}
@media (min-width: 768px) and (max-width: 1023px) { .dhead__contact { min-height: 44px; } }
@media (min-width: 1024px) { .dhead__logo img { height: 34px; } }

/* ---------- S1 Hero: the photo and the name; the details panel rides up over the photo ---------- */
.dhero { position: relative; background: var(--navy); }
.dhero__stage { position: relative; height: 72vh; height: calc(100svh - var(--intro-h, 28svh) + var(--r-lg)); min-height: 440px; overflow: hidden; color: var(--text-inverse); }
.dhero__media { position: absolute; inset: 0; transform-origin: 50% 42%; }
.dhero__media picture, .dhero__media img { width: 100%; height: 100%; }
.dhero__media img { object-fit: cover; object-position: var(--focus, 50% 50%); }
.dhero__scrim { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(90% 60% at 50% 48%, var(--navy-deep-a34), var(--navy-deep-a0) 72%), linear-gradient(var(--navy-deep-a30), var(--navy-deep-a0) 34%); }
.dhero__name { position: absolute; inset: 0; display: grid; place-items: center; padding: 0 var(--gutter); text-align: center; font: var(--w-medium) clamp(2.9rem, 10.5vw, 10.5rem)/1 var(--f-display); letter-spacing: var(--ls-6); text-transform: uppercase; color: var(--text-inverse); text-shadow: 0 2px 40px var(--navy-deep-a35); }
/* The one showpiece (§S1): the name arrives once, softly, while the photo is already there. */
.dhero__name span { display: inline-block; animation: dname-in 1.1s var(--ease) .15s both; }
@keyframes dname-in { from { opacity: 0; transform: translateY(26px); } }
.dhero__cue { position: absolute; left: 50%; bottom: 26px; display: none; justify-items: center; gap: 10px; transform: translateX(-50%); font: var(--w-medium) var(--fs-11)/1 var(--f-body); letter-spacing: var(--ls-24); text-transform: uppercase; opacity: .85; }
.dhero__cue i { width: 1px; height: 36px; background: currentColor; transform-origin: top; animation: cue 2.2s var(--ease) infinite paused; }
.dhero__panel { position: relative; z-index: 2; margin-top: calc(-1 * var(--r-lg)); border-radius: var(--r-lg) var(--r-lg) 0 0; background: var(--surface); box-shadow: 0 -18px 40px -24px var(--navy-deep-a45); }
.dhero__details { display: grid; gap: 22px; padding-top: 28px; padding-bottom: 36px; }
.dhero__intro { display: grid; gap: 12px; justify-items: start; }
.dhero__tagline { max-width: 30ch; font: var(--w-light) clamp(1.25rem, 1.9vw, 1.75rem)/1.3 var(--f-body); letter-spacing: var(--ls-neg-1); text-wrap: balance; }
.dhero__cta { justify-self: start; }
@media (min-width: 1024px) {
  .dhero__stage { position: sticky; top: 0; height: 100vh; height: 100svh; }
  .dhero__media, .dhero__name { will-change: transform; }
  .dhero__cue { display: grid; }
  .dhero__panel { margin-top: 0; }
  .dhero__details { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'intro cta' 'facts facts'; align-items: end; gap: 40px 48px; padding-top: 48px; padding-bottom: 56px; }
  .dhero__intro { grid-area: intro; }
  .dhero__details > .kfacts { grid-area: facts; }
  .dhero__cta { grid-area: cta; justify-self: end; align-self: start; } /* level with the badge (owner, Modification v2) */
}

/* Key facts: big number, small unit and label, thin rules between; the price closes the row */
.kfacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 0; }
.kfacts li { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; padding-left: 18px; border-left: 1px solid var(--line); }
.kfacts li:nth-child(odd) { padding-left: 0; border-left: 0; }
.kfacts b { font: var(--w-light) var(--fs-36)/1 var(--f-body); letter-spacing: var(--ls-neg-2); font-variant-numeric: lining-nums; }
.kfacts li > span { font: var(--w-regular) var(--fs-13)/1.3 var(--f-body); color: var(--text-soft); }
.kfacts small { font-size: 1em; }
.kfacts b small { font: var(--w-regular) var(--fs-13)/1 var(--f-body); letter-spacing: 0; color: var(--text-soft); }
.kfacts__price { grid-column: 1 / -1; display: grid !important; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 10px; padding: 18px 0 0 !important; border: 0 !important; border-top: 1px solid var(--line) !important; }
.kfacts__from { font: var(--w-medium) var(--fs-11)/1 var(--f-body); letter-spacing: var(--ls-14); text-transform: uppercase; color: var(--text-soft); }
.kfacts__num { display: flex; align-items: baseline; gap: 6px; }
.kfacts__num small { font: var(--w-regular) var(--fs-20)/1 var(--f-body); }
.kfacts__price em { grid-column: 1 / -1; margin-top: 8px; font: var(--w-regular) var(--fs-12)/1.4 var(--f-body); font-style: normal; color: var(--text-soft); }
@media (min-width: 1024px) {
  .kfacts { display: flex; align-items: flex-end; }
  .kfacts li, .kfacts li:nth-child(odd) { padding: 0 clamp(20px, 2.6vw, 44px); border-left: 1px solid var(--line); }
  .kfacts li:first-child { padding-left: 0; border-left: 0; }
  .kfacts b { font-size: clamp(2.4rem, 3.4vw, 3.4rem); }
  .kfacts__price { margin-left: auto; padding: 0 0 0 clamp(20px, 2.6vw, 44px) !important; border-top: 0 !important; border-left: 1px solid var(--line) !important; grid-template-columns: auto; }
  .kfacts__from { margin-bottom: 8px; }
  .kfacts__price em { margin-top: 10px; }
}
/* A figure that is a lower bound ("desde", several options) carries it above, as the price does: a grid, so the
   cell is as wide as its widest line */
.kfacts li.kfacts__low { display: grid; grid-template-columns: auto auto; align-items: baseline; column-gap: 8px; }
.kfacts__low .kfacts__from { grid-column: 1 / -1; margin-bottom: 6px; }
.kfacts--compact { justify-content: center; text-align: left; }
.kfacts--compact b { font-size: clamp(1.75rem, 2.4vw, 2.3rem); }
/* The price as one more fact, "desde 740.000 € + IVA", on the same baseline and at the same size (owner, v3) */
.kfacts--compact .kfacts__price { display: flex !important; flex-wrap: wrap; justify-content: center; align-items: baseline; column-gap: 8px; }
@media (min-width: 1024px) { .kfacts--compact .kfacts__price { margin-left: 0; } }

/* ---------- S2 Showcase: text held beside its photos (desktop); 4:5 carousels below 1024px ----------
   Everything sits inside the page's margins, so every photo keeps its four rounded corners (owner, Modification v1). */
.show { display: grid; gap: calc(var(--section) * 1.1); padding: var(--section) 0; }
.topic { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.topic__sticky { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; justify-items: start; max-width: 34rem; }
.topic__sticky .h-title { max-width: 100%; overflow-wrap: break-word; } /* larger text: a word wider than the column breaks */
.tag { display: inline-flex; align-items: center; min-height: 26px; padding: 0 12px; border-radius: var(--pill); box-shadow: inset 0 0 0 1px var(--navy-a30); font: var(--w-medium) var(--fs-11)/1 var(--f-body); letter-spacing: var(--ls-16); text-transform: uppercase; color: var(--text-soft); }
.topic__body { max-width: 46ch; font: var(--w-light) var(--fs-16)/1.7 var(--f-body); color: var(--text-soft); }
.scar { position: relative; display: grid; }
.scar__track { grid-area: 1 / 1; display: flex; gap: 12px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.scar__track::-webkit-scrollbar { display: none; }
.scar__slide { flex: 0 0 100%; margin: 0; aspect-ratio: 4 / 5; max-height: 82vh; max-height: 82svh; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; border-radius: var(--r-lg); isolation: isolate; }
.scar__open { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: var(--cream); cursor: zoom-in; }
.scar__open picture, .scar__open img { width: 100%; height: 100%; }
.scar__open img { object-fit: cover; object-position: var(--focus, 50% 50%); }
.scar__count { grid-area: 1 / 1; align-self: start; justify-self: end; z-index: 2; margin: 14px; padding: 7px 11px; border-radius: var(--pill); background: var(--navy-deep-a82); color: var(--text-inverse); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font: var(--w-medium) var(--fs-12)/1 var(--f-body); letter-spacing: var(--ls-6); font-variant-numeric: tabular-nums; pointer-events: none; }
.scar__btn { grid-area: 1 / 1; align-self: center; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; margin: 0 12px; padding: 0; border: 0; border-radius: var(--r-round); background: var(--navy-deep-a40); color: var(--text-inverse); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); cursor: pointer; transition: opacity .2s ease, transform .16s var(--ease), visibility 0s; }
.scar__btn svg { width: 16px; height: 16px; }
.scar__btn--prev { justify-self: start; } .scar__btn--prev svg { transform: rotate(180deg); }
.scar__btn--next { justify-self: end; }
.scar__btn:active { transform: scale(.92); }
.scar__btn.is-off { opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility 0s .2s; }
.scar__dots { display: flex; justify-content: center; gap: 6px; padding-top: 14px; }
.scar__dots i { width: 6px; height: 6px; border-radius: var(--r-round); background: var(--navy); opacity: .2; transition: opacity .2s ease, transform .2s ease; }
.scar__dots i.is-on { opacity: .85; transform: scale(1.2); }
/* Phones and tablets: the whole carousel reveals as one (its slides sit side by side, off screen). */
@media (max-width: 1023px) {
  .reveal-ready .scar__slide[data-reveal] { opacity: 1; }
  .scar__slide picture { transform: none !important; }
}
/* Desktop: the photos at 16:9 (whole, never cropped), smaller rather than enlarged past their sharpness. The text
   column runs the full height of its photos, so the text holds its place while they pass and leaves with the last. */
@media (min-width: 1024px) {
  .topic { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); column-gap: clamp(48px, 6vw, 112px); }
  .topic--left { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
  .topic--left .topic__media { order: -1; }
  .topic__sticky { position: sticky; top: max(112px, 20vh); padding-top: clamp(8px, 1.6vw, 28px); }
  /* One photo: nothing passes the text, so it stays still (owner, Modification v2), level with the top of its photo
     like every other topic's text (v3) */
  .topic--single .topic__sticky { position: static; }
  /* Text right of its photos: the block ends on the right margin, as the left one starts on the left margin. Its
     width is the text's (the headline adds none: contain), so the lines finish where the photos above do. */
  .topic--left .topic__sticky { width: fit-content; margin-left: auto; }
  .topic--left .topic__sticky .h-title { contain: inline-size; justify-self: stretch; }
  .scar { display: block; }
  .scar__track { display: grid; gap: 24px; overflow: visible; scroll-snap-type: none; }
  .scar__slide { aspect-ratio: 16 / 9; max-height: none; }
  .scar__count, .scar__btn, .scar__dots { display: none; }
  .reveal-ready .topic__media[data-reveal] { opacity: 1; transform: none; }
  .reveal-ready .scar__slide[data-reveal] picture { transform: scale(1.06); transition: transform 1.2s var(--ease); }
  .reveal-ready .scar__slide[data-reveal].is-in picture { transform: none; }
}
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  .scar__open img { transition: transform .6s var(--ease); }
  .scar__open:hover img { transform: scale(1.03); }
}

/* ---------- S3 Extras: icon and label, nothing else ---------- */
.extras__grid { display: grid; gap: 36px; }
.extras__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
.extras__list li { display: flex; align-items: center; gap: 14px; font: var(--w-regular) var(--fs-15)/1.3 var(--f-body); }
.extras__ico { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r-round); background: var(--surface); color: var(--text); box-shadow: var(--edge-ink), 0 6px 16px -12px var(--navy-deep-a40); }
/* What can be added at extra cost: past a rule, under its own small heading, the icons in outline only */
.extras__opt { margin-top: 36px; padding-top: 30px; border-top: 1px solid var(--line); }
.extras__opt-h { margin-bottom: 22px; font: var(--w-medium) var(--fs-11)/1.5 var(--f-body); letter-spacing: var(--ls-16); text-transform: uppercase; color: var(--text-soft); }
.extras__list--opt li { color: var(--text-soft); }
.extras__list--opt .extras__ico { background: none; color: var(--navy-a70); box-shadow: inset 0 0 0 1px var(--navy-a22); }
@media (min-width: 768px) { .extras__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  /* The title column is at least as wide as "Equipamiento" plus air before the icons */
  .extras__grid { grid-template-columns: minmax(max-content, 24%) 1fr; gap: 0; }
  .extras__grid > .h-title { padding-right: 48px; }
  .extras__list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px 24px; }
}

/* ---------- S4 Distribución: one floor at a time; the plan slides the way you step ---------- */
.plans__grid { display: grid; gap: 28px; }
.plans__side { display: grid; gap: 26px; align-content: start; }
.floors { display: flex; align-items: center; gap: 8px; }
/* Equal columns, each at least as wide as its label (minmax(0, 1fr) let a squeezed row overlap the labels) */
.floors__tabs { position: relative; flex: none; display: grid; grid-template-columns: repeat(var(--n), 1fr); padding: 4px; border-radius: var(--pill); background: var(--navy-a06); }
.floors__pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / var(--n)); border-radius: var(--pill); background: var(--navy); box-shadow: inset 0 1px 0 var(--white-a16), 0 6px 14px -8px var(--navy-deep-a60); transition: transform .4s var(--ease); }
.floors__tab { position: relative; z-index: 1; min-height: 40px; padding: 0 18px; border: 0; border-radius: var(--pill); background: none; color: var(--text-soft); font: var(--w-medium) var(--fs-12)/1 var(--f-body); letter-spacing: var(--ls-12); text-transform: uppercase; white-space: nowrap; cursor: pointer; transition: color .3s ease, opacity .12s ease-out; }
.floors__tab[aria-selected='true'] { color: var(--text-inverse); }
.plans__lists { display: grid; }
.plans__items { grid-area: 1 / 1; display: grid; align-content: start; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .18s ease-out, transform .3s var(--ease), visibility 0s .3s; }
.plans__items.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .3s ease-out .08s, transform .45s var(--ease) .08s, visibility 0s; }
.plans__items li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font: var(--w-light) var(--fs-17)/1.35 var(--f-body); }
.plans__items b { font-weight: var(--w-regular); font-variant-numeric: tabular-nums; }
.plans__items li.plans__for { display: block; padding: 0 0 14px; font: var(--w-medium) var(--fs-11)/1.5 var(--f-body); letter-spacing: var(--ls-14); text-transform: uppercase; color: var(--text-soft); }
.plans__note { max-width: 46ch; font: var(--w-regular) var(--fs-13)/1.6 var(--f-body); color: var(--text-soft); }
.plans__note .link { color: var(--text); font-weight: var(--w-medium); background-size: 100% 1px; }
/* The plan sits straight on the band, which is white like the drawings themselves: no card around it */
.plans { background: var(--surface-card); }
.plans__stage { display: grid; overflow: hidden; }
.plans__plan { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transform: translateX(calc(var(--dir, 1) * 32px)); transition: opacity .2s ease-out, transform .45s var(--ease), visibility 0s .45s; }
.plans__plan.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .35s ease-out .06s, transform .5s var(--ease), visibility 0s; }
.plans__open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.plans__open img { width: 100%; height: auto; }
.plans__open { position: relative; }
.plans__zoom { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 28px; height: 28px; color: var(--text-soft); transition: color .2s ease, transform .25s var(--ease); }
.plans__zoom svg { width: 16px; height: 16px; }
@media (hover: hover) and (pointer: fine) { .plans__open:hover .plans__zoom { color: var(--text); transform: scale(1.08); } }
/* Below 1024px the plan sits right under the floor switch, so changing floor shows the change in view */
@media (max-width: 1023px) {
  .plans__side { display: contents; }
  .plans__side > .h-title { order: 1; }
  .floors { order: 2; }
  .plans__stage { order: 3; }
  .plans__lists { order: 4; }
  .plans__note { order: 5; }
  /* Equal shares of the row; a long floor name breaks onto two lines inside its tab instead of widening the page */
  .floors__tabs { flex: 1; min-width: 0; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
  .floors__tab { padding: 4px 8px; font-size: var(--fs-11); letter-spacing: var(--ls-6); white-space: normal; line-height: 1.15; text-wrap: balance; }
}
/* Desktop: the side column never gets narrower than the floor switch needs; on a narrow one the switch tightens */
@media (min-width: 1024px) {
  .plans__grid { grid-template-columns: minmax(440px, 1fr) minmax(0, 1.55fr); gap: clamp(48px, 5vw, 96px); align-items: center; }
  .plans__side { container-type: inline-size; }
}
/* Four floors or more (Miramar Living): tighter tabs, and on desktop a wider text column so they fit on one row;
   on phones a long name breaks onto two lines inside its tab */
.plans--many .floors__tab { padding: 0 10px; font-size: var(--fs-11); letter-spacing: var(--ls-6); }
@media (max-width: 1023px) { .plans--many .floors__tab { padding: 0 4px; white-space: normal; line-height: 1.15; text-wrap: balance; } }
@media (min-width: 1024px) { .plans--many .plans__grid { grid-template-columns: minmax(460px, 1fr) minmax(0, 1.4fr); } }
@container (max-width: 440px) {
    .floors__tab { padding: 0 12px; font-size: var(--fs-11); letter-spacing: var(--ls-6); }
}

/* ---------- S5 Opciones y disponibilidad: the homes for sale on the site plan ----------
   A white band like the plans above it, the two parted by a rule (Ubicación keeps the paper colour below). */
.opts { background: var(--surface-card); padding-top: 0; }
.opts__grid { position: relative; display: grid; gap: 28px; padding-top: var(--section); }
.opts__grid::before { content: ''; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--line); }
.opts__side { display: grid; gap: 22px; justify-items: start; align-content: start; }
.opts__filter { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.opts__filter-l { font: var(--w-medium) var(--fs-11)/1 var(--f-body); letter-spacing: var(--ls-16); text-transform: uppercase; color: var(--text-soft); }
.floors__tab[aria-checked='true'] { color: var(--text-inverse); }
.opts__line { font: var(--w-light) var(--fs-17)/1.5 var(--f-body); color: var(--text-soft); font-variant-numeric: tabular-nums; text-wrap: balance; }
.chip { display: inline-flex; align-items: center; min-height: 26px; padding: 0 12px; border-radius: var(--pill); font: var(--w-medium) var(--fs-10)/1 var(--f-body); letter-spacing: var(--ls-14); text-transform: uppercase; white-space: nowrap; }
.chip--venta { background: var(--navy); color: var(--text-inverse); }
.chip--reservada { box-shadow: inset 0 0 0 1px var(--navy); color: var(--text); }
.chip--vendida { box-shadow: inset 0 0 0 1px var(--navy-a30); color: var(--text-soft); }
.opts__plot-cta { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; padding: 0; border: 0; background: none; font: var(--w-medium) var(--fs-12)/1 var(--f-body); letter-spacing: var(--ls-14); text-transform: uppercase; color: var(--text); cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .opts__plot-cta:hover .arrow { transform: translateX(4px); } }
.opts__cta { display: grid; justify-items: start; gap: 20px; margin-top: 18px; }
.opts__ask { font: var(--w-light) clamp(1.3rem, 1.8vw, 1.75rem)/1.25 var(--f-body); letter-spacing: var(--ls-neg-1); text-wrap: balance; }

/* The plan: a numbered pin on every plot; the plot under the pointer, and the one open, are tinted */
.smap__plan { position: relative; border-radius: var(--r-md); overflow: hidden; background: var(--surface-card); box-shadow: var(--edge-ink); }
.smap__plan picture, .smap__plan img { display: block; width: 100%; height: auto; }
.smap__shapes { position: absolute; inset: 0; width: 100%; height: 100%; }
/* The plots answer the pointer: the one under it tints and its number grows a touch, so it reads as something to
   press (owner, 2026-11-03: a tester missed it on PC) */
.smap__plan { cursor: pointer; }
.smap__plot { fill: var(--navy-a0); stroke: none; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: fill .2s ease; }
.smap__plot.is-on { fill: var(--navy-a14); stroke: var(--navy); stroke-width: 6; }
.smap__plot.is-sold { fill: var(--navy-a06); }
@media (hover: hover) and (pointer: fine) { .smap__plot:not(.is-on):hover, .smap__plot.is-hover:not(.is-on) { fill: var(--navy-a09); } }
/* Solid numbers, light when open — inverted, as they read better over the drawing (owner, 2026-11-03). `scale` is
   the hover and the first arrival, `transform` the press, so the two never fight. */
.smap__pin { position: absolute; z-index: 1; display: grid; place-items: center; width: 30px; height: 30px; margin: -15px 0 0 -15px; padding: 0; border: 0; border-radius: var(--r-round); background: var(--navy); color: var(--text-inverse); box-shadow: 0 0 0 2px var(--white-a92), 0 5px 12px -4px var(--navy-deep-a55); font: var(--w-semi) var(--fs-13)/1 var(--f-body); font-variant-numeric: tabular-nums; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .16s var(--ease), scale .25s var(--ease); }
.smap__pin::before { content: ''; position: absolute; inset: -8px; border-radius: var(--r-round); } /* a 46px target */
.smap__pin:active { transform: scale(.92); }
.smap__pin[aria-pressed='true'] { background: var(--white); color: var(--text); box-shadow: inset 0 0 0 2px var(--navy), 0 0 0 4px var(--navy-a16), 0 6px 14px -4px var(--navy-deep-a50); }
.smap__pin.is-sold { background: var(--white); color: var(--text-label); box-shadow: inset 0 0 0 1.5px var(--control-edge); }
@media (hover: hover) and (pointer: fine) { .smap__pin:hover, .smap__pin.is-hover { scale: 1.12; } }
@media (min-width: 1024px) { .smap__pin { width: 36px; height: 36px; margin: -18px 0 0 -18px; font-size: var(--fs-15); } }
/* First time the plan comes into view, the numbers arrive one after another — once, a hint that they can be pressed */
.reveal-ready .smap[data-reveal] .smap__pin { opacity: 0; scale: .6; transition: opacity .3s ease-out calc(var(--i, 0) * 60ms + .35s), scale .45s cubic-bezier(.34, 1.4, .64, 1) calc(var(--i, 0) * 60ms + .35s), background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .16s var(--ease); }
.reveal-ready .smap[data-reveal].is-in .smap__pin { opacity: 1; scale: 1; }
@media (hover: hover) and (pointer: fine) { .reveal-ready .smap[data-reveal].is-in .smap__pin:hover, .reveal-ready .smap[data-reveal].is-in .smap__pin.is-hover { scale: 1.12; transition-delay: 0s; } }
@media (prefers-reduced-motion: reduce) { .reveal-ready .smap[data-reveal] .smap__pin { opacity: 1; scale: 1; } }
/* The hint under the plan, where the eye is, with a pointer */
/* A building's floors: the floor on show stays in full light and the rest dims around it, as in the owner's cuts
   (RL37 v2); no outline. Under the pointer, before one is chosen, a lighter dim previews it. */
.smap__veil { fill: var(--navy-shade-a55); fill-rule: evenodd; pointer-events: none; opacity: 0; transition: opacity .25s ease; }
.smap__veil.is-on { opacity: 1; }
.smap--floors .smap__plot, .smap--floors .smap__plot.is-on, .smap--floors .smap__plot.is-sold { fill: var(--white-a0); stroke: none; }
@media (hover: hover) and (pointer: fine) {
  .smap__shapes:not(:has(.smap__veil.is-on)) .smap__veil.is-hover { opacity: .5; }
  .smap--floors .smap__plot:not(.is-on):hover, .smap--floors .smap__plot.is-hover:not(.is-on) { fill: var(--white-a16); }
}
.smap__hint { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 14px; font: var(--w-medium) var(--fs-12)/1.4 var(--f-body); letter-spacing: var(--ls-10); text-transform: uppercase; color: var(--text); }
.smap__hint svg { flex: none; width: 18px; height: 18px; color: var(--text); }

/* The card area opens and closes on the same calm ease as the Trayectoria rows, moving the CTA below it; the card
   on show fades and scales in from its plot, and a quick click on another plot simply retargets */
.smap__slot { display: grid; grid-template-rows: 0fr; justify-self: stretch; transition: grid-template-rows .5s cubic-bezier(.65, 0, .35, 1); }
.smap__slot.has-card { grid-template-rows: 1fr; }
.smap__clip { min-height: 0; overflow: hidden; margin: 0 -8px; }
.smap__cards { display: grid; padding: 12px 8px 26px; }
.smap__card { grid-area: 1 / 1; align-self: start; position: relative; display: grid; gap: 8px; justify-items: center; padding: 18px 44px 10px; border-radius: var(--r-md); background: var(--surface-card); box-shadow: var(--edge-ink), 0 14px 30px -18px var(--navy-deep-a45); text-align: center; transform-origin: var(--x) -10px; visibility: hidden; opacity: 0; transform: scale(.96); transition: opacity .18s ease-out, transform .24s cubic-bezier(.23, 1, .32, 1), visibility 0s .24s; }
.smap__card.is-on { visibility: visible; opacity: 1; transform: none; transition: opacity .18s ease-out .06s, transform .24s cubic-bezier(.23, 1, .32, 1) .06s, visibility 0s; }
.smap__card::before { content: ''; position: absolute; top: -6px; left: clamp(18px, var(--x), calc(100% - 18px)); width: 12px; height: 12px; margin-left: -6px; background: var(--surface-card); box-shadow: -1px -1px 0 var(--navy-a08); transform: rotate(45deg); }
.smap__card-head { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 12px; }
.smap__card-head b { font: var(--w-regular) var(--fs-18)/1.3 var(--f-body); }
.smap__card-facts { font: var(--w-light) var(--fs-15)/1.4 var(--f-body); color: var(--text-soft); }
.smap__card-facts:empty { display: none; }
.smap__card-price { font: var(--w-light) var(--fs-24)/1.2 var(--f-body); font-variant-numeric: tabular-nums; }
.smap__card-price span { font: var(--w-medium) var(--fs-10)/1 var(--f-body); letter-spacing: var(--ls-14); text-transform: uppercase; color: var(--text-soft); vertical-align: middle; }
.smap__card-note { font: var(--w-regular) var(--fs-13)/1.45 var(--f-body); color: var(--text-soft); text-wrap: balance; }
.smap__card-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 26px; }
.smap__close { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: var(--r-round); background: none; color: var(--text-soft); font: var(--w-light) var(--fs-22)/1 var(--f-body); cursor: pointer; transition: background-color .2s ease, transform .16s var(--ease); }
.smap__close:active { transform: scale(.92); }
@media (hover: hover) and (pointer: fine) { .smap__close:hover { background: var(--navy-a06); color: var(--text); } }
@media (prefers-reduced-motion: reduce) { .smap__card, .smap__card.is-on { transform: none; } }
/* A façade instead of a site plan (RL37): portrait, so it keeps to the screen's height and stays whole */
.smap--tall .smap__plan { width: min(100%, calc(68svh * var(--ar))); margin-inline: auto; }
/* No site plan: every home's card at once */
.opts__homes { display: grid; gap: 16px; align-content: start; }
.smap__card--open { grid-area: auto; align-self: stretch; align-content: start; gap: 10px; padding: 24px 24px 12px; }
.smap__card--open::before { display: none; }
@media (min-width: 640px) { .opts__homes { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } }
/* Phones: the cards compact, so four homes and the CTA stay within about a screen and a half (owner, MM v1) */
@media (max-width: 639px) {
  .opts__homes { gap: 10px; }
  .smap__card--open { gap: 4px; padding: 16px 18px 14px; }
  .smap__card--open .smap__card-price { font-size: var(--fs-22); }
  .smap__card--open .smap__card-facts:empty { display: none; }
}

/* Phones and tablets: centred, the plan as wide as the screen allows, under the line */
@media (max-width: 1023px) {
  .opts__side { display: contents; }
  .opts__side > .h-title { order: 1; justify-self: center; text-align: center; }
  .opts__filter { order: 2; flex-direction: column; justify-self: stretch; gap: 10px; }
  .opts__line { order: 3; justify-self: center; text-align: center; font-size: var(--fs-15); }
  .smap, .opts__homes { order: 4; }
  /* Phones: one quiet sentence, and slimmer numbers on the small plan (the pressable area stays 46px) */
  .smap__hint { font-size: var(--fs-13); font-weight: var(--w-regular); letter-spacing: var(--ls-2); text-transform: none; }
  .smap__pin { width: 26px; height: 26px; margin: -13px 0 0 -13px; font-size: var(--fs-12); }
  .smap__pin::before { inset: -10px; }
  .smap__slot { order: 6; }
  .opts__cta { order: 7; justify-self: stretch; justify-items: center; text-align: center; margin-top: 20px; }
  .smap { margin: 0 calc(-1 * var(--gutter) + 12px); }
}
/* Desktop: as the plans above — the text column left, the plan right; the card opens in the text column, so its
   caret is not needed */
@media (min-width: 1024px) {
  /* Columns in proportion to the page, not to the screen, so a large monitor keeps the text column as roomy as a
     laptop does (owner, 2026-11-03); the same split as the plans above, so the two line up */
  .opts__grid { grid-template-columns: minmax(440px, 1fr) minmax(0, 1.55fr); gap: clamp(48px, 5vw, 96px); align-items: start; }
  .smap__card { justify-items: start; padding: 22px 48px 12px 24px; text-align: left; transform-origin: 0 0; }
  .smap__card::before { display: none; }
  .smap__card-head, .smap__card-acts { justify-content: flex-start; }
  .opts__homes { grid-template-columns: 1fr 1fr; }
  /* Cards instead of a plan need less width than a plan, so the heading keeps to one line */
  .opts__grid--homes { grid-template-columns: minmax(440px, 1fr) minmax(0, 1.2fr); }
  /* A façade: as tall as the screen allows (to 620px wide), the text column takes the rest. On a narrow desktop
     the façade is no wider than the room beside a text column of 440px, so the page gets no horizontal scroll.
     100vw counts a scroll bar that takes room: the text column gives up to 20px for it. */
  .opts__grid--tall { grid-template-columns: minmax(420px, 1fr) auto; }
  .smap--tall { width: clamp(380px, min((100svh - 150px) * var(--ar), 100vw - 2 * var(--gutter) - 440px - clamp(48px, 5vw, 96px)), 620px); }
  .smap--tall .smap__plan { width: 100%; }
  .opts__grid--tall .smap__slot { max-width: 520px; }
  /* A building's floors: the list beside the façade does the card's work, and the text column sits level with the
     middle of the façade (owner, RL37 v2) */
  .opts__grid--floors { align-items: center; }
  .opts__grid--floors .smap__slot { display: none; }
  .flist { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto; column-gap: 22px; justify-self: stretch; max-width: 720px; margin: 4px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
  .flist__row { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; padding: 0 14px; border-bottom: 1px solid var(--line); transition: background-color .2s ease; }
  .flist__row.is-on { background: var(--navy-a045); }
  .flist__pick { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center; min-height: 68px; padding: 14px 0; border: 0; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .flist__pick:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; border-radius: var(--r-4); }
  .flist__n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--r-round); background: var(--navy); color: var(--text-inverse); font: var(--w-semi) var(--fs-14)/1 var(--f-body); font-variant-numeric: tabular-nums; box-shadow: 0 0 0 2px var(--white); transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .16s var(--ease); }
  .flist__pick:active .flist__n { transform: scale(.92); }
  .flist__row.is-on .flist__n { background: var(--white); color: var(--text); box-shadow: inset 0 0 0 2px var(--navy), 0 0 0 4px var(--navy-a12); }
  .flist__row.is-sold .flist__n { background: var(--white); color: var(--text-label); box-shadow: inset 0 0 0 1.5px var(--control-edge); }
  .flist__name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font: var(--w-regular) 1.1875rem/1.3 var(--f-body); }
  .flist__area { justify-self: end; font: var(--w-light) var(--fs-16)/1 var(--f-body); color: var(--text-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
  .flist__price { justify-self: end; font: var(--w-light) var(--fs-20)/1 var(--f-body); font-variant-numeric: tabular-nums; white-space: nowrap; }
  .flist__more { grid-column: 2 / -1; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s cubic-bezier(.23, 1, .32, 1); }
  .flist__row.is-on .flist__more { grid-template-rows: 1fr; }
  .flist__clip { min-height: 0; overflow: hidden; }
  .flist__in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 24px; padding: 0 0 14px; opacity: 0; transition: opacity .15s ease-out; }
  .flist__row.is-on .flist__in { opacity: 1; transition: opacity .22s ease-out .08s; }
  .flist__in p { font: var(--w-light) var(--fs-15)/1.4 var(--f-body); color: var(--text-soft); }
  @media (hover: hover) and (pointer: fine) {
    .flist__row.is-hover:not(.is-on) { background: var(--navy-a025); }
    .flist__row.is-hover .flist__n { scale: 1.08; }
    .flist__n { transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .16s var(--ease), scale .2s var(--ease); }
  }
  @media (prefers-reduced-motion: reduce) { .flist__more { transition: none; } }
}
.flist { display: none; }
@media (min-width: 1024px) { .opts__side .flist { display: grid; } }

/* ---------- S7 Ubicación: grey map drawn from real data, cream pin with a navy rim ----------
   The head breathes: the title, then the text in long lines, then the three distances apart (owner, Modification v1). */
.locb__head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; margin-bottom: 40px; }
.locb__text { max-width: 96ch; font: var(--w-light) var(--fs-16)/1.7 var(--f-body); color: var(--text-soft); text-wrap: pretty; }
.poi { display: flex; flex-wrap: wrap; gap: 18px 0; margin-top: 10px; }
/* Each distance centred in its cell, between the rules: the figure and its unit on one line, the place below.
   A cell is as wide as its widest line and has the same air either side of every rule, so the first one starts on
   the text's line (owner, Modification v3). A grid, not a wrapping flex row: that sized each cell to the sum of
   its parts, which pushed the first one in and broke the row in two on phones. */
.poi li { display: grid; grid-template-columns: auto auto; justify-content: center; align-items: baseline; column-gap: 6px; min-width: 0; padding: 0 clamp(18px, 3vw, 48px); border-left: 1px solid var(--line); text-align: center; }
.poi li:first-child { padding-left: 0; border-left: 0; }
.poi li:last-child { padding-right: 0; }
.poi b { justify-self: end; font: var(--w-light) 2.1rem/1 var(--f-body); letter-spacing: var(--ls-neg-2); }
.poi small { justify-self: start; font: var(--w-regular) var(--fs-14)/1 var(--f-body); }
.poi span { grid-column: 1 / -1; margin-top: 8px; font: var(--w-medium) var(--fs-11)/1.3 var(--f-body); letter-spacing: var(--ls-14); text-transform: uppercase; color: var(--text-soft); }
/* Phones: one row. A long place name wraps inside its cell, and the cells give way before the row can push the page wide */
@media (max-width: 767px) { .poi { flex-wrap: nowrap; max-width: 100%; } .poi li { flex: 0 1 auto; } .poi span { overflow-wrap: anywhere; } .poi b { font-size: var(--fs-30); } }
@media (max-width: 359px) { .poi li { padding: 0 10px; } .poi b { font-size: 1.625rem; } }
@media (min-width: 1024px) {
  .locb__head { grid-template-columns: minmax(220px, 24%) minmax(0, 1fr); grid-template-areas: 'title text' '. poi'; column-gap: 0; row-gap: 44px; align-items: start; margin-bottom: 56px; }
  .locb__head > .h-title { grid-area: title; }
  .locb__text { grid-area: text; padding-top: .5rem; }
  .poi { grid-area: poi; margin-top: 0; }
}
.locb__map { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--gray-1); box-shadow: var(--edge-ink); }
.lmap { display: block; width: 100%; height: auto; }
.lmap--wide, .mapx--wide { display: none; }
.lmap--wide { aspect-ratio: 21 / 9; }
.lmap--tall { aspect-ratio: 4 / 5; }
@media (min-width: 768px) { .lmap--wide, .mapx--wide { display: block; } .lmap--tall, .mapx--tall { display: none; } }
.lmap__land { fill: var(--gray-1); }
.lmap__sea { fill: var(--gray-4); }
.lmap__shore { fill: none; stroke: var(--gray-8); stroke-width: 1; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.lmap__golf { fill: var(--gray-3); }
.lmap__golf-label { font: var(--w-medium) 7px/1 var(--f-body); letter-spacing: var(--ls-8); fill: var(--text-label); }
.lmap__river { fill: none; stroke: var(--gray-6); stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.lmap__road { fill: none; stroke: var(--white); stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.lmap__road--casing { stroke: var(--gray-5); stroke-width: 4.6; }
.lmap__road--n { stroke-width: 1.6; }
.lmap__shield rect { fill: var(--white); stroke: var(--gray-9); stroke-width: 1; vector-effect: non-scaling-stroke; }
.lmap__shield text { font: var(--w-semi) 6.2px/1 var(--f-body); letter-spacing: var(--ls-4); fill: var(--text-label); }
.lmap--tall .lmap__shield text { font-size: 9.3px; }
/* The phone map shows a wider area (v3): its labels are drawn larger by the same 1.16 (build.mjs locMap) */
.lmap--tall .lmap__town text { font-size: 10.4px; }
.lmap--tall .lmap__km, .lmap--tall .lmap__sea-label { font-size: 8.7px; }
.lmap__ring { fill: none; stroke: var(--gray-10); stroke-width: 1; stroke-dasharray: 3 6; vector-effect: non-scaling-stroke; }
.lmap__km { font: var(--w-medium) var(--fs-7-5px)/1 var(--f-body); letter-spacing: var(--ls-10); fill: var(--text-label); }
.lmap__town circle { fill: var(--gray-edge); }
.lmap__town text { font: var(--w-medium) 9px/1 var(--f-body); letter-spacing: var(--ls-6); fill: var(--text-label); paint-order: stroke; stroke: var(--gray-1); stroke-width: 3px; stroke-linejoin: round; }
.lmap__town--poi circle { fill: none; stroke: var(--gray-edge); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.lmap__town--poi text { font-style: italic; letter-spacing: var(--ls-4); }
.lmap__sea-label { font: var(--w-medium) var(--fs-7-5px)/1 var(--f-body); letter-spacing: .34em; text-transform: uppercase; fill: var(--text-label); }
.lmap__drop { fill: var(--sand); stroke: var(--navy); stroke-width: 2; vector-effect: non-scaling-stroke; }
.lmap__home { fill: var(--navy); }
.lmap__shadow { fill: var(--navy-deep-a22); }
.lmap__label rect { fill: var(--white); stroke: var(--navy-a14); vector-effect: non-scaling-stroke; }
.lmap__label text { font: var(--w-semi) 9.5px/1 var(--f-display); letter-spacing: var(--ls-5); fill: var(--navy); }
.lmap__credit { position: absolute; right: 12px; bottom: 8px; font: var(--w-regular) var(--fs-9)/1 var(--f-body); letter-spacing: var(--ls-2); color: var(--text-label); pointer-events: none; }
/* The button stays small, so it leaves the map in view; phones get the short label */
.locb__cta-s { display: none; }
@media (max-width: 767px) { .locb__cta-l { display: none; } .locb__cta-s { display: inline; } }
.locb .locb__cta { position: absolute; left: 50%; bottom: 14px; min-height: 36px; padding: 0 14px 0 16px; gap: 10px; white-space: nowrap; font-size: var(--fs-10); letter-spacing: var(--ls-10); transform: translateX(-50%); }
.locb .locb__cta:active { transform: translateX(-50%) scale(.97); }
@media (min-width: 768px) {
  .locb .locb__cta, .locb .locb__cta:active { left: 18px; bottom: 18px; }
  .locb .locb__cta { transform: none; }
  @media (hover: hover) and (pointer: fine) { .locb .locb__cta:hover { left: 18px; bottom: 18px; transform: translateY(-1px); } }
  .locb .locb__cta:active { transform: scale(.97); } /* after the hover rule: a press with the mouse wins */
}

/* Map context, on every location map: a small Spain with a square on the area shown, and the way to the cities */
.mapx { position: absolute; inset: 0; pointer-events: none; }
.mapx__inset { position: absolute; top: 18px; display: block; border-radius: var(--r-10); background: var(--white-a66); box-shadow: inset 0 0 0 1px var(--navy-a07); }
.mapx__inset--tl { left: 18px; } .mapx__inset--tr { right: 18px; }
.mapx__inset--br { top: auto; right: 18px; bottom: calc(18px + var(--lift, 0px)); }
.mapx--tall .mapx__inset { top: 12px; border-radius: var(--r-xs); } .mapx--tall .mapx__inset--tl { left: 12px; } .mapx--tall .mapx__inset--tr { right: 12px; }
.mapx--tall .mapx__inset--br { top: auto; right: 12px; bottom: calc(12px + var(--lift, 0px)); }
.mapx__inset svg { display: block; width: 100%; height: auto; overflow: visible; }
.mapx__spain { fill: var(--gray-7); }
.mapx__area { fill: var(--navy-a16); stroke: var(--navy); stroke-width: 1.3; vector-effect: non-scaling-stroke; }
.mapx__dir { position: absolute; display: inline-flex; align-items: center; gap: 6px; font: var(--w-medium) var(--fs-11)/1 var(--f-body); letter-spacing: var(--ls-14); text-transform: uppercase; color: var(--text-label); white-space: nowrap; }
.mapx--tall .mapx__dir { gap: 5px; font-size: var(--fs-10); letter-spacing: var(--ls-10); }
.mapx__dir svg { flex: none; width: 13px; height: 13px; }
.mapx__dir--r { transform: translate(-100%, -50%); }
.mapx__dir--l { transform: translateY(-50%); }
.mapx__dir--b { transform: translate(-50%, -100%); }
.mapx__dir--t { transform: translateX(-50%); }

/* The interactive map: a layer over the page, loaded on request. Phones: a square, not a tall strip. The map
   is greyed all but its red pin: a see-through layer over it filters what lies behind (#keep-red, in the markup).
   Safari (every iPhone browser) claims support for that but does not draw it, so there — and wherever it is not
   supported — the map itself is greyed, pin included (tested 2026-10-28; a Maps API key would lift this). */
.mapov { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 72px 16px 24px; touch-action: manipulation; }
.mapov__backdrop { position: absolute; inset: 0; background: var(--navy-deep-a82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); opacity: 0; transition: opacity .25s linear; }
.mapov__frame { position: relative; width: min(1400px, 100%); height: min(880px, calc(100vh - 96px)); height: min(880px, calc(100svh - 96px)); overflow: hidden; border-radius: var(--r-lg); background: var(--gray-2); box-shadow: var(--edge), 0 40px 90px -30px var(--black-a70); opacity: 0; transform: scale(.97); transition: opacity .35s var(--ease), transform .45s var(--ease); }
.mapov__frame iframe { display: block; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(.96) brightness(1.02); }
.mapov__grey { display: none; }
@supports ((backdrop-filter: url(#keep-red)) or (-webkit-backdrop-filter: url(#keep-red))) and (not (font: -apple-system-body)) {
  .mapov__frame iframe { filter: none; }
  .mapov__grey { position: absolute; inset: 0; display: block; pointer-events: none; -webkit-backdrop-filter: url(#keep-red) contrast(.96) brightness(1.02); backdrop-filter: url(#keep-red) contrast(.96) brightness(1.02); }
}
@media (max-width: 767px) {
  .mapov { padding: 64px 16px; }
  .mapov__frame { height: auto; aspect-ratio: 1; max-height: calc(100vh - 128px); max-height: calc(100svh - 128px); border-radius: var(--r-md); }
}
.mapov.is-open .mapov__backdrop { opacity: 1; }
.mapov.is-open .mapov__frame { opacity: 1; transform: none; }
.mapov:not(.is-open) .mapov__frame { transition-duration: .2s; }
.mapov__x { top: 14px; right: 14px; }

/* ---------- S8 Partners: the homepage's "logo · Partners" pairing ---------- */
.partners { padding: 0 0 var(--section); }
.partners__row { display: flex; justify-content: center; }

/* ---------- S9 Dosier: navy band, the form inline on a paper card ----------
   One centred block of text with room around it, and a band that keeps its height through the form's steps:
   the steps share one grid cell, so the card is always as tall as its tallest step (owner, Modification v1). */
.dosier__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
.dosier__text { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; justify-items: center; align-content: center; text-align: center; }
.dosier .eyebrow { margin: 0; }
.dosier .h-title { line-height: 1.15; }
.dosier .h-title > span { display: block; }
.dosier .h-title .dev-name { margin: .12em 0 .08em; font-size: 1.18em; letter-spacing: var(--ls-5); }
/* anywhere: a name of 1 long word breaks inside the column at 320px, and does not make the column wider */
.invite__name, .dosier .h-title .dev-name { overflow-wrap: anywhere; }
/* Everything but the title in one lettering: same size, weight, case and colour (owner, Modification v4) */
.dosier .eyebrow, .dosier__body, .dosier__contains { margin: 0; font: var(--w-medium) var(--fs-11)/1.7 var(--f-body); letter-spacing: var(--ls-20); text-transform: uppercase; color: var(--cream-a80); }
.dosier__card { position: relative; color: var(--text); }
/* The sheet and the step on show sit on the card's middle, so a shorter step shrinks the sheet from both edges and
   stays level with the text beside it (owner, Modification v3) */
.dosier__sheet { position: absolute; inset: 0; height: 100%; margin: auto 0; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--edge), 0 40px 90px -40px var(--black-a60); }
.dosier__sheet.is-ready { transition: height .34s cubic-bezier(.32, .72, 0, 1); }
.dosier__card .lead { position: relative; }
.dosier__card .lead > .step { grid-area: 1 / 1; align-self: center; display: grid; align-content: start; padding: 26px 20px 24px; visibility: hidden; }
.dosier__card .lead > .step.is-active { visibility: visible; }
.dosier__card .lead__title { padding-right: 0; }
.dosier__card .step__head, .dosier__card .lead__q { padding-right: 0; }
.dosier__legal { max-width: 100%; margin: 56px auto 0; font: var(--w-regular) var(--fs-10)/1.7 var(--f-body); letter-spacing: var(--ls-1); text-align: center; text-wrap: balance; color: var(--cream-a55); }
@media (min-width: 1024px) {
  .dosier__grid { grid-template-columns: minmax(0, 1fr) minmax(420px, 520px); gap: 6vw; align-items: center; }
  .dosier__card .lead > .step { padding: 40px 40px 36px; }
  .dosier__legal { margin-top: 72px; }
}

/* ---------- S10 Invitación final ---------- */
/* A little more air between the facts, the line and the buttons (owner, Modification v3) */
.invite__inner { gap: 30px; }
.invite__name { max-width: 100%; font: var(--w-medium) clamp(2.6rem, 6vw, 5.5rem)/1 var(--f-display); letter-spacing: var(--ls-6); text-transform: uppercase; }
.invite__line { max-width: 52ch; margin-top: 12px; font: var(--w-light) var(--fs-17)/1.72 var(--f-body); color: var(--text-soft); text-wrap: balance; }
.invite__ctas { display: grid; justify-items: center; gap: 22px; margin-top: 12px; }
@media (min-width: 768px) { .invite__ctas { grid-auto-flow: column; align-items: center; gap: 34px; } }
/* Phones: fewer things at once — the facts on one quiet centred run, no rules between them, the price on its own
   line, and more air between the groups (owner, Modification v1) */
@media (max-width: 767px) {
  .invite__inner { gap: 0; }
  .invite__name { margin-bottom: 22px; }
  .invite .kfacts--compact { display: grid; grid-template-columns: repeat(2, auto); justify-content: center; gap: 8px 28px; }
  .invite .kfacts--compact li, .invite .kfacts--compact li:nth-child(odd) { justify-content: center; padding: 0; border: 0; }
  .invite .kfacts--compact b { font-size: var(--fs-18); font-weight: var(--w-regular); color: var(--text-soft); }
  .invite .kfacts--compact .kfacts__num b { color: var(--text); font-weight: var(--w-light); }
  .invite .kfacts--compact .kfacts__price { grid-column: 1 / -1; margin-top: 18px; padding: 0 !important; border: 0 !important; }
  .invite .kfacts--compact .kfacts__price b { font-size: var(--fs-30); font-weight: var(--w-light); color: var(--text); }
  .invite .kfacts--compact li > span { font-size: var(--fs-12); }
  .invite .kfacts--3 { grid-template-columns: repeat(3, auto); column-gap: 22px; }
  .invite__line { margin-top: 36px; max-width: 32ch; font-size: var(--fs-16); }
  /* The two calls to action further apart, easier to read and to tap (owner, Modification v3) */
  .invite__ctas { grid-template-columns: minmax(0, 1fr); margin-top: 40px; gap: 32px; }
}

/* ---------- Phones (and tablets, which share their layout): every text centred except the Vivienda, Interior and
   Exterior texts (owner, Modification v1). The rooms read "2 Dormitorios", the number first. ---------- */
@media (max-width: 1023px) {
  .dhero__details, .dhero__intro { justify-items: center; text-align: center; }
  .dhero__cta { justify-self: center; }
  .dhero .kfacts li { justify-content: center; }
  /* The facts mirror each other about the middle rule: each half faces it, with the same air on both sides
     (owner, Modification v2). Sized so "217 m² construidos" keeps to one line on a 360px phone. */
  /* Each figure centred in its half with its name under it, the two halves mirrored about the middle rule
     (owner, Más Moregons v1) */
  .dhero .kfacts li:not(.kfacts__price), .dhero .kfacts li.kfacts__low { display: grid; grid-template-columns: auto; justify-content: center; justify-items: center; row-gap: 6px; padding: 0 10px; text-align: center; }
  .dhero .kfacts__low .kfacts__from { margin-bottom: 0; }
  .dhero .kfacts b { font-size: clamp(1.75rem, 8vw, 2.25rem); }
  .dhero .kfacts li > span { font-size: clamp(.75rem, 3.3vw, .8125rem); }
  .dhero .kfacts__price { grid-template-columns: auto auto; justify-content: center; }
  /* Three facts (RL37): one row of three, a rule between each (owner, RL37 v2) */
  .dhero .kfacts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dhero .kfacts--3 li:nth-child(3) { border-left: 1px solid var(--line); }
  .extras__grid { justify-items: center; text-align: center; }
  .extras__list li { flex-direction: column; justify-content: flex-start; gap: 10px; }
  .plans .h-title, .plans__note { text-align: center; }
  .plans__note { justify-self: center; }
  .floors { justify-content: center; }
  .plans__items li { justify-content: center; gap: 8px; }
  .plans__items b { order: -1; }
  .plans__items li.plans__for { text-align: center; }
  .locb__head { justify-items: center; text-align: center; }
  .poi { justify-content: center; }
}

/* ---------- 404 page ---------- */
.nf__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(32px, 4vw, 56px); }

/* ---------- Temporary stub pages ---------- */
/* ---------- Legal pages (Aviso Legal, Privacidad, Cookies) ---------- */
.lg { padding-top: calc(var(--header-h) + clamp(44px, 6vw, 96px)); padding-bottom: var(--section); }
.lg__head { display: grid; gap: 14px; padding-bottom: clamp(26px, 3.4vw, 44px); border-bottom: 1px solid var(--line); }
.lg__title { font: var(--w-light) clamp(2.4rem, 6.4vw, 5.6rem)/1 var(--f-body); letter-spacing: -.035em; margin-left: -.03em; overflow-wrap: break-word; text-wrap: balance; }
.lg__date { font: var(--w-medium) var(--fs-12)/1.4 var(--f-body); letter-spacing: var(--ls-16); text-transform: uppercase; color: var(--text-soft); }
.lg__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: clamp(32px, 4vw, 64px); }
.lg__toc { display: none; }
.lg__toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: toc; }
.lg__toc li { counter-increment: toc; display: flex; gap: 8px; font: var(--w-regular) var(--fs-14)/1.4 var(--f-body); }
.lg__toc li::before { content: counter(toc) '.'; min-width: 1.5em; color: var(--text-soft); }
.lg__toc a { color: inherit; text-decoration: none; }
.lg__body { max-width: 74ch; min-width: 0; font-size: var(--fs-16); }
.lg__body > section { scroll-margin-top: calc(var(--header-h) + 24px); }
.lg__body > section + section { margin-top: clamp(36px, 4vw, 52px); }
.lg__body h2 { margin: 0 0 16px; font: var(--w-regular) clamp(1.25rem, 1.8vw, 1.6rem)/1.25 var(--f-body); letter-spacing: var(--ls-neg-1); text-wrap: balance; }
.lg__body h2 span { margin-right: .2em; color: var(--text-soft); }
.lg__body p, .lg__body ul { margin: 0 0 14px; }
.lg__body ul { padding-left: 1.2em; }
.lg__body li + li { margin-top: 8px; }
.lg__body b { font-weight: var(--w-medium); }
.lg__body .link { background-size: 100% 1px; overflow-wrap: anywhere; } /* links in running text show their underline */
.lg__config { font: inherit; }
.lg__id { list-style: none; padding: 0 !important; border-top: 1px solid var(--line); }
.lg__id li { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); gap: 2px 20px; margin: 0 !important; padding: 10px 0; border-bottom: 1px solid var(--line); }
.lg__id span { font: var(--w-medium) var(--fs-11)/2.1 var(--f-body); letter-spacing: var(--ls-14); text-transform: uppercase; color: var(--text-soft); }
.lg__note { margin-top: 24px !important; font-size: var(--fs-14); font-style: italic; color: var(--text-soft); }
.lg__more { display: flex; flex-wrap: wrap; gap: 16px 32px; margin-top: clamp(48px, 5vw, 72px); padding-top: 28px; border-top: 1px solid var(--line); }
.lg__table { margin: 18px 0 8px; }
.lg__table table { width: 100%; border-collapse: collapse; font-size: var(--fs-14); line-height: 1.5; }
.lg__table th { padding: 0 16px 10px 0; border-bottom: 1px solid var(--line); text-align: left; font: var(--w-medium) var(--fs-11)/1.4 var(--f-body); letter-spacing: var(--ls-14); text-transform: uppercase; color: var(--text-soft); }
.lg__table td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.lg__table td:first-child { width: 9.5rem; }
.lg__table code { font: var(--w-medium) var(--fs-13)/1.5 var(--f-mono); }
/* Phones: the identity list stacks, and each cookie becomes a small card with its column names */
@media (max-width: 559px) { .lg__id li { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 719px) {
  .lg__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .lg__table table, .lg__table tbody, .lg__table tr, .lg__table td { display: block; }
  .lg__table tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .lg__table td, .lg__table td:first-child { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 12px; width: auto; padding: 3px 0; border: 0; }
  .lg__table td::before { content: attr(data-l); font: var(--w-medium) var(--fs-11)/1.9 var(--f-body); letter-spacing: var(--ls-12); text-transform: uppercase; color: var(--text-soft); }
}
@media (min-width: 1024px) {
  .lg__grid { grid-template-columns: minmax(0, 16rem) minmax(0, 74ch); gap: clamp(48px, 7vw, 140px); }
  .lg__toc { display: block; position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
}
@media (hover: hover) and (pointer: fine) { .lg__toc a:hover { text-decoration: underline; text-underline-offset: 3px; } }
.stub { min-height: 100vh; display: grid; place-items: center; }
.stub__inner { display: grid; gap: 20px; justify-items: start; max-width: 560px; }
.stub__logo { width: 220px; height: auto; margin-bottom: 24px; }

/* ---------- Focus ring of a dark control ---------- */
/* The ring of the page is `currentColor`. A dark control has cream text, so that ring is cream and does not show on
   cream, paper or white. These controls get a ring of 2 colors: 2 px of cream next to the control, then 2 px of
   navy. The navy line shows on a light ground, and the cream line shows on navy and on a dark photo. The cream line
   is a shadow in front of the control's own shadow, so the control keeps its own shadow. A plot pin has its own
   white line next to it, and the navy line goes around that. This block is after each hover rule.
   test/focus-keyboard.test.mjs reads the ring of each one on each ground. */
.btn--dark:focus-visible, .fab__btn:focus-visible, .smap__pin:focus-visible,
.floors__tab[aria-selected='true']:focus-visible, .floors__tab[aria-checked='true']:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.btn--dark:focus-visible, .header:not(.is-solid) .header__contact:focus-visible, .dhead[data-state='top'] .dhead__contact:focus-visible { box-shadow: 0 0 0 2px var(--cream), inset 0 1px 0 var(--white-a16), 0 1px 2px var(--navy-deep-a20), 0 10px 22px -10px var(--navy-deep-a55); }
.fab__btn:focus-visible { box-shadow: 0 0 0 2px var(--cream), inset 0 1px 0 var(--white-a18), 0 14px 30px -10px var(--navy-deep-a55); }
.floors__tab[aria-selected='true']:focus-visible, .floors__tab[aria-checked='true']:focus-visible { box-shadow: 0 0 0 2px var(--cream); }

/* ---------- Press feedback: each small control answers a finger ---------- */
/* The tap highlight of the browser is off, so `:active` is the answer to a press. A control with a box goes to 94%;
   a control that is text or a mark dims to .6. The change takes .12s. Only `transform` and `opacity` change, so no
   box changes its size. This block is after each hover rule: a press with a mouse wins over the hover look.
   test/touch-behavior.test.mjs presses each one. */
.header__burger:active, .modal__x:active, .lead__back:active { transform: scale(.94); }
.fab.is-open .fab__item:active { transform: scale(.94); transition-duration: .12s; transition-delay: 0s; }
.lang a:active { opacity: .6; transition-duration: .12s; }
.drawer-open .header.is-solid .lang a:not([aria-current]):active { opacity: .4; } /* this link is at .6 at rest there */
.floors__tab:active, .lead__skip:active, .acc__btn:active, .carousel__dots button:active { opacity: .6; }

/* ---------- Tap areas: 44 px for a finger, the same look ---------- */
/* On a touch screen a clear layer (`::after`) on the control takes the tap. The layer is 44 px high and has the
   middle of the control, so no box grows and no row moves. 2 controls do grow: a floor tab and the close button of
   the modal are 44 px. Where 2 controls are nearer than 44 px, the 2 layers meet in the middle of the gap, and the
   first and the last of a list go outward to 44 px. test/tap-targets.test.mjs measures each one. */
@media (pointer: coarse) {
  .lang a, .carousel__dots button, .footer__tel, .footer__mail .link, .ct__tel, .ct__social, .lg__id .link, .lead__back, .lead__skip { position: relative; }
  .lang a::after, .header__logo::after, .dhead__logo::after, .carousel__dots button::after, .locb .locb__cta::after, .footer__tel::after, .footer__mail .link::after,
  .ct__tel::after, .ct__social::after, .lg__id .link::after, .lead__back::after, .lead__skip::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 44px; transform: translateY(-50%); }
  /* Narrow controls with a neighbor: 44 px wide where the place permits it, else to the middle of the gap. */
  .lang a { z-index: 1; } /* above the line between the 2 links */
  .lang a::after { left: -10.5px; right: -10.5px; }
  .carousel__dots button::after { left: -4px; right: -4px; }
  .carousel__dots button:first-child::after { left: -18px; }
  .carousel__dots button:last-child::after { right: -18px; }
  /* The 2 links below a legal text: 16 px between the rows. */
  .lg__more .link-cta::after { inset: -8px 0; }
  .lg__more .link-cta:first-child::after { top: -17px; }
  .lg__more .link-cta:last-child::after { bottom: -17px; }
  .floors__tab { min-height: 44px; }
  .modal__x { top: 10px; right: 10px; width: 44px; height: 44px; } /* the middle stays 32 px from the top and the right */
}
/* Phone: the drawn map is small, so the clear circle of a pin (`.pin__hit`, 40 map units) is below 44 px. 58 map
   units are 45 px at 320 px. The cell of the pin (MapSvg.astro) cuts the circle where a second pin is nearer. */
@media (pointer: coarse) and (max-width: 767px) { .pin__hit { r: 58px; } }
@media (pointer: coarse) and (max-width: 359px) {
  .dhead .lang a:first-child::after { right: -7.5px; }
  .dhead .lang a:last-child::after { left: -7.5px; }
}
/* Phone: the footer lists and the cookie preferences are rows that are nearer than 44 px. Each layer goes to the
   middle of the gap to the next row. */
@media (pointer: coarse) and (max-width: 767px) {
  .footer__nav .link, .footer__legal .link, .cookies__prefs label { position: relative; }
  .footer__nav .link::after, .footer__legal .link::after, .cookies__prefs label::after { content: ''; position: absolute; }
  .footer__nav .link::after { inset: -9.9px 0; }
  .footer__nav li:not(:last-child) .link::after { top: -17px; }   /* the first row: "Promociones" and "Contacto" */
  .footer__nav li:last-child .link::after { bottom: -17px; }
  .footer__legal .link::after { inset: -8px 0; }
  .footer__legal li:first-child .link::after { top: -18px; }
  .footer__legal li:nth-last-child(2) .link::after { bottom: -7.5px; }
  .footer__legal li:last-child .link::after { top: -7.5px; bottom: -16.5px; }
  .cookies__prefs label::after { inset: -4px 0; }
  .cookies__prefs label:first-child::after { top: -5px; }
  .cookies__prefs label:last-child::after { bottom: -5px; }
}

/* ---------- Reduced transparency: solid grounds, no blur ---------- */
/* A visitor who asks for less transparency gets the header on solid paper. The scrims keep their shade and lose
   the blur. */
@media (prefers-reduced-transparency: reduce) {
  .header::after, .dhead::before, .header.is-solid::after, .dhead[data-state='shown']::before { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .header.is-solid, .dhead[data-state='shown'] { background-color: var(--paper); }
  .modal__backdrop, .lightbox__backdrop, .mapov__backdrop { -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- Reduced motion: static, complete page ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .hero__media { transform: none; }
  .hero__cue { display: none; }
  .reveal-ready [data-reveal], .reveal-ready [data-reveal] > picture, .reveal-ready [data-reveal] > svg { opacity: 1 !important; transform: none !important; }
  .pcard:hover, .pcard:active, .pcard:hover .pcard__media img { transform: none; }
  .header__burger:active, .modal__x:active, .lead__back:active, .fab.is-open .fab__item:active { transform: none; opacity: .6; } /* the press dims, nothing moves */
  /* The same for each older press look: a control dims to .6, a large photo card to .8 (a softer change of light).
     test/motion-timing.test.mjs scans this file: a new `:active` rule with `scale` needs its line here. */
  .btn:active, .fab__btn:active, .footer__icon:active, .lightbox__step:active span, .pf-tab[aria-selected='false']:active, .choice > span:active, .dhead__back:active, .scar__btn:active, .smap__pin:active, .reveal-ready .smap[data-reveal] .smap__pin:active, .smap__close:active, .flist__pick:active .flist__n { transform: none; opacity: .6; }
  .scar__btn.is-off:active { opacity: 0; } /* the arrow that just went away at the end of the strip */
  .tile:active, .pcard--sale:active { transform: none; opacity: .8; }
  .locb .locb__cta:active { transform: translateX(-50%); opacity: .6; } /* its place on a phone: the middle */
  @media (min-width: 768px) { .locb .locb__cta:active { transform: none; opacity: .6; } }
  @media (hover: hover) and (pointer: fine) { .gal .gal__btn:active { transform: none; opacity: .6; } } /* the arrow shows only under a mouse */
  .pcard--sale:hover { box-shadow: inset 0 0 0 1.5px var(--navy); }
  .cierre__bg img { animation: none; }
}
