/* ==========================================================================
   Afiplus Consultores — Design system v3 "Dark Glow"
   Brand: afi blue #1F74A8 · a+ red #AF122F on deep space-blue
   Self-contained: no external fonts, frameworks or third-party assets.
   ========================================================================== */

:root {
  /* Brand */
  --blue: #1f74a8;
  --blue-bright: #4da3d8;
  --blue-soft: #7cc0ee;
  --red: #af122f;
  --red-bright: #d8264a;
  --red-soft: #ef5a76;

  /* Dark surfaces */
  --bg: #05070d;
  --bg-raise: #0a0f1b;
  --glass: rgba(255, 255, 255, 0.035);
  --glass-strong: rgba(255, 255, 255, 0.06);
  --stroke: rgba(255, 255, 255, 0.09);
  --stroke-strong: rgba(255, 255, 255, 0.16);

  /* Text */
  --text: #eef3f9;
  --text-soft: #9fadc4;
  --text-faint: #74829d;
  --heading: #ffffff;

  /* Surfaces & controls (theme-dependent) */
  --surface-header: rgba(10, 15, 27, 0.72);
  --surface-panel: rgba(12, 18, 32, 0.96);
  --surface-chip: rgba(12, 18, 32, 0.82);
  --band-bg: rgba(255, 255, 255, 0.015);
  --input-bg: rgba(255, 255, 255, 0.04);
  --input-bg-focus: rgba(255, 255, 255, 0.07);
  --btn-contrast-bg: #ffffff;
  --btn-contrast-text: #0a0f1b;
  --glow-1: rgba(31, 116, 168, 0.28);
  --glow-2: rgba(175, 18, 47, 0.14);
  --glow-3: rgba(31, 116, 168, 0.1);
  --scroll-thumb: rgba(77, 163, 216, 0.38);
  --scroll-thumb-hover: rgba(77, 163, 216, 0.62);

  /* Gradients */
  --grad-accent: linear-gradient(96deg, var(--blue-bright), var(--red-soft));
  --grad-btn: linear-gradient(120deg, var(--red-bright), var(--red));

  /* Typography */
  --font-sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font-sans);
  --fs-hero: clamp(2.6rem, 1.2rem + 5.4vw, 4.9rem);
  --fs-h1: clamp(2.2rem, 1.2rem + 3.2vw, 3.6rem);
  --fs-h2: clamp(1.6rem, 1.1rem + 1.8vw, 2.5rem);
  --fs-h3: clamp(1.1rem, 1rem + 0.45vw, 1.3rem);
  --fs-body: clamp(0.98rem, 0.94rem + 0.2vw, 1.07rem);

  /* Layout */
  --container: 74rem;
  --radius: 16px;
  --radius-full: 999px;
  --header-h: 4.2rem;
}

/* ---------- Tema claro ---------- */
html[data-theme="light"] {
  --blue-bright: #1f74a8;
  --blue-soft: #17618f;
  --red-soft: #af122f;
  --bg: #f4f6f9;
  --bg-raise: #ffffff;
  --glass: rgba(14, 39, 69, 0.04);
  --glass-strong: rgba(14, 39, 69, 0.08);
  --stroke: rgba(14, 39, 69, 0.13);
  --stroke-strong: rgba(14, 39, 69, 0.22);
  --text: #14243a;
  --text-soft: #47586e;
  --text-faint: #5a6b82;
  --heading: #0e2745;
  --surface-header: rgba(255, 255, 255, 0.85);
  --surface-panel: rgba(255, 255, 255, 0.98);
  --surface-chip: rgba(255, 255, 255, 0.92);
  --band-bg: #ffffff;
  --input-bg: #ffffff;
  --input-bg-focus: #ffffff;
  --btn-contrast-bg: #0e2745;
  --btn-contrast-text: #ffffff;
  --grad-accent: linear-gradient(96deg, #1f74a8, #af122f);
  --glow-1: rgba(31, 116, 168, 0.12);
  --glow-2: rgba(175, 18, 47, 0.07);
  --glow-3: rgba(31, 116, 168, 0.06);
  --scroll-thumb: rgba(31, 116, 168, 0.42);
  --scroll-thumb-hover: rgba(31, 116, 168, 0.68);
}
html[data-theme="light"] .hero-visual .glow,
html[data-theme="light"] .page-hero::before,
html[data-theme="light"] .cta-band::before { opacity: 0.45; }
html[data-theme="light"] .header-bar { box-shadow: 0 10px 30px rgba(14, 39, 69, 0.08); }
html[data-theme="light"] .dropdown { box-shadow: 0 20px 50px rgba(14, 39, 69, 0.15); }
html[data-theme="light"] .card.hoverable:hover,
html[data-theme="light"] a.card:hover { box-shadow: 0 16px 40px rgba(14, 39, 69, 0.12), 0 0 0 1px rgba(31, 116, 168, 0.2); }
html[data-theme="light"] .float-chip { box-shadow: 0 10px 26px rgba(14, 39, 69, 0.14); }

/* El pie y el aviso de cookies conservan siempre la paleta oscura. */
.site-footer, .cookie-banner {
  --text: #eef3f9; --text-soft: #9fadc4; --text-faint: #74829d; --heading: #ffffff;
  --stroke: rgba(255, 255, 255, 0.09); --stroke-strong: rgba(255, 255, 255, 0.16);
  --glass: rgba(255, 255, 255, 0.035); --glass-strong: rgba(255, 255, 255, 0.06);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* ---------- Barras de desplazamiento ----------
   Discretas y en azul corporativo: píldora fina semitransparente sobre pista
   invisible, algo más intensa al pasar el ratón. */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--scroll-thumb);
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background-color: var(--scroll-thumb-hover); }
::-webkit-scrollbar-corner { background: var(--bg); }
@supports not selector(::-webkit-scrollbar) {
  html { scrollbar-width: thin; scrollbar-color: var(--scroll-thumb) transparent; }
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
/* Ambient glows */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60rem 34rem at 50% -12%, var(--glow-1), transparent 62%),
    radial-gradient(44rem 30rem at 108% 12%, var(--glow-2), transparent 60%),
    radial-gradient(40rem 30rem at -8% 78%, var(--glow-3), transparent 60%);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue-soft); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 0.55em; color: var(--heading); text-wrap: balance; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.35; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: absolute; left: -999px; top: 0; z-index: 300; background: var(--red); color: #fff; padding: 0.7rem 1.2rem; border-radius: 0 0 10px 0; }
.skip-link:focus { left: 0; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.2rem); }

/* Gradient accent text */
.grad-text, .hero h1 em, .page-hero h1 em {
  font-style: normal;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Floating pill header ---------- */
.site-header { position: sticky; top: 0.9rem; z-index: 100; pointer-events: none; }
.header-bar {
  pointer-events: auto;
  display: flex; align-items: center; gap: 1rem;
  height: var(--header-h);
  max-width: var(--container); margin-inline: auto;
  margin-inline: max(1.1rem, calc((100% - var(--container)) / 2));
  padding-inline: 1.1rem 0.6rem;
  background: var(--surface-header);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-full);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled .header-bar { border-color: var(--stroke-strong); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6); }
/* Al saltar a un ancla (#apartado), dejar sitio para la cabecera flotante (0.9rem + altura) y un respiro. */
main [id], main[id] { scroll-margin-top: calc(var(--header-h) + 2.2rem); }

.brand { display: flex; align-items: center; gap: 0.55rem; }
.brand:hover { text-decoration: none; }
.brand-mark { height: 2.15rem; width: auto; flex: none; }
.brand-name { font-weight: 800; font-size: 1.18rem; letter-spacing: -0.03em; color: var(--heading); line-height: 1; }
.brand-name small { display: block; font-size: 0.55rem; font-weight: 700; letter-spacing: 0.32em; text-transform: uppercase; color: var(--red-soft); margin-top: 0.15rem; }

.site-nav { margin-inline: auto; }
.nav-list { display: flex; align-items: center; gap: 0.1rem; list-style: none; margin: 0; padding: 0; }
.nav-list > li { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.5rem 0.85rem; border-radius: var(--radius-full);
  color: var(--text-soft); font-weight: 600; font-size: 0.9rem;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover, .nav-link[aria-expanded="true"] { color: var(--heading); background: var(--glass-strong); text-decoration: none; }
.nav-link[aria-current="page"] { color: var(--heading); background: var(--glass-strong); box-shadow: inset 0 0 0 1px var(--stroke); }
.nav-caret { transition: transform 0.25s; width: 0.8rem; height: 0.8rem; }
.nav-link[aria-expanded="true"] .nav-caret { transform: rotate(180deg); }

.header-cta { display: flex; align-items: center; gap: 0.55rem; }
.header-cta .btn { padding: 0.5rem 1.15rem; font-size: 0.85rem; }
@media (max-width: 72rem) { .header-cta .btn-contact { display: none; } }

.dropdown {
  position: absolute; top: calc(100% + 0.9rem); left: 50%; translate: -50% 0;
  min-width: 17.5rem; padding: 0.45rem;
  background: var(--surface-panel);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border: 1px solid var(--stroke-strong); border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.22s, transform 0.22s, visibility 0.22s;
  list-style: none; margin: 0;
}
.dropdown.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: flex; align-items: center; gap: 0.7rem; padding: 0.65rem 0.8rem; border-radius: 10px; color: var(--text-soft); font-weight: 600; font-size: 0.9rem; }
.dropdown a:hover { background: var(--glass-strong); color: var(--heading); text-decoration: none; }
.dropdown svg { width: 1.15rem; height: 1.15rem; color: var(--blue-bright); flex: none; }

.lang-switch { display: inline-flex; align-items: center; padding: 0.18rem; gap: 0.1rem; border: 1px solid var(--stroke); border-radius: var(--radius-full); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.05em; }
.lang-switch a, .lang-switch .is-active { padding: 0.26rem 0.6rem; border-radius: var(--radius-full); color: var(--text-faint); }
.lang-switch a:hover { color: var(--heading); background: var(--glass-strong); text-decoration: none; }
.lang-switch .is-active { background: var(--grad-btn); color: #fff; }

.theme-toggle {
  width: 2.6rem; height: 2.6rem; flex: none;
  border: 1px solid var(--stroke); border-radius: var(--radius-full);
  background: transparent; cursor: pointer;
  display: grid; place-items: center; color: var(--heading);
  transition: background 0.2s, border-color 0.2s;
}
.theme-toggle:hover { background: var(--glass-strong); border-color: var(--stroke-strong); }
.theme-toggle svg { width: 1.15rem; height: 1.15rem; }
html[data-theme="light"] .theme-toggle .icon-sun { display: none; }
html:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }

.nav-toggle {
  display: none;
  width: 2.6rem; height: 2.6rem; border: 1px solid var(--stroke);
  border-radius: var(--radius-full);
  background: transparent; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 1.3rem; height: 1.3rem; color: var(--heading); }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Hero (home) ---------- */
.hero { position: relative; overflow: hidden; margin-top: calc(-1 * (var(--header-h) + 0.9rem)); padding-top: calc(var(--header-h) + 0.9rem); }
.hero-inner { position: relative; z-index: 2; text-align: center; padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(3rem, 7vw, 5.5rem); display: flex; flex-direction: column; align-items: center; }

.hero-badge, .hero-kicker {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.45rem 1.1rem; border-radius: var(--radius-full);
  background: var(--glass); border: 1px solid var(--stroke);
  color: var(--text-soft); font-weight: 600; font-size: 0.85rem;
  margin-bottom: 1.7rem;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hero-badge svg, .hero-kicker svg { width: 1rem; height: 1rem; color: var(--red-soft); }

.hero h1 { font-size: var(--fs-hero); font-weight: 800; max-width: 18ch; margin-inline: auto; margin-bottom: 1.2rem; }
.hero-sub { max-width: 56ch; margin-inline: auto; font-size: clamp(1rem, 0.95rem + 0.4vw, 1.2rem); color: var(--text-soft); margin-bottom: 2.4rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; }

/* Hero visual: glowing horizon + floating chips + signal line */
.hero-visual { position: relative; width: min(64rem, 100%); margin: clamp(2.5rem, 6vw, 4.5rem) auto 0; padding: 0 1rem; }
.hero-visual .glow {
  position: absolute; left: 50%; bottom: -4rem; translate: -50% 0;
  width: 90%; height: 16rem; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(31, 116, 168, 0.5), rgba(175, 18, 47, 0.18) 55%, transparent 75%);
  filter: blur(28px);
  pointer-events: none;
}
.hero-visual svg { position: relative; z-index: 1; width: 100%; height: auto; }
.float-chip {
  position: absolute; z-index: 2;
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.5rem 1rem; border-radius: var(--radius-full);
  background: var(--surface-chip); border: 1px solid var(--stroke-strong);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--text); font-weight: 600; font-size: 0.82rem; white-space: nowrap;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  animation: bob 7s ease-in-out infinite;
}
.float-chip svg { width: 0.95rem; height: 0.95rem; color: var(--blue-bright); }
.float-chip .dot-red { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--red-bright); box-shadow: 0 0 12px var(--red-bright); }
.float-chip.c1 { left: 4%; top: 14%; animation-delay: 0s; }
.float-chip.c2 { right: 6%; top: 6%; animation-delay: -2s; }
.float-chip.c3 { left: 14%; bottom: 26%; animation-delay: -4s; }
.float-chip.c4 { right: 13%; bottom: 34%; animation-delay: -5.5s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (max-width: 46rem) {
  .float-chip { position: static; animation: none; margin: 0.25rem; }
  .hero-visual { display: flex; flex-wrap: wrap; justify-content: center; padding-bottom: 1.5rem; }
  .hero-visual svg { display: none; }
}

/* Trust bar (hero credentials) */
.trust-bar { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-top: 2.2rem; }
.trust-item {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem; border-radius: var(--radius-full);
  border: 1px solid var(--stroke); background: var(--glass);
  font-size: 0.84rem; font-weight: 600; color: var(--text-soft);
}
.trust-item svg { width: 1rem; height: 1rem; color: var(--red-soft); flex: none; }

.molecule { position: absolute; pointer-events: none; color: rgba(124, 192, 238, 0.18); animation: float 9s ease-in-out infinite; }
.molecule.m2 { animation-duration: 12s; animation-delay: -3s; color: rgba(239, 90, 118, 0.15); }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-16px) rotate(3deg); } }
@media (prefers-reduced-motion: reduce) {
  .molecule, .float-chip { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Page hero (interior) ---------- */
.page-hero { position: relative; overflow: hidden; padding: clamp(3.4rem, 7vw, 5.5rem) 0 clamp(2.4rem, 5vw, 3.6rem); text-align: center; }
.page-hero::before {
  content: ""; position: absolute; left: 50%; top: -12rem; translate: -50% 0;
  width: 52rem; height: 22rem; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(31, 116, 168, 0.3), transparent 75%);
  filter: blur(30px); pointer-events: none;
}
.page-hero h1 { position: relative; max-width: 24ch; margin-inline: auto; margin-bottom: 0.5rem; }
.page-hero .lede { position: relative; max-width: 58ch; margin-inline: auto; color: var(--text-soft); font-size: 1.1rem; }
.breadcrumb { position: relative; display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; justify-content: center; list-style: none; margin: 0 0 1.3rem; padding: 0; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.breadcrumb a { color: var(--blue-soft); }
.breadcrumb li:not(:last-child)::after { content: ""; display: inline-block; width: 0.55em; height: 0.59em; margin-left: 0.45rem; background: var(--red-soft); -webkit-mask: var(--plus-mask) center / contain no-repeat; mask: var(--plus-mask) center / contain no-repeat; }
.breadcrumb [aria-current] { color: var(--text-faint); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.85rem 1.8rem; border: 1px solid transparent; border-radius: var(--radius-full);
  font-family: var(--font-sans); font-weight: 700; font-size: 0.95rem; cursor: pointer;
  transition: transform 0.16s, box-shadow 0.16s, background 0.16s, color 0.16s, border-color 0.16s, filter 0.16s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: none; }
.btn svg { width: 1.05rem; height: 1.05rem; }
.btn-primary { background: var(--grad-btn); color: #fff; box-shadow: 0 8px 26px rgba(200, 18, 54, 0.4); }
.btn-primary:hover { filter: brightness(1.12); box-shadow: 0 12px 34px rgba(200, 18, 54, 0.55); }
.btn-ghost { background: var(--glass); color: var(--heading); border-color: var(--stroke-strong); }
.btn-ghost:hover { border-color: var(--stroke-strong); background: var(--glass-strong); }
.btn-dark { background: var(--btn-contrast-bg); color: var(--btn-contrast-text); }
.btn-dark:hover { box-shadow: 0 10px 30px rgba(255, 255, 255, 0.18); }
.btn-light { background: var(--glass); color: var(--heading); border-color: var(--stroke-strong); }
.btn-light:hover { border-color: var(--blue-bright); color: var(--blue-soft); }

/* ---------- Brand plus ----------
   La cruz del logotipo a+ (con su corte diagonal inferior), extraída del SVG
   vectorial y usada como máscara para tintarla con cualquier color de marca. */
:root {
  --plus-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 163.4 175.3'%3E%3Cpath d='M98.21 0.02 98.25 70.24 163.3 70.24 163.38 114.11 163.18 114.97 98.28 114.95 98.49 158.86 50.07 175.21 50.06 114.96 0 114.96 0 70.24 50.09 70.25 50.07 0 Z'/%3E%3C/svg%3E");
}
.brand-plus {
  display: inline-block; width: 0.6em; height: 0.64em;
  background: currentColor;
  -webkit-mask: var(--plus-mask) center / contain no-repeat;
  mask: var(--plus-mask) center / contain no-repeat;
}

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section.alt { background: var(--bg-raise); border-block: 1px solid var(--stroke); }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 5vw, 3.4rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-bottom: 1rem; padding: 0.3rem 0.9rem;
  border: 1px solid var(--stroke); border-radius: var(--radius-full);
  background: var(--glass);
  color: var(--blue-soft); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase;
}
.kicker::before { content: ""; flex: none; width: 0.62rem; height: 0.66rem; background: var(--red-soft); -webkit-mask: var(--plus-mask) center / contain no-repeat; mask: var(--plus-mask) center / contain no-repeat; }
.section-head p { color: var(--text-soft); font-size: 1.06rem; margin: 0; }

/* ---------- Marquee (sectors ribbon) ---------- */
.marquee { position: relative; overflow: hidden; border-block: 1px solid var(--stroke); background: var(--band-bg); padding: 1rem 0; }
.marquee-pause {
  position: absolute; right: 0.6rem; top: 50%; translate: 0 -50%; z-index: 2;
  width: 2.3rem; height: 2.3rem; border-radius: 50%;
  border: none; background: var(--btn-contrast-bg); color: var(--btn-contrast-text);
  cursor: pointer; display: grid; place-items: center; opacity: 0.9;
  box-shadow: 0 2px 12px rgba(5, 7, 13, 0.35); transition: opacity 0.2s, transform 0.2s;
}
.marquee-pause:hover { opacity: 1; transform: translateY(-1px); }
.marquee-pause svg { width: 0.85rem; height: 0.85rem; }
.marquee.is-paused .marquee-track { animation-play-state: paused; }
.marquee-pause .icon-play { display: none; }
.marquee.is-paused .marquee-pause .icon-pause { display: none; }
.marquee.is-paused .marquee-pause .icon-play { display: block; }
.marquee-track { display: flex; width: max-content; animation: marquee var(--marquee-dur, 32s) linear infinite; }
html:not(.js) .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-size: clamp(1rem, 0.9rem + 0.9vw, 1.5rem); font-weight: 600; letter-spacing: -0.01em; color: var(--text-faint); white-space: nowrap; padding-right: 1.1rem; }
.marquee-track span::after { content: ""; display: inline-block; width: 0.6em; height: 0.64em; margin-left: 1.1rem; background: var(--red-bright); -webkit-mask: var(--plus-mask) center / contain no-repeat; mask: var(--plus-mask) center / contain no-repeat; }
@keyframes marquee { to { transform: translateX(calc(-1 * var(--marquee-shift, 50%))); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; flex-wrap: wrap; width: auto; } }

/* ---------- Numbered service rows ---------- */
.svc-rows { border-top: 1px solid var(--stroke); }
.svc-row {
  display: grid; grid-template-columns: 5rem minmax(0, 1.15fr) minmax(0, 2fr) 3.2rem;
  gap: clamp(1rem, 3vw, 2.5rem); align-items: center;
  padding: clamp(1.5rem, 3.4vw, 2.3rem) 0.8rem;
  border-bottom: 1px solid var(--stroke); color: inherit; border-radius: 0;
  transition: background 0.25s, padding-left 0.25s, border-radius 0.25s;
}
.svc-row:hover { text-decoration: none; background: var(--glass); padding-left: 1.3rem; border-radius: var(--radius); }
.svc-num { font-weight: 800; font-size: clamp(1.7rem, 1.2rem + 2vw, 2.9rem); line-height: 1; background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: 0.5; transition: opacity 0.25s; }
.svc-row:hover .svc-num { opacity: 1; }
.svc-row h3 { margin: 0; font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.75rem); }
.svc-row p { margin: 0; color: var(--text-soft); font-size: 0.95rem; }
.svc-arrow {
  width: 3rem; height: 3rem; border-radius: 50%; border: 1px solid var(--stroke-strong);
  display: grid; place-items: center; color: var(--heading);
  transition: background 0.25s, border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.svc-arrow svg { width: 1.1rem; height: 1.1rem; }
.svc-row:hover .svc-arrow { background: var(--grad-btn); border-color: transparent; transform: rotate(-45deg); box-shadow: 0 8px 24px rgba(200, 18, 54, 0.45); }
@media (max-width: 46rem) {
  .svc-row { grid-template-columns: 2.8rem 1fr 2.5rem; }
  .svc-row p { grid-column: 2; }
  .svc-arrow { width: 2.5rem; height: 2.5rem; }
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.3rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(21rem, 100%), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); }

.card {
  position: relative; display: flex; flex-direction: column; gap: 0.4rem;
  background: var(--glass); border: 1px solid var(--stroke); border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: transform 0.22s, border-color 0.22s, background 0.22s, box-shadow 0.22s;
}
a.card { color: inherit; }
a.card:hover { text-decoration: none; }
.card.hoverable:hover, a.card:hover {
  transform: translateY(-5px); background: var(--glass-strong);
  border-color: rgba(77, 163, 216, 0.45);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(77, 163, 216, 0.2);
}
.card h3 { margin-bottom: 0.25rem; color: var(--heading); }
.card p { color: var(--text-soft); margin: 0; font-size: 0.95rem; }
.card .card-link { margin-top: auto; padding-top: 1.1rem; font-weight: 700; color: var(--red-soft); display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.08em; }
.card .card-link svg { width: 1rem; height: 1rem; transition: transform 0.2s; }
a.card:hover .card-link svg, .card.hoverable:hover .card-link svg { transform: translateX(5px); }

.icon-tile {
  width: 3rem; height: 3rem; margin-bottom: 1rem; flex: none;
  display: grid; place-items: center; border-radius: 12px;
  background: linear-gradient(135deg, rgba(31, 116, 168, 0.3), rgba(175, 18, 47, 0.22));
  border: 1px solid var(--stroke-strong);
  color: var(--blue-soft);
}
.icon-tile svg { width: 1.5rem; height: 1.5rem; }
.card:hover .icon-tile { color: var(--heading); }

/* Feature list rows */
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.feature-list li { display: flex; gap: 0.75rem; align-items: flex-start; color: var(--text-soft); }
.feature-list svg { width: 1.25rem; height: 1.25rem; flex: none; color: var(--red-soft); margin-top: 0.25rem; }
.feature-list strong { color: var(--text); }

/* Sector chips (interior pages) */
.chip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(11.5rem, 100%), 1fr)); gap: 1rem; }
.chip {
  display: flex; flex-direction: column; align-items: center; gap: 0.7rem; text-align: center;
  padding: 1.5rem 1rem; background: var(--glass); border: 1px solid var(--stroke); border-radius: var(--radius);
  font-weight: 600; font-size: 0.93rem; color: var(--text);
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}
.chip:hover { transform: translateY(-4px); border-color: rgba(77, 163, 216, 0.45); background: var(--glass-strong); }
.chip svg { width: 1.85rem; height: 1.85rem; color: var(--blue-bright); }

/* ---------- Stats ---------- */
.stats-band { position: relative; padding: clamp(2.6rem, 6vw, 4.2rem) 0; border-block: 1px solid var(--stroke); background: var(--band-bg); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 1fr)); gap: 2rem; text-align: center; }
.stats-grid > div { border-left: 1px solid var(--stroke); }
.stats-grid > div:first-child { border-left: 0; }
@media (max-width: 46rem) { .stats-grid > div { border-left: 0; } }
.stat-value { font-weight: 800; letter-spacing: -0.04em; font-size: clamp(2.3rem, 1.5rem + 3.2vw, 3.8rem); line-height: 1; background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { margin-top: 0.6rem; color: var(--text-faint); font-weight: 600; font-size: 0.92rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 50rem; display: grid; gap: 0.8rem; }
.faq-item { background: var(--glass); border: 1px solid var(--stroke); border-radius: var(--radius); padding: 0 1.4rem; transition: border-color 0.2s, background 0.2s; }
.faq-item[open] { border-color: var(--stroke-strong); background: var(--glass-strong); }
.faq-item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 0; font-weight: 700; color: var(--heading); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-caret { width: 1rem; height: 1rem; flex: none; transition: transform 0.25s; color: var(--red-soft); }
.faq-item[open] .faq-caret { transform: rotate(180deg); }
.faq-item p { color: var(--text-soft); padding-bottom: 1.2rem; margin: 0; }

/* ---------- Process steps ---------- */
.step-num { font-weight: 800; font-size: 2rem; line-height: 1; background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 0.6rem; }

/* ---------- Team ---------- */
.team-card { text-align: left; }
.team-photo { width: 100%; height: auto; aspect-ratio: 1.18; object-fit: cover; border-radius: var(--radius); margin-bottom: 1.1rem; border: 1px solid var(--stroke); }
.avatar {
  width: 4.3rem; height: 4.3rem; border-radius: 50%; margin-bottom: 1.1rem;
  display: grid; place-items: center; position: relative;
  background: linear-gradient(135deg, var(--blue), #14456b);
  color: #fff; font-weight: 800; font-size: 1.35rem; letter-spacing: 0.01em;
}
.avatar::after { content: ""; position: absolute; right: -0.3rem; top: -0.3rem; width: 1.35rem; height: 1.35rem; border-radius: 50%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 163.4 175.3'%3E%3Cpath fill='%23fff' d='M98.21 0.02 98.25 70.24 163.3 70.24 163.38 114.11 163.18 114.97 98.28 114.95 98.49 158.86 50.07 175.21 50.06 114.96 0 114.96 0 70.24 50.09 70.25 50.07 0 Z'/%3E%3C/svg%3E") center / 50% auto no-repeat, var(--grad-btn); box-shadow: 0 4px 14px rgba(200, 18, 54, 0.5); }
.team-role { color: var(--red-soft); font-weight: 800; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.18em; margin-bottom: 0.7rem; }
.team-card ul { margin: 0.4rem 0 0; padding-left: 1.1em; color: var(--text-soft); font-size: 0.93rem; display: grid; gap: 0.35rem; }

/* ---------- Prose (legal / long-form) ---------- */
.prose { max-width: 50rem; margin-inline: auto; }
.prose h2 { font-size: 1.55rem; margin-top: 2.4em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.15rem; margin-top: 1.8em; }
.prose ul { color: var(--text-soft); display: grid; gap: 0.4rem; }
.prose p { color: var(--text-soft); }
.prose strong { color: var(--text); }
.prose .note { border: 1px solid var(--stroke-strong); border-left: 3px solid var(--red-bright); background: var(--glass); border-radius: 0 var(--radius) var(--radius) 0; padding: 1rem 1.3rem; margin: 1.4em 0; }
.toc { background: var(--glass); border: 1px solid var(--stroke); border-radius: var(--radius); padding: 1.5rem 1.7rem; margin-bottom: 2.6rem; }
.toc strong { display: block; margin-bottom: 0.6rem; color: var(--heading); font-size: 1.02rem; }
.toc ol { margin: 0; padding-left: 1.3em; columns: 2; column-gap: 2.5rem; color: var(--text-soft); font-weight: 600; font-size: 0.93rem; }
.toc li { margin-bottom: 0.35rem; break-inside: avoid; }
/* Índice en tarjetas (Código Ético): apartados numerados; los subapartados
   se muestran en un panel a ancho completo bajo la rejilla (main.js). Sin JS
   los paneles se ven siempre y los botones se ocultan. */
.toc-cards .toc-main { list-style: none; padding: 0; columns: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; font-size: 0.95rem; }
.toc-cards .toc-main > li { margin: 0; }
.toc-cards .toc-main > li > a { display: flex; align-items: baseline; gap: 0.75rem; padding: 0.75rem 0.95rem; border: 1px solid var(--stroke); border-radius: calc(var(--radius) * 0.6); background: var(--surface-chip); color: var(--heading); text-decoration: none; transition: border-color 0.2s, background 0.2s, transform 0.2s; }
.toc-cards .toc-main > li > a:hover, .toc-cards .toc-main > li.is-open > a { border-color: var(--blue-bright); background: var(--glass-strong); }
.toc-cards .toc-main > li > a:hover { transform: translateY(-2px); }
.toc-cards .toc-num { flex: none; min-width: 1.6em; height: 1.6em; display: inline-grid; place-items: center; border-radius: 50%; background: var(--grad-btn); color: #fff; font-size: 0.72rem; font-weight: 800; }
.toc-toggle { margin: 0.35rem 0 0 0.3rem; padding: 0; border: 0; background: none; font: inherit; font-size: 0.78rem; font-weight: 600; color: var(--blue-bright); cursor: pointer; display: inline-flex; align-items: center; gap: 0.3rem; }
.toc-toggle::before { content: "+"; display: inline-grid; place-items: center; width: 1.1em; height: 1.1em; border-radius: 50%; border: 1px solid currentColor; font-size: 0.85em; }
.toc-toggle[aria-expanded="true"]::before { content: "−"; }
.toc-panel { margin-top: 0.7rem; padding: 0.8rem 0.95rem; border: 1px solid var(--stroke-strong); border-radius: calc(var(--radius) * 0.6); background: var(--surface-chip); }
.toc-panel-title { display: block; margin-bottom: 0.55rem; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--heading); }
.toc-panel ol { list-style: none; padding: 0; margin: 0; columns: auto; display: flex; flex-wrap: wrap; gap: 0.35rem; font-weight: 500; font-size: 0.78rem; }
.toc-panel li { margin: 0; }
.toc-panel li a { display: inline-block; padding: 0.22rem 0.6rem; border-radius: 999px; border: 1px solid var(--stroke); background: var(--glass); color: var(--text-soft); text-decoration: none; }
.toc-panel li a:hover { border-color: var(--blue-bright); color: var(--heading); }
/* Mientras main.js no haya activado el índice (JS desactivado o previsualización
   del editor, que no carga main.js) los paneles se ven siempre y sin botones. */
.toc-cards:not(.is-ready) .toc-panel[hidden] { display: block; }
.toc-cards:not(.is-ready) .toc-toggle { display: none; }
@media (max-width: 42rem) { .toc-cards .toc-main { grid-template-columns: 1fr; } }
@media (max-width: 42rem) { .toc ol { columns: 1; } }

/* ---------- Split layout ---------- */
.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); grid-template-columns: repeat(auto-fit, minmax(min(22rem, 100%), 1fr)); align-items: center; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; text-align: center; padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.cta-band::before {
  content: ""; position: absolute; left: 50%; bottom: -14rem; translate: -50% 0;
  width: 60rem; height: 26rem; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(175, 18, 47, 0.35), rgba(31, 116, 168, 0.18) 55%, transparent 78%);
  filter: blur(34px); pointer-events: none;
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { max-width: 26ch; margin-inline: auto; font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3rem); }
.cta-band p { color: var(--text-soft); max-width: 52ch; margin: 0 auto 2.2rem; font-size: 1.1rem; }

/* ---------- News ---------- */
.news-card time, .news-card .card-tag { display: block; color: var(--red-soft); font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; }
.news-meta { display: flex; gap: 1.4rem; flex-wrap: wrap; justify-content: center; color: var(--text-faint); font-size: 0.9rem; margin-bottom: 1.6rem; }
.news-meta svg { width: 1rem; height: 1rem; color: var(--red-soft); display: inline-block; vertical-align: -0.15em; }
.article-body { max-width: 46rem; margin-inline: auto; }
.article-body p { color: var(--text-soft); font-size: 1.05rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 2.2rem; grid-template-columns: repeat(auto-fit, minmax(min(21rem, 100%), 1fr)); align-items: start; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; padding: 1.15rem 0; border-bottom: 1px solid var(--stroke); }
.contact-item:last-child { border-bottom: 0; }
.contact-item svg { width: 1.3rem; height: 1.3rem; color: var(--blue-bright); flex: none; margin-top: 0.2rem; }
.contact-item strong { display: block; color: var(--heading); }
.contact-item a { font-weight: 600; }
.contact-item p, .contact-item span { color: var(--text-soft); margin: 0; }

.form { display: grid; gap: 1.1rem; }
/* Campo señuelo anti-spam: invisible para personas, tentador para bots. */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-row { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr)); }
.field label { display: block; font-weight: 700; font-size: 0.82rem; margin-bottom: 0.4rem; color: var(--text); text-transform: uppercase; letter-spacing: 0.08em; }
.field input, .field textarea {
  width: 100%; padding: 0.85rem 1.05rem; border: 1px solid var(--stroke-strong); border-radius: 12px;
  font: inherit; color: var(--text); background: var(--input-bg);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input:focus, .field textarea:focus { outline: none; background: var(--input-bg-focus); border-color: var(--blue-bright); box-shadow: 0 0 0 4px rgba(77, 163, 216, 0.18); }
.field textarea { min-height: 9rem; resize: vertical; }
.field .error-msg { display: none; color: var(--red-soft); font-size: 0.85rem; font-weight: 600; margin-top: 0.3rem; }
.field.invalid input, .field.invalid textarea { border-color: var(--red-bright); }
.field.invalid .error-msg { display: block; }
.checkbox-field { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.88rem; color: var(--text-soft); }
.checkbox-field input { width: 1.15rem; height: 1.15rem; margin-top: 0.2rem; accent-color: var(--red-bright); flex: none; }
.consent-error { display: none; color: var(--red-soft); font-size: 0.85rem; font-weight: 600; }
.consent-error.is-visible { display: block; }
.checkbox-field a { color: var(--blue-soft); }
.form-status { display: none; padding: 1rem 1.3rem; border-radius: 12px; border: 1px solid rgba(77, 163, 216, 0.4); font-weight: 600; }
.form-status.ok { display: block; background: rgba(31, 116, 168, 0.15); color: var(--blue-soft); }

/* ---------- Footer ---------- */
.site-footer { background: #030509; color: var(--text-faint); padding: clamp(3rem, 7vw, 4.5rem) 0 2rem; border-top: 1px solid var(--stroke); }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); margin-bottom: 3rem; }
.site-footer h4 { color: var(--heading); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.22em; margin-bottom: 1.1rem; }
.site-footer h4::before { content: "+ "; color: var(--red-soft); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.site-footer a { color: var(--text-soft); font-weight: 500; }
.site-footer a:hover { color: var(--heading); }
.footer-brand .brand-name { color: var(--heading); }
.footer-logo-wrap { display: inline-block; background: #fff; border-radius: 14px; padding: 0.7rem 1rem; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); }
.footer-logo { height: 3.6rem; width: auto; }
.footer-brand p { margin-top: 1rem; font-size: 0.93rem; max-width: 30ch; }
.footer-bottom { border-top: 1px solid var(--stroke); padding-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; font-size: 0.86rem; }
.social-links { display: flex; gap: 0.7rem; }
.social-links a { width: 2.4rem; height: 2.4rem; display: grid; place-items: center; border: 1px solid var(--stroke-strong); border-radius: 50%; color: var(--text-soft); transition: border-color 0.2s, background 0.2s, transform 0.2s, color 0.2s; }
.social-links a:hover { border-color: transparent; background: var(--grad-btn); color: #fff; transform: translateY(-2px); }
.social-links svg { width: 1.02rem; height: 1.02rem; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; inset-inline: 1rem; bottom: 1rem; z-index: 150;
  max-width: 34rem; margin-inline: auto;
  background: rgba(12, 18, 32, 0.92);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  color: var(--text-soft);
  border: 1px solid var(--stroke-strong); border-radius: var(--radius);
  padding: 1.4rem 1.6rem; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  display: none;
}
.cookie-banner.is-visible { display: block; animation: rise 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.15); }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.cookie-banner p { font-size: 0.9rem; margin-bottom: 1rem; }
.cookie-banner a { color: var(--heading); font-weight: 700; text-decoration: underline; }
.cookie-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; justify-content: center; }
.cookie-actions .btn { padding: 0.55rem 1.4rem; font-size: 0.88rem; }

/* ---------- Scroll reveal ----------
   Hidden states apply only while JS runs, via :where() so they carry zero
   specificity and the .is-visible rules always win. */
:where(html.js) .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.3, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1); }
.reveal.is-visible { opacity: 1; transform: none; }
:where(html.js) .reveal-stagger > * { opacity: 0; transform: translateY(26px); transition: opacity 0.65s cubic-bezier(0.2, 0.7, 0.3, 1), transform 0.65s cubic-bezier(0.2, 0.7, 0.3, 1); }
.reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.4s; }
@media (prefers-reduced-motion: reduce) {
  :where(html.js) .reveal, :where(html.js) .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
}

/* ---------- To top ---------- */
.to-top {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 90;
  width: 2.9rem; height: 2.9rem; border: 1px solid var(--stroke-strong); border-radius: 50%; cursor: pointer;
  background: var(--surface-panel); color: var(--heading); display: grid; place-items: center;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s, background 0.2s, border-color 0.2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--grad-btn); border-color: transparent; }
.to-top svg { width: 1.15rem; height: 1.15rem; }

/* ---------- Mobile ---------- */
@media (max-width: 62rem) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; left: 1rem; right: 1rem; top: calc(var(--header-h) + 1.6rem); z-index: 99;
    background: var(--surface-panel);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    border: 1px solid var(--stroke-strong); border-radius: 18px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
    max-height: 0; overflow: hidden; transition: max-height 0.35s ease;
    margin: 0; visibility: hidden;
  }
  .site-nav.is-open { max-height: min(72vh, 34rem); overflow-y: auto; visibility: visible; }
  .nav-list { flex-direction: column; align-items: stretch; padding: 1rem 1.2rem 1.4rem; gap: 0.1rem; }
  .nav-link { width: 100%; justify-content: space-between; padding: 0.85rem 0.8rem; font-size: 1rem; border-radius: 12px; }
  .dropdown {
    position: static; translate: none; transform: none; min-width: 0;
    border: 0; box-shadow: none; background: transparent; padding: 0 0 0.4rem 0.8rem;
    display: none; opacity: 1; visibility: visible;
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .dropdown.is-open { display: block; }
  .header-cta .btn-contact { display: none; }
}
