/* =========================================================================
   AccessLab · hoja de estilos de la web
   Paleta corporativa (igual que en los informes, src/report/theme.ts):
   navy #142B45 · blue #2673C5 · teal #42BFA5 · gray #F3F6FA · white #FFFFFF
   El turquesa es solo acento (formas o texto sobre azul oscuro): para texto
   sobre fondos claros se usan blue-ink / teal-ink, con contraste AA.
   ========================================================================= */

:root {
  --navy: #142B45;
  --navy-2: #1B3757;
  --blue: #2673C5;
  --blue-ink: #1F62A8;
  --blue-light: #EAF2FC;
  --teal: #42BFA5;
  --teal-ink: #187A66;
  --gray: #F3F6FA;
  --white: #FFFFFF;
  --ink: #263445;
  --muted: #55657A;
  --line: #DCE4EE;
  --on-navy-muted: #C3D0DE;

  --crit: #9B1C1C; --crit-soft: #FDECEC;
  --high: #9A4A0B; --high-soft: #FDF1E6;

  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Roboto, Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Roboto, Arial, sans-serif;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(20, 43, 69, .06), 0 2px 8px rgba(20, 43, 69, .05);
  --shadow: 0 2px 6px rgba(20, 43, 69, .06), 0 12px 32px rgba(20, 43, 69, .08);
  --shadow-lg: 0 18px 50px rgba(20, 43, 69, .18);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 72px;
  --focus: 0 0 0 3px var(--white), 0 0 0 6px var(--blue);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.85rem, 1.3rem + 2vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 650; }
h4 { font-size: 1.05rem; font-weight: 650; }
p { margin: 0 0 1em; }
a { color: var(--blue-ink); text-underline-offset: .18em; }
a:hover { color: var(--navy); }
ul, ol { margin: 0; padding: 0; }
strong { font-weight: 650; color: var(--navy); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Foco visible y consistente en todos los elementos interactivos */
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.hero :focus-visible, .section--navy :focus-visible, .site-footer :focus-visible { outline-color: var(--teal); }
main:focus { outline: none; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 12px 18px; border-radius: var(--radius-sm);
  background: var(--navy); color: var(--white); font-weight: 650; text-decoration: none;
  box-shadow: var(--shadow);
}
.skip-link:focus { top: 12px; outline: 3px solid var(--teal); outline-offset: 2px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.small { font-size: .875rem; color: var(--muted); margin: 0; }
.mini-title { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 .6em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 14px; font-size: .8125rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--teal-ink);
}
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--teal); }
.eyebrow--light { color: var(--teal); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border: 2px solid transparent; border-radius: 10px;
  font: inherit; font-weight: 650; font-size: 1rem; line-height: 1.2; text-decoration: none;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn .icon { transition: transform .2s var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--blue); color: var(--white); box-shadow: 0 6px 16px rgba(38, 115, 197, .25); }
.btn--primary:hover { background: var(--navy); color: var(--white); box-shadow: 0 8px 20px rgba(20, 43, 69, .25); }
.btn--accent { background: var(--teal); color: var(--navy); }
.btn--accent:hover { background: var(--white); color: var(--navy); }
.btn--accent:hover .icon { transform: translateX(3px); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .55); color: var(--white); }
.btn--ghost-light:hover { border-color: var(--white); background: rgba(255, 255, 255, .1); color: var(--white); }
.btn--outline { border-color: var(--blue); color: var(--blue-ink); background: var(--white); }
.btn--outline:hover { background: var(--blue-light); color: var(--navy); border-color: var(--navy); }
.btn--lg { min-height: 56px; padding: 14px 26px; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn-meta { font-weight: 500; opacity: .85; }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.4) blur(10px); } }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 18px rgba(20, 43, 69, .06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 16px; }
.brand { display: inline-flex; border-radius: 8px; }
.brand img { width: 176px; height: auto; }

.site-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; }
.site-nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px;
  border-radius: 8px; color: var(--navy); font-weight: 550; font-size: .975rem; text-decoration: none;
  transition: color .2s, background-color .2s;
}
.site-nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; border-radius: 2px;
  background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.site-nav a:hover { color: var(--blue-ink); }
.site-nav a:hover::after, .site-nav a[aria-current="true"]::after { transform: scaleX(1); }
.site-nav a[aria-current="true"] { color: var(--blue-ink); }
.site-nav .nav-cta { margin-left: 8px; background: var(--navy); color: var(--white); padding: 8px 18px; }
.site-nav .nav-cta::after { display: none; }
.site-nav .nav-cta:hover, .site-nav .nav-cta[aria-current="true"] { background: var(--blue); color: var(--white); }

.nav-toggle {
  display: none; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px;
  border: 1.5px solid var(--line); border-radius: 10px; background: var(--white);
  font: inherit; font-weight: 650; color: var(--navy); cursor: pointer;
}
.nav-toggle:hover { border-color: var(--navy); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy); color: var(--white);
  padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 9vw, 112px);
}
.hero::before { /* anillo de marca, como en la portada del informe */
  content: ""; position: absolute; right: -220px; top: -240px; width: 640px; height: 640px; border-radius: 50%;
  border: 70px solid rgba(255, 255, 255, .03); pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; align-items: center; }
.hero-logo { width: 230px; margin: 0 0 36px -6px; }
.hero h1 {
  color: var(--white); font-size: clamp(2.35rem, 1.4rem + 3.6vw, 3.9rem); font-weight: 700; line-height: 1.07; letter-spacing: -.025em; margin-bottom: 22px;
}
.hero .hl { color: var(--teal); }
.hero-lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.22rem); color: var(--on-navy-muted); max-width: 34em; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 24px; list-style: none; font-size: .9375rem; color: var(--on-navy-muted); }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .icon { color: var(--teal); width: 1.1em; height: 1.1em; stroke-width: 2.4; }

.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-ring {
  position: absolute; inset: 50% auto auto 50%; width: 112%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; border: 1px dashed rgba(66, 191, 165, .28); pointer-events: none;
}
.audit-card {
  position: relative; z-index: 1; width: 100%; max-width: 440px;
  background: var(--white); color: var(--ink); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  overflow: hidden; transform: rotate(-1.5deg);
}
.audit-card__head { display: flex; align-items: center; gap: 6px; padding: 14px 18px; background: var(--gray); border-bottom: 1px solid var(--line); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #CBD5E1; }
.audit-card__title { margin-left: 10px; font-size: .8125rem; font-weight: 650; color: var(--muted); }
.audit-card__list { list-style: none; padding: 10px 18px; }
.audit-card__list li { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .9375rem; color: var(--navy); font-weight: 550; }
.audit-card__list li:last-child { border-bottom: 0; }
.crit-id { font-family: var(--mono); font-size: .8125rem; color: var(--blue-ink); background: var(--blue-light); padding: 2px 7px; border-radius: 6px; }
.tag { display: inline-flex; align-items: center; gap: 6px; min-width: 76px; padding: 3px 9px; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tag--crit { color: var(--crit); background: var(--crit-soft); }
.tag--high { color: var(--high); background: var(--high-soft); }
.tag--manual { color: var(--blue-ink); background: var(--blue-light); }
.tag--manual::before { background: transparent; border: 1.5px dashed currentColor; }
.audit-card__foot { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px 20px; background: var(--white); }
.focus-demo {
  align-self: flex-start; padding: 8px 16px; border-radius: 8px; font-weight: 650; font-size: .875rem;
  background: var(--navy); color: var(--white); box-shadow: 0 0 0 3px var(--white), 0 0 0 6px var(--teal);
}
.audit-card__note { font-size: .8125rem; color: var(--muted); }

/* ---------- Secciones ---------- */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section--tint { background: var(--gray); }
.section--navy { background: var(--navy); color: var(--on-navy-muted); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-lead { font-size: 1.125rem; color: var(--muted); margin: 0; }

/* Servicios */
.service-split { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 32px; align-items: start; }
.method {
  padding: 32px; border-radius: var(--radius-lg); background: var(--navy); color: var(--on-navy-muted);
  position: sticky; top: calc(var(--header-h) + 24px);
}
.method h3 { color: var(--white); margin-bottom: 22px; }
.method-item { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.method-item h4 { color: var(--white); margin-bottom: 4px; }
.method-item p { margin: 0; font-size: .975rem; }
.method-icon {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px;
  background: rgba(66, 191, 165, .14); color: var(--teal);
}
.honesty {
  display: flex; gap: 12px; margin: 18px 0 0; padding: 16px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .06); font-size: .9375rem; color: var(--white);
}
.honesty .icon { color: var(--teal); margin-top: 2px; }

.deliverables h3 { margin-bottom: 18px; }
.deliver-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; list-style: none; }
.deliver {
  padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
  transition: border-color .2s, box-shadow .25s var(--ease), transform .25s var(--ease);
}
.deliver:hover { border-color: #BFD3EA; box-shadow: var(--shadow); transform: translateY(-2px); }
.deliver h4 { margin: 14px 0 4px; }
.deliver p { margin: 0; font-size: .9375rem; color: var(--muted); }
.deliver--wide { grid-column: 1 / -1; background: var(--blue-light); border-color: transparent; }
.deliver-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--blue-light); color: var(--blue-ink); }
.deliver--wide .deliver-icon { background: var(--white); }

/* Proceso */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; list-style: none; counter-reset: none; }
.steps::before { /* línea que une los pasos */
  content: ""; position: absolute; top: 52px; left: 12%; right: 12%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--teal) 0 10px, transparent 10px 18px); opacity: .7;
}
.step {
  position: relative; padding: 28px 24px 26px; border-radius: var(--radius-lg); background: var(--white);
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.step-num { position: absolute; top: 22px; right: 22px; font-family: var(--font-display); font-size: 1.5rem; font-weight: 750; color: var(--teal-ink); }
.step-icon {
  position: relative; display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 22px; border-radius: 14px;
  background: var(--navy); color: var(--teal); box-shadow: 0 0 0 6px var(--gray);
}
.step-icon .icon { width: 26px; height: 26px; }
.step h3 { font-size: 1.125rem; }
.step p { margin: 0; font-size: .975rem; color: var(--muted); }

/* Ejemplo de informe */
.sample-note {
  display: flex; gap: 12px; align-items: flex-start; max-width: 860px; margin: 0 0 36px;
  padding: 16px 20px; border-radius: var(--radius); border-left: 4px solid var(--teal);
  background: var(--gray); font-size: .975rem;
}
.sample-note .icon { color: var(--teal-ink); margin-top: 3px; }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; list-style: none; margin-bottom: 40px; }
.sheet { margin: 0; }
.sheet-btn {
  position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 10px; background: var(--white);
  cursor: zoom-in; box-shadow: 0 0 0 1px var(--line), var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.sheet-btn img { width: 100%; aspect-ratio: 1190 / 1684; object-fit: cover; border-radius: 10px; }
.sheet-btn:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px #BFD3EA, var(--shadow-lg); }
.sheet-zoom {
  position: absolute; left: 50%; bottom: 14px; transform: translate(-50%, 6px);
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: var(--navy); color: var(--white); font-size: .8125rem; font-weight: 650; white-space: nowrap;
  opacity: 0; transition: opacity .2s, transform .25s var(--ease);
}
.sheet-btn:hover .sheet-zoom, .sheet-btn:focus-visible .sheet-zoom { opacity: 1; transform: translate(-50%, 0); }
.sheet figcaption { display: flex; align-items: baseline; gap: 10px; margin-top: 14px; font-weight: 650; color: var(--navy); }
.sheet-num { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-ink); }

.report-panel {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: center;
  padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg); background: var(--navy); color: var(--on-navy-muted);
}
.report-panel h3 { color: var(--white); font-size: 1.5rem; margin-bottom: 4px; }
.report-meta { margin: 0 0 22px; font-size: .9375rem; }
.report-panel .mini-title { color: var(--teal); }
.toc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 24px; list-style: none; counter-reset: toc; font-size: .9375rem; color: var(--white); }
.toc li { counter-increment: toc; display: flex; gap: 10px; }
.toc li::before { content: counter(toc, decimal-leading-zero); font-family: var(--mono); font-size: .8125rem; color: var(--teal); padding-top: 2px; }
.report-panel__actions { display: flex; flex-direction: column; gap: 12px; }
.report-panel .btn--primary { background: var(--teal); color: var(--navy); box-shadow: none; }
.report-panel .btn--primary:hover { background: var(--white); color: var(--navy); }
.report-panel .btn--outline { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .55); }
.report-panel .btn--outline:hover { background: rgba(255, 255, 255, .1); border-color: var(--white); }
.report-panel .small { color: var(--on-navy-muted); text-align: center; }

/* Sobre AccessLab */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.about-lead { font-size: 1.15rem; }
.values { list-style: none; display: grid; gap: 14px; }
.values li {
  display: flex; gap: 18px; padding: 22px; border-radius: var(--radius); background: var(--navy-2);
  border: 1px solid rgba(255, 255, 255, .06);
}
.values h3 { font-size: 1.125rem; margin-bottom: 4px; }
.values p { margin: 0; font-size: .975rem; }
.value-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: rgba(66, 191, 165, .14); color: var(--teal); }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.contact-info .section-lead { margin-bottom: 32px; }
.email-card { display: flex; gap: 18px; padding: 24px; border-radius: var(--radius-lg); background: var(--gray); border: 1px solid var(--line); }
.email-icon { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 12px; background: var(--navy); color: var(--teal); }
.email-value { margin: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.email-card > div { min-width: 0; }
.email-value a { font-size: 1.15rem; font-weight: 650; overflow-wrap: anywhere; }
.pending-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
  border: 1.5px dashed var(--blue-ink); color: var(--blue-ink); font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.email-pending-text { font-size: .9375rem; color: var(--muted); }

.form-card { padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-title { font-size: 1.375rem; margin-bottom: 4px; }
#form-help { margin-bottom: 20px; }
.form-notice {
  display: flex; gap: 10px; align-items: flex-start; margin: 0 0 24px; padding: 12px 14px; border-radius: 10px;
  background: var(--blue-light); border: 1.5px dashed var(--blue-ink); font-size: .9rem; color: var(--navy);
}
.form-notice .icon { color: var(--blue-ink); margin-top: 2px; }
.form-notice[hidden] { display: none; }
.field { margin-bottom: 20px; }
.field label { display: block; margin-bottom: 6px; font-weight: 650; color: var(--navy); }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid #8A9BB0; border-radius: 10px;
  font: inherit; color: var(--ink); background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:hover, .field textarea:hover { border-color: var(--navy); }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(38, 115, 197, .25); border-radius: 10px; }
.field [aria-invalid="true"] { border-color: var(--crit); }
.hint { margin: 6px 0 0; font-size: .875rem; color: var(--muted); }
.field-error { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; font-size: .875rem; font-weight: 600; color: var(--crit); }
.field-error[hidden] { display: none; }
.field-error::before { content: "!"; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--crit); color: var(--white); font-size: .75rem; font-weight: 800; }
.form-status:not(:empty) { margin-top: 16px; padding: 14px 16px; border-radius: 10px; font-size: .9375rem; }
.form-status.is-info { background: var(--blue-light); color: var(--navy); border-left: 4px solid var(--blue); }
.form-status.is-ok { background: #E6F5F1; color: var(--navy); border-left: 4px solid var(--teal-ink); }
.form-status.is-error { background: var(--crit-soft); color: var(--crit); border-left: 4px solid var(--crit); }
.form-status a { font-weight: 650; }
.form-privacy { margin-top: 14px; }

/* ---------- Pie ---------- */
.site-footer { background: #0F2136; color: var(--on-navy-muted); padding: 56px 0 32px; font-size: .9375rem; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 28px 40px; }
.footer-brand img { width: 176px; margin: 0 0 12px -4px; }
.footer-brand p { margin: 0; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 4px 8px; list-style: none; }
.footer-nav a { display: inline-flex; min-height: 44px; align-items: center; padding: 0 10px; color: var(--white); text-decoration: none; border-radius: 6px; }
.footer-nav a:hover { color: var(--teal); text-decoration: underline; }
.footer-legal, .footer-copy { margin: 0; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .875rem; }
.footer-copy { text-align: right; }

/* ---------- Página 404 ---------- */
.notfound { min-height: 100vh; display: grid; align-items: center; }
.notfound img { margin-bottom: 40px; }
.notfound h1 { color: var(--white); font-size: clamp(2rem, 1.5rem + 2vw, 3rem); }
.notfound p { font-size: 1.125rem; margin-bottom: 28px; }

/* ---------- Visor de páginas ---------- */
.lightbox {
  width: min(960px, 100vw - 32px); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: var(--radius-lg);
  background: var(--white); color: var(--ink); box-shadow: var(--shadow-lg); overflow: hidden;
}
.lightbox::backdrop { background: rgba(15, 33, 54, .78); }
.lightbox[open] { display: flex; flex-direction: column; }
.lightbox-bar { display: flex; align-items: center; gap: 16px; padding: 12px 12px 12px 24px; border-bottom: 1px solid var(--line); }
.lightbox-title { margin: 0; font-size: 1.05rem; }
.lightbox-count { margin: 0 auto 0 0; font-size: .875rem; color: var(--muted); }
.lightbox-body { display: flex; align-items: center; gap: 8px; padding: 16px; background: var(--gray); min-height: 0; overflow: auto; }
.lightbox-body img { flex: 1; min-width: 0; max-height: calc(100vh - 140px); object-fit: contain; border-radius: 6px; box-shadow: var(--shadow); background: var(--white); }
.icon-btn {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none; border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--white); color: var(--navy); cursor: pointer; transition: background-color .2s, border-color .2s;
}
.icon-btn:hover { background: var(--blue-light); border-color: var(--navy); }
.icon-btn .icon { width: 22px; height: 22px; }

/* ---------- Animación de entrada (solo con JS y sin preferencia de movimiento reducido) ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 460px; }
  .service-split, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .method { position: static; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps::before { display: none; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-panel { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--white);
    border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(20, 43, 69, .08);
  }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 24px 20px; }
  .site-nav a { width: 100%; padding: 12px 14px; }
  .site-nav a::after { display: none; }
  .site-nav .nav-cta { margin: 8px 0 0; justify-content: center; }
  /* Sin JS, el menú se muestra en línea bajo la cabecera */
  html:not(.js) .site-nav { position: static; box-shadow: none; border: 0; }
  html:not(.js) .header-inner { flex-wrap: wrap; }
}
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  body { font-size: 1rem; }
  .container { padding: 0 16px; }
  .brand img { width: 150px; }
  .hero-logo { width: 190px; margin-bottom: 28px; }
  .hero-actions .btn { width: 100%; }
  .audit-card { transform: none; }
  .audit-card__list li { flex-wrap: wrap; gap: 6px 10px; }
  .deliver-grid, .steps { grid-template-columns: 1fr; }
  .gallery { gap: 16px; }
  .sheet-zoom { max-width: calc(100% - 16px); white-space: normal; text-align: center; justify-content: center; }
  .toc { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-copy { text-align: left; padding-top: 0; border: 0; }
  .lightbox-body { padding: 8px; }
  .lightbox-body .icon-btn--nav { display: none; }
  .lightbox-bar { padding-left: 16px; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .btn:hover, .deliver:hover, .sheet-btn:hover { transform: none; }
}

/* ---------- Modo de alto contraste de Windows ---------- */
@media (forced-colors: active) {
  .btn, .icon-btn, .nav-toggle, .deliver, .step, .email-card, .form-card { border: 1px solid CanvasText; }
  .eyebrow::before, .tag::before { background: CanvasText; }
}
