/* ==========================================================================
   Romeroly — Design tokens
   ========================================================================== */
:root{
  --color-primary: #468EEF;
  --color-primary-600: #3B7BDB;
  --color-primary-700: #2E63B3;
  --color-primary-800: #234C8C;
  --color-primary-50: #EEF4FE;
  --color-primary-100: #DCE8FD;
  --color-primary-200: #B9D2FB;

  --color-ink: #14151B;
  --color-ink-soft: #1C1E28;
  --color-ink-border: rgba(255,255,255,.12);

  --color-text: #23242B;
  --color-text-muted: #61626C;
  --color-text-faint: #8B8D98;
  --color-on-dark: #F4F6FB;
  --color-on-dark-muted: #A6AABC;

  --color-bg: #FFFFFF;
  --color-bg-alt: #F5F8FC;
  --color-bg-tint: #EEF4FE;
  --color-border: #E6EAF2;
  --color-border-strong: #D3DAE8;

  --color-success: #1F9D6B;
  --color-success-bg: #E9F8F1;
  --color-danger: #E1483F;
  --color-danger-bg: #FDEEED;

  --font-display: 'Outfit', 'Segoe UI', sans-serif;
  --font-body: 'Figtree', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  --fs-display: clamp(2.6rem, 2rem + 2.8vw, 4.5rem);
  --fs-h1: clamp(2.1rem, 1.7rem + 1.8vw, 3.1rem);
  --fs-h2: clamp(1.7rem, 1.45rem + 1.1vw, 2.4rem);
  --fs-h3: clamp(1.25rem, 1.1rem + .5vw, 1.5rem);
  --fs-h4: 1.125rem;
  --fs-lead: clamp(1.1rem, 1rem + .4vw, 1.3rem);
  --fs-body: 1rem;
  --fs-small: .875rem;
  --fs-eyebrow: .8125rem;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-8: 32px; --space-10: 40px;
  --space-12: 48px; --space-16: 64px; --space-20: 80px; --space-24: 96px;
  --space-32: 128px;

  --radius-sm: 12px; --radius-md: 18px; --radius-lg: 28px; --radius-full: 999px;

  /* Layered shadows — a tight contact shadow plus a wide soft one reads as
     real depth, where a single large blur reads as a grey smudge. */
  --shadow-sm: 0 1px 2px rgba(20,21,30,.05), 0 2px 6px -2px rgba(20,21,30,.06);
  --shadow-md: 0 2px 4px -1px rgba(20,21,30,.05), 0 16px 32px -12px rgba(20,21,30,.16);
  --shadow-lg: 0 4px 8px -2px rgba(20,21,30,.05), 0 32px 64px -20px rgba(20,21,30,.24);
  --shadow-xl: 0 8px 16px -4px rgba(20,21,30,.06), 0 48px 96px -32px rgba(20,21,30,.32);
  --shadow-primary: 0 2px 6px -1px rgba(70,142,239,.28), 0 16px 36px -12px rgba(70,142,239,.45);

  --ring: 0 0 0 1px rgba(20,21,30,.05);

  --ease-out: cubic-bezier(.16,1,.3,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --dur-fast: 180ms; --dur-base: 280ms; --dur-slow: 460ms;

  --container-max: 1240px;
  --header-h: 84px;

  /* ---- Hero tokens -------------------------------------------------------
     Kept together so the overlay, the glass surfaces and the CTA all pull
     from the same few values — that shared origin is what makes the accent
     read as one colour system rather than a blue button dropped on a grey
     photo. The ink is a deep navy, never pure black, so the scrim tints the
     photograph towards the brand instead of draining it. */
  /* Same values as --color-ink (#14151B) and --color-primary (#468EEF), just
     as rgb triplets so they can be used with an alpha here. Deriving the hero
     from the site's own ink is the point: a navy-tinted overlay was tried and
     read as a different, colder brand than the neutral dark used by the
     footer and the dark sections. */
  --hero-ink: 20 21 27;
  --hero-accent: 70 142 239;

  /* A soft vignette pooled behind the centred lockup, plus a light flat floor
     everywhere else — the photo itself stays brighter at the edges than the
     old flat 38% wash left it, while the text gets real contrast from the
     darker pool under it instead of leaning entirely on text-shadow. No hard
     edge anywhere, so it reads as depth in the photo, not a panel dropped on
     top of it. */
  --hero-overlay:
    radial-gradient(ellipse 62% 56% at 50% 48%, rgba(var(--hero-ink) / .56) 0%, rgba(var(--hero-ink) / .3) 55%, rgba(var(--hero-ink) / .16) 100%),
    linear-gradient(rgba(var(--hero-ink) / .22), rgba(var(--hero-ink) / .22));

  --hero-glass-bg: rgba(255, 255, 255, .08);
  --hero-glass-bg-hover: rgba(255, 255, 255, .14);
  --hero-glass-border: rgba(255, 255, 255, .22);
  --hero-glass-blur: blur(14px) saturate(1.3);

  --hero-gap-xs: 10px;
  --hero-gap-sm: 18px;
  --hero-gap-md: 28px;
  --hero-gap-lg: clamp(28px, 4vw, 44px);

  --hero-grain-opacity: .07;
}

@media (max-width: 720px){
  :root{ --header-h: 72px; }
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after{ box-sizing: border-box; }
* { margin: 0; }
html{ -webkit-text-size-adjust: 100%; }
body{
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, picture, svg{ display:block; max-width: 100%; }
input, button, textarea, select{ font: inherit; color: inherit; }
button{ cursor: pointer; }
a{ color: inherit; text-decoration: none; }
ul, ol{ list-style: none; padding: 0; }
h1,h2,h3,h4{ font-family: var(--font-display); line-height: 1.1; font-weight: 700; letter-spacing: -.022em; text-wrap: balance; }
h1{ letter-spacing: -.032em; }
p{ text-wrap: pretty; }
:focus-visible{ outline: 2.5px solid var(--color-primary); outline-offset: 3px; border-radius: 4px; }

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

.skip-link{
  position: fixed; top: -60px; left: 16px; z-index: 1000;
  background: var(--color-ink); color: #fff; padding: 12px 20px;
  border-radius: var(--radius-sm); transition: top var(--dur-base) var(--ease-out);
}
.skip-link:focus{ top: 16px; }

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.container{
  width: 100%; max-width: var(--container-max);
  margin-inline: auto; padding-inline: clamp(20px, 5vw, 48px);
}
.section{ padding-block: clamp(64px, 9vw, 128px); position: relative; }
.section--alt{ background: var(--color-bg-alt); }
.section--dark{
  background: var(--color-ink); color: var(--color-on-dark);
  position: relative; overflow: hidden;
}
.section--dark::before{
  content:''; position:absolute; inset:0;
  background-image: radial-gradient(circle at 15% 20%, rgba(70,142,239,.28), transparent 45%),
                     radial-gradient(circle at 85% 80%, rgba(70,142,239,.16), transparent 50%);
  pointer-events: none;
}
.section--tight{ padding-block: clamp(40px, 5vw, 72px); }
.section > .container{ position: relative; z-index: 1; }

.section-head{ max-width: 640px; margin-bottom: var(--space-12); }
.section-head--center{ margin-inline: auto; text-align: center; }
.section-head p{ color: var(--color-text-muted); font-size: var(--fs-lead); margin-top: var(--space-4); }
.section--dark .section-head p{ color: var(--color-on-dark-muted); }

.eyebrow{
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: var(--fs-eyebrow);
  letter-spacing: .08em; text-transform: uppercase; font-weight: 500;
  color: var(--color-primary-700); background: var(--color-primary-50);
  border: 1px solid var(--color-primary-100);
  padding: 7px 16px 7px 12px; border-radius: var(--radius-full);
}
.eyebrow::before{
  content:''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-100);
}
.section--dark .eyebrow{
  color: #BFD8FC; background: rgba(70,142,239,.14); border-color: rgba(70,142,239,.3);
}
.section--dark .eyebrow::before{ box-shadow: 0 0 0 3px rgba(70,142,239,.22); }

h2{ font-size: var(--fs-h2); margin-top: var(--space-3); }
h3{ font-size: var(--fs-h3); }

.text-lead{ font-size: var(--fs-lead); color: var(--color-text-muted); }
.text-muted{ color: var(--color-text-muted); }
.visually-hidden{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn{
  --_pad-y: 15px; --_pad-x: 28px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 600; font-size: .95rem; font-family: var(--font-body);
  padding: var(--_pad-y) var(--_pad-x); border-radius: var(--radius-full);
  border: 1px solid transparent; white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
  touch-action: manipulation;
}
.btn svg{ width: 18px; height: 18px; flex-shrink: 0; }
.btn:active{ transform: scale(.97); }

/* Sheen — a soft highlight sweeps across on hover. Purely decorative, and
   clipped to the button so it can never affect layout. */
.btn::after{
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.28) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform .7s var(--ease-out);
  pointer-events: none;
}
.btn{ position: relative; overflow: hidden; isolation: isolate; }
.btn:hover::after{ transform: translateX(120%); }

.btn--primary{
  background: linear-gradient(180deg, #579BF4, var(--color-primary) 55%, var(--color-primary-600));
  color: #fff; box-shadow: var(--shadow-primary), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn--primary:hover{ transform: translateY(-2px); box-shadow: 0 4px 10px -2px rgba(70,142,239,.32), 0 22px 46px -14px rgba(70,142,239,.55), inset 0 1px 0 rgba(255,255,255,.25); }
.btn--ghost{ background: transparent; color: var(--color-text); border-color: var(--color-border-strong); }
.btn--ghost:hover{ border-color: var(--color-primary); color: var(--color-primary-700); background: var(--color-primary-50); transform: translateY(-2px); }
.section--dark .btn--ghost,
.btn--on-dark{ color: var(--color-on-dark); border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.04); }
.section--dark .btn--ghost:hover,
.btn--on-dark:hover{ background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.55); color:#fff; transform: translateY(-2px); }
.btn--white{ background:#fff; color: var(--color-primary-700); box-shadow: var(--shadow-md); }
.btn--white:hover{ transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn--block{ width: 100%; }
.btn--sm{ --_pad-y: 11px; --_pad-x: 20px; font-size: .875rem; }
.btn[disabled]{ opacity: .6; cursor: not-allowed; transform:none !important; }
@media (prefers-reduced-motion: reduce){
  .btn::after{ display: none; }
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header{
  position: sticky; top: 0; z-index: 200; height: var(--header-h);
  display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), transform .5s var(--ease-out), opacity .4s var(--ease-out);
}
/* The frosted-glass look lives on a pseudo-element rather than directly on
   .site-header: backdrop-filter on the header itself would make it the
   containing block for any position:fixed descendant (the mobile .nav
   overlay included), collapsing that overlay to the header's own height
   instead of the full viewport. */
.site-header::before{
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  transition: background var(--dur-base) var(--ease-out);
}
.site-header.is-scrolled{
  border-color: var(--color-border);
  box-shadow: 0 1px 0 rgba(20,21,30,.03), 0 12px 32px -22px rgba(20,21,30,.4);
}
.site-header.is-scrolled::before{
  background: rgba(255,255,255,.88);
}
/* While the hero film runs, the header slides away for a clean full-frame
   shot. The header is in-flow (sticky), so the hero is pulled up by exactly
   its height to fill the gap it leaves — both are un-set together during the
   block wipe, i.e. while the screen is fully covered, so the reflow never
   shows. */
body.is-film-playing .site-header{
  transform: translateY(-100%); opacity: 0; pointer-events: none;
}
body.is-film-playing .hero--cinema{
  margin-top: calc(-1 * var(--header-h));
  height: 100vh; height: 100dvh; max-height: none;
}
.site-header__inner{ display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); }

.brand{ display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand__mark{ transition: transform var(--dur-base) var(--ease-out); }
.brand:hover .brand__mark{ transform: rotate(-6deg) scale(1.05); }
.brand__word{ font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--color-text); letter-spacing: -.01em; }
.brand__accent{ color: var(--color-primary); }
.brand--footer .brand__word{ color: var(--color-on-dark); }

.nav__list{ display: flex; align-items: center; gap: var(--space-8); }
.nav__link{
  position: relative; font-weight: 500; font-size: .95rem; color: var(--color-text-muted);
  padding: 8px 2px; transition: color var(--dur-fast) var(--ease-out);
}
.nav__link::after{
  content:''; position:absolute; left:0; right:0; bottom:2px; height: 2px;
  background: var(--color-primary); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform var(--dur-base) var(--ease-out);
}
.nav__link:hover{ color: var(--color-text); }
.nav__link:hover::after{ transform: scaleX(1); }
.nav__link.is-active{ color: var(--color-primary-700); }
.nav__link.is-active::after{ transform: scaleX(1); }

.site-header__actions{ display: flex; align-items: center; gap: var(--space-4); }

.nav-toggle{
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; background: transparent; border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm); padding: 0 11px;
}
.nav-toggle__bar{ display:block; height: 2px; width: 100%; background: var(--color-text); border-radius: 2px; transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-fast) var(--ease-out); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2){ opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px){
  .nav{
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 190;
    background: rgba(255,255,255,.98); backdrop-filter: blur(20px);
    padding: var(--space-10) var(--space-6);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), visibility var(--dur-base);
    overflow-y: auto;
  }
  .nav.is-open{ opacity: 1; transform: translateY(0); visibility: visible; }
  .nav__list{ flex-direction: column; align-items: stretch; gap: var(--space-2); }
  .nav__link{ display: block; width: 100%; font-size: 1.4rem; padding: var(--space-3) 0; border-bottom: 1px solid var(--color-border); }
  .nav__link::after{ display: none; }
  .site-header__actions .btn--primary{ display: none; }
  .nav-toggle{ display: flex; }
}
@media (min-width: 901px){
  .nav-toggle{ display:none; }
}

/* ==========================================================================
   Film loader — covers the page while the hero film buffers
   ========================================================================== */
.film-loader{
  position: fixed; inset: 0; z-index: 900;
  display: none; align-items: center; justify-content: center;
  background: var(--color-ink);
  opacity: 1; transition: opacity .55s var(--ease-out);
}
/* Revealed by JS only. Anything that stops the script — no JS, a parse error,
   a blocked file — therefore leaves the page perfectly usable. */
body.is-loading{ overflow: hidden; }
body.is-loading .film-loader{ display: flex; }
.film-loader.is-done{ opacity: 0; pointer-events: none; }

.film-loader__inner{
  display: flex; flex-direction: column; align-items: center; gap: var(--space-5);
  padding: var(--space-8); text-align: center;
}
.film-loader__mark{
  width: 56px; height: auto;
  animation: loaderPulse 2.4s var(--ease-out) infinite;
}
@keyframes loaderPulse{
  0%, 100%{ transform: translateY(0) scale(1); opacity: 1; }
  50%{ transform: translateY(-6px) scale(1.04); opacity: .82; }
}
.film-loader__word{
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem;
  letter-spacing: -.02em; color: #fff;
}
.film-loader__word span{ color: var(--color-primary); }
.film-loader__bar{
  width: min(300px, 62vw); height: 3px; border-radius: 2px;
  background: rgba(255,255,255,.14); overflow: hidden; margin-top: var(--space-2);
}
.film-loader__bar i{
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--color-primary), #8ab4f8);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease-out);
}
.film-loader__label{
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .08em;
  color: var(--color-on-dark-muted);
}
/* Last-resort dismissal: if the loader is somehow still up after 20s, this
   takes it out of the way without needing any JS to run. */
body.is-loading .film-loader{ animation: loaderFailsafe 0s linear 20s forwards; }
@keyframes loaderFailsafe{ to{ opacity: 0; visibility: hidden; pointer-events: none; } }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero{ position: relative; overflow: hidden; padding-block: clamp(56px, 8vw, 96px) clamp(64px, 9vw, 120px); }

/* --------------------------------------------------------------------------
   Cinema hero — the film plays through once over a clean frame, then a block
   wipe hands over to the still photo + headline panel (see initHeroCinema in
   main.js). Which stage is showing is driven purely by .is-film / .is-photo
   on the section, so there is one source of truth for the whole composition.

   Playback notes kept from earlier iterations: the clip is pre-slowed with
   real motion-compensated interpolation (ffmpeg minterpolate) rather than
   video.playbackRate or a reduced encode frame rate — both of those were
   tried and read as choppy, since holding existing frames longer is not the
   same as generating genuine in-between frames. There is also deliberately
   no CSS filter on the video: a live filter forces every decoded frame to be
   reprocessed before compositing, which is exactly the per-frame cost that
   shows up as jank. Dimming comes from the static .hero__scrim instead.
   -------------------------------------------------------------------------- */
/* Height is deliberately (viewport − header) so that the film stage — which
   is a full 100vh pulled up under the hidden header — occupies exactly the
   same total space. Handing over between the two therefore shifts nothing,
   which matters most when the visitor skips the film mid-scroll. */
.hero--cinema{
  padding-block: 0; background: var(--color-ink);
  height: calc(100vh - var(--header-h));
  height: calc(100dvh - var(--header-h));
  min-height: 560px;
}
.hero__bgvideo,
.hero__bgphoto{
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity var(--dur-base) linear;
}
/* Oversized so the scroll parallax (initHeroParallax) has room to travel
   without exposing an edge. JS owns this transform — no CSS animation here,
   or the two would fight over the same property. */
.hero__bgphoto{ transform: scale(1.12); will-change: transform; }

/* Stage visibility. Defaults (no JS) land on the photo stage. */
.hero--cinema .hero__bgvideo{ opacity: 0; }
.hero--cinema.is-film .hero__bgvideo{ opacity: 1; }
.hero--cinema.is-film .hero__bgphoto{ opacity: 0; }
.hero--cinema.is-film .hero__content{ opacity: 0; pointer-events: none; }
/* The film plays completely clean: no veil, no grain. Nothing is laid over it
   because nothing needs to be — the skip hint carries its own solid chips, so
   it stays readable without dimming the footage to do it. */
.hero--cinema.is-film .hero__scrim,
.hero--cinema.is-film .hero__grain{ opacity: 0; }

/* On a portrait viewport, cover-cropping a 16:9 clip cuts straight through
   the captions burnt into it. Letterbox it instead so the film stays whole
   and readable; the photo stage still covers, since a photo crops fine. */
@media (max-aspect-ratio: 1/1){
  .hero__bgvideo{ object-fit: contain; }
}

/* Vignette + floor wash (see --hero-overlay), not a flat tint across the
   whole frame — see --hero-ink above for why it's tinted rather than pure
   black. */
.hero__scrim{
  position: absolute; inset: 0; z-index: 1;
  background: var(--hero-overlay);
  transition: opacity var(--dur-slow) var(--ease-out);
}

/* Grain. Blended rather than laid on top: `overlay` modulates the photo's own
   midtones, which is what gives the cinematic bite. Sitting above the scrim
   means the gradient gets textured too, so the two read as one treated image
   rather than a photo with a separate sheet over it. */
.hero__grain{
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  opacity: var(--hero-grain-opacity);
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 200px 200px;
}

/* Two-tone curtain. Six columns per layer sweep down to cover, the stage
   swaps underneath, then they sweep on down and out. The accent layer sits
   below the ink one and moves first in both directions, so covering reads as
   colour-then-dark and revealing flashes brand colour before the photo lands.

   Only the resting state lives here — the motion itself is driven by anime.js
   (see curtain() in main.js), which can stagger the columns from the centre
   outwards and use a different easing each way. Declaring transitions here
   too would mean two engines writing the same transform. */
.hero__wipe{
  position: absolute; inset: 0; z-index: 5; pointer-events: none;
}
.hero__wipe-layer{ position: absolute; inset: 0; display: flex; }
.hero__wipe-layer--accent span{ background: var(--color-primary); }
.hero__wipe-layer--ink span{ background: var(--color-ink); }
.hero__wipe span{
  flex: 1; transform: scaleY(0); transform-origin: top;
  will-change: transform;
}

/* --------------------------------------------------------------------------
   Editorial lockup. The type sits straight on the photograph — legibility
   comes from the gradient scrim, not from a panel behind the words, which is
   what made the old treatment feel like a generic content card dropped onto
   a stock photo.
   -------------------------------------------------------------------------- */
.hero--cinema .hero__content{
  position: relative; z-index: 3; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding-block: clamp(24px, 3vh, 44px);
  transition: opacity var(--dur-base) var(--ease-out);
}

/* Kicker as a dark glass pill — the site's .eyebrow component re-skinned for
   a dark frame rather than a second, unrelated badge style. */
.hero--cinema .hero__kicker{
  margin: 0; color: rgba(255,255,255,.86);
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.16);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.hero--cinema .hero__kicker::before{
  background: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(70,142,239,.28);
}

.hero__title{
  color: #fff; margin-top: var(--space-6);
  font-weight: 800; line-height: .97; letter-spacing: -.042em;
  font-size: clamp(2.4rem, 1rem + 4.6vw, 5.6rem);
  max-width: 16ch;
  /* Two shadows doing different jobs: a tight near-zero-blur one keeps a
     crisp dark edge right at the glyph outline (this is what actually reads
     as contrast), and a wide soft one underneath adds depth. A single large
     blur radius was tried here and, on bold/tight-tracked type, merges
     adjacent letters' shadows into one solid smudge per word — reads as a
     dark rectangle stamped behind the text rather than the text itself
     gaining contrast. The vignette in --hero-overlay now carries most of the
     legibility work, so neither shadow has to be as heavy as that one was. */
  text-shadow: 0 1px 2px rgba(8,9,14,.55), 0 10px 22px rgba(8,9,14,.22);
}
.hero__title-strong{ display: block; }

/* Gradient line. Clipped to its own text, which is exactly why it holds no
   per-word masks: transforming child spans inside a background-clip:text
   element shifts the letters out of the fill they are cut from. It is
   animated as one block instead. A solid colour is declared first so a
   browser without background-clip still shows a readable line. */
.hero__title-grad{
  display: block; margin-top: .08em;
  color: var(--color-primary-200);
  /* text-shadow inherited from .hero__title paints as a solid rectangle
     instead of following the glyph outlines once combined with the
     background-clip:text + transparent fill below — a Chrome/WebKit quirk
     with that specific combination. filter: drop-shadow() operates on the
     element's actual rendered (already-clipped) alpha shape instead, so it
     follows the real letterforms whether or not the clip is supported. */
  text-shadow: none;
  filter: drop-shadow(0 1px 2px rgba(8,9,14,.55)) drop-shadow(0 10px 22px rgba(8,9,14,.22));
}
@supports (-webkit-background-clip: text) or (background-clip: text){
  .hero__title-grad{
    color: transparent;
    background-image: linear-gradient(100deg, var(--color-primary) 0%, #6FB4FF 42%, #9FD4FF 72%, #CFE6FF 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

/* Each word rises out of its own mask. The padding/negative-margin pair keeps
   descenders (the j in "trabajar") from being clipped by that mask. */
.hero__title .split-line{
  display: inline-block; overflow: hidden; vertical-align: bottom;
  padding-bottom: .14em; margin-bottom: -.14em;
}

.hero--cinema .hero__lead{
  color: rgba(255,255,255,.9); margin: var(--hero-gap-md) auto 0;
  max-width: 56ch; font-size: 1.05rem; line-height: 1.65;
  text-shadow: 0 1px 16px rgba(10,11,16,.65);
}
.hero--cinema .hero__actions{
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: var(--hero-gap-sm); margin-top: var(--hero-gap-lg);
}

/* Solid white primary: the highest-contrast object in a dark frame, so the
   eye lands on the booking action first. Its lift is animated in JS (elastic),
   hence no transform transition declared here. */
.hero__cta{
  display: inline-flex; align-items: center; gap: 10px;
  padding: 17px 30px; border-radius: var(--radius-full);
  font-weight: 600; font-size: 1rem;
  background: #fff; color: var(--color-ink);
  box-shadow: 0 10px 30px -12px rgba(0,0,0,.5);
  will-change: transform;
  transition: background var(--dur-base) var(--ease-out);
}
.hero__cta:hover{ background: #fff; }
.hero__cta svg{ width: 17px; height: 17px; }

.hero__ghost{
  display: inline-flex; align-items: center; gap: 10px;
  padding: 17px 28px; border-radius: var(--radius-full);
  font-weight: 600; font-size: 1rem; color: #fff;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), gap var(--dur-fast) var(--ease-out);
}
.hero__ghost:hover{ background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.42); gap: 14px; }
.hero__ghost svg{ width: 17px; height: 17px; }

/* Quiet proof line: facts the site already states, set small so it supports
   the CTAs instead of competing with them. */
.hero__trust{
  display: inline-flex; align-items: center; gap: 9px;
  margin-top: var(--hero-gap-md);
  font-size: .85rem; color: rgba(255,255,255,.6);
}
.hero__trust svg{ width: 15px; height: 15px; color: var(--color-primary); flex-shrink: 0; }
.hero__trust strong{ color: rgba(255,255,255,.9); font-weight: 600; }

@media (max-width: 640px){
  .hero__title{ max-width: none; }
  .hero--cinema .hero__actions{ gap: var(--hero-gap-xs); width: 100%; flex-direction: column; }
  .hero__cta, .hero__ghost{ width: 100%; justify-content: center; }
  .hero__trust{ font-size: .78rem; }
}

/* "Scroll to skip" affordance. Sits above the curtain so it stays readable
   over any frame of the film, and is only ever shown while the film runs. */
.film-hint{
  position: absolute; left: 50%; bottom: clamp(28px, 5vh, 52px);
  transform: translateX(-50%) translateY(10px);
  z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 10px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out), visibility .5s;
}
.hero--cinema.is-film .film-hint.is-visible{
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
/* The clip cuts between near-white title cards and dark interiors, so both
   chips carry their own solid-ish backing — a translucent pill that reads
   fine over footage disappears entirely over a white frame. */
.film-hint__text{
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em;
  text-transform: uppercase; color: #fff;
  background: rgba(12,13,20,.78); border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: 9px 18px; border-radius: var(--radius-full);
  box-shadow: 0 8px 24px -10px rgba(0,0,0,.6);
}
.film-hint__chevron{
  display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 50%; color: #fff;
  background: rgba(12,13,20,.78); border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px -10px rgba(0,0,0,.6);
  animation: hintNudge 1.9s var(--ease-out) infinite;
}
.film-hint__chevron svg{ width: 20px; height: 20px; }
@keyframes hintNudge{
  0%, 100%{ transform: translateY(0); }
  50%{ transform: translateY(7px); }
}

@media (prefers-reduced-motion: reduce){
  .hero__bgphoto{ animation: none; }
  .film-hint__chevron, .film-loader__mark{ animation: none; }
}

.hero__bg{ position: absolute; inset: 0; z-index: 0; }
.hero__blob{
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55;
  background: radial-gradient(circle, rgba(70,142,239,.55), rgba(70,142,239,0) 70%);
}
.hero__blob--a{ width: 520px; height: 520px; top: -180px; right: -120px; }
.hero__blob--b{ width: 380px; height: 380px; bottom: -160px; left: -100px; background: radial-gradient(circle, rgba(70,142,239,.35), rgba(70,142,239,0) 70%); }

.hero__grid{
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 72px);
  align-items: center; position: relative; z-index: 1;
}
.hero__kicker{ margin-bottom: var(--space-6); }
.hero h1{ font-size: var(--fs-display); }
.hero h1 .accent{ color: var(--color-primary); }
.hero__lead{ margin-top: var(--space-6); max-width: 46ch; }
.hero__actions{ display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-8); }
/* Legacy two-column hero only — scoped so its light hairline rule cannot
   land on the cinema hero's glass stat cards, which define their own. */
.hero__grid .hero__stats{ display: flex; flex-wrap: wrap; gap: var(--space-8); margin-top: var(--space-12); padding-top: var(--space-8); border-top: 1px solid var(--color-border); }

.split-word{ display: inline-block; will-change: transform, opacity; }

/* Hero visual: bento mock composition */
.hero__visual{ position: relative; height: clamp(360px, 44vw, 520px); }
.hv-card{
  position: absolute; background: rgba(255,255,255,.75); backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.6); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); will-change: transform, opacity;
}
.hv-card--main{ inset: 6% 8% 14% 4%; background: linear-gradient(160deg, #fff, var(--color-primary-50)); padding: var(--space-6); display:flex; flex-direction:column; gap: var(--space-4); }
.hv-card--main .hv-row{ display:flex; align-items:center; gap: var(--space-3); }
.hv-card--main .hv-dot{ width: 10px; height: 10px; border-radius: 50%; background: var(--color-primary); }
.hv-card--main .hv-bar{ height: 10px; border-radius: 6px; background: var(--color-border); }
.hv-card--main .hv-bar.w-70{ width: 70%; } .hv-card--main .hv-bar.w-45{ width: 45%; } .hv-card--main .hv-bar.w-90{ width: 90%; }
.hv-card--main .hv-chart{ margin-top: auto; display:flex; align-items:flex-end; gap: 8px; height: 90px; }
.hv-card--main .hv-chart i{ flex:1; background: linear-gradient(180deg, var(--color-primary), var(--color-primary-200)); border-radius: 6px 6px 2px 2px; }

.hv-chip{
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: var(--radius-full); padding: 10px 18px 10px 12px;
  box-shadow: var(--shadow-md); font-size: .85rem; font-weight: 600; color: var(--color-text);
  border: 1px solid var(--color-border);
}
.hv-chip .ic{ width: 30px; height: 30px; border-radius: 50%; background: var(--color-primary-50); display:flex; align-items:center; justify-content:center; color: var(--color-primary); flex-shrink:0; }
.hv-chip .ic svg{ width: 16px; height: 16px; }
.hv-chip--1{ top: 4%; right: 0; }
.hv-chip--2{ bottom: 8%; left: -2%; }
.hv-chip--3{ top: 44%; right: -4%; }

/* Centring rules for the two-column .hero__grid layout only — the cinema
   hero is a left-aligned editorial lockup and must stay ranged left at every
   width, so these are scoped rather than applied to .hero__* generally. */
@media (max-width: 980px){
  .hero__grid{ grid-template-columns: 1fr; text-align: center; }
  .hero__grid .hero__lead{ margin-inline: auto; }
  .hero__grid .hero__actions{ justify-content: center; }
  .hero__grid .hero__stats{ justify-content: center; }
  .hero__visual{ margin-top: var(--space-8); }
}
@media (max-width: 560px){
  .hero__stats{ gap: var(--space-6); }
  .hv-chip--3{ display:none; }
}

/* Hero visual — real photo variant */
.hv-photo{
  position: absolute; inset: 6% 6% 10% 2%; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.6);
}
.hv-photo img{ width: 100%; height: 100%; object-fit: cover; display:block; }
.hv-photo video{
  width: 100%; height: 100%; display:block; background: #0b0c12;
  /* This clip's own captions are composed for a full 16:9 frame — cropping
     it with cover chops words in half, so it's shown uncropped instead. */
  object-fit: contain;
}
.hv-photo::after{
  content:''; position:absolute; inset:0;
  background: linear-gradient(200deg, rgba(70,142,239,.18), rgba(20,21,30,0) 45%);
}

/* Floating bokeh decoration (mirrors video's dot motion) */
.bokeh{ position:absolute; inset:0; overflow:hidden; pointer-events:none; z-index:0; }
.bokeh__dot{ position:absolute; border-radius:50%; background: radial-gradient(circle at 35% 30%, var(--color-primary-200), var(--color-primary) 75%); opacity:.55; filter: blur(1px); }
.bokeh__dot--1{ width:110px; height:110px; top:8%; left:6%; }
.bokeh__dot--2{ width:60px; height:60px; top:60%; left:14%; opacity:.4; }
.bokeh__dot--3{ width:150px; height:150px; top:20%; right:8%; opacity:.35; }
.bokeh__dot--4{ width:44px; height:44px; top:72%; right:20%; }

/* Photo panel — real-photo variant of media-panel */
.photo-panel{
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--color-border); box-shadow: var(--shadow-md);
  aspect-ratio: 4/3.2;
}
.photo-panel img{ width:100%; height:100%; object-fit:cover; display:block; }
.photo-panel__tag{
  position: absolute; top: var(--space-5); left: var(--space-5);
  background: rgba(255,255,255,.92); backdrop-filter: blur(6px);
  border-radius: var(--radius-full); padding: 8px 16px; font-size: .8rem; font-weight: 600;
  color: var(--color-primary-700); box-shadow: var(--shadow-sm);
}

/* Scene — full-bleed photo band with text overlay, mirrors video "card over photo" scenes */
.scene{
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  min-height: clamp(360px, 46vw, 560px); display: flex; align-items: flex-end;
  box-shadow: var(--shadow-lg);
}
.scene img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0; }
.scene::after{
  content:''; position:absolute; inset:0; z-index:1;
  background: linear-gradient(0deg, rgba(15,16,22,.92) 0%, rgba(15,16,22,.55) 45%, rgba(15,16,22,.1) 75%);
}
.scene__content{ position:relative; z-index:2; padding: clamp(28px,5vw,56px); color:#fff; max-width: 640px; }
.scene__content .eyebrow{ background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); color:#fff; }
.scene__content h2, .scene__content h3{ color:#fff; }
.scene__content p{ color: rgba(255,255,255,.86); margin-top: var(--space-3); }
.scene__actions{ margin-top: var(--space-6); display:flex; gap: var(--space-4); flex-wrap: wrap; }

/* ==========================================================================
   Cards / Bento
   ========================================================================== */
.bento{ display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--space-6); }
.card{
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  padding: var(--space-8); box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
  will-change: transform, opacity;
}
.card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--color-primary-200); }
.card__icon{
  width: 52px; height: 52px; border-radius: var(--radius-sm); background: var(--color-primary-50);
  color: var(--color-primary); display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-5);
}
.card__icon svg{ width: 26px; height: 26px; }
.card h3{ margin-bottom: var(--space-2); }
.card p{ color: var(--color-text-muted); }
.card__link{ display:inline-flex; align-items:center; gap:6px; margin-top: var(--space-5); font-weight:600; color: var(--color-primary-700); font-size:.9rem; }
.card__link svg{ width:16px; height:16px; transition: transform var(--dur-fast) var(--ease-out); }
.card:hover .card__link svg{ transform: translateX(4px); }

.card--feature-list{ margin-top: var(--space-5); display:flex; flex-direction:column; gap: var(--space-3); }
.card--feature-list li{ display:flex; align-items:flex-start; gap: 10px; font-size:.925rem; color: var(--color-text); }
.card--feature-list svg{ width:18px; height:18px; color: var(--color-primary); flex-shrink:0; margin-top:2px; }

.col-span-4{ grid-column: span 4; } .col-span-6{ grid-column: span 6; }
.col-span-12{ grid-column: span 12; } .col-span-3{ grid-column: span 3; }
.col-span-8{ grid-column: span 8; }
@media (max-width: 980px){
  .col-span-4, .col-span-3{ grid-column: span 6; }
  .col-span-6, .col-span-8{ grid-column: span 12; }
}
@media (max-width: 620px){
  .col-span-4, .col-span-6, .col-span-3, .col-span-8{ grid-column: span 12; }
}

/* Service block (big two-up) */
.service-block{
  display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 5vw, 64px);
  align-items: center; padding-block: var(--space-16);
}
.service-block:not(:last-child){ border-bottom: 1px solid var(--color-border); }

@media (max-width: 900px){
  .service-block{ grid-template-columns: 1fr; }
}

/* ==========================================================================
   About stats — "Nosotros". Same glass-card elevation recipe as .proc__card
   ("Cómo trabajamos", assets/css/servicios.css) — gradient glass fill, hairline
   border, layered shadow, hover lift — instead of a bare ruled list. Sits on
   .section--dark, so colours below are the dark-surface ones throughout.
   ========================================================================== */
.about-stats{
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 22px);
  margin: clamp(40px, 5vw, 64px) auto 0; max-width: 760px;
  text-align: left;
}
.about-stats__card{
  padding: clamp(20px, 2.2vw, 26px);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255,255,255,.055), rgba(255,255,255,.015));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 24px 48px -30px rgba(0,0,0,.6);
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.about-stats__card:hover{
  transform: translateY(-4px);
  border-color: rgba(70,142,239,.4);
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 30px 56px -26px rgba(70,142,239,.35);
}
.about-stats__icon{
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px;
  background: rgba(70,142,239,.14); border: 1px solid rgba(70,142,239,.32);
  color: #BFD8FC; box-shadow: 0 0 0 4px rgba(70,142,239,.1);
  margin-bottom: var(--space-4);
}
.about-stats__icon svg{ width: 20px; height: 20px; }
.about-stats__value{
  font-family: var(--font-mono); font-weight: 500; line-height: 1;
  font-size: clamp(1.8rem, 1.4rem + 1.3vw, 2.4rem); color: #fff;
  display: flex; align-items: baseline; gap: 2px; margin: 0;
}
.about-stats__value .suffix{ color: var(--color-primary-200); font-size: .58em; }
.about-stats__label{ margin: 8px 0 0; font-size: .9rem; color: var(--color-on-dark-muted); }
@media (max-width: 560px){ .about-stats{ grid-template-columns: 1fr; } }

/* ==========================================================================
   Values index — "Nuestros valores". Same glass-card treatment as
   .about-stats above, in the light-section palette. No 01-04 numbering:
   these four values are parallel, not sequential, so a number here would
   promise an order that doesn't mean anything.
   ========================================================================== */
.values-index{
  max-width: 920px; margin: clamp(36px, 5vw, 56px) auto 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 22px);
}
.values-index__row{
  text-align: left;
  padding: clamp(22px, 2.4vw, 28px);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #fff, #FAFBFF);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.values-index__row:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary-200);
}
.values-index__icon{
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: var(--radius-sm);
  background: var(--color-primary-50); border: 1px solid var(--color-primary-100); color: var(--color-primary-700);
  box-shadow: 0 0 0 5px var(--color-primary-50);
  margin-bottom: var(--space-4);
}
.values-index__icon svg{ width: 22px; height: 22px; }
.values-index__row h3{ font-size: 1.15rem; }
.values-index__row p{ margin-top: 6px; font-size: .925rem; color: var(--color-text-muted); }
@media (max-width: 720px){ .values-index{ grid-template-columns: 1fr; } }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band{
  background: linear-gradient(135deg, var(--color-primary-800), var(--color-primary) 55%, var(--color-primary-600));
  border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 80px); position: relative; overflow: hidden;
  color: #fff; text-align: center;
  box-shadow: var(--shadow-xl), inset 0 1px 0 rgba(255,255,255,.18);
}
.cta-band::before{
  content:''; position:absolute; inset:0;
  background-image: radial-gradient(circle at 20% 20%, rgba(255,255,255,.18), transparent 45%), radial-gradient(circle at 85% 85%, rgba(255,255,255,.14), transparent 50%);
}
.cta-band > *{ position: relative; z-index: 1; }
.cta-band h2{ color:#fff; }
.cta-band p{ color: rgba(255,255,255,.85); max-width: 52ch; margin: var(--space-4) auto 0; }
.cta-band__actions{ display:flex; gap: var(--space-4); justify-content:center; flex-wrap:wrap; margin-top: var(--space-8); }

/* ==========================================================================
   Community / values (dark section)
   ========================================================================== */
.value-card{
  background: rgba(255,255,255,.05); border: 1px solid var(--color-ink-border);
  border-radius: var(--radius-lg); padding: var(--space-8);
  transition: transform var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.value-card:hover{ transform: translateY(-6px); background: rgba(70,142,239,.1); border-color: rgba(70,142,239,.35); }
.value-card .card__icon{ background: rgba(70,142,239,.16); color: #A9CBFB; }
.value-card h3{ color: var(--color-on-dark); }
.value-card p{ color: var(--color-on-dark-muted); }

/* ==========================================================================
   Space / amenity cards (espacios section)
   ========================================================================== */
.space-card{
  border-radius: var(--radius-lg); overflow:hidden; border: 1px solid var(--color-border);
  background:#fff; box-shadow: var(--shadow-sm); display:flex; flex-direction:column;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.space-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--color-primary-200); }
.space-card__visual{
  position:relative; aspect-ratio: 16/10; background: linear-gradient(150deg, var(--color-primary-50), #fff);
  display:flex; align-items:center; justify-content:center; overflow:hidden;
}
.space-card__visual .grid-pattern{ mask-image: radial-gradient(circle at 50% 50%, #000, transparent 75%); }
.space-card__visual svg{
  width: 56px; height:56px; color: var(--color-primary); position:relative; z-index:1;
  transition: transform var(--dur-slow) var(--ease-spring);
}
.space-card:hover .space-card__visual svg{ transform: scale(1.1) translateY(-3px); }
.space-card__body{ padding: var(--space-6); display:flex; flex-direction:column; gap: var(--space-3); flex:1; }
.space-card__meta{ display:flex; gap: var(--space-2); flex-wrap:wrap; margin-top:auto; padding-top: var(--space-3); }
.tag{ font-size: .75rem; font-weight: 600; padding: 5px 11px; border-radius: var(--radius-full); background: var(--color-primary-50); color: var(--color-primary-700); }

.amenity{
  display:flex; align-items:center; gap: var(--space-4); padding: var(--space-5);
  border-radius: var(--radius-md); background: #fff; border:1px solid var(--color-border);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.amenity:hover{ transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--color-primary-200); }
.amenity__icon{
  width: 44px; height:44px; border-radius: var(--radius-sm);
  background: linear-gradient(150deg, var(--color-primary-100), var(--color-primary-50));
  color: var(--color-primary); display:flex; align-items:center; justify-content:center; flex-shrink:0;
  transition: transform var(--dur-base) var(--ease-spring);
}
.amenity:hover .amenity__icon{ transform: scale(1.08) rotate(-4deg); }
.amenity__icon svg{ width:22px; height:22px; }
.amenity h4{ font-family: var(--font-display); font-size: .975rem; font-weight:600; }
.amenity p{ font-size: .825rem; color: var(--color-text-muted); margin-top:2px; }

/* ==========================================================================
   Forms
   ========================================================================== */
.form-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.field{ display:flex; flex-direction:column; gap: 8px; }
.field--full{ grid-column: 1 / -1; }
.field label{ font-size: .875rem; font-weight: 600; color: var(--color-text); }
.field .required{ color: var(--color-primary); }
.field input, .field select, .field textarea{
  border: 1.5px solid var(--color-border-strong); border-radius: var(--radius-sm);
  padding: 13px 16px; background: #fff; font-size: .975rem; color: var(--color-text);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
  width: 100%;
}
.field input::placeholder, .field textarea::placeholder{ color: var(--color-text-faint); }
/* Defensive: a <select> doesn't wrap, so on a narrow viewport its longest
   option would otherwise be hard-clipped mid-word behind the native arrow
   instead of just running out of room gracefully. */
.field select{ text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
.field input:hover, .field select:hover, .field textarea:hover{ border-color: var(--color-text-faint); }
.field input:focus, .field select:focus, .field textarea:focus{
  outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 4px var(--color-primary-50);
}
.field textarea{ resize: vertical; min-height: 130px; }
.field-help{ font-size: .8rem; color: var(--color-text-faint); }
.field-error{ font-size: .8rem; color: var(--color-danger); display:none; }
.field.has-error input, .field.has-error select, .field.has-error textarea{ border-color: var(--color-danger); }
.field.has-error .field-error{ display:block; }
.field.has-error .field-help{ display:none; }
.field.is-valid input, .field.is-valid select, .field.is-valid textarea{ border-color: var(--color-success); }

/* Leading icon inside text/select inputs */
.field__control{ position: relative; }
.field__control .field__icon{
  position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--color-text-faint); pointer-events: none;
  transition: color var(--dur-fast) var(--ease-out);
}
.field__control input, .field__control select{ padding-left: 44px; }
.field:focus-within .field__icon{ color: var(--color-primary); }
.field.has-error .field__icon{ color: var(--color-danger); }
.field.is-valid .field__icon{ color: var(--color-success); }

/* Phone field — country picker (flag + dial code) fused with the national
   number input into one bordered shell, backed by flags/countries.json
   (fetched once by initPhoneField in main.js: flag, dial code and the
   digit count used for maxlength/validation all come from that file). */
.phone-field{
  position: relative; display:flex; align-items:stretch;
  border: 1.5px solid var(--color-border-strong); border-radius: var(--radius-sm); background:#fff;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.phone-field:focus-within{ border-color: var(--color-primary); box-shadow: 0 0 0 4px var(--color-primary-50); }
.field.has-error .phone-field{ border-color: var(--color-danger); }
.field.is-valid .phone-field{ border-color: var(--color-success); }

.phone-field__country{
  position: relative;
  display:flex; align-items:center; gap:7px; flex-shrink:0; cursor:pointer;
  padding: 0 12px; background:none; border: none;
  border-top-left-radius: var(--radius-sm); border-bottom-left-radius: var(--radius-sm);
  transition: background var(--dur-fast) var(--ease-out);
}
/* A border-right spanning the button's full stretched height read as a
   sliver that almost-but-not-quite touched the field's rounded corners —
   an ambiguous gap that looked like a rendering mistake rather than a
   deliberate divider. Inset short bar instead, unambiguously a divider. */
.phone-field__country::after{
  content: ''; position: absolute; top: 10px; bottom: 10px; right: 0;
  width: 1.5px; background: var(--color-border-strong);
}
.phone-field__country:hover{ background: var(--color-bg-alt); }
.phone-field__flag{ width:22px; height:16px; border-radius:3px; object-fit:cover; background: var(--color-border); flex-shrink:0; }
.phone-field__dial{ font-size: .925rem; color: var(--color-text); font-variant-numeric: tabular-nums; }
.phone-field__caret{ width:14px; height:14px; color: var(--color-text-faint); transition: transform var(--dur-fast) var(--ease-out); flex-shrink:0; }
.phone-field__country[aria-expanded="true"] .phone-field__caret{ transform: rotate(180deg); }

.phone-field__input{
  flex:1; min-width:0; border:0; background:none; padding: 13px 16px; font-size: .975rem; color: var(--color-text);
}
.phone-field__input:focus{ outline:none; }

.phone-field__dropdown{
  position:absolute; top: calc(100% + 8px); left:0; z-index: 40; width: min(320px, 90vw);
  background:#fff; border:1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-xl);
  overflow:hidden; display:flex; flex-direction:column;
  /* Shown/hidden via .is-visible (not the `hidden` attribute): an author
     rule and the UA's [hidden]{display:none} tie on specificity, and the
     author rule wins, so `display:flex` above was silently cancelling
     `dropdown.hidden = true` — the picker looked like it never closed. */
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.phone-field__dropdown.is-visible{ opacity: 1; transform: none; pointer-events: auto; }
@media (prefers-reduced-motion: reduce){ .phone-field__dropdown{ transition: none; } }
.phone-field__search{
  display:flex; align-items:center; gap:8px; padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border); color: var(--color-text-faint);
}
.phone-field__search svg{ width:16px; height:16px; flex-shrink:0; }
.phone-field__search input{ flex:1; border:0; font-size:.9rem; color: var(--color-text); background:none; }
.phone-field__search input:focus{ outline:none; }
.phone-field__list{ max-height: 260px; overflow-y:auto; }
.phone-field__option{
  display:flex; align-items:center; gap:10px; width:100%; padding: 9px var(--space-4);
  background:none; border:0; text-align:left; font-size:.875rem; color: var(--color-text); cursor:pointer;
}
.phone-field__option:hover, .phone-field__option.is-active{ background: var(--color-primary-50); }
.phone-field__option img{ width:20px; height:15px; border-radius:2px; object-fit:cover; flex-shrink:0; }
.phone-field__option span{ flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.phone-field__option small{ color: var(--color-text-faint); font-variant-numeric: tabular-nums; }
.phone-field__empty{ padding: var(--space-4); text-align:center; font-size:.85rem; color: var(--color-text-faint); }

.checkbox-field{ grid-column: 1/-1; }
.checkbox-field__row{ display:flex; align-items:flex-start; gap: 12px; }
.checkbox-field input{
  position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0;
}
.checkbox-field__box{
  flex-shrink: 0; width: 22px; height: 22px; margin-top: 1px; border-radius: 7px;
  border: 1.5px solid var(--color-border-strong); background: #fff; color: #fff; cursor: pointer;
  display:flex; align-items:center; justify-content:center;
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.checkbox-field__box svg{ width: 14px; height: 14px; opacity: 0; transform: scale(.5); transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out); }
.checkbox-field input:checked + .checkbox-field__box{ background: var(--color-primary); border-color: var(--color-primary); }
.checkbox-field input:checked + .checkbox-field__box svg{ opacity: 1; transform: scale(1); }
.checkbox-field input:focus-visible + .checkbox-field__box{ box-shadow: 0 0 0 4px var(--color-primary-50); }
.checkbox-field.has-error .checkbox-field__box{ border-color: var(--color-danger); }
.checkbox-field.has-error .field-error{ display:block; margin-top: 6px; }
.checkbox-field__text{ font-size: .85rem; color: var(--color-text-muted); font-weight: 400; }
.checkbox-field__text label{ cursor: pointer; }
.checkbox-field__text a{ color: var(--color-primary-700); text-decoration: underline; text-underline-offset: 2px; }
.checkbox-field__text a:hover{ color: var(--color-primary); }

.alert{
  display:flex; gap: 12px; align-items:flex-start; padding: 16px 18px; border-radius: var(--radius-sm);
  font-size: .925rem; margin-bottom: var(--space-6);
}
.alert svg{ width: 22px; height:22px; flex-shrink:0; }
.alert--success{ background: var(--color-success-bg); color: #146345; border: 1px solid #B9EBD5; }
.alert--error{ background: var(--color-danger-bg); color: #8C231D; border: 1px solid #F6C6C2; }

@media (max-width: 720px){ .form-grid{ grid-template-columns: 1fr; } }

/* Contact info side cards */
.contact-info-card{
  display:flex; gap: var(--space-4); align-items:flex-start; padding: var(--space-6) 0;
}
.contact-info-card:not(:last-child){ border-bottom: 1px solid var(--color-border); }
.contact-info-card__icon{ width: 46px; height:46px; border-radius: var(--radius-sm); background: var(--color-primary-50); color: var(--color-primary); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.contact-info-card__icon svg{ width:22px; height:22px; }
.contact-info-card h4{ font-family: var(--font-display); font-weight:600; font-size: 1rem; margin-bottom: 2px; }
.contact-info-card p, .contact-info-card a{ color: var(--color-text-muted); font-size: .925rem; }
.contact-info-card a:hover{ color: var(--color-primary-700); }

/* Horario — click to expand into the full week, with a live "open now /
   closed" read computed from the visitor's own clock (see initSchedule in
   main.js against the SITE_HOURS data printed into the markup below). */
.contact-info-card--schedule{ align-items: flex-start; }
.schedule-widget{ flex: 1; min-width: 0; }
.schedule-trigger{
  display:flex; align-items:center; gap: var(--space-2); margin-top: 2px;
  background:none; border:none; padding:0; font: inherit; color: var(--color-text-muted); font-size: .925rem; cursor:pointer;
}
.schedule-trigger__status{ display:inline-flex; align-items:center; gap:7px; }
.schedule-trigger__dot{ width:7px; height:7px; border-radius:50%; background: var(--color-text-faint); flex-shrink:0; }
.schedule-trigger__status.is-open .schedule-trigger__dot{ background: var(--color-success); box-shadow: 0 0 0 3px var(--color-success-bg); }
.schedule-trigger__status.is-closed .schedule-trigger__dot{ background: var(--color-danger); box-shadow: 0 0 0 3px var(--color-danger-bg); }
.schedule-trigger__chevron{ width:15px; height:15px; color: var(--color-text-faint); transition: transform var(--dur-base) var(--ease-out); flex-shrink:0; }
.schedule-trigger[aria-expanded="true"] .schedule-trigger__chevron{ transform: rotate(180deg); }
.schedule-trigger:hover .schedule-trigger__status,
.schedule-trigger:hover .schedule-trigger__chevron{ color: var(--color-primary-700); }
.schedule-panel{
  margin-top: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  overflow: hidden; background: var(--color-bg-alt);
}
.schedule-panel__list{ display:flex; flex-direction:column; }
.schedule-panel__list li{
  display:flex; align-items:center; justify-content:space-between; gap: var(--space-3);
  padding: 9px var(--space-4); font-size: .85rem; color: var(--color-text-muted);
}
.schedule-panel__list li:not(:last-child){ border-bottom: 1px solid var(--color-border); }
.schedule-panel__list li.is-today{ background:#fff; color: var(--color-text); font-weight: 600; }
.schedule-panel__list li.is-today .schedule-panel__day::after{
  content:''; display:inline-block; width:5px; height:5px; border-radius:50%; background: var(--color-primary); margin-left:7px; vertical-align:middle;
}

.map-panel{
  position: relative; border-radius: var(--radius-lg); overflow:hidden; aspect-ratio: 1/1;
  background: var(--color-bg-alt); box-shadow: var(--shadow-md);
}

/* Real embedded Google Map (no API key needed for this query-string embed
   form) with a floating "get directions" card over the bottom edge, the
   way Google/Apple Maps cards themselves look. */
.map-panel--live .map-panel__frame{
  position:absolute; inset:0; width:100%; height:100%; border:0; filter: grayscale(.15) contrast(1.05);
}
.map-panel__cta{
  position:absolute; left: var(--space-4); right: var(--space-4); bottom: var(--space-4); z-index:1;
  display:flex; align-items:center; gap: var(--space-3);
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); box-shadow: var(--shadow-lg);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.map-panel__cta:hover{ transform: translateY(-3px); box-shadow: var(--shadow-xl); }
.map-panel__cta-pin{
  flex-shrink:0; width: 38px; height:38px; border-radius:50%; background: var(--color-primary); color:#fff;
  display:flex; align-items:center; justify-content:center; box-shadow: var(--shadow-primary);
}
.map-panel__cta-pin svg{ width:19px; height:19px; }
.map-panel__cta-text{ flex:1; min-width:0; display:flex; flex-direction:column; gap:1px; }
.map-panel__cta-text strong{ font-size: .9rem; color: var(--color-text); }
.map-panel__cta-text span{ font-size: .8rem; color: var(--color-text-muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.map-panel__cta-arrow{ flex-shrink:0; width:18px; height:18px; color: var(--color-primary); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer{ background: var(--color-ink); color: var(--color-on-dark-muted); padding-block: var(--space-20) var(--space-8); }
.site-footer__grid{ display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: var(--space-10); padding-bottom: var(--space-12); }
.footer-brand__text{ margin-top: var(--space-4); max-width: 34ch; font-size: .925rem; }
.footer-social{ display:flex; gap: var(--space-3); margin-top: var(--space-6); }
.footer-social__link{
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--color-ink-border);
  display:flex; align-items:center; justify-content:center; transition: background var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast);
}
.footer-social__link svg{ width: 18px; height: 18px; }
.footer-social__link:hover{ background: var(--color-primary); border-color: var(--color-primary); transform: translateY(-3px); }
.footer-col__title{ font-family: var(--font-display); color: var(--color-on-dark); font-size: .95rem; margin-bottom: var(--space-4); }
.footer-col ul{ display:flex; flex-direction:column; gap: var(--space-3); font-size: .925rem; }
.footer-col a{ transition: color var(--dur-fast) var(--ease-out); }
.footer-col a:hover{ color: #fff; }
.footer-contact li{ display:flex; align-items:flex-start; gap: 10px; }
.footer-contact svg{ width: 18px; height: 18px; flex-shrink:0; margin-top: 2px; color: var(--color-primary); }
.footer-contact a{ word-break: break-word; }

.site-footer__bottom{
  display:flex; justify-content:space-between; align-items:center; gap: var(--space-4);
  padding-top: var(--space-8); border-top: 1px solid var(--color-ink-border); font-size: .825rem;
}
.back-to-top{
  position: fixed; right: var(--space-6); bottom: var(--space-6); z-index: 500;
  width: 44px; height:44px; border-radius:50%; background: rgba(20,22,30,.72);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--color-ink-border); color: var(--color-on-dark);
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 12px 28px -12px rgba(0,0,0,.5);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: background var(--dur-fast), transform var(--dur-fast), opacity var(--dur-fast), visibility var(--dur-fast);
}
.back-to-top.is-visible{ opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top svg{ width:18px; height:18px; }
.back-to-top:hover{ background: var(--color-primary); transform: translateY(-3px); }
@media (max-width: 640px){ .back-to-top{ right: var(--space-4); bottom: var(--space-4); } }

.footer-legal{ display:flex; gap: var(--space-5); flex-wrap: wrap; }
.footer-legal a, .footer-legal button{
  color: var(--color-on-dark-muted); transition: color var(--dur-fast) var(--ease-out);
  background: none; border: none; padding: 0; font: inherit; cursor: pointer;
}
.footer-legal a:hover, .footer-legal button:hover{ color: var(--color-on-dark); }

@media (max-width: 980px){
  .site-footer__grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px){
  .site-footer__grid{ grid-template-columns: 1fr; gap: var(--space-8); }
  .site-footer__bottom{ flex-direction: column; text-align:center; }
  .footer-legal{ justify-content: center; }
}

/* ==========================================================================
   Page hero (inner pages)
   ========================================================================== */
.page-hero{ padding-block: clamp(48px,7vw,88px) clamp(56px,7vw,96px); position:relative; overflow:hidden; }
.page-hero .container{ position:relative; z-index:1; text-align:center; }
.page-hero h1{ font-size: var(--fs-h1); margin-top: var(--space-4); }
.page-hero p{ max-width: 56ch; margin: var(--space-5) auto 0; }
.page-hero__blob{ position:absolute; top:-140px; left:50%; transform:translateX(-50%); width:640px; height:640px; border-radius:50%; background: radial-gradient(circle, rgba(70,142,239,.28), transparent 70%); filter: blur(40px); pointer-events:none; }

/* --------------------------------------------------------------------------
   Legal content — long-form prose (aviso legal, privacidad, cookies)
   -------------------------------------------------------------------------- */
.legal-content{ max-width: 72ch; margin-inline: auto; }
.legal-content > * + *{ margin-top: var(--space-5); }
.legal-content h2{ margin-top: var(--space-10); font-size: var(--fs-h3); }
.legal-content h2:first-child{ margin-top: 0; }
.legal-content p, .legal-content li{ color: var(--color-text-muted); line-height: 1.7; }
.legal-content ul, .legal-content ol{ padding-left: 1.25em; display:flex; flex-direction:column; gap: var(--space-2); }
.legal-content strong{ color: var(--color-text); }
.legal-content a{ color: var(--color-primary-700); text-decoration: underline; text-underline-offset: 3px; }
.legal-content a:hover{ color: var(--color-primary); }
.legal-content__updated{ font-size: .85rem; color: var(--color-text-faint); }

.legal-meta{
  display:grid; grid-template-columns: repeat(2,1fr); gap: var(--space-4) var(--space-8);
  background: var(--color-bg-alt); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: var(--space-6);
}
.legal-meta dt{ font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--color-text-faint); }
.legal-meta dd{ margin: 4px 0 0; font-weight: 600; color: var(--color-text); }
@media (max-width: 640px){ .legal-meta{ grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Media page hero — a photographic band for inner pages, using the same flat
   veil + text-shadow approach as the home hero rather than a heavy gradient,
   so the photograph stays readable instead of being crushed.
   -------------------------------------------------------------------------- */
.page-hero--media{
  background: var(--color-ink); color: var(--color-on-dark);
  padding-block: clamp(64px, 9vw, 120px);
}
.page-hero--media .page-hero__photo{
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.page-hero--media .page-hero__veil{
  position: absolute; inset: 0; z-index: 1;
  background: rgba(20,21,27,.72);
}
.page-hero--media .container{ z-index: 2; }
.page-hero--media h1{ color: #fff; text-shadow: 0 2px 26px rgba(10,11,16,.5); }
.page-hero--media .text-lead{ color: rgba(255,255,255,.82); text-shadow: 0 1px 16px rgba(10,11,16,.55); }
.page-hero--media .breadcrumb{ color: rgba(255,255,255,.6); }
.page-hero--media .breadcrumb a:hover{ color: #fff; }
.page-hero--media .eyebrow{
  color: rgba(255,255,255,.88); background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.18);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.page-hero--media .eyebrow::before{ background: var(--color-primary); box-shadow: 0 0 0 3px rgba(70,142,239,.28); }
.page-hero__actions{
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: var(--space-4); margin-top: var(--space-8);
}

/* Anchor chips: turn a long page into something navigable from the top
   instead of asking the visitor to scroll blind through four sections. */
.page-nav{
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3);
  margin-top: var(--space-10); padding-top: var(--space-8);
  border-top: 1px solid rgba(255,255,255,.14);
}
.page-nav a{
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--radius-full);
  font-size: .85rem; font-weight: 500; color: rgba(255,255,255,.82);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.page-nav a span{ font-family: var(--font-mono); font-size: .7rem; color: var(--color-primary); }
.page-nav a:hover{ background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.36); color: #fff; }

.breadcrumb{ display:flex; align-items:center; gap:8px; justify-content:center; font-size:.85rem; color: var(--color-text-muted); margin-bottom: var(--space-5); }
.breadcrumb a:hover{ color: var(--color-primary); }
.breadcrumb svg{ width:14px; height:14px; }

/* Big section numeral — gives the two headline services a rank and stops the
   alternating blocks reading as an undifferentiated repeat. */
.service-block__num{
  display: block; font-family: var(--font-mono); font-size: .8rem;
  letter-spacing: .18em; color: var(--color-primary);
  margin-bottom: var(--space-4);
}
.service-block__num::after{
  content: ''; display: inline-block; vertical-align: middle;
  width: 40px; height: 1px; margin-left: 14px;
  background: var(--color-primary-200);
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.mt-0{ margin-top:0 !important; }
.text-center{ text-align:center; }
.flex-center{ display:flex; align-items:center; justify-content:center; }
.divider{ height:1px; background: var(--color-border); width:100%; }

.reveal{ will-change: transform, opacity; }
.has-js .reveal,
.has-js .split-word,
.has-js .reveal-stagger > *{ opacity: 0; transform: translateY(28px); }
.has-js .reveal.reveal--fade{ transform: none; }
.has-js .reveal.reveal--scale{ transform: scale(.94); }

/* Hero lockup resting states, so nothing is briefly painted in its final
   position before the entrance timeline takes over. The headline words start
   fully below their mask rather than the shared 28px nudge. */
.has-js .hero__title .split-word{ opacity: 0; transform: translateY(110%); }
.has-js .hero--cinema .hero__kicker,
.has-js .hero__title-grad,
.has-js .hero--cinema .hero__lead,
.has-js .hero--cinema .hero__actions,
.has-js .hero__trust{ opacity: 0; }

@media (prefers-reduced-motion: reduce){
  .has-js .reveal, .has-js .split-word, .has-js .reveal-stagger > *{ opacity: 1 !important; transform: none !important; }
  .has-js .hero__title .split-word,
  .has-js .hero--cinema .hero__kicker,
  .has-js .hero__title-grad,
  .has-js .hero--cinema .hero__lead,
  .has-js .hero--cinema .hero__actions,
  .has-js .hero__trust{ opacity: 1 !important; transform: none !important; }
}

::selection{ background: var(--color-primary-200); color: var(--color-ink); }

/* ==========================================================================
   GTA VI-style scroll FX — pin / parallax / split titles / clip reveal / grain
   Enhancement layer only: every base rule below is the safe, fully-visible
   fallback (mobile, reduced motion, no-JS). The heavy positioning only turns
   on inside the desktop + motion-ok media query, so main.js never has to
   "undo" a pin — shrinking the viewport or enabling reduced motion makes the
   browser fall back to normal flow on its own.
   ========================================================================== */

/* Pinned sections (nosotros "valores", espacios "tipos de espacio",
   servicios "proceso") — a sticky-stage + scroll-progress pattern,
   generalized to N steps. */
.pin-steps{ display: flex; flex-direction: column; gap: var(--space-8); }
.pin-step{ opacity: 1; transform: none; }
.pin-dots{ display: none; }

@media (min-width: 768px) and (prefers-reduced-motion: no-preference){
  .pin[data-pin]{ height: calc(100vh + var(--pin-steps, 4) * 60vh); }
  .pin__stage{
    position: sticky; top: 0; height: 100vh; height: 100dvh;
    display: flex; flex-direction: column; justify-content: center; overflow: hidden;
  }
  .pin-steps{
    position: relative; display: block; min-height: clamp(260px, 32vw, 380px);
  }
  .pin-step{
    position: absolute; inset: 0; margin: auto; max-width: 620px; height: fit-content;
    display: flex; align-items: center;
    opacity: 0; transform: translateY(28px) scale(.97); pointer-events: none;
    transition: opacity .55s var(--ease-out), transform .55s var(--ease-out);
  }
  .pin-step > *{ width: 100%; }
  .pin-step.is-active{ position: relative; opacity: 1; transform: none; pointer-events: auto; }
  .pin-dots{
    display: flex; align-items: center; justify-content: center; gap: 10px;
    margin-top: var(--space-10);
  }
  .pin-dot{
    width: 8px; height: 8px; border-radius: 50%; background: var(--color-border-strong);
    transition: background var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
  }
  .pin-dot.is-active{ background: var(--color-primary); transform: scale(1.35); }
  .section--dark .pin-dot, .pin-dots--on-dark .pin-dot{ background: rgba(255,255,255,.28); }
  .section--dark .pin-dot.is-active, .pin-dots--on-dark .pin-dot.is-active{ background: var(--color-primary); }
}

/* Parallax — background media drifts opposite the scroll, independent of
   the surrounding text; --parallax is written per-frame by main.js. */
[data-parallax]{ --parallax: 0px; }
@media (min-width: 768px) and (prefers-reduced-motion: no-preference){
  [data-parallax]{
    transform: translate3d(0, var(--parallax), 0) scale(1.12);
    will-change: transform;
  }
}

/* Cinematic split-word titles — .split-word itself (hidden state, reduced-
   motion override) already exists for the hero; .split-line is the overflow
   mask each word rises out of. */
.split-line{ display: inline-block; overflow: hidden; vertical-align: top; }

/* Clip-path reveal — mask expands in instead of a hard cut. */
[data-clip]{ transition: clip-path 1s var(--ease-out); }
[data-clip="circle"]{ clip-path: circle(0% at 50% 50%); }
[data-clip="circle"].is-revealed{ clip-path: circle(150% at 50% 50%); }
[data-clip="diagonal"]{ clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); }
[data-clip="diagonal"].is-revealed{ clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
@media (prefers-reduced-motion: reduce){
  [data-clip]{ transition: none; clip-path: none !important; }
}

/* Film grain / vignette — very faint noise overlay, purely decorative.
   Deliberately does NOT set position here: .grain is meant to be applied to
   elements that are already positioned, since a same-specificity
   `position: relative` declared later in the file would win the cascade and
   silently clobber whatever positioning the host element depends on. */
.grain::after{
  content: ''; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
}

/* ==========================================================================
   Cookie consent — bottom banner + preferences modal
   ========================================================================== */
.cookie-banner{
  position: fixed; left: var(--space-5); right: var(--space-5); bottom: var(--space-5);
  z-index: 850; max-width: 760px; margin-inline: auto;
  background: rgba(20,21,27,.92); color: var(--color-on-dark);
  border: 1px solid var(--color-ink-border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
  padding: var(--space-6);
  opacity: 0; transform: translateY(24px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
  pointer-events: none;
}
.cookie-banner.is-visible{ opacity: 1; transform: none; pointer-events: auto; }
.cookie-banner__inner{ display:flex; flex-wrap: wrap; align-items:center; gap: var(--space-5); }
.cookie-banner__lead{ display:flex; align-items:flex-start; gap: var(--space-4); flex: 1 1 320px; }
.cookie-banner__icon{
  flex-shrink: 0; display:flex; align-items:center; justify-content:center;
  width: 40px; height: 40px; border-radius: var(--radius-md);
  background: rgba(70,142,239,.16); color: var(--color-primary-200);
}
.cookie-banner__icon svg{ width: 20px; height: 20px; }
.cookie-banner__text{ flex: 1 1 auto; min-width: 0; }
.cookie-banner__title{ margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: #fff; }
.cookie-banner__text p{ margin: 0; }
.cookie-banner__text p + p{ margin-top: 6px; font-size: .875rem; color: var(--color-on-dark-muted); }
.cookie-banner__text a{ color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner__actions{ display:flex; flex-wrap: wrap; gap: var(--space-3); }

.cookie-modal{
  position: fixed; inset: 0; z-index: 950;
  display: flex; align-items: center; justify-content: center; padding: var(--space-5);
  opacity: 0; pointer-events: none; transition: opacity var(--dur-base) var(--ease-out);
}
.cookie-modal.is-visible{ opacity: 1; pointer-events: auto; }
.cookie-modal__backdrop{ position:absolute; inset:0; background: rgba(10,11,16,.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
/* Dark glass panel — same recipe as .cookie-banner (the object this modal
   opens from) instead of the flat white card it used to be, so the two read
   as one piece rather than a dark trigger opening an unrelated light dialog.
   isolation: isolate + the glow pseudo's negative z-index keeps the glow
   behind real content without needing position/z-index on every child. */
.cookie-modal__panel{
  position: relative; isolation: isolate; overflow: hidden auto;
  width: 100%; max-width: 560px; max-height: 88vh;
  background: rgba(20,21,27,.94);
  backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--color-ink-border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-xl);
  padding: var(--space-10) var(--space-8) var(--space-8);
  color: var(--color-on-dark);
  transform: scale(.96) translateY(8px); transition: transform var(--dur-base) var(--ease-out);
}
.cookie-modal__panel::before{
  content:''; position:absolute; inset:0; z-index:-1; pointer-events:none;
  background-image: radial-gradient(circle at 10% -8%, rgba(70,142,239,.32), transparent 46%),
                     radial-gradient(circle at 106% 96%, rgba(70,142,239,.2), transparent 50%);
}
.cookie-modal.is-visible .cookie-modal__panel{ transform: none; }
.cookie-modal__close{
  position: absolute; top: var(--space-4); right: var(--space-4);
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.22);
  display:flex; align-items:center; justify-content:center; color: var(--color-on-dark-muted);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.cookie-modal__close svg{ width: 16px; height: 16px; }
.cookie-modal__close:hover{ background: rgba(255,255,255,.1); color: #fff; }

.cookie-modal__intro{ display: flex; align-items: flex-start; gap: var(--space-4); }
.cookie-modal__intro-body{ min-width: 0; }
.cookie-modal__icon{
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  border-radius: var(--radius-md); background: rgba(70,142,239,.16);
  border: 1px solid rgba(70,142,239,.3); color: #BFD8FC;
}
.cookie-modal__icon svg{ width: 26px; height: 26px; }
/* Reuses .eyebrow's shape/type (style.css, ~L192) — only the color trio
   changes, matching .section--dark .eyebrow's dark-surface values exactly
   rather than inventing a new tint. */
.cookie-modal__eyebrow{
  margin-bottom: var(--space-3);
  color: #BFD8FC; background: rgba(70,142,239,.14); border-color: rgba(70,142,239,.3);
}
.cookie-modal__eyebrow::before{ box-shadow: 0 0 0 3px rgba(70,142,239,.22); }
.cookie-modal__panel h2{ font-size: var(--fs-h3); padding-right: var(--space-8); color: #fff; }
.cookie-modal__intro p{ margin-top: var(--space-3); color: var(--color-on-dark-muted); font-size: .925rem; }

.cookie-option{
  display: flex; align-items: flex-start; gap: var(--space-4);
  margin-top: var(--space-5); padding: var(--space-5);
  background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-md);
  transition: background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.cookie-option:hover{ background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.02)); border-color: rgba(70,142,239,.35); }
.cookie-option__icon{
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); color: var(--color-primary-200);
}
.cookie-option__icon svg{ width: 20px; height: 20px; }
.cookie-option__body{ flex: 1 1 auto; min-width: 0; }
.cookie-option__head{ display:flex; align-items:center; justify-content:space-between; gap: var(--space-4); }
.cookie-option__title{ font-weight: 600; color: #fff; }
.cookie-option__badge{
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--color-on-dark-muted); background: rgba(255,255,255,.08);
  padding: 3px 9px; border-radius: var(--radius-full);
}
.cookie-option p{ margin-top: 6px; font-size: .875rem; color: var(--color-on-dark-muted); }

.cookie-modal__note{
  display: flex; align-items: flex-start; gap: var(--space-3);
  margin-top: var(--space-6); padding: var(--space-4);
  border: 1px dashed rgba(255,255,255,.18); border-radius: var(--radius-sm); background: rgba(255,255,255,.02);
  font-size: .8rem; line-height: 1.55; color: var(--color-on-dark-muted);
}
.cookie-modal__note svg{ width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }
.cookie-modal__footer-link{ margin-top: var(--space-5); text-align: center; font-size: .825rem; }
.cookie-modal__footer-link a{ color: var(--color-primary-200); text-decoration: underline; text-underline-offset: 2px; }
.cookie-modal__footer-link a:hover{ color: #fff; }

.cookie-toggle{ position: relative; display: inline-block; width: 40px; height: 23px; flex-shrink: 0; }
.cookie-toggle input{ position:absolute; opacity:0; width:1px; height:1px; margin:0; }
.cookie-toggle__track{
  position:absolute; inset:0; border-radius: var(--radius-full); background: rgba(255,255,255,.16); cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out);
}
.cookie-toggle__thumb{
  position:absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius:50%; background:#fff; box-shadow: var(--shadow-sm);
  transition: transform var(--dur-fast) var(--ease-out);
}
.cookie-toggle input:checked + .cookie-toggle__track{ background: var(--color-primary); }
.cookie-toggle input:checked + .cookie-toggle__track .cookie-toggle__thumb{ transform: translateX(17px); }
.cookie-toggle input:focus-visible + .cookie-toggle__track{ box-shadow: 0 0 0 4px rgba(70,142,239,.35); }

.cookie-modal__actions{ display:flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.cookie-modal__actions .btn{ flex: 1 1 auto; }

/* Legal pages (aviso legal, privacidad, cookies) opened as a popup — same
   overlay mechanics as .cookie-modal, wider panel since it holds full
   prose. .legal-modal__content reuses .legal-content itself (see "Legal
   content" above) so the fetched fragment is styled identically whether
   read here or on its own page. */
.legal-modal{
  position: fixed; inset: 0; z-index: 950;
  display: flex; align-items: center; justify-content: center; padding: var(--space-5);
  opacity: 0; pointer-events: none; transition: opacity var(--dur-base) var(--ease-out);
}
.legal-modal.is-visible{ opacity: 1; pointer-events: auto; }
.legal-modal__backdrop{ position:absolute; inset:0; background: rgba(10,11,16,.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.legal-modal__panel{
  position: relative; width: 100%; max-width: 720px; max-height: 85vh; overflow-y: auto;
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-xl);
  padding: var(--space-8);
  transform: scale(.96) translateY(8px); transition: transform var(--dur-base) var(--ease-out);
}
.legal-modal.is-visible .legal-modal__panel{ transform: none; }
.legal-modal__close{
  position: absolute; top: var(--space-4); right: var(--space-4);
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--color-border-strong);
  display:flex; align-items:center; justify-content:center; color: var(--color-text-muted);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.legal-modal__close svg{ width: 16px; height: 16px; }
.legal-modal__close:hover{ background: var(--color-bg-alt); color: var(--color-text); }
.legal-modal__title{ font-size: var(--fs-h3); padding-right: var(--space-8); }
.legal-modal__content{ margin-top: var(--space-6); }
.legal-modal__content .legal-meta{ font-size: .95rem; }

body:has(.cookie-modal.is-visible), body:has(.legal-modal.is-visible){ overflow: hidden; }

@media (max-width: 620px){
  .cookie-banner{ left: var(--space-3); right: var(--space-3); bottom: var(--space-3); padding: var(--space-5); }
  .cookie-banner__actions{ width: 100%; }
  .cookie-banner__actions .btn{ flex: 1 1 auto; }
  .legal-modal__panel{ padding: var(--space-6); max-height: 90vh; }
  .cookie-modal__panel{ padding: var(--space-8) var(--space-5) var(--space-6); max-height: 90vh; }
  .cookie-option{ padding: var(--space-4); }
  .cookie-option__head{ flex-wrap: wrap; row-gap: 4px; }
}
@media (prefers-reduced-motion: reduce){
  .cookie-banner, .cookie-modal, .cookie-modal__panel, .legal-modal, .legal-modal__panel{ transition: none; }
}
