/* Adarian Resolve · hoja de estilos
   Dirección de arte: un dossier privado. Capítulos que alternan tinta y papel, titulares editoriales
   a gran escala, filetes finos, referencias en monoespaciada y dibujos arquitectónicos.
   El bronce se usa como metal: en filetes y detalles, nunca en degradados de relleno.
   Todo el movimiento se desactiva con «reducir movimiento». */

/* Tipografías alojadas en el propio servidor */
@font-face { font-family: "AR Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("../fonts/newsreader.woff2") format("woff2"); }
@font-face { font-family: "AR Newsreader"; font-style: italic; font-weight: 200 800; font-display: swap; src: url("../fonts/newsreader-italic.woff2") format("woff2"); }
@font-face { font-family: "AR Hanken"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("../fonts/hanken-grotesk.woff2") format("woff2"); }
@font-face { font-family: "AR Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-mono-400.woff2") format("woff2"); }
@font-face { font-family: "AR Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono-500.woff2") format("woff2"); }
@font-face { font-family: "AR Marcellus"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/marcellus.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --ink: #0a111d;
  --ink-2: #0f1828;
  --ink-3: #172234;
  --ink-deep: #070c15;
  --bone: #f2f1ee;
  --bone-2: #e8e6e1;
  --text-dark: #141b27;
  --slate: #586070;
  --mist: #a7afbc;
  --mist-2: #7f8898;
  --bronze: #b89462;
  --bronze-hi: #dcc29a;
  --bronze-deep: #84663a;
  --alert: #b8513a;
  --wa: #25d366;

  --f-display: "AR Newsreader", "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --f-text: "AR Hanken", "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "AR Plex Mono", "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --f-mark: "AR Marcellus", "Marcellus", Georgia, serif;

  --gutter: max(clamp(20px, 5vw, 64px), env(safe-area-inset-left, 0px));
  --gutter-r: max(clamp(20px, 5vw, 64px), env(safe-area-inset-right, 0px));
  --maxw: 1320px;
  --section: clamp(96px, 11vw, 176px);
  --header-h: 84px;
  --ease: cubic-bezier(.22, .61, .24, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);

  interpolate-size: allow-keywords;
}

/* Dos tonos de capítulo: cada componente toma sus colores de estas variables */
.tone-dark {
  --bg: var(--ink);
  --fg: #eceae5;
  --fg-2: var(--mist);
  --fg-3: var(--mist-2);
  --rule: rgba(220, 194, 154, .18);
  --rule-2: rgba(236, 234, 229, .08);
  --accent: var(--bronze);
  --accent-text: var(--bronze-hi);
  background-color: var(--bg);
  color: var(--fg);
}
.tone-light {
  --bg: var(--bone);
  --fg: var(--text-dark);
  --fg-2: #3a4250;
  --fg-3: var(--slate);
  --rule: rgba(20, 27, 39, .18);
  --rule-2: rgba(20, 27, 39, .08);
  --accent: var(--bronze-deep);
  --accent-text: var(--bronze-deep);
  background-color: var(--bg);
  color: var(--fg);
  color-scheme: light;
}

[data-i="1"] { --i: 1; } [data-i="2"] { --i: 2; } [data-i="3"] { --i: 3; } [data-i="4"] { --i: 4; }
[data-i="5"] { --i: 5; } [data-i="6"] { --i: 6; } [data-i="7"] { --i: 7; } [data-i="8"] { --i: 8; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: #eceae5;
  font-family: var(--f-text);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
/* Grano de papel: evita el aspecto plano de los fondos digitales */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  background-image: url("../img/grano.png");
  opacity: .55;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--ink);
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 1.5px solid var(--bronze-hi); outline-offset: 4px; }
.tone-light :focus-visible { outline-color: var(--bronze-deep); }
::selection { background: var(--bronze-hi); color: var(--ink); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -80px; z-index: 100; padding: 12px 18px; background: var(--bone); color: var(--ink); text-decoration: none; font-weight: 500; }
.skip-link:focus { top: 16px; }
svg:not(.brand-mark) { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
section { scroll-margin-top: 72px; }

/* Tipografía */
.label {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.display {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(3.25rem, 1.4rem + 6.4vw, 7.6rem);
  line-height: .96;
  letter-spacing: -0.028em;
}
.h2 {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(2.5rem, 1.5rem + 3.4vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.h2 .muted, .interlude-quote span { color: var(--fg-3); }
.h2 .muted { display: block; }
.lede { font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.6; color: var(--fg-2); max-width: 46ch; }
.ref { font-family: var(--f-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text); }
.footnote { margin-top: 28px; font-size: 0.875rem; color: var(--fg-3); max-width: 80ch; }

/* Botones y enlaces */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  padding: 0 28px;
  font: 500 0.975rem/1 var(--f-text);
  letter-spacing: 0.005em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: color .45s var(--ease), border-color .45s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .6s var(--ease);
}
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn svg { width: 18px; height: 18px; stroke-width: 1.6; transition: transform .45s var(--ease); }
.btn:hover svg { transform: translateX(5px); }
.btn-solid { background: var(--bone); color: var(--ink); }
.btn-solid::before { background: var(--bronze-hi); }
.tone-light .btn-solid, .form .btn-solid { background: var(--ink); color: var(--bone); }
.tone-light .btn-solid::before, .form .btn-solid::before { background: #22304a; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 0.875rem; }
.btn[disabled] { opacity: .6; cursor: wait; }

.link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 8px;
  font-weight: 500;
  font-size: 0.975rem;
  color: var(--fg);
  text-decoration: none;
  background:
    linear-gradient(currentColor, currentColor) left bottom / 0% 1px no-repeat,
    linear-gradient(var(--rule), var(--rule)) left bottom / 100% 1px no-repeat;
  transition: background-size .6s var(--ease);
}
.link:hover { background-size: 100% 1px, 100% 1px; }
.link svg { width: 18px; height: 18px; stroke-width: 1.6; transition: transform .45s var(--ease); }
.link:hover svg { transform: translateX(5px); }

/* Marca */
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.brand-mark { width: 44px; height: 30px; flex: none; overflow: visible; }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--f-mark); font-size: 1.28rem; letter-spacing: 0.14em; color: #f1efea; }
.brand-sub { font-family: var(--f-mark); font-size: 0.58rem; letter-spacing: 0.56em; color: var(--bronze-hi); margin-top: 5px; padding-left: 0.2em; }
.mark-anim polygon { transition: transform .9s cubic-bezier(.2, .75, .15, 1), opacity .7s ease; }
.brand:hover .mark-anim .b1 { transform: translate(16px, -12px); }
.brand:hover .mark-anim .b3 { transform: translate(-16px, 12px); }
html.intro-done .mark-anim polygon, .brand:hover .mark-anim polygon { transition-delay: 0s; }

/* Cabecera */
.site-header {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  left: 0;
  right: 0;
  z-index: 50;
  color: #eceae5;
  border-bottom: 1px solid transparent;
  transition: background-color .5s var(--ease), border-color .5s var(--ease), transform .55s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(10, 17, 29, .88);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: rgba(220, 194, 154, .14);
}
.site-header.is-hidden { transform: translateY(calc(-100% - env(safe-area-inset-top, 0px) - 2px)); }
.site-header:focus-within { transform: none; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 32px; height: var(--header-h); transition: height .45s var(--ease); }
.site-header.is-scrolled .header-row { height: 68px; }
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--bronze); transform-origin: left; transform: scaleX(0); pointer-events: none; }
.nav { display: flex; align-items: center; gap: 40px; }
.nav-links { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { position: relative; display: inline-block; padding-block: 6px; text-decoration: none; font-size: 0.9rem; color: rgba(236, 234, 229, .68); transition: color .3s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--bronze-hi); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav-links a:hover, .nav-links a.is-active { color: #fff; }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-aside { display: flex; align-items: center; gap: 22px; }
.nav-phone { font-family: var(--f-mono); font-size: 0.8rem; letter-spacing: .04em; color: var(--bronze-hi); text-decoration: none; }
.nav-phone:hover { color: #fff; }
.nav-wa { display: none; align-items: center; gap: 10px; text-decoration: none; }
.nav-wa svg { width: 22px; height: 22px; color: var(--wa); }
.menu-toggle {
  display: none;
  width: 46px; height: 46px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid rgba(236, 234, 229, .22);
  color: #eceae5;
  cursor: pointer;
}
.menu-toggle svg { width: 22px; height: 22px; }

/* Portada */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(56px, 8vw, 120px));
  padding-bottom: clamp(40px, 5vw, 64px);
  background:
    radial-gradient(1100px 680px at 82% 28%, rgba(42, 60, 92, .55) 0%, transparent 62%),
    radial-gradient(900px 600px at 0% 100%, rgba(22, 34, 54, .9) 0%, transparent 60%),
    var(--ink);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(40px, 6vw, 104px); align-items: end; }
.hero-copy { display: grid; gap: 30px; justify-items: start; }
.hero .display { margin-top: 4px; max-width: 9.5em; }
.hero-lede { font-size: clamp(1.0625rem, 1rem + .35vw, 1.3rem); line-height: 1.55; color: var(--fg-2); max-width: 44ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 36px; padding-top: 10px; }
.hero-figure { position: relative; margin: 0; isolation: isolate; }
.hero-frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ink-2); }
.hero-frame img { position: absolute; left: 0; top: -6%; width: 100%; height: 112%; object-fit: cover; object-position: 24% 50%; filter: saturate(.82) contrast(1.06) brightness(.92); animation: settle 2.6s var(--ease) both; }
.hero-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 17, 29, 0) 55%, rgba(10, 17, 29, .55) 100%); }
.hero-figure::before { content: ""; position: absolute; inset: 0; z-index: -1; border: 1px solid rgba(184, 148, 98, .45); transform: translate(18px, 18px); }
.hero-figure figcaption { display: flex; justify-content: space-between; gap: 16px; margin-top: 30px; font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); }
.hero-rail { margin: clamp(64px, 8vw, 112px) 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.hero-rail > div { padding: 24px 24px 0 0; }
.hero-rail > div + div { padding-left: 24px; border-left: 1px solid var(--rule-2); }
.hero-rail dt { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); }
.hero-rail dd { margin: 10px 0 0; font-family: var(--f-display); font-size: 1.45rem; font-weight: 400; line-height: 1.2; color: var(--fg); }
@keyframes settle { from { transform: scale(1.08); } to { transform: scale(1); } }

/* Compromiso */
.statement { padding-block: var(--section); }
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.col-label { grid-column: 1 / 4; padding-top: 14px; }
.col-main { grid-column: 4 / 13; }
.statement-text { font-family: var(--f-display); font-weight: 300; font-size: clamp(1.75rem, 1.05rem + 2vw, 3rem); line-height: 1.22; letter-spacing: -0.012em; color: var(--fg); text-wrap: pretty; }
.signature { margin-top: 36px; font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3); }
.signature::before { content: "— "; }
.figures { margin: clamp(64px, 8vw, 112px) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.figures > div { padding: 30px 32px 0 0; }
.figures > div + div { padding-left: 32px; border-left: 1px solid var(--rule-2); }
.figures dt { display: flex; align-items: flex-start; gap: 12px; }
.figures .num { font-family: var(--f-display); font-weight: 300; font-size: clamp(3.6rem, 2.4rem + 3.4vw, 6rem); line-height: .85; letter-spacing: -0.03em; font-variant-numeric: lining-nums; }
.figures .unit { margin-top: 10px; font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text); }
.figures dd { margin: 22px 0 0; font-size: 0.98rem; color: var(--fg-2); max-width: 28ch; }

/* Cabeceras de capítulo */
.sec-head { display: grid; gap: 26px; justify-items: start; margin-bottom: clamp(56px, 7vw, 104px); max-width: 980px; }
.sec-head.split { max-width: none; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; gap: 36px 24px; }
.sec-head.split .sec-head-main { grid-column: 1 / 11; }
.sec-head.split > .lede { grid-column: 7 / 13; }
.sec-head-main { display: grid; gap: 26px; justify-items: start; }

/* Para quién */
.audience { padding-block: var(--section); }
.panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.panel { display: grid; grid-template-rows: auto 1fr; padding: 48px clamp(28px, 4vw, 64px) 56px 0; }
.panel + .panel { padding: 48px 0 56px clamp(28px, 4vw, 64px); border-left: 1px solid var(--rule); }
.panel-drawing { aspect-ratio: 420 / 300; margin-bottom: 44px; }
.panel-body { display: grid; gap: 20px; align-content: start; justify-items: start; }
.panel-body h3 { font-family: var(--f-display); font-weight: 300; font-size: clamp(2rem, 1.5rem + 1.2vw, 2.75rem); line-height: 1.05; letter-spacing: -0.015em; }
.panel-body > p:not(.ref) { color: var(--fg-2); max-width: 48ch; }
.ticks { list-style: none; margin: 6px 0 10px; padding: 0; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: baseline; font-size: 0.975rem; color: var(--fg); }
.ticks li::before { content: ""; height: 1px; background: var(--accent); transform: translateY(-4px); }

.elev { display: block; width: 100%; height: 100%; }
.elev path { fill: none; stroke: var(--bronze-hi); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.elev .thin { stroke-opacity: .5; }
.elev .dim { stroke-opacity: .4; }
.elev .ewin { fill: rgba(220, 194, 154, 0); stroke-opacity: .85; transition: fill .6s ease calc(var(--w, 0) * 22ms); }
.panel:hover .elev .ewin { fill: rgba(220, 194, 154, .82); }
.elev text { fill: var(--fg-3); stroke: none; font-family: var(--f-mono); font-size: 7.5px; letter-spacing: .14em; }

.types { margin-top: clamp(72px, 9vw, 128px); display: grid; grid-template-columns: minmax(0, .32fr) minmax(0, 1fr); gap: 32px 48px; }
.types-title { font-family: var(--f-display); font-weight: 300; font-size: 1.75rem; line-height: 1.15; }
.types-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; border-top: 1px solid var(--rule); }
.types-list li { padding: 22px 0; border-bottom: 1px solid var(--rule-2); display: grid; gap: 6px; }
.types-list span { font-family: var(--f-display); font-size: 1.25rem; line-height: 1.25; color: var(--fg); }
.types-list small { font-size: 0.9rem; color: var(--fg-3); }

/* Método */
.method { padding-block: var(--section); }
.plan { --text-col: minmax(0, 1fr); --track-col: minmax(0, 1.25fr); border-top: 1px solid var(--rule); }
.plan-scale, .phase { display: grid; grid-template-columns: var(--text-col) var(--track-col); gap: 0 56px; }
.plan-scale { padding-block: 18px 16px; border-bottom: 1px solid var(--rule-2); }
.scale-label { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); align-self: end; }
.weeks { display: grid; grid-template-columns: repeat(8, 1fr); font-family: var(--f-mono); font-size: 0.7rem; color: var(--fg-3); }
.weeks .month { grid-row: 1; grid-column: span 4; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text); padding-bottom: 8px; border-bottom: 1px solid var(--rule); margin-right: 10px; }
.weeks .month + .month { margin-right: 0; }
.weeks span:not(.month) { grid-row: 2; padding-top: 8px; }
.phases { list-style: none; margin: 0; padding: 0; }
.phase { padding-block: 30px; border-bottom: 1px solid var(--rule-2); align-items: center; }
.phase-text { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 6px 12px; }
.phase-num { font-family: var(--f-mono); font-size: 0.8rem; letter-spacing: .08em; color: var(--accent-text); padding-top: 9px; }
.phase h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.6rem; line-height: 1.15; }
.phase p { grid-column: 2; color: var(--fg-2); font-size: 0.975rem; max-width: 50ch; }
.phase-when { grid-column: 2; font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text); display: none; }
.phase[data-span="1-1"] { --from: 1; --to: 1; }
.phase[data-span="1-2"] { --from: 1; --to: 2; }
.phase[data-span="2-6"] { --from: 2; --to: 6; }
.phase[data-span="6-7"] { --from: 6; --to: 7; }
.phase[data-span="7-8"] { --from: 7; --to: 8; }
.phase[data-span="1-8"] { --from: 1; --to: 8; }
.track {
  position: relative;
  height: 12px;
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(12.5% - 1px), var(--rule-2) calc(12.5% - 1px) 12.5%),
    linear-gradient(var(--rule), var(--rule));
  background-size: 100% 100%, 100% 1px;
  background-position: 0 0, 0 50%;
  background-repeat: no-repeat;
}
.track-bar {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: calc((var(--from) - 1) * 12.5%);
  width: calc((var(--to) - var(--from) + 1) * 12.5%);
  background: var(--fg);
  transform-origin: left center;
  transition: transform 1.4s var(--ease-io);
  transition-delay: calc(.3s + var(--i, 0) * .1s);
}
.phase.total { border-bottom: 0; }
.phase.total h3 { color: var(--accent-text); }
.phase.total .track-bar { background: var(--accent); top: 2px; bottom: 2px; }
.start {
  margin-top: clamp(64px, 8vw, 104px);
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 32px 64px;
  padding: clamp(32px, 4vw, 56px);
  background: var(--bone-2);
}
.start > div { display: grid; gap: 18px; align-content: start; }
.start h3 { font-family: var(--f-display); font-weight: 300; font-size: clamp(1.7rem, 1.3rem + 1vw, 2.3rem); line-height: 1.12; }
.start-list { list-style: none; margin: 0; padding: 0; display: grid; }
.start-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding-block: 16px; border-bottom: 1px solid var(--rule-2); font-size: 1.02rem; }
.start-list li:first-child { padding-top: 0; }
.start-list small { display: block; color: var(--fg-3); font-size: 0.9rem; margin-top: 2px; }

/* Garantías */
.guarantees { padding-block: var(--section); }
.g-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.g-list li { padding: 32px 32px 0 0; display: grid; gap: 14px; align-content: start; }
.g-list li + li { padding-left: 32px; border-left: 1px solid var(--rule-2); }
.roman { font-family: var(--f-display); font-style: italic; font-weight: 300; font-size: 3rem; line-height: 1; color: var(--accent-text); }
.g-list h3 { margin-top: 18px; font-family: var(--f-display); font-weight: 400; font-size: 1.55rem; }
.g-list p { color: var(--fg-2); font-size: 0.975rem; }
.compare { margin-top: clamp(80px, 10vw, 136px); }
.compare-title { font-family: var(--f-display); font-weight: 300; font-size: clamp(1.8rem, 1.4rem + 1vw, 2.4rem); margin-bottom: 32px; }
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td { text-align: left; padding: 24px 26px; vertical-align: top; border-bottom: 1px solid var(--rule-2); }
.compare-table thead th { font-family: var(--f-mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); padding-block: 0 16px; border-bottom-color: var(--rule); }
.compare-table thead th.us { color: var(--accent-text); }
.compare-table tbody th { width: 24%; font-family: var(--f-display); font-weight: 400; font-size: 1.3rem; color: var(--fg); padding-left: 0; }
.compare-table td { width: 38%; color: var(--fg-2); }
.compare-table td.us { color: var(--fg); background: rgba(220, 194, 154, .045); border-left: 1px solid var(--rule); border-right: 1px solid var(--rule); }
.compare-table td.us b { display: block; margin-bottom: 4px; font-family: var(--f-display); font-weight: 400; font-size: 1.3rem; color: var(--accent-text); }
.compare-table tbody tr:last-child td.us { border-bottom-color: var(--rule); }

/* Patrimonio e inversión */
.wealth { padding-block: var(--section); }
.cycle { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: 40px 64px; align-items: center; }
.cycle-tabs { display: grid; border-top: 1px solid var(--rule); }
.cycle-tab {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 6px 12px;
  padding: 24px 0;
  font: inherit;
  color: inherit;
  text-align: left;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--rule-2);
  cursor: pointer;
}
.cycle-tab .n { grid-row: span 2; font-family: var(--f-mono); font-size: 0.8rem; color: var(--fg-3); padding-top: 9px; transition: color .3s; }
.cycle-tab .t { font-family: var(--f-display); font-weight: 400; font-size: 1.65rem; line-height: 1.15; color: var(--fg-3); transition: color .3s; }
.cycle-tab .d { grid-column: 2; font-size: 0.95rem; color: var(--fg-3); transition: color .3s; }
.cycle-tab:hover .t { color: var(--fg); }
.cycle-tab[aria-selected="true"] .n { color: var(--accent-text); }
.cycle-tab[aria-selected="true"] .t { color: var(--fg); }
.cycle-tab[aria-selected="true"] .d { color: var(--fg-2); }
.cycle-tab .bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; overflow: hidden; }
.cycle-tab .bar::after { content: ""; position: absolute; inset: 0; background: var(--fg); transform: scaleX(0); transform-origin: left; }
.cycle-tab[aria-selected="true"] .bar::after { transform: scaleX(1); }
.cycle-tab.run .bar::after { animation: fillbar 6.5s linear both; }
.cycle.paused .cycle-tab.run .bar::after { animation-play-state: paused; }
@keyframes fillbar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.cycle-stage {
  position: relative;
  margin: 0;
  aspect-ratio: 600 / 460;
  overflow: hidden;
  background: radial-gradient(80% 70% at 55% 45%, #fbfaf8 0%, var(--bone-2) 100%);
  border: 1px solid var(--rule);
}
.cycle-stage::after {
  content: "";
  position: absolute;
  inset: 12px;
  pointer-events: none;
  opacity: .5;
  background:
    linear-gradient(var(--fg), var(--fg)) left top / 12px 1px no-repeat,
    linear-gradient(var(--fg), var(--fg)) left top / 1px 12px no-repeat,
    linear-gradient(var(--fg), var(--fg)) right top / 12px 1px no-repeat,
    linear-gradient(var(--fg), var(--fg)) right top / 1px 12px no-repeat,
    linear-gradient(var(--fg), var(--fg)) left bottom / 12px 1px no-repeat,
    linear-gradient(var(--fg), var(--fg)) left bottom / 1px 12px no-repeat,
    linear-gradient(var(--fg), var(--fg)) right bottom / 12px 1px no-repeat,
    linear-gradient(var(--fg), var(--fg)) right bottom / 1px 12px no-repeat;
}
.stage-meta { position: absolute; top: 22px; left: 26px; right: 26px; display: flex; justify-content: space-between; gap: 16px; font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); pointer-events: none; }
.stage-status { position: absolute; left: 26px; bottom: 24px; display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; background: rgba(251, 250, 248, .9); border: 1px solid var(--rule); font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg); }
.stage-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.cycle-note { display: none; color: var(--fg-2); font-size: 0.975rem; }

.iso { position: absolute; inset: 0; width: 100%; height: 100%; }
.iso * { vector-effect: non-scaling-stroke; }
.iso .gl { stroke: rgba(20, 27, 39, .08); stroke-width: 1; }
.iso .shadow { fill: rgba(20, 27, 39, .06); stroke: none; }
.iso .fl { fill: #ebe8e2; }
.iso .fr { fill: #dedad2; }
.iso .ft { fill: #f8f7f4; }
.iso .fl, .iso .fr, .iso .ft { stroke: rgba(20, 27, 39, .8); stroke-width: 1; stroke-linejoin: round; }
.iso .slab { stroke: rgba(20, 27, 39, .22); stroke-width: 1; }
.iso .parapet { fill: none; stroke: rgba(20, 27, 39, .3); stroke-width: 1; }
.iso .door { fill: #2b3445; stroke: rgba(20, 27, 39, .8); stroke-width: 1; }
.iso .win { fill: #f4f2ee; stroke: rgba(20, 27, 39, .5); stroke-width: .8; transition: fill .45s ease; transition-delay: calc(var(--w, 0) * 55ms); }
.cycle.lit .iso .win { fill: #c9a061; }
.iso .main { transition: opacity .6s ease; }
.cycle[data-stage="3"] .iso .main { opacity: .35; }
.iso .ov { opacity: 0; transform: translateY(10px); transition: opacity .45s ease, transform .7s var(--ease); }
.cycle[data-stage="1"] .ov-1, .cycle[data-stage="2"] .ov-2, .cycle[data-stage="3"] .ov-3, .cycle[data-stage="4"] .ov-4 { opacity: 1; transform: none; transition-delay: .2s; }
.iso .ink { fill: none; stroke: var(--text-dark); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.iso .lead { stroke: rgba(20, 27, 39, .45); stroke-width: 1; stroke-dasharray: 3 4; }
.iso .label { fill: var(--text-dark); stroke: none; font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: .12em; }
.iso .label-sub { fill: var(--slate); stroke: none; font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; }
.iso .solid { fill: var(--bronze-deep); stroke: none; }
.iso .lock-body { fill: #fbfaf8; stroke: var(--text-dark); stroke-width: 1.3; }
.iso .shackle { fill: none; stroke: var(--text-dark); stroke-width: 1.6; stroke-linecap: round; transition: transform .6s var(--ease); transition-delay: 1.5s; }
.cycle.lit[data-stage="1"] .iso .shackle { transform: translateY(-6px); }
.iso .badge { fill: #fbfaf8; stroke: var(--text-dark); stroke-width: 1.2; }
.iso .bar .fl { fill: #e3d2b3; }
.iso .bar .fr { fill: #d2b98e; }
.iso .bar .ft { fill: #c9a061; }
.iso .bar { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); transition: transform .9s var(--ease); }
.cycle[data-stage="2"] .iso .bar { transform: none; }
.cycle[data-stage="2"] .iso .bar:nth-child(1) { transition-delay: .35s; }
.cycle[data-stage="2"] .iso .bar:nth-child(2) { transition-delay: .5s; }
.cycle[data-stage="2"] .iso .bar:nth-child(3) { transition-delay: .65s; }
.iso .nb .fl, .iso .nb .fr, .iso .nb .ft { stroke: rgba(20, 27, 39, .45); }
.iso .target .fl, .iso .target .fr, .iso .target .ft { stroke: var(--bronze-deep); stroke-width: 1.4; }
.iso .target .ft { fill: #ead7b4; }
.iso .ring { fill: none; stroke: var(--bronze-deep); stroke-width: 1.2; opacity: .45; transform-box: fill-box; transform-origin: center; }
.iso .pin-head { fill: var(--bronze-deep); stroke: none; }
.iso .pin-dot { fill: #fbfaf8; stroke: none; }
.iso .pin { transform-box: fill-box; transform-origin: 50% 100%; }
.iso .card { fill: #fff; stroke: var(--text-dark); stroke-width: 1.1; }
.iso .card-line { stroke: rgba(20, 27, 39, .35); stroke-width: 1; }
.iso .sign { fill: none; stroke: var(--bronze-deep); stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 260; stroke-dashoffset: 0; }
.iso .flow { fill: none; stroke: var(--text-dark); stroke-width: 1.2; stroke-dasharray: 5 6; }
.iso .sheet .ft { fill: #fbfaf8; }

.svc-list { margin-top: clamp(72px, 9vw, 128px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.svc { display: grid; gap: 18px; align-content: start; justify-items: start; padding: 40px 36px 8px 0; }
.svc + .svc { padding-left: 36px; border-left: 1px solid var(--rule-2); }
.svc h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.65rem; line-height: 1.12; }
.svc > p { color: var(--fg-2); font-size: 0.975rem; }
.illo { width: 100%; aspect-ratio: 280 / 150; margin-bottom: 14px; border: 1px solid var(--rule-2); background: linear-gradient(var(--rule-2) 1px, transparent 1px) 0 0 / 20px 20px, linear-gradient(90deg, var(--rule-2) 1px, transparent 1px) 0 0 / 20px 20px, #f7f6f3; }
.mi { display: block; width: 100%; height: 100%; }
.mi * { vector-effect: non-scaling-stroke; }
.mi .g { stroke: rgba(20, 27, 39, .1); stroke-width: 1; }
.mi .k { fill: none; stroke: var(--text-dark); stroke-width: 1.3; }
.mi .soft { fill: none; stroke: rgba(20, 27, 39, .4); stroke-width: 1; }
.mi .fillg { fill: rgba(132, 102, 58, .14); stroke: var(--bronze-deep); stroke-width: 1.1; }
.mi .solid { fill: var(--bronze-deep); stroke: none; }
.mi .dark { fill: #fbfaf8; stroke: var(--text-dark); stroke-width: 1.1; }
.mi text { fill: var(--slate); stroke: none; font-family: var(--f-mono); font-size: 8.5px; font-weight: 500; letter-spacing: .14em; }
.mi .hl { fill: var(--bronze-deep); }
.mi-bar { transform-box: fill-box; transform-origin: 50% 100%; }
.mi-line { stroke-dasharray: 300; stroke-dashoffset: 0; }
.mi-pulse { transform-box: fill-box; transform-origin: center; opacity: 0; }
.mi-sweep { transform-box: view-box; transform-origin: 140px 78px; }
.mi-blip { opacity: .35; }
.mi-target-ring { transform-box: fill-box; transform-origin: center; opacity: 0; }
.mi-key { transform: translate(200px, 70px); }
.mi-check { stroke-dasharray: 30; stroke-dashoffset: 0; }
.mi-path { stroke-dasharray: 4 5; }

/* Equipo */
.team { padding-block: var(--section); }
.team-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-bottom: 18px; margin-bottom: 44px; border-bottom: 1px solid var(--rule); }
.team-filter { display: flex; flex-wrap: wrap; gap: 6px 30px; }
.team-filter button { position: relative; padding: 6px 0; background: none; border: 0; font: 500 0.95rem var(--f-text); color: var(--fg-3); cursor: pointer; transition: color .3s; }
.team-filter button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -19px; height: 1px; background: var(--accent-text); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.team-filter button:hover { color: var(--fg); }
.team-filter button[aria-pressed="true"] { color: var(--fg); }
.team-filter button[aria-pressed="true"]::after { transform: scaleX(1); }
.team-count { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3); }
.team-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 28px; }
.member { display: grid; gap: 22px; transition: opacity .6s ease, filter .6s ease; }
.member.is-dim { opacity: .22; filter: grayscale(1); }
.member-photo { position: relative; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: linear-gradient(160deg, #18253b 0%, var(--ink-2) 55%, var(--ink-deep) 100%); }
.member-photo .ph { position: absolute; inset: 0; display: grid; place-items: center; }
.member-photo .ph-mark { width: 72px; height: 50px; opacity: .3; }
.member-photo .ph-label { position: absolute; left: 18px; bottom: 16px; font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); }
.member-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; color: transparent; filter: grayscale(.9) contrast(1.05); transition: transform 1.4s var(--ease), filter .8s ease; }
.member-photo.is-empty img { display: none; }
.member:hover .member-photo img { transform: scale(1.04); filter: grayscale(0); }
.member-body { display: grid; gap: 6px; }
.member-area { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text); }
.member-name { margin-top: 4px; font-family: var(--f-display); font-weight: 400; font-size: 1.6rem; line-height: 1.1; }
.member-name.is-pending { color: var(--fg-3); font-style: italic; }
.member-role { font-size: 0.95rem; color: var(--fg); }
.member-bio { margin-top: 4px; font-size: 0.92rem; color: var(--fg-3); }

/* Preguntas frecuentes */
.faq { padding-block: var(--section); }
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px clamp(40px, 7vw, 120px); align-items: start; }
.faq-head { display: grid; gap: 26px; justify-items: start; position: sticky; top: 120px; }
.faq-aside { color: var(--fg-2); font-size: 0.975rem; max-width: 34ch; }
.faq-aside a { color: var(--fg); text-underline-offset: 4px; text-decoration-thickness: 1px; }
.faq-list { border-top: 1px solid var(--rule); }
.faq-list details { border-bottom: 1px solid var(--rule-2); }
.faq-list details::details-content { block-size: 0; overflow: clip; transition: block-size .55s var(--ease), content-visibility .55s allow-discrete; }
.faq-list details[open]::details-content { block-size: auto; }
.faq-list summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) 22px; gap: 24px; align-items: center; padding-block: 26px; font-family: var(--f-display); font-size: 1.4rem; line-height: 1.3; transition: color .3s; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary svg { width: 20px; height: 20px; stroke-width: 1.4; color: var(--accent-text); transition: transform .5s var(--ease); }
.faq-list details[open] summary svg { transform: rotate(45deg); }
.faq-list summary:hover { color: var(--accent-text); }
.faq-list details p { padding: 0 56px 28px 0; color: var(--fg-2); max-width: 62ch; opacity: 0; transform: translateY(-6px); transition: opacity .5s ease .08s, transform .5s var(--ease) .08s; }
.faq-list details[open] p { opacity: 1; transform: none; }

/* Interludio */
.interlude { position: relative; overflow: hidden; isolation: isolate; min-height: clamp(440px, 64vh, 680px); display: grid; align-items: end; padding-block: clamp(80px, 10vw, 136px); }
.interlude img { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; object-fit: cover; object-position: 60% 45%; z-index: -2; filter: grayscale(.25) contrast(1.05) brightness(.8); }
.interlude::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 17, 29, .95) 0%, rgba(10, 17, 29, .7) 50%, rgba(10, 17, 29, .3) 100%), linear-gradient(0deg, rgba(10, 17, 29, .9) 0%, rgba(10, 17, 29, 0) 50%); }
.interlude .wrap { width: 100%; }
.interlude-quote { font-family: var(--f-display); font-weight: 300; font-size: clamp(2.6rem, 1.4rem + 4.2vw, 5.6rem); line-height: 1.02; letter-spacing: -0.022em; color: #f3f1ec; }
.interlude-quote span { display: block; }

/* Contacto */
.contact { padding-block: var(--section); }
.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px clamp(40px, 7vw, 120px); align-items: start; }
.contact-copy { display: grid; gap: 28px; justify-items: start; position: sticky; top: 110px; }
.direct { list-style: none; margin: 18px 0 0; padding: 0; width: 100%; border-top: 1px solid var(--rule); }
.direct li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; align-items: baseline; padding-block: 20px; border-bottom: 1px solid var(--rule-2); }
.direct-k { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); }
.direct a { font-family: var(--f-display); font-size: 1.4rem; color: var(--fg); text-decoration: none; overflow-wrap: anywhere; transition: color .3s; }
.direct a:hover { color: var(--accent-text); }
.wa-link { display: inline-flex; align-items: center; gap: 12px; }
.wa-link svg { width: 24px; height: 24px; color: var(--wa); }

.form {
  --fg: var(--text-dark);
  --fg-2: #3a4250;
  --fg-3: var(--slate);
  --rule: rgba(20, 27, 39, .2);
  --rule-2: rgba(20, 27, 39, .1);
  --accent: var(--bronze-deep);
  --accent-text: var(--bronze-deep);
  display: grid;
  gap: 26px;
  padding: clamp(32px, 4.5vw, 64px);
  background: var(--bone);
  color: var(--text-dark);
  color-scheme: light;
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .7), 0 0 0 1px rgba(220, 194, 154, .2);
}
.form-title { font-family: var(--f-display); font-weight: 300; font-size: clamp(1.8rem, 1.4rem + 1vw, 2.4rem); line-height: 1.1; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 28px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: 0.82rem; font-weight: 500; color: var(--slate); }
.field label i, .consent i { font-style: normal; color: var(--bronze-deep); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 0 12px;
  font: 400 1.03rem/1.4 var(--f-text);
  color: var(--text-dark);
  background-color: transparent;
  border: 0;
  border-bottom: 1px solid rgba(20, 27, 39, .28);
  border-radius: 0;
  transition: border-color .3s, box-shadow .3s;
}
.field textarea { min-height: 112px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 28px; background-image: linear-gradient(45deg, transparent 50%, var(--text-dark) 50%), linear-gradient(135deg, var(--text-dark) 50%, transparent 50%); background-position: calc(100% - 10px) 52%, calc(100% - 5px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.field input::placeholder, .field textarea::placeholder { color: #8b919c; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--text-dark); box-shadow: inset 0 -1px 0 var(--text-dark); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-bottom-color: var(--alert); box-shadow: inset 0 -1px 0 var(--alert); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 0.92rem; color: #3a4250; }
.consent input { width: 17px; height: 17px; margin: 3px 0 0; accent-color: var(--ink); }
.consent a, .privacy-basic a { color: var(--text-dark); text-underline-offset: 3px; }
.privacy-basic { margin: 0; padding-top: 18px; border-top: 1px solid rgba(20, 27, 39, .12); display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 16px; font-size: 0.78rem; line-height: 1.55; color: var(--slate); }
.privacy-basic dt { font-weight: 600; color: #3a4250; }
.privacy-basic dd { margin: 0; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.form-foot small { font-size: 0.82rem; color: var(--slate); }
.form-status { padding: 16px 18px; border-left: 2px solid var(--bronze-deep); background: var(--bone-2); color: var(--text-dark); font-size: 0.95rem; animation: rise .45s var(--ease) both; }
.form-status.error { border-left-color: var(--alert); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* WhatsApp flotante */
.wa-float {
  position: fixed;
  right: max(22px, env(safe-area-inset-right, 0px));
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  z-index: 55;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 20px 0 15px;
  background: var(--ink);
  color: #eceae5;
  border: 1px solid rgba(220, 194, 154, .35);
  border-radius: 999px;
  text-decoration: none;
  font: 500 0.9rem var(--f-text);
  box-shadow: 0 20px 44px -18px rgba(0, 0, 0, .75);
  transition: transform .45s var(--ease), border-color .3s, background-color .3s;
}
.wa-float svg { width: 24px; height: 24px; color: var(--wa); }
.wa-float:hover { transform: translateY(-3px); border-color: var(--bronze-hi); background: var(--ink-3); }

/* Pie */
.footer { background: var(--ink-deep); padding-block: clamp(80px, 9vw, 120px) 104px; border-top: 1px solid rgba(220, 194, 154, .12); }
.footer-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; padding-bottom: 56px; border-bottom: 1px solid var(--rule-2); }
.brand-lg .brand-mark { width: 64px; height: 44px; }
.brand-lg .brand-name { font-size: 1.9rem; }
.brand-lg .brand-sub { font-size: 0.78rem; }
.footer-tagline { font-family: var(--f-display); font-weight: 300; font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.2rem); color: var(--fg-2); }
.footer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; padding-block: 56px; }
.footer h4 { margin: 0 0 18px; font-family: var(--f-mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--fg-2); text-decoration: none; font-size: 0.975rem; overflow-wrap: anywhere; transition: color .3s; }
.footer ul a:hover { color: var(--fg); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 28px; border-top: 1px solid var(--rule-2); font-size: 0.82rem; color: var(--fg-3); }
.footer-bottom > span:last-child { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; }

/* Páginas legales */
.legal-page .site-header { background: rgba(10, 17, 29, .94); border-bottom-color: rgba(220, 194, 154, .14); }
.legal-back { display: inline-flex; align-items: center; gap: 10px; font-size: 0.9rem; color: rgba(236, 234, 229, .8); text-decoration: none; }
.legal-back:hover { color: #fff; }
.legal-back svg { width: 16px; height: 16px; transform: rotate(180deg); }
.legal-head { padding-top: calc(var(--header-h) + clamp(56px, 8vw, 112px)); padding-bottom: clamp(48px, 6vw, 80px); }
.legal-head .wrap { display: grid; gap: 22px; justify-items: start; }
.legal-head p:not(.label) { color: var(--fg-2); max-width: 56ch; font-size: 1.1rem; }
.legal { padding-block: clamp(48px, 6vw, 88px) var(--section); }
.legal-tabs { display: flex; flex-wrap: wrap; gap: 6px 28px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); width: 100%; }
.legal-tabs a { position: relative; padding: 4px 0; font-size: 0.95rem; color: var(--fg-3); text-decoration: none; transition: color .3s; }
.legal-tabs a:hover { color: var(--fg); }
.legal-tabs a[aria-current="page"] { color: var(--fg); }
.legal-tabs a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -15px; height: 1px; background: var(--accent); }
.legal-version { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3) !important; font-size: 0.72rem !important; }
.legal-layout { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 40px clamp(40px, 6vw, 96px); align-items: start; }
.legal-toc { position: sticky; top: 104px; }
.legal-toc summary { list-style: none; cursor: default; font-family: var(--f-mono); font-size: 0.72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.legal-toc summary::-webkit-details-marker { display: none; }
.legal-toc ol { list-style: none; margin: 0; padding: 8px 0 0; counter-reset: toc; display: grid; }
.legal-toc li { counter-increment: toc; }
.legal-toc a { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 6px; padding: 8px 0; font-size: 0.9rem; line-height: 1.4; color: var(--fg-2); text-decoration: none; border-bottom: 1px solid var(--rule-2); transition: color .3s; }
.legal-toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--f-mono); font-size: 0.72rem; color: var(--fg-3); padding-top: 2px; }
.legal-toc a:hover { color: var(--fg); }
.legal-body { max-width: 760px; min-width: 0; }
.legal-body h2 { scroll-margin-top: 96px; }
.legal-intro { font-family: var(--f-display); font-weight: 300; font-size: 1.45rem !important; line-height: 1.4; color: var(--fg) !important; margin-bottom: 40px; }
.legal h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.3rem; margin: 34px 0 6px; color: var(--fg); }
.legal-data.ficha { grid-template-columns: 150px minmax(0, 1fr); margin-top: 10px; }
.legal-data.ficha dd { color: var(--fg-2); }
.legal h2 { font-family: var(--f-display); font-weight: 400; font-size: 1.85rem; line-height: 1.2; margin: 52px 0 14px; color: var(--fg); }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--fg-2); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 1.2em; display: grid; gap: 8px; margin: 12px 0; }
.legal a { color: var(--fg); text-underline-offset: 3px; }
.legal strong { color: var(--fg); font-weight: 600; }
.legal mark { background: rgba(132, 102, 58, .14); color: var(--bronze-deep); padding: 0 .3em; }
.legal-data { margin: 18px 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); border-top: 1px solid var(--rule); }
.legal-data dt, .legal-data dd { padding: 13px 0; border-bottom: 1px solid var(--rule-2); }
.legal-data dt { padding-right: 32px; font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); }
.legal-data dd { margin: 0; color: var(--fg); overflow-wrap: anywhere; }
.legal-table-wrap { overflow-x: auto; margin: 16px 0; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.legal-table th, .legal-table td { text-align: left; padding: 13px 14px 13px 0; border-bottom: 1px solid var(--rule-2); vertical-align: top; color: var(--fg-2); }
.legal-table th { font-family: var(--f-mono); font-size: 0.7rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); }
.legal-updated { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--rule); font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); }

/* ---------- Movimiento (solo si el navegador no pide reducirlo) ---------- */
html.motion:not(.ready) .mark-anim .b1 { transform: translate(110px, -110px); opacity: 0; }
html.motion:not(.ready) .mark-anim .b2 { transform: translate(0, 140px); opacity: 0; }
html.motion:not(.ready) .mark-anim .b3 { transform: translate(-110px, 110px); opacity: 0; }
html.motion .mark-anim .b2 { transition-delay: .05s; }
html.motion .mark-anim .b1 { transition-delay: .2s; }
html.motion .mark-anim .b3 { transition-delay: .35s; }

html.motion .display .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .06em .14em 0; margin: 0 -.06em -.14em 0; }
html.motion .display .w > span { display: inline-block; transition: transform 1.3s cubic-bezier(.2, .75, .15, 1); transition-delay: calc(var(--wi, 0) * 80ms + 200ms); }
html.motion .hero:not(.is-in) .display .w > span { transform: translateY(115%); }
html.motion .hero:not(.is-split) .display { opacity: 0; }
html.motion .hero .label, html.motion .hero-lede, html.motion .hero-actions, html.motion .hero-rail > div, html.motion .hero-figure figcaption { transition: opacity 1.1s ease, transform 1.1s var(--ease); }
html.motion .hero:not(.is-in) .label, html.motion .hero:not(.is-in) .hero-lede, html.motion .hero:not(.is-in) .hero-actions, html.motion .hero:not(.is-in) .hero-rail > div, html.motion .hero:not(.is-in) .hero-figure figcaption { opacity: 0; transform: translateY(16px); }
html.motion .hero .label { transition-delay: .1s; }
html.motion .hero-lede { transition-delay: .75s; }
html.motion .hero-actions { transition-delay: .9s; }
html.motion .hero-figure figcaption { transition-delay: 1.3s; }
html.motion .hero-rail > div { transition-delay: calc(1.1s + var(--i, 0) * .12s); }
html.motion .hero-frame { transition: clip-path 1.8s var(--ease-io) .15s; }
html.motion .hero:not(.is-in) .hero-frame { clip-path: inset(100% 0 0 0); }
html.motion .hero-figure::before { transition: opacity 1s ease 1.4s, transform 1.4s var(--ease) 1.2s; }
html.motion .hero:not(.is-in) .hero-figure::before { opacity: 0; transform: translate(0, 0); }

html.motion [data-reveal] { opacity: 0; transform: translate3d(0, 24px, 0); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
html.motion [data-reveal].is-in { opacity: 1; transform: none; }
html.motion [data-reveal="draw"] { opacity: 1; transform: none; }
html.motion .elev path { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 2.4s var(--ease), fill .6s ease calc(var(--w, 0) * 22ms); }
html.motion .elev .l2 path { transition-delay: .5s, calc(var(--w, 0) * 22ms); }
html.motion .elev .l3 path { transition-delay: .9s, calc(var(--w, 0) * 22ms); }
html.motion .elev .l4 path { transition-delay: 1.2s, 0s; }
html.motion [data-reveal="draw"]:not(.is-in) .elev path { stroke-dashoffset: 1; }
html.motion .elev text { transition: opacity 1s ease 1.6s; }
html.motion [data-reveal="draw"]:not(.is-in) .elev text { opacity: 0; }
html.motion .phase[data-reveal]:not(.is-in) .track-bar { transform: scaleX(0); }
html.motion [data-parallax] { translate: 0 var(--py, 0px); will-change: translate; }

html.motion .cycle[data-stage="3"] .iso .ring { animation: ping 2.6s var(--ease) infinite; }
html.motion .cycle[data-stage="3"] .iso .ring.r2 { animation-delay: 1.3s; }
html.motion .cycle[data-stage="3"] .iso .pin { animation: bob 2.2s ease-in-out infinite; }
html.motion .cycle[data-stage="4"] .iso .flow { animation: flow 1.1s linear infinite; }
html.motion .cycle[data-stage="4"] .iso .sign { animation: sign 1.6s .7s var(--ease) both; }
html.motion .cycle[data-stage="4"] .iso .s3 { animation: dropin .8s 1.2s var(--ease) both; }
html.motion .iso .lay-grid, html.motion .iso .lay-main, html.motion .iso .lay-ov { transition: translate .6s var(--ease); }
html.motion .iso .lay-grid { translate: calc(var(--tx, 0) * -10px) calc(var(--ty, 0) * -6px); }
html.motion .iso .lay-main { translate: calc(var(--tx, 0) * 4px) calc(var(--ty, 0) * 3px); }
html.motion .iso .lay-ov { translate: calc(var(--tx, 0) * 12px) calc(var(--ty, 0) * 8px); }
@keyframes ping { from { transform: scale(.35); opacity: .9; } to { transform: scale(1.25); opacity: 0; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes flow { to { stroke-dashoffset: -22; } }
@keyframes sign { from { stroke-dashoffset: 260; } }
@keyframes dropin { from { transform: translateY(-26px); opacity: 0; } }

html.motion .mi-sweep { animation: spin 5s linear infinite; }
html.motion .mi-blip { animation: blip 5s linear infinite; }
html.motion .mi-blip.b1 { animation-delay: .85s; }
html.motion .mi-blip.b2 { animation-delay: 2.01s; }
html.motion .mi-blip.b3 { animation-delay: 3.25s; }
html.motion .mi-blip.b4 { animation-delay: 4.4s; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blip { 0% { opacity: 1; } 35%, 100% { opacity: .3; } }
html.motion .svc:hover .mi-bar, html.motion .illo.play .mi-bar { animation: grow .9s var(--ease) both; }
html.motion .svc:hover .mi-bar:nth-of-type(2), html.motion .illo.play .mi-bar:nth-of-type(2) { animation-delay: .1s; }
html.motion .svc:hover .mi-bar:nth-of-type(3), html.motion .illo.play .mi-bar:nth-of-type(3) { animation-delay: .2s; }
html.motion .svc:hover .mi-bar:nth-of-type(4), html.motion .illo.play .mi-bar:nth-of-type(4) { animation-delay: .3s; }
html.motion .svc:hover .mi-bar:nth-of-type(5), html.motion .illo.play .mi-bar:nth-of-type(5) { animation-delay: .4s; }
html.motion .svc:hover .mi-line, html.motion .illo.play .mi-line { animation: drawline 1.3s .45s var(--ease) both; }
html.motion .svc:hover .mi-pulse, html.motion .illo.play .mi-pulse { animation: pulse 1.6s 1.5s ease-out infinite; }
html.motion .svc:hover .mi-target-ring { animation: pulse 1.6s ease-out infinite; }
html.motion .svc:hover .mi-key, html.motion .illo.play .mi-key { animation: travel 1.6s var(--ease-io) both; }
html.motion .svc:hover .mi-check, html.motion .illo.play .mi-check { animation: tick .5s 1.6s var(--ease) both; }
html.motion .svc:hover .mi-path { animation: flow 1.1s linear infinite; }
@keyframes grow { from { transform: scaleY(0); } }
@keyframes drawline { from { stroke-dashoffset: 300; } }
@keyframes pulse { from { transform: scale(1); opacity: .8; } to { transform: scale(3.4); opacity: 0; } }
@keyframes tick { from { stroke-dashoffset: 30; } }
@keyframes travel {
  0% { transform: translate(92px, 70px); }
  25% { transform: translate(120.7px, 41.9px); }
  50% { transform: translate(149px, 32.5px); }
  75% { transform: translate(175.8px, 41.9px); }
  100% { transform: translate(200px, 70px); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .site-header.open { background: var(--ink); border-bottom-color: rgba(220, 194, 154, .14); }
  .site-header.open .nav {
    display: grid;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    gap: 24px;
    padding: 12px var(--gutter-r) 32px var(--gutter);
    background: var(--ink);
    border-bottom: 1px solid rgba(220, 194, 154, .2);
    animation: drop .45s var(--ease) both;
  }
  .site-header.open .nav-links { display: grid; gap: 0; }
  .site-header.open .nav-links li { animation: rise .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms + 60ms); }
  .site-header.open .nav-links a { display: block; padding-block: 16px; border-bottom: 1px solid rgba(236, 234, 229, .08); font-family: var(--f-display); font-size: 1.6rem; color: #eceae5; }
  .site-header.open .nav-links a::after { display: none; }
  .site-header.open .nav-aside { flex-wrap: wrap; gap: 18px 24px; }
  .site-header.open .nav-wa { display: inline-flex; color: #eceae5; font-size: 0.95rem; }
  .site-header.open .nav-aside .btn { width: 100%; justify-content: center; min-height: 52px; }
  .hero-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .hero-rail > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .g-list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .g-list li:nth-child(3) { padding-left: 0; border-left: 0; }
  .types { grid-template-columns: minmax(0, 1fr); }
  .types-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-list { grid-template-columns: minmax(0, 1fr); }
  .svc, .svc + .svc { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); column-gap: 40px; padding: 40px 0; border-left: 0; border-bottom: 1px solid var(--rule-2); }
  .svc > .illo { grid-row: span 5; margin: 0; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@keyframes drop { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@media (max-width: 920px) {
  :root { --header-h: 72px; }
  .legal-layout { grid-template-columns: minmax(0, 1fr); }
  .legal-toc { position: static; }
  .legal-toc summary { cursor: pointer; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-figure { width: min(100%, 420px); justify-self: end; margin-right: 18px; }
  .grid-12 { display: block; }
  .col-label { margin-bottom: 32px; padding-top: 0; }
  .sec-head.split, .start, .faq-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .sec-head.split .sec-head-main, .sec-head.split > .lede { grid-column: 1 / -1; }
  .faq-head, .contact-copy { position: static; }
  .panels { grid-template-columns: minmax(0, 1fr); }
  .panel, .panel + .panel { padding: 44px 0 52px; border-left: 0; }
  .panel + .panel { border-top: 1px solid var(--rule); }
  .plan-scale { display: none; }
  .plan { border-top: 0; }
  .phase { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .phase-when { display: block; }
  .phase .track { margin-left: 68px; }
  .cycle { grid-template-columns: minmax(0, 1fr); }
  .cycle-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .cycle-tab { padding: 18px 0; grid-template-columns: 36px minmax(0, 1fr); }
  .cycle-tab .d { display: none; }
  .cycle-tab .t { font-size: 1.35rem; }
  .cycle-note { display: block; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .figures { grid-template-columns: minmax(0, 1fr); }
  .figures > div, .figures > div + div { padding: 26px 0; border-left: 0; border-bottom: 1px solid var(--rule-2); }
  .hero-rail { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .hero-rail > div, .hero-rail > div + div { padding: 18px 0; border-left: 0; border-bottom: 1px solid var(--rule-2); display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
  .hero-rail dd { margin: 0; font-size: 1.2rem; text-align: right; }
  .hero-figure { width: 78%; }
  .g-list { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .g-list li, .g-list li + li { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--rule-2); }
  .types-list { grid-template-columns: minmax(0, 1fr); }
  .svc, .svc + .svc { grid-template-columns: minmax(0, 1fr); }
  .svc > .illo { grid-row: auto; margin-bottom: 12px; }
  .team-bar { margin-bottom: 28px; }
  .team-filter { gap: 4px 22px; }
  .team-filter button::after { bottom: -6px; }
  .team-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 76%;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    margin-left: calc(-1 * var(--gutter));
    margin-right: calc(-1 * var(--gutter-r));
    padding-left: var(--gutter);
    padding-right: var(--gutter-r);
    scroll-padding-left: var(--gutter);
    padding-bottom: 8px;
    scrollbar-width: none;
  }
  .team-grid::-webkit-scrollbar { display: none; }
  .team-grid > li { scroll-snap-align: start; }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .privacy-basic { grid-template-columns: minmax(0, 1fr); }
  .privacy-basic dd + dt { margin-top: 8px; }
  .phase .track { margin-left: 0; }
  .phase-text { grid-template-columns: 44px minmax(0, 1fr); }
  .faq-list summary { font-size: 1.2rem; }
  .faq-list details p { padding-right: 0; }
  .direct li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .stage-meta { top: 14px; left: 16px; right: 16px; font-size: 0.56rem; }
  .stage-status { left: 14px; bottom: 14px; padding: 6px 10px; font-size: 0.6rem; }
  .iso .label-sub { display: none; }
  .legal-data, .legal-data.ficha { grid-template-columns: minmax(0, 1fr); }
  .legal-data dt { padding-bottom: 0; border-bottom: 0; }
  .wa-float { width: 54px; height: 54px; padding: 0; justify-content: center; }
  .wa-float span { display: none; }
  .wa-float svg { width: 26px; height: 26px; }

  .compare-table thead { display: none; }
  .compare-table, .compare-table tbody, .compare-table tr, .compare-table th, .compare-table td { display: block; width: 100%; }
  .compare-table tr { padding-block: 24px; border-bottom: 1px solid var(--rule-2); }
  .compare-table tbody th { padding: 0 0 12px; border: 0; }
  .compare-table td { padding: 12px 16px; border: 0; }
  .compare-table td::before { content: attr(data-label); display: block; margin-bottom: 4px; font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); }
  .compare-table td.us { border: 1px solid var(--rule) !important; }
  .compare-table td.us::before { color: var(--accent-text); }
}
@media (max-width: 480px) {
  .iso .label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .site-header.is-hidden { transform: none; }
}

/* Escala del calendario: del inicio del estudio a la entrega de llaves */
.journey { display: flex; align-items: center; gap: 18px; font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text); }
.journey i { position: relative; flex: 1; height: 1px; background: var(--rule); }
.journey i::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid var(--accent-text); border-right: 1px solid var(--accent-text); transform: rotate(45deg); }

/* Banner y panel de cookies */
.cookie-banner {
  position: fixed;
  left: max(22px, env(safe-area-inset-left, 0px));
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  z-index: 56;
  width: min(460px, calc(100vw - 44px));
  display: grid;
  gap: 10px;
  padding: 24px 26px;
  background: var(--ink-2);
  border: 1px solid rgba(220, 194, 154, .3);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .75);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .45s var(--ease), transform .6s var(--ease);
}
.cookie-banner.is-visible { opacity: 1; transform: none; }
.cookie-title { font-family: var(--f-display); font-size: 1.35rem; line-height: 1.2; color: var(--fg); }
.cookie-text { font-size: 0.9rem; line-height: 1.55; color: var(--fg-2); }
.cookie-text a { color: var(--fg); text-underline-offset: 3px; }
.cookie-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-top: 8px; }
.cookie-actions .btn { flex: 1 1 0; justify-content: center; min-width: 110px; }
.cookie-link { padding: 8px 2px; background: none; border: 0; font: 500 0.9rem var(--f-text); color: var(--fg); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; cursor: pointer; }
.cookie-link:hover { color: var(--accent-text); }
.cookie-modal { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.cookie-backdrop { position: absolute; inset: 0; background: rgba(7, 12, 21, .62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transition: opacity .35s ease; }
.cookie-dialog { position: relative; width: min(600px, 100%); max-height: calc(100vh - 32px); overflow: auto; display: grid; gap: 20px; padding: clamp(26px, 4vw, 44px); background: var(--bone); color: var(--text-dark); box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .7); opacity: 0; transform: translateY(14px) scale(.985); transition: opacity .4s var(--ease), transform .5s var(--ease); }
.cookie-modal.is-open .cookie-backdrop, .cookie-modal.is-open .cookie-dialog { opacity: 1; transform: none; }
.cookie-dialog-head { position: relative; display: grid; gap: 10px; padding-right: 48px; }
.cookie-dialog-title { font-family: var(--f-display); font-weight: 300; font-size: clamp(1.7rem, 1.3rem + 1vw, 2.2rem); line-height: 1.1; }
.cookie-x { position: absolute; top: -6px; right: -6px; width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 1px solid var(--rule); color: var(--text-dark); cursor: pointer; }
.cookie-x svg { width: 18px; height: 18px; }
.cookie-x:hover { border-color: var(--text-dark); }
.cookie-dialog-text { font-size: 0.95rem; color: var(--fg-2); }
.cookie-cats { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.cookie-cats li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--rule-2); }
.cat-name { font-family: var(--f-display); font-size: 1.2rem; color: var(--fg); }
.cat-desc { margin-top: 2px; font-size: 0.88rem; color: var(--fg-3); }
.cat-state { white-space: nowrap; padding: 6px 10px; border: 1px solid var(--rule); font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); }
.cat-state.on { border-color: var(--accent); color: var(--accent-text); }
.cookie-dialog-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.cookie-dialog-actions .btn { flex: 1 1 0; justify-content: center; min-width: 150px; }
.cookie-dialog-foot { font-size: 0.85rem; }
.cookie-dialog-foot a { color: var(--fg-2); text-underline-offset: 3px; }
html.cookie-lock { overflow: hidden; }
.footer-cookies { padding: 0; background: none; border: 0; font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; transition: color .3s; }
.footer-cookies:hover { color: var(--fg); }
@media (max-width: 640px) {
  .cookie-banner { left: max(16px, env(safe-area-inset-left, 0px)); width: calc(100vw - 32px); bottom: calc(88px + env(safe-area-inset-bottom, 0px)); padding: 20px; }
  .cookie-cats li { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .cat-state { justify-self: start; }
}

