/* Eirsund — sitio institucional
   Regla de movimiento: sólo se mueve lo que se puede apretar. Links, botones,
   pestañas y capturas ampliables responden al puntero; el resto queda quieto. */

:root {
  color-scheme: light;
  --bg: #F4F8FA;
  --bg-elev: #FFFFFF;
  --bg-sunk: #EAF1F5;
  --bg-tint: #E3EEF5;
  --text: #102A3A;
  --text-2: #4A6272;
  --text-3: #6E8593;
  --line: rgba(16, 42, 58, .10);
  --line-strong: rgba(16, 42, 58, .18);
  --primary: #174E78;
  --primary-hover: #103D61;
  --primary-ink: #FFFFFF;
  --accent: #287981;
  --amber: #9A691F;
  --success: #28745D;
  --danger: #AD4652;
  --focus: #3D7FA1;
  --link: #174E78;
  --chrome: rgba(244, 248, 250, .72);
  --chrome-line: rgba(16, 42, 58, .08);
  --shadow-sm: 0 1px 2px rgba(8, 40, 68, .06), 0 2px 6px rgba(8, 40, 68, .05);
  --shadow-md: 0 2px 6px rgba(8, 40, 68, .06), 0 12px 32px rgba(8, 40, 68, .10);
  --shadow-lg: 0 4px 12px rgba(8, 40, 68, .08), 0 30px 80px rgba(8, 40, 68, .18);
  --hero-glow: radial-gradient(60% 60% at 70% 30%, rgba(61, 127, 161, .18), transparent 70%), radial-gradient(40% 50% at 15% 10%, rgba(40, 121, 129, .10), transparent 70%);
  --band: #0A2D4F;
  --band-text: #EDF4F7;
  --band-text-2: #A8BBC7;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-press: cubic-bezier(.3, .7, .4, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  --shell: 1180px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #07151F;
  --bg-elev: #0E2230;
  --bg-sunk: #0A1B27;
  --bg-tint: #10283A;
  --text: #EDF4F7;
  --text-2: #A8BBC7;
  --text-3: #7F98A7;
  --line: rgba(237, 244, 247, .09);
  --line-strong: rgba(237, 244, 247, .16);
  --primary: #6F9DB9;
  --primary-hover: #87B2CB;
  --primary-ink: #06131C;
  --accent: #63BAC0;
  --amber: #E1B45F;
  --success: #62C49F;
  --danger: #F0848E;
  --focus: #8DB1C7;
  --link: #8DB9D3;
  --chrome: rgba(7, 21, 31, .70);
  --chrome-line: rgba(237, 244, 247, .07);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-md: 0 2px 6px rgba(0, 0, 0, .25), 0 12px 32px rgba(0, 0, 0, .35);
  --shadow-lg: 0 4px 12px rgba(0, 0, 0, .3), 0 30px 80px rgba(0, 0, 0, .55);
  --hero-glow: radial-gradient(60% 60% at 70% 30%, rgba(61, 127, 161, .22), transparent 70%), radial-gradient(40% 50% at 15% 10%, rgba(99, 186, 192, .08), transparent 70%);
  --band: #0B2232;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.55 var(--font);
  letter-spacing: -.003em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .4s ease, color .4s ease;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); color: var(--text); }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.25rem); line-height: 1.04; letter-spacing: -.035em; font-weight: 700; }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); line-height: 1.08; letter-spacing: -.03em; font-weight: 700; }
h3 { font-size: 1.3rem; line-height: 1.25; letter-spacing: -.015em; font-weight: 650; }
h4 { font-size: 1.0625rem; line-height: 1.3; letter-spacing: -.01em; font-weight: 650; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
::selection { background: rgba(61, 127, 161, .28); }

.shell { width: min(var(--shell), calc(100% - 48px)); margin-inline: auto; }
.section { padding-block: clamp(72px, 10vw, 128px); }
.section-tight { padding-block: clamp(48px, 7vw, 88px); }
.eyebrow { display: inline-block; margin: 0 0 14px; font-size: .8125rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.lead { font-size: clamp(1.15rem, 1.6vw, 1.375rem); line-height: 1.5; color: var(--text-2); letter-spacing: -.01em; max-width: 40em; }
.muted { color: var(--text-2); }
.small { font-size: .9rem; color: var(--text-3); }
.center { text-align: center; }
.intro { max-width: 760px; margin: 0 auto clamp(40px, 6vw, 72px); text-align: center; }
.intro .lead { margin-inline: auto; margin-top: 18px; }
.intro.left { margin-inline: 0; text-align: left; }
.intro.left .lead { margin-inline: 0; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--bg-elev); padding: 10px 16px; border-radius: 10px; }
.skip:focus { left: 16px; }

/* ── Interactive elements: the only things that move ───────────────────── */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border: 0; border-radius: 999px;
  background: var(--primary); color: var(--primary-ink);
  font: 600 1rem/1 var(--font); letter-spacing: -.005em; cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .12) inset, 0 6px 18px rgba(23, 78, 120, .22);
  transition: transform .18s var(--ease), background-color .2s ease, box-shadow .25s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.button:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, .12) inset, 0 10px 26px rgba(23, 78, 120, .28); }
.button:active { transform: scale(.97); transition-duration: .08s; }
.button.secondary { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.button.secondary:hover { background: var(--bg-sunk); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.button.small { min-height: 38px; padding: 0 16px; font-size: .9375rem; }
.button.light { background: #EDF4F7; color: #0A2D4F; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.button.light:hover { background: #fff; }
.button.ghost-light { background: transparent; color: #EDF4F7; box-shadow: inset 0 0 0 1.5px rgba(237, 244, 247, .35); }
.button.ghost-light:hover { background: rgba(237, 244, 247, .08); }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--link); border-radius: 6px; }
.link-arrow .arrow { display: inline-block; transition: transform .25s var(--ease); }
.link-arrow:hover .arrow { transform: translateX(4px); }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.link-arrow:active { opacity: .7; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 32px; }

/* ── Header: translucent material, content scrolls beneath ───────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--chrome);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background-color .4s ease;
}
.site-header.scrolled { border-bottom-color: var(--chrome-line); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font: 500 1.0625rem/1 var(--font); letter-spacing: .32em; text-transform: uppercase; border-radius: 8px; flex: none; }
.brand img { width: 26px; height: auto; }
.brand:active { opacity: .7; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav a {
  position: relative; padding: 8px 12px; border-radius: 999px; color: var(--text-2);
  font-size: .9375rem; font-weight: 500; letter-spacing: -.005em;
  transition: color .2s ease, background-color .2s ease, transform .15s var(--ease);
}
.main-nav a:hover { color: var(--text); background: var(--bg-sunk); }
.main-nav a:active { transform: scale(.96); }
.main-nav a[aria-current="page"] { color: var(--text); background: var(--bg-tint); }
.header-tools { display: flex; align-items: center; gap: 10px; }
.theme-toggle, .menu-button {
  display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 999px;
  background: transparent; color: var(--text-2); cursor: pointer;
  transition: background-color .2s ease, color .2s ease, transform .15s var(--ease);
}
.theme-toggle:hover, .menu-button:hover { background: var(--bg-sunk); color: var(--text); }
.theme-toggle:active, .menu-button:active { transform: scale(.92); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
.menu-button { display: none; }
.menu-button .bars { display: block; width: 18px; }
.menu-button .bars span { display: block; width: 18px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .35s var(--ease); }
.menu-button .bars span + span { margin-top: 5px; }
.menu-button[aria-expanded="true"] .bars span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-button[aria-expanded="true"] .bars span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.main-nav .nav-cta { display: none; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding-top: clamp(56px, 8vw, 104px); }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--hero-glow); pointer-events: none; }
.hero-copy { position: relative; max-width: 860px; margin-inline: auto; text-align: center; }
.hero-copy .lead { margin: 22px auto 0; }
.hero-copy .actions { justify-content: center; }
.hero-shot { position: relative; margin-top: clamp(48px, 7vw, 80px); }
.page-hero { position: relative; overflow: hidden; padding: clamp(64px, 9vw, 112px) 0 clamp(40px, 6vw, 72px); }
.page-hero::before { content: ""; position: absolute; inset: 0; background: var(--hero-glow); pointer-events: none; }
.page-hero .shell { position: relative; }
.page-hero h1 { max-width: 15em; }
.page-hero .lead { margin-top: 22px; }
.audience-tag { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 6px 12px 6px 8px; border-radius: 999px; background: var(--bg-elev); box-shadow: var(--shadow-sm); font-size: .875rem; font-weight: 600; color: var(--text-2); }
.audience-tag svg { width: 18px; height: 18px; color: var(--accent); }

/* Facts strip */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: clamp(48px, 7vw, 80px); border-radius: var(--radius); overflow: hidden; background: var(--line); box-shadow: var(--shadow-sm); }
.fact { background: var(--bg-elev); padding: 26px 24px; }
.fact strong { display: block; font: 700 1.75rem/1.1 var(--font-display); letter-spacing: -.03em; color: var(--text); }
.fact span { display: block; margin-top: 6px; font-size: .9375rem; color: var(--text-2); line-height: 1.4; }

/* ── Screenshot frames ──────────────────────────────────────────────────── */
.shot { margin: 0; }
.shot-frame {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  border-radius: var(--radius); overflow: hidden; background: #0a0b0f;
  box-shadow: 0 0 0 1px rgba(8, 40, 68, .10), var(--shadow-lg);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
:root[data-theme="dark"] .shot-frame { box-shadow: 0 0 0 1px rgba(237, 244, 247, .10), var(--shadow-lg); }
.shot-frame::before { content: ""; display: block; height: 30px; background: #15171d; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.shot-frame::after { content: ""; position: absolute; top: 11px; left: 14px; width: 8px; height: 8px; border-radius: 50%; background: #ff5f57; box-shadow: 14px 0 0 #febc2e, 28px 0 0 #28c840; opacity: .85; }
.shot-frame.light-ui { background: #F4F8FA; }
.shot-frame.light-ui::before { background: #E9EEF2; border-bottom-color: rgba(16, 42, 58, .08); }
.shot-frame img { width: 100%; }
.shot-frame:hover { transform: translateY(-3px) scale(1.006); box-shadow: 0 0 0 1px rgba(8, 40, 68, .12), 0 6px 16px rgba(8, 40, 68, .10), 0 40px 90px rgba(8, 40, 68, .22); }
.shot-frame:active { transform: scale(.992); transition-duration: .1s; }
.shot-frame .zoom-hint {
  position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 999px; background: rgba(10, 20, 30, .62); color: #fff; font-size: .8125rem; font-weight: 600;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  opacity: 0; transform: translateY(4px); transition: opacity .25s ease, transform .3s var(--ease);
}
.shot-frame:hover .zoom-hint, .shot-frame:focus-visible .zoom-hint { opacity: 1; transform: none; }
.shot figcaption { margin-top: 14px; font-size: .9rem; color: var(--text-3); line-height: 1.45; }
.shot.compact .shot-frame { border-radius: var(--radius-sm); }
.shot.compact .shot-frame::before { height: 22px; }
.shot.compact .shot-frame::after { top: 8px; left: 10px; width: 6px; height: 6px; box-shadow: 10px 0 0 #febc2e, 20px 0 0 #28c840; }
.theme-light-only { display: block; }
.theme-dark-only { display: none; }
:root[data-theme="dark"] .theme-light-only { display: none; }
:root[data-theme="dark"] .theme-dark-only { display: block; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(4, 12, 18, .78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s linear .3s; cursor: zoom-out; }
.lightbox.open { opacity: 1; visibility: visible; transition: opacity .3s ease; }
.lightbox img { max-width: min(1600px, 100%); max-height: calc(100vh - 110px); width: auto; border-radius: 14px; box-shadow: 0 30px 100px rgba(0, 0, 0, .6); transform: scale(.94); transition: transform .45s var(--ease); }
.lightbox.open img { transform: none; }
.lightbox p { margin: 16px 0 0; color: #C9D6DE; font-size: .9375rem; text-align: center; max-width: 60em; }
.lightbox-close { position: absolute; top: 18px; right: 18px; width: 42px; height: 42px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; font-size: 1.4rem; cursor: pointer; transition: background-color .2s, transform .15s var(--ease); }
.lightbox-close:hover { background: rgba(255, 255, 255, .22); }
.lightbox-close:active { transform: scale(.92); }

/* ── Layout blocks ──────────────────────────────────────────────────────── */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.reverse { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split.reverse > :first-child { order: 2; }
.split.even { grid-template-columns: 1fr 1fr; }
.feature-copy h2 { margin-bottom: 18px; }
.feature-copy h3 { font-size: clamp(1.6rem, 2.6vw, 2.125rem); letter-spacing: -.025em; margin-bottom: 14px; }
.feature-copy > p { color: var(--text-2); font-size: 1.125rem; }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 30px; color: var(--text); line-height: 1.45; }
.checks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.6L14.2 7' fill='none' stroke='%23287981' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; }
:root[data-theme="dark"] .checks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.6L14.2 7' fill='none' stroke='%2363BAC0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.checks li span { display: block; color: var(--text-2); font-size: .9375rem; }
.stack { display: grid; gap: clamp(88px, 12vw, 152px); }
.alt { background: var(--bg-elev); }
:root[data-theme="dark"] .alt { background: var(--bg-sunk); }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* Static cards (not interactive → no hover motion) */
.grid { display: grid; gap: 20px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--bg-elev); border-radius: var(--radius); padding: 28px; box-shadow: 0 0 0 1px var(--line); }
.alt .card { background: var(--bg); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-2); margin: 0; font-size: 1rem; }
.card .icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 12px; background: var(--bg-tint); color: var(--primary); }
:root[data-theme="dark"] .card .icon { color: var(--accent); }
.card .icon svg { width: 22px; height: 22px; }
.card ul { margin: 14px 0 0; padding-left: 18px; color: var(--text-2); font-size: .9375rem; }
.card ul li + li { margin-top: 6px; }

/* Link cards (interactive → lift on hover, press on active) */
.link-card {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 30px; border-radius: var(--radius-lg);
  background: var(--bg-elev); color: var(--text); box-shadow: 0 0 0 1px var(--line), var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.link-card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line-strong), var(--shadow-md); }
.link-card:active { transform: scale(.985); transition-duration: .1s; }
.link-card h3 { font-size: 1.5rem; letter-spacing: -.02em; }
.link-card p { margin: 0; color: var(--text-2); }
.link-card .who { font-size: .8125rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.link-card .go { margin-top: auto; padding-top: 14px; font-weight: 600; color: var(--link); }
.link-card .go .arrow { display: inline-block; transition: transform .3s var(--ease); }
.link-card:hover .go .arrow { transform: translateX(5px); }
.link-card .thumb { margin: -6px -6px 12px; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 9; background: #0a0b0f; }
.link-card .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }

/* Tour (tabs) */
.tour { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.tour-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; position: sticky; top: 96px; }
.tour-tab {
  display: grid; grid-template-columns: 34px 1fr; gap: 2px 14px; width: 100%; padding: 16px 18px; border: 0; border-radius: 16px;
  background: transparent; color: var(--text); text-align: left; font: inherit; cursor: pointer;
  transition: background-color .25s ease, transform .15s var(--ease), box-shadow .25s ease;
  -webkit-tap-highlight-color: transparent;
}
.tour-tab:hover { background: var(--bg-sunk); }
.tour-tab:active { transform: scale(.98); }
.tour-tab[aria-selected="true"] { background: var(--bg-elev); box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); }
.tour-tab .num { grid-row: span 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--bg-tint); color: var(--text-2); font-weight: 650; font-size: .875rem; transition: background-color .25s, color .25s; }
.tour-tab[aria-selected="true"] .num { background: var(--primary); color: var(--primary-ink); }
.tour-tab strong { font-weight: 650; letter-spacing: -.01em; align-self: end; }
.tour-tab span.desc { color: var(--text-2); font-size: .9375rem; line-height: 1.45; display: none; }
.tour-tab[aria-selected="true"] span.desc { display: block; }
.tour-panels { position: relative; }
.tour-panel[hidden] { display: none; }
.tour-panel { animation: panelIn .45s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Gallery of small shots */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.gallery .shot figcaption { margin-top: 10px; }
.gallery .shot figcaption strong { display: block; color: var(--text); font-size: .9875rem; margin-bottom: 2px; }

/* Flow (static steps) */
.flow { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; counter-reset: flow; }
.flow li { list-style: none; position: relative; padding: 20px 18px; border-radius: var(--radius-sm); background: var(--bg-elev); box-shadow: 0 0 0 1px var(--line); }
.flow li::before { counter-increment: flow; content: counter(flow, decimal-leading-zero); display: block; margin-bottom: 10px; font: 600 .8125rem/1 var(--mono); color: var(--accent); }
.flow strong { display: block; font-size: 1rem; letter-spacing: -.01em; }
.flow span { display: block; margin-top: 4px; font-size: .875rem; color: var(--text-2); line-height: 1.4; }
.flow-wrap { padding: 0; margin: 0; }

/* Role matrix */
.matrix-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); background: var(--bg-elev); }
.matrix { width: 100%; border-collapse: collapse; font-size: .9375rem; min-width: 640px; }
.matrix th, .matrix td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.matrix thead th { font-size: .78rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); background: var(--bg-sunk); }
.matrix tbody th { font-weight: 650; white-space: nowrap; }
.matrix tr:last-child th, .matrix tr:last-child td { border-bottom: 0; }
.yes, .no { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .875rem; }
.yes { color: var(--success); }
.no { color: var(--text-3); }
.yes::before { content: "●"; font-size: .6rem; }
.no::before { content: "○"; font-size: .6rem; }

/* Dark band */
.band { background: var(--band); color: var(--band-text); position: relative; overflow: hidden; }
.band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 70% at 85% 20%, rgba(61, 127, 161, .35), transparent 70%), radial-gradient(40% 60% at 0% 100%, rgba(40, 121, 129, .25), transparent 70%); pointer-events: none; }
.band > * { position: relative; }
.band h2, .band h3 { color: #fff; }
.band .lead, .band p { color: var(--band-text-2); }
.band .eyebrow { color: #8DD3D8; }
.band .card { background: rgba(255, 255, 255, .05); box-shadow: 0 0 0 1px rgba(255, 255, 255, .09); }
.band .card h3 { color: #fff; }
.band .card p { color: var(--band-text-2); }
.band .card .icon { background: rgba(141, 177, 199, .14); color: #A8D8DD; }
.band .checks li { color: #fff; }
.band .checks li span { color: var(--band-text-2); }
.band .checks li::before { background-color: rgba(141, 177, 199, .16); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.6L14.2 7' fill='none' stroke='%238DD3D8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.band .link-arrow { color: #A8D8DD; }

/* Callout / note */
.note { display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--radius-sm); background: var(--bg-tint); color: var(--text-2); font-size: .9375rem; line-height: 1.5; }
.note svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--accent); }
.note strong { color: var(--text); }

/* CTA */
.cta { text-align: center; }
.cta-box { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 96px) 24px; border-radius: 36px; background: linear-gradient(135deg, #082844 0%, #174E78 55%, #3D7FA1 100%); color: #EDF4F7; }
.cta-box::before { content: ""; position: absolute; inset: 0; background: radial-gradient(40% 60% at 80% 10%, rgba(216, 236, 246, .22), transparent 70%); pointer-events: none; }
.cta-box > * { position: relative; }
.cta-box h2 { color: #fff; }
.cta-box p { color: #C7D9E4; max-width: 34em; margin: 18px auto 0; font-size: 1.15rem; }
.cta-box .actions { justify-content: center; }

/* Footer */
.site-footer { padding: 64px 0 40px; border-top: 1px solid var(--line); font-size: .9375rem; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 32px; }
.footer-grid p { color: var(--text-2); max-width: 22em; margin-top: 14px; }
.footer-grid h4 { font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; }
.footer-grid nav { display: grid; gap: 8px; justify-items: start; }
.footer-grid nav a { color: var(--text-2); border-radius: 6px; transition: color .2s ease; }
.footer-grid nav a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--text-3); font-size: .875rem; }

/* Feature index (funcionalidades) */
.feature-index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature-group { padding: 28px; border-radius: var(--radius); background: var(--bg-elev); box-shadow: 0 0 0 1px var(--line); }
.feature-group h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.feature-group h3 .icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--bg-tint); color: var(--primary); }
:root[data-theme="dark"] .feature-group h3 .icon { color: var(--accent); }
.feature-group h3 .icon svg { width: 19px; height: 19px; }
.feature-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.feature-group li { position: relative; padding-left: 18px; color: var(--text-2); font-size: .9688rem; line-height: 1.45; }
.feature-group li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: .7; }
.feature-group li b { color: var(--text); font-weight: 600; }
.feature-group .link-arrow { margin-top: 18px; }

/* Pills (static) */
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.pill { padding: 6px 12px; border-radius: 999px; background: var(--bg-tint); color: var(--text-2); font-size: .8438rem; font-weight: 550; }

/* Studies catalog */
.catalog-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; justify-content: space-between; margin-bottom: 24px; }
.search { position: relative; flex: 1 1 360px; max-width: 520px; }
.search svg { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--text-3); }
.search input { width: 100%; height: 52px; padding: 0 18px 0 46px; border: 0; border-radius: 14px; background: var(--bg-elev); color: var(--text); font: inherit; box-shadow: 0 0 0 1px var(--line-strong); transition: box-shadow .2s ease; }
.search input:focus { outline: none; box-shadow: 0 0 0 3px rgba(61, 127, 161, .35), 0 0 0 1px var(--focus); }
.catalog { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: start; }
.classification-list { position: sticky; top: 88px; display: grid; align-content: start; gap: 4px; max-height: min(712px, calc(100vh - 110px)); overflow: auto; padding: 8px; border-radius: var(--radius); background: var(--bg-elev); box-shadow: 0 0 0 1px var(--line); }
.classification-button { display: flex; justify-content: space-between; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: transparent; color: var(--text-2); font: inherit; font-size: .9375rem; text-align: left; cursor: pointer; transition: background-color .2s, color .2s, transform .15s var(--ease); }
.classification-button:hover { background: var(--bg-sunk); color: var(--text); }
.classification-button:active { transform: scale(.98); }
.classification-button.active { background: var(--primary); color: var(--primary-ink); }
.classification-button small { opacity: .75; font-variant-numeric: tabular-nums; }
.study-panel { border-radius: var(--radius); background: var(--bg-elev); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.study-panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.study-panel-head h2 { font-size: 1.25rem; letter-spacing: -.015em; }
.study-panel-head span { color: var(--text-3); font-size: .9rem; }
.study-rows { display: grid; max-height: min(640px, calc(100vh - 220px)); overflow: auto; overscroll-behavior: contain; }
.study-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 24px; border-bottom: 1px solid var(--line); }
.study-row:last-child { border-bottom: 0; }
.study-row strong { font-weight: 550; }
.study-row span { color: var(--text-3); font-size: .8438rem; text-align: right; }
.catalog-empty { padding: 32px 24px; color: var(--text-3); }

/* Contact form */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg); background: var(--bg-elev); box-shadow: 0 0 0 1px var(--line), var(--shadow-md); }
.form .full { grid-column: 1 / -1; }
.form label { display: grid; gap: 8px; font-size: .9rem; font-weight: 600; color: var(--text); }
.form label small { font-weight: 400; color: var(--text-3); }
.form input, .form select, .form textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 0; border-radius: 12px; background: var(--bg); color: var(--text); font: inherit; font-weight: 400; box-shadow: 0 0 0 1px var(--line-strong); transition: box-shadow .2s ease; }
.form textarea { min-height: 130px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; box-shadow: 0 0 0 3px rgba(61, 127, 161, .35), 0 0 0 1px var(--focus); }
.form .note { grid-column: 1 / -1; }
.form-status { grid-column: 1 / -1; margin: 0; font-size: .9375rem; color: var(--success); }

/* Responsive */
@media (max-width: 1040px) {
  .main-nav a { padding: 8px 9px; font-size: .9rem; }
  .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feature-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .menu-button { display: inline-grid; }
  .main-nav {
    position: fixed; inset: 64px 0 auto 0; display: grid; gap: 2px; padding: 12px 16px 20px; margin: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    transform-origin: top; transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s ease, transform .35s var(--ease), visibility 0s linear .35s;
  }
  .main-nav.open { opacity: 1; transform: none; visibility: visible; transition: opacity .25s ease, transform .35s var(--ease); }
  .main-nav a { padding: 14px 12px; font-size: 1.0625rem; border-radius: 12px; }
  .header-cta { display: none; }
  .main-nav .nav-cta { display: flex; justify-content: center; margin-top: 10px; padding: 14px; border-radius: 999px; background: var(--primary); color: var(--primary-ink); font-weight: 600; }
  .main-nav .nav-cta:hover { background: var(--primary-hover); color: var(--primary-ink); }
  .split, .split.reverse, .split.even, .tour { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .tour-list { position: static; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .gallery, .grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog { grid-template-columns: 1fr; }
  .classification-list { position: static; max-height: 260px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  body { font-size: 1rem; }
  .shell { width: calc(100% - 32px); }
  .flow, .gallery, .grid.two, .grid.three, .grid.four, .feature-index { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact { padding: 20px 16px; }
  .fact strong { font-size: 1.4rem; }
  .form { grid-template-columns: 1fr; }
  .shot-frame::before { height: 20px; }
  .shot-frame::after { top: 7px; left: 10px; width: 6px; height: 6px; box-shadow: 10px 0 0 #febc2e, 20px 0 0 #28c840; }
  .card, .link-card, .feature-group { padding: 22px; }
  .study-row { grid-template-columns: 1fr; gap: 2px; }
  .study-row span { text-align: left; }
  .cta-box { border-radius: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .button:hover, .link-card:hover, .shot-frame:hover { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom-color: var(--line); }
}
@media print {
  .site-header, .site-footer, .cta, .lightbox { display: none !important; }
}
