/* Maqueta tumanager.es: sistema de diseño
   Color: tinta azul (texto), azul de marca del logo, niebla, ambar de accion.
   Tipo: Bricolage Grotesque (titulares) + Source Sans 3 (texto). */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-3-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}

:root {
  --paper: #f6f8fc;
  --white: #ffffff;
  --ink: #0e1a3b;
  --ink-soft: #3a4668;
  --blue: #1f4fb5;
  --blue-deep: #163a8a;
  --mist: #dde5f5;
  --line: #c9d3ea;
  --amber: #f0b13e;
  --amber-deep: #d99a22;
  --focus: #0b57d0;

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;

  --step--1: clamp(0.875rem, 0.85rem + 0.1vw, 0.95rem);
  --step-0: clamp(1.0625rem, 1.03rem + 0.15vw, 1.1875rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.6rem, 1.35rem + 1.2vw, 2.3rem);
  --step-3: clamp(2.1rem, 1.6rem + 2.4vw, 3.6rem);
  --step-4: clamp(2.35rem, 1.6rem + 3.2vw, 4.1rem);

  --gutter: 1.25rem;
  --max: 72rem;
  --radius: 0.5rem;
  --text-scale: 1;
}

/* Preferencias de accesibilidad del visitante (se activan desde el panel) */
html[data-a11y-contrast="high"] {
  --paper: #ffffff;
  --white: #ffffff;
  --ink: #000000;
  --ink-soft: #000000;
  --blue: #0a2f8f;
  --line: #000000;
  --mist: #e8e8e8;
}
html[data-a11y-font="readable"] {
  --font-display: Verdana, Tahoma, sans-serif;
  --font-body: Verdana, Tahoma, sans-serif;
}
html[data-a11y-links="underline"] a { text-decoration: underline !important; }
html[data-a11y-motion="reduce"] *,
html[data-a11y-motion="reduce"] *::before,
html[data-a11y-motion="reduce"] *::after {
  animation: none !important;
  transition: none !important;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: calc(100% * var(--text-scale));
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
}

img, svg { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: 62ch; }

a { color: var(--blue); text-underline-offset: 0.2em; }
a:hover { color: var(--blue-deep); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
  border-radius: var(--radius);
}
.skip:focus { top: 0.75rem; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.brand-logo {
  width: 3.4rem;
  height: auto;
  flex: none;
  border-radius: .55rem;
  background: #000;
}
.brand span span { color: var(--blue); }
@media (max-width: 35rem) {
  .brand { gap: .4rem; font-size: 1.05rem; }
  .brand-logo { width: 3rem; }
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius);
}
.nav a:hover { background: var(--mist); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--blue); border-radius: 0; }

.header-tools { display: flex; align-items: center; gap: 0.5rem; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: 50%;
  cursor: pointer;
}
.icon-btn:hover { background: var(--mist); }
.icon-btn svg { width: 1.4rem; height: 1.4rem; }

.menu-toggle { display: none; }

@media (max-width: 52rem) {
  .menu-toggle { display: inline-grid; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.9rem 0.25rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--blue); }
  .site-header .header-cta { display: none; }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.7rem 1.4rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s, transform 0.15s;
}
.btn-primary { background: var(--amber); color: var(--ink); }
.btn-primary:hover { background: var(--amber-deep); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--blue-deep); color: #fff; }
.btn-sm { min-height: 2.75rem; padding: 0.5rem 1.1rem; }

/* ---------- Hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4.5rem); }
.hero .wrap {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 60rem) {
  .hero .wrap { grid-template-columns: 1.15fr 0.85fr; gap: 4rem; }
}
.hero h1 { margin-bottom: 0.45em; }
.hero .lead {
  font-size: var(--step-1);
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 34ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.hero-note { margin-top: 1rem; font-size: var(--step--1); color: var(--ink-soft); }

/* Elemento memorable: del enredo a la linea recta */
.clarity { width: 100%; }
.clarity svg { width: 100%; height: auto; overflow: visible; }
.clarity .tangle {
  fill: none;
  stroke: #8ea3d6;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.clarity .straight {
  fill: none;
  stroke: var(--blue);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 520;
  stroke-dashoffset: 520;
  animation: draw 1.6s 0.4s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
.clarity .dot { fill: var(--amber); stroke: var(--ink); stroke-width: 3; }
.clarity .label { font-family: var(--font-display); font-weight: 700; font-size: 15px; fill: var(--ink); }
.clarity .label-soft { font-family: var(--font-body); font-size: 14px; fill: var(--ink-soft); }
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  .clarity .straight { animation: none; stroke-dashoffset: 0; }
  html { scroll-behavior: auto; }
}

/* ---------- Secciones ---------- */
section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.section-head { max-width: 46rem; margin-bottom: 2.25rem; }
.section-head p { font-size: var(--step-1); line-height: 1.45; color: var(--ink-soft); }

.band { background: var(--white); border-block: 1px solid var(--line); }
.band-dark { background: var(--ink); color: #fff; }
.band-dark p { color: #d8e0f5; }
.band-dark h2, .band-dark h3 { color: #fff; }

/* Servicios como filas (lista), no tarjetas */
.rows { border-top: 2px solid var(--ink); }
.row {
  display: grid;
  gap: 0.75rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 52rem) {
  .row { grid-template-columns: 0.9fr 1.4fr 0.9fr; gap: 2.5rem; align-items: start; }
}
.row h3 { font-size: var(--step-2); margin: 0; }
.row p { margin: 0; }
.row .meta { color: var(--ink-soft); font-size: var(--step--1); }
.row .meta strong { display: block; color: var(--ink); font-size: var(--step-0); }

/* Datos clave: tres hechos reales de su trayectoria */
.facts { display: grid; gap: 2rem; margin: 0; }
@media (min-width: 48rem) { .facts { grid-template-columns: repeat(3, 1fr); } }
.facts div { border-left: 4px solid var(--blue); padding-left: 1.1rem; }
.facts dt { font-family: var(--font-display); font-weight: 800; font-size: var(--step-3); line-height: 1; letter-spacing: -0.03em; }
.facts dd { margin: 0.5rem 0 0; color: var(--ink-soft); max-width: 28ch; }

/* Proceso: aqui si es una secuencia real */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; }
@media (min-width: 52rem) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }
.steps li { counter-increment: step; position: relative; padding-top: 3.25rem; }
.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--amber);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
}
.steps h3 { margin-bottom: 0.4em; }
.steps p { color: inherit; }

/* Hueco para pruebas reales */
.proof {
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  background: var(--white);
}
.proof h3 { margin-bottom: 0.3em; }
.proof p { margin: 0; color: var(--ink-soft); }

/* ---------- Perfil ---------- */
.profile { display: grid; gap: 2.5rem; }
@media (min-width: 56rem) { .profile { grid-template-columns: 0.8fr 1.2fr; gap: 4rem; align-items: start; } }
.photo-slot {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(135deg, var(--mist) 0 14px, var(--paper) 14px 28px);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.5rem;
  color: var(--ink-soft);
  font-size: var(--step--1);
}
.principles { display: grid; gap: 1.5rem; }
.principles h3 { margin-bottom: 0.25em; }
.principles p { margin: 0; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 56rem) { .contact-grid { grid-template-columns: 1.1fr 0.9fr; gap: 4.5rem; } }

form { display: grid; gap: 1.25rem; }
.field { display: grid; gap: 0.4rem; }
label, legend { font-weight: 700; }
.hint { font-weight: 400; color: var(--ink-soft); font-size: var(--step--1); }
input, select, textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.65rem 0.85rem;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--ink-soft);
  border-radius: var(--radius);
}
textarea { min-height: 9rem; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 1px; }
.check { display: flex; gap: 0.7rem; align-items: flex-start; font-weight: 400; }
.check input { width: 1.4rem; min-height: 1.4rem; margin-top: 0.2rem; flex: none; }
.form-status { font-weight: 700; min-height: 1.5em; }

.contact-card { border-top: 2px solid var(--ink); padding-top: 1.5rem; display: grid; gap: 1.5rem; align-content: start; }
.contact-card dl { margin: 0; display: grid; gap: 1.1rem; }
.contact-card dt { font-size: var(--step--1); color: var(--ink-soft); font-weight: 700; }
.contact-card dd { margin: 0; font-size: var(--step-1); font-weight: 600; }

/* ---------- Pie ---------- */
.site-footer { background: var(--ink); color: #d8e0f5; padding: 3rem 0 2rem; }
.site-footer a { color: #fff; }
.site-footer .cols { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .site-footer .cols { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h2 { font-size: 1rem; color: #fff; margin-bottom: 0.7em; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.site-footer .legal { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid #2c3c6b; font-size: var(--step--1); }
.footer-link-btn { background: none; border: 0; color: #fff; font: inherit; text-decoration: underline; cursor: pointer; padding: 0; }

/* ---------- Cookies ---------- */
.cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  background: var(--ink);
  color: #fff;
  padding: 1rem var(--gutter) calc(1rem + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 30px rgba(14, 26, 59, 0.25);
}
.cookie[hidden] { display: none; }
.cookie-inner { max-width: var(--max); margin-inline: auto; display: grid; gap: 0.9rem; }
@media (min-width: 52rem) { .cookie-inner { grid-template-columns: 1fr auto; align-items: center; gap: 2rem; } }
.cookie p { margin: 0; font-size: var(--step--1); line-height: 1.45; color: #e6ecfb; }
.cookie a { color: #fff; }
.cookie-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.cookie-actions .btn { min-height: 2.75rem; padding: 0.4rem 0.5rem; font-size: 0.9rem; }
.cookie-actions .btn-accept, .cookie-actions .btn-reject { background: #fff; color: var(--ink); border-color: #fff; }
.cookie-actions .btn-config { background: transparent; color: #fff; border-color: #6f82b8; }
@media (min-width: 52rem) { .cookie-actions { grid-template-columns: repeat(3, auto); } .cookie-actions .btn { padding: 0.7rem 1.2rem; font-size: 1rem; } }

dialog.panel {
  border: 0;
  border-radius: var(--radius);
  padding: 0;
  width: min(30rem, calc(100vw - 2rem));
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 20px 60px rgba(14, 26, 59, 0.35);
}
dialog.panel::backdrop { background: rgba(14, 26, 59, 0.55); }
.panel-body { padding: 1.5rem; display: grid; gap: 1rem; }
.panel-body h2 { font-size: var(--step-1); margin: 0; }
.panel-body p { margin: 0; font-size: var(--step--1); }
.panel-opt { display: grid; grid-template-columns: 1fr auto; gap: 0.25rem 1rem; align-items: center; padding: 0.9rem 0; border-top: 1px solid var(--line); }
.panel-opt strong { display: block; }
.panel-opt span { font-size: var(--step--1); color: var(--ink-soft); }
.panel-opt input { width: 1.6rem; min-height: 1.6rem; }
.panel-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: flex-end; }

.a11y-list { display: grid; gap: 0.5rem; }
.a11y-list .btn { justify-content: space-between; width: 100%; }
.a11y-list .btn[aria-pressed="true"] { background: var(--ink); color: #fff; }
.a11y-size { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }

/* Una primera impresión más expresiva, manteniendo la identidad original. */
.hero-home {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 18%, rgba(157, 176, 220, .4), transparent 32rem),
    radial-gradient(circle at 8% 95%, rgba(240, 177, 62, .12), transparent 27rem),
    var(--paper);
}
.hero-home .wrap { position: relative; }
.hero-home .hero-copy { position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--blue-deep);
  font-size: var(--step--1);
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.eyebrow::before { content: ""; width: 1.7rem; height: 2px; background: var(--amber-deep); }
.hero-home h1 { max-width: 12ch; }
.hero-home h1 span { color: var(--blue); }
.hero-home .lead { max-width: 40ch; }
.hero-home .hero-actions .btn-primary { box-shadow: 0 12px 30px rgba(240, 177, 62, .25); }
.hero-home .hero-copy > * { animation: rise-in .75s both; }
.hero-home .hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-home .hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-home .hero-copy > :nth-child(4) { animation-delay: .24s; }
.hero-home .hero-copy > :nth-child(5) { animation-delay: .32s; }
.hero-visual {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: space-between;
  min-height: 29rem;
  padding: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(157, 176, 220, .65);
  border-radius: 1.5rem;
  background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(225,233,249,.82));
  box-shadow: 0 30px 70px rgba(18, 40, 91, .12), inset 0 1px 0 #fff;
  animation: rise-in .9s .2s both;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -35%;
  z-index: -1;
  background: conic-gradient(from 90deg, transparent 0 62%, rgba(157,176,220,.28) 73%, transparent 84%);
  animation: light-sweep 12s linear infinite;
}
.visual-kicker {
  margin: 0;
  color: var(--blue-deep);
  font-size: var(--step--1);
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.hero-visual .clarity { position: relative; z-index: 1; }
.hero-visual .clarity svg { filter: drop-shadow(0 5px 14px rgba(31,79,181,.12)); }
.hero-visual .clarity .tangle { stroke-dasharray: 8 9; animation: drift 20s linear infinite; }
.hero-visual .clarity .dot { filter: drop-shadow(0 0 10px rgba(240,177,62,.75)); }
.visual-orbit {
  position: absolute;
  width: 19rem;
  height: 19rem;
  border: 1px solid rgba(31,79,181,.12);
  border-radius: 50%;
  pointer-events: none;
}
.visual-orbit-one { right: -7rem; top: -9rem; }
.visual-orbit-two { left: -11rem; bottom: -14rem; width: 26rem; height: 26rem; }
.visual-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .4rem;
  border-top: 1px solid var(--line);
  padding-top: .8rem;
  color: var(--ink-soft);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.row { transition: padding-left .25s ease, background-color .25s ease; }
.row:hover { padding-left: .8rem; background-color: rgba(221,229,245,.28); }
.btn-primary { transition: background-color .2s, transform .2s, box-shadow .2s; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(14,26,59,.16); }
.portrait-card {
  position: relative;
  margin: 0;
  max-width: 24rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: radial-gradient(circle at 80% 13%, rgba(240,177,62,.24), transparent 50%), linear-gradient(145deg, #f6f8fc, #e5ebf8);
  box-shadow: 0 24px 60px rgba(14,26,59,.1);
}
.portrait-card::before {
  content: "";
  position: absolute;
  width: 5rem;
  height: 5rem;
  right: -1rem;
  top: -1rem;
  border: 2px solid var(--amber);
  border-radius: 50%;
  opacity: .8;
}
.portrait-frame {
  position: relative;
  width: min(100%, 16rem);
  aspect-ratio: 1;
  margin: 0 auto 1.5rem;
  overflow: hidden;
  border: .6rem solid #fff;
  border-radius: 50%;
  box-shadow: 0 18px 35px rgba(14,26,59,.14);
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.portrait-card figcaption { display: grid; gap: .2rem; text-align: center; }
.portrait-card figcaption strong { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.15; }
.portrait-card figcaption span { color: var(--ink-soft); }
html.reveal-ready [data-reveal] { opacity: .65; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
html.reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }
@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes light-sweep { to { transform: rotate(360deg); } }
@keyframes drift { to { stroke-dashoffset: -340; } }
@media (max-width: 59.99rem) {
  .hero-visual { min-height: 20rem; }
  .hero-home h1 { max-width: 15ch; }
}
@media (max-width: 35rem) {
  .hero-visual { min-height: 17rem; padding: 1rem; border-radius: 1rem; }
  .visual-footer { font-size: .68rem; }
  .portrait-card { margin-inline: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-home .hero-copy > *, .hero-visual, .hero-visual::before, .hero-visual .clarity .tangle { animation: none; }
  html.reveal-ready [data-reveal] { opacity: 1; transform: none; transition: none; }
  .row, .btn-primary { transition: none; }
  .row:hover { padding-left: 0; }
  .btn-primary:hover { transform: none; }
}
html[data-a11y-motion="reduce"] .hero-visual .clarity .straight { stroke-dashoffset: 0; }
html[data-a11y-motion="reduce"] [data-reveal] { opacity: 1; transform: none; }

/* Entrada de marca inspirada en la referencia, con la identidad propia de TuManager. */
.brand-intro {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1.4rem;
  overflow: hidden;
  color: #f5f8ff;
  background: radial-gradient(circle at 50% 46%, #143b79 0, #091b3b 36%, #030916 78%);
  pointer-events: none;
  animation: intro-out 2.45s ease-in-out both;
}
.brand-intro img {
  position: relative;
  z-index: 1;
  width: clamp(8rem, 34vw, 13rem);
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 0 5rem rgba(125,170,244,.25);
  animation: intro-mark 1.55s cubic-bezier(.2,.8,.2,1) both;
}
.brand-intro-orbit {
  position: absolute;
  width: min(73vw, 27rem);
  aspect-ratio: 1;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(157,193,252,.42);
  border-radius: 50%;
  box-shadow: 0 0 0 3.5rem rgba(104,154,243,.045), 0 0 0 7rem rgba(104,154,243,.035);
  animation: intro-orbit 1.9s ease-out both;
}
.brand-intro-line { width: 5rem; height: 2px; background: var(--amber); animation: intro-line 1.25s .3s both; }
.brand-intro p { margin: 0; font-family: var(--font-display); font-size: clamp(1rem, 3vw, 1.35rem); font-weight: 700; letter-spacing: .03em; animation: rise-in .8s .35s both; }
@keyframes intro-out { 0%, 70% { opacity: 1; visibility: visible; } 100% { opacity: 0; visibility: hidden; } }
@keyframes intro-mark { from { opacity: 0; transform: scale(.68) rotate(-11deg); filter: blur(10px); } to { opacity: 1; transform: scale(1) rotate(0); filter: blur(0); } }
@keyframes intro-orbit { from { opacity: 0; transform: translate(-50%, -50%) scale(.55); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes intro-line { from { width: 0; opacity: 0; } to { width: 5rem; opacity: 1; } }

/* El fondo oscuro integra el negro original del logo en lugar de aislarlo en un cuadro claro. */
.site-header { background: rgba(5,17,38,.96); border-bottom-color: rgba(157,176,220,.22); }
.site-header .wrap { min-height: 4.75rem; }
.site-header .brand { color: #f7f9ff; }
.site-header .brand span span { color: #9bbdff; }
.site-header .brand-logo { width: 3.15rem; border-radius: .45rem; }
.site-header .nav a { color: #f2f6ff; }
.site-header .nav a:hover { color: #fff; background: rgba(157,176,220,.17); }
.site-header .nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--amber); }
.site-header .icon-btn { color: #f2f6ff; background: rgba(255,255,255,.08); border-color: rgba(200,217,255,.34); }
.site-header .icon-btn:hover { background: rgba(255,255,255,.2); }
.site-header .btn-primary { box-shadow: none; }
.site-footer .brand-logo { width: 3.4rem; }

.hero-home {
  color: #f8faff;
  background:
    radial-gradient(circle at 72% 28%, rgba(60,111,213,.42), transparent 27rem),
    radial-gradient(circle at 8% 85%, rgba(25,71,151,.42), transparent 31rem),
    linear-gradient(125deg, #06142f 0%, #0b2756 58%, #071630 100%);
  min-height: min(46rem, calc(100svh - 4.75rem));
  display: grid;
  align-items: center;
}
.hero-home::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .22;
  background-image: radial-gradient(rgba(157,193,252,.5) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(90deg, transparent, black);
  pointer-events: none;
}
.hero-home .eyebrow { color: #b9cff7; }
.hero-home .eyebrow::before { background: var(--amber); }
.hero-home h1 { font-size: clamp(3rem, 5.4vw, 5.65rem); }
.hero-home h1 span { color: #a9c9ff; }
.hero-home .lead, .hero-home .hero-note { color: #d7e3fa; }
.hero-home .btn-ghost { border-color: rgba(220,233,255,.85); color: #fff; }
.hero-home .btn-ghost:hover { background: #fff; color: var(--ink); }
.hero-home .hero-visual {
  border-color: rgba(168,200,255,.42);
  background: linear-gradient(145deg, rgba(24,58,114,.83), rgba(8,24,57,.96));
  box-shadow: 0 35px 90px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.16);
}
.hero-home .hero-visual::before { background: conic-gradient(from 90deg, transparent 0 62%, rgba(115,162,246,.22) 73%, transparent 84%); }
.hero-home .visual-kicker { color: #c9dbff; }
.hero-home .visual-orbit { border-color: rgba(188,215,255,.19); }
.hero-home .visual-footer { border-color: rgba(189,212,255,.25); color: #d7e3fa; }
.hero-home .clarity .tangle { stroke: #9eb8ea; }
.hero-home .clarity .straight { stroke: #82b2ff; }
.hero-home .clarity .label { fill: #f2f7ff; }
.hero-home .clarity .dot { stroke: #fff; }
@media (max-width: 52rem) {
  .site-header .nav { background: #071630; border-bottom-color: rgba(157,176,220,.25); }
  .site-header .nav a { border-bottom-color: rgba(157,176,220,.2); }
  .site-header .nav a[aria-current="page"] { color: #ffd17d; box-shadow: none; }
}
@media (max-width: 35rem) {
  .site-header .wrap { min-height: 4.3rem; }
  .site-header .brand-logo { width: 2.65rem; }
  .site-header .brand { font-size: 1.05rem; }
  .hero-home { min-height: auto; }
  .hero-home h1 { font-size: clamp(2.65rem, 12vw, 3.5rem); }
  .hero-home .hero-actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .brand-intro { display: none; }
}
html[data-a11y-motion="reduce"] .brand-intro { display: none; }

@media print {
  .site-header, .cookie, .skip { display: none; }
}
