/* =============================================================
   ACARDI BPO — hoja de estilos única
   Dirección: corporativo claro, retícula fina, bloques azul profundo.
   ============================================================= */

/* 1. Tipografías locales ------------------------------------- */
@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/montserrat-var.woff") format("woff");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("assets/fonts/opensans-var.woff") format("woff");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

/* 2. Tokens --------------------------------------------------- */
:root {
  --navy: #102A43;
  --navy-2: #173A5C;
  --blue: #175CD3;
  --blue-dark: #1249A8;
  --cyan: #0093D1;
  --white: #FFFFFF;
  --gray: #F4F6F8;
  --text: #243746;
  --muted: #566878;
  --line: #DCE3EA;
  --amber: #D97706;
  --on-navy: #E8EEF4;
  --on-navy-muted: #A9BACB;

  --display: "Montserrat", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --body: "Open Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --fs-sm: .875rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-h3: 1.2rem;
  --fs-h2: clamp(1.6rem, 1.2rem + 1.6vw, 2.35rem);
  --fs-h1: clamp(2rem, 1.3rem + 3vw, 3.4rem);

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
  --header-h: 72px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* 3. Reset y base -------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); overflow-x: clip; }
body {
  font-family: var(--body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--navy); line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: var(--fs-h1); font-weight: 700; }
h2 { font-size: var(--fs-h2); font-weight: 700; }
h3 { font-size: var(--fs-h3); font-weight: 650; }
p { text-wrap: pretty; }
ul, ol { padding-left: 1.2rem; }
li + li { margin-top: .35rem; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--blue); color: var(--white); }

/* 4. Utilidades ---------------------------------------------- */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 100; padding: .6rem 1rem; background: var(--navy); color: var(--white); border-radius: var(--radius); font-weight: 600; }
.skip-link:focus { top: 1rem; color: var(--white); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.eyebrow { font-family: var(--display); font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); }
.lead { font-size: var(--fs-lg); color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.section { padding-block: clamp(56px, 7vw, 96px); }
.section--gray { background: var(--gray); }
.section--navy { background: var(--navy); color: var(--on-navy); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy .lead, .section--navy .muted { color: var(--on-navy-muted); }
.section-head { display: grid; gap: .8rem; max-width: 64ch; margin-bottom: clamp(28px, 4vw, 44px); }
.grid-bg {
  background-color: var(--gray);
  background-image:
    linear-gradient(to right, rgba(16,42,67,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(16,42,67,.06) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Marcadores de contenido a completar (borrador) */
.todo { border: 1.5px dashed var(--amber); background: #FFF8EC; color: #7A4304; border-radius: var(--radius); padding: .9rem 1rem; font-size: var(--fs-sm); }
.todo strong { color: #7A4304; }
.todo-inline { background: #FFF1D6; color: #7A4304; padding: 0 .3em; border-radius: 3px; font-size: .92em; }

/* 5. Componentes --------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--display); font-weight: 600; font-size: .98rem; line-height: 1.2;
  padding: .85em 1.35em; border-radius: var(--radius); border: 2px solid var(--blue);
  text-decoration: none; transition: background-color .2s var(--ease-out), color .2s var(--ease-out), transform .2s var(--ease-out);
  min-height: 48px;
}
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: var(--white); }
.btn--ghost { background: transparent; color: var(--blue); }
.btn--ghost:hover { background: rgba(23,92,211,.07); color: var(--blue-dark); }
.btn--light { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn--light:hover { background: var(--gray); color: var(--navy); }
.btn--outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn--outline-light:hover { border-color: var(--white); color: var(--white); background: rgba(255,255,255,.06); }
.btn:hover { transform: translateY(-1px); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.arrow-link { font-family: var(--display); font-weight: 600; font-size: .95rem; text-decoration: none; display: inline-flex; gap: .4em; align-items: center; }
.arrow-link::after { content: "→"; transition: transform .2s var(--ease-out); }
.arrow-link:hover::after { transform: translateX(3px); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 6px 24px -12px rgba(16,42,67,.25); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--navy); }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 1.15rem; letter-spacing: .06em; }
.brand-name span { color: var(--cyan); font-weight: 700; }
.nav-toggle { display: none; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.2rem; }
.site-nav > ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; align-items: center; }
.site-nav > ul > li { margin: 0; position: relative; }
.site-nav a.nav-link { font-family: var(--display); font-weight: 600; font-size: .92rem; color: var(--text); text-decoration: none; padding-block: .5rem; display: inline-block; }
.site-nav a.nav-link:hover, .site-nav a.nav-link[aria-current="page"] { color: var(--blue); }
.site-nav a.nav-link[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--blue); }
.submenu { list-style: none; padding: .6rem; margin: 0; position: absolute; top: 100%; left: -1rem; min-width: 300px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 40px -20px rgba(16,42,67,.35); display: none; }
.submenu li { margin: 0; }
.submenu a { display: block; padding: .55rem .7rem; border-radius: 4px; color: var(--text); text-decoration: none; font-size: .93rem; }
.submenu a:hover { background: var(--gray); color: var(--blue); }
.submenu .submenu-all { border-top: 1px solid var(--line); margin-top: .35rem; padding-top: .35rem; }
.has-sub:hover > .submenu, .has-sub:focus-within > .submenu { display: block; }
.header-cta { padding: .6em 1.05em; font-size: .9rem; min-height: 44px; }

/* Breadcrumb */
.breadcrumb { font-size: var(--fs-sm); color: var(--muted); margin-bottom: 1.2rem; }
.breadcrumb ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem; }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: .3rem; color: var(--line); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue); text-decoration: underline; }

/* Cards */
.cards { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: grid; gap: .7rem; align-content: start; transition: border-color .2s, box-shadow .2s, transform .2s var(--ease-out); }
.card:hover { border-color: #B9C8D8; box-shadow: 0 16px 34px -24px rgba(16,42,67,.45); }
.card .tag { font-family: var(--display); font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); }
.card p { color: var(--muted); font-size: .97rem; }
.card .arrow-link { margin-top: .3rem; }
.card--soon { background: var(--gray); }
.card--soon .tag { color: var(--muted); }
.badge { display: inline-block; font-family: var(--display); font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: .25em .6em; border-radius: 3px; background: var(--white); border: 1px solid var(--line); color: var(--muted); justify-self: start; }

/* Situaciones (citas del cliente) */
.situations { display: grid; gap: 0; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
.situation { display: grid; gap: .45rem; padding: 1.3rem 1.2rem 1.3rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); }
.situation q { font-family: var(--display); font-weight: 600; font-size: 1.12rem; color: var(--navy); quotes: "“" "”"; }
.situation span { font-size: var(--fs-sm); color: var(--blue); font-weight: 600; font-family: var(--display); }
.situation:hover q { color: var(--blue); }

/* Pasos de método */
.steps { list-style: none; padding: 0; display: grid; gap: 0; grid-template-columns: 1fr; counter-reset: paso; }
.steps li { margin: 0; padding: 1.2rem 1rem 1.2rem 0; border-top: 2px solid rgba(255,255,255,.18); display: grid; gap: .35rem; align-content: start; }
.steps li:last-child { border-top-color: var(--cyan); }
.steps .num { font-family: var(--display); font-weight: 700; font-size: .8rem; color: var(--cyan); letter-spacing: .08em; }
.steps strong { font-family: var(--display); font-size: 1.08rem; color: var(--white); }
.steps span { font-size: .93rem; color: var(--on-navy-muted); }
.steps--light li { border-top-color: var(--line); }
.steps--light li:last-child { border-top-color: var(--blue); }
.steps--light strong { color: var(--navy); }
.steps--light span { color: var(--muted); }

/* Chips de sectores */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; }
.chips li { margin: 0; }
.chip { display: inline-block; padding: .55em 1em; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--navy); text-decoration: none; font-weight: 600; font-size: .93rem; font-family: var(--display); }
.chip:hover { border-color: var(--blue); color: var(--blue); }

/* Tablas */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; }
th, td { text-align: left; vertical-align: top; padding: .85rem 1rem; border-bottom: 1px solid var(--line); }
thead th { background: var(--gray); font-family: var(--display); font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); }
tbody tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; color: var(--navy); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 2.2rem 1.1rem 0; position: relative; font-family: var(--display); font-weight: 600; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .3rem; top: .9rem; font-size: 1.4rem; color: var(--blue); font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 1.2rem; color: var(--muted); max-width: 70ch; }

/* Listas con marca */
.checklist { list-style: none; padding: 0; display: grid; gap: .55rem; }
.checklist li { margin: 0; padding-left: 1.6rem; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .55em; width: .75rem; height: .4rem; border-left: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); transform: rotate(-45deg); }
.cols-2 { display: grid; gap: 1.5rem 2.5rem; grid-template-columns: 1fr; }
.cols-2 > * { min-width: 0; }

/* Roles cliente / prestador */
.roles { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.role { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; background: var(--white); }
.role h3 { font-size: 1.02rem; margin-bottom: .6rem; }
.role--us { border-top: 3px solid var(--blue); }
.role--client { border-top: 3px solid var(--navy); }

/* Formularios */
.form { display: grid; gap: 1rem; }
.form-row { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; font-size: .93rem; color: var(--navy); }
.field .hint { font-size: .82rem; color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--text); background: var(--white);
  border: 1px solid #B9C6D3; border-radius: var(--radius); padding: .75rem .85rem; width: 100%; min-height: 48px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23,92,211,.18); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #B42318; }
.field .error { font-size: .82rem; color: #B42318; display: none; }
.field.is-invalid .error { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .84rem; color: var(--muted); }
.alert { padding: .9rem 1rem; border-radius: var(--radius); font-size: .95rem; }
.alert--error { background: #FEF3F2; color: #912018; border: 1px solid #FDA29B; }

/* 6. Secciones ---------------------------------------------- */

/* Hero portada */
.hero { position: relative; border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; gap: clamp(28px, 5vw, 56px); grid-template-columns: 1fr; align-items: center; padding-block: clamp(44px, 7vw, 92px); }
.hero-inner > * { min-width: 0; }
.hero h1 { max-width: 20ch; }
.hero .lead { margin-top: 1.2rem; }
.hero .btn-row { margin-top: 1.8rem; }
.hero-meta { margin-top: 1.6rem; font-size: var(--fs-sm); color: var(--muted); }
.hero-figure { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: clamp(16px, 2.4vw, 28px); box-shadow: 0 30px 60px -40px rgba(16,42,67,.45); }
.hero-figure figcaption { font-size: .8rem; color: var(--muted); margin-top: .8rem; }

/* Diagrama de proceso */
.flow { width: 100%; height: auto; }
.flow .path { fill: none; stroke: var(--line); stroke-width: 2; }
.flow .path-active { fill: none; stroke: var(--cyan); stroke-width: 2.5; stroke-dasharray: 900; stroke-dashoffset: 0; }
.js .flow .path-active { animation: draw 2.4s var(--ease-out) .3s both; }
@keyframes draw { from { stroke-dashoffset: 900; } to { stroke-dashoffset: 0; } }
.flow .node rect { fill: var(--white); stroke: #C3D0DC; stroke-width: 1.2; }
.flow .node.is-key rect { stroke: var(--cyan); stroke-width: 1.6; }
.flow .node.is-out rect { fill: var(--navy); stroke: var(--navy); }
.flow .node text { font-family: var(--display); font-size: 13px; font-weight: 600; fill: var(--navy); }
.flow .node .sub { font-family: var(--body); font-size: 10.5px; font-weight: 400; fill: var(--muted); }
.flow .node.is-out text { fill: var(--white); }
.flow .node.is-out .sub { fill: var(--on-navy-muted); }
.flow .dot { fill: var(--cyan); }
.flow .lane { font-family: var(--display); font-size: 10px; font-weight: 700; letter-spacing: .12em; fill: var(--muted); }

/* Encabezado de página interna */
.page-hero { border-bottom: 1px solid var(--line); }
.page-hero .wrap { padding-block: clamp(36px, 5.5vw, 72px); }
.page-hero h1 { max-width: 24ch; margin-top: .5rem; }
.page-hero .lead { margin-top: 1rem; }
.page-hero .btn-row { margin-top: 1.6rem; }
.page-hero .for { margin-top: 1.2rem; font-size: var(--fs-sm); color: var(--muted); max-width: 70ch; }

/* Página de solución: índice + contenido */
.doc-layout { display: grid; gap: 2rem; grid-template-columns: 1fr; padding-block: clamp(40px, 6vw, 72px); }
.doc-layout > * { min-width: 0; }
.toc { font-size: .92rem; }
.toc-inner { border-left: 2px solid var(--line); padding-left: 1rem; }
.toc p { font-family: var(--display); font-weight: 700; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
.toc ol { list-style: none; padding: 0; display: grid; gap: .1rem; }
.toc li { margin: 0; }
.toc a { display: block; padding: .3rem 0; color: var(--muted); text-decoration: none; }
.toc a:hover, .toc a.is-active { color: var(--blue); }
.toc a.is-active { font-weight: 600; }
.doc-section { padding-bottom: clamp(32px, 4vw, 48px); margin-bottom: clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--line); display: grid; gap: 1rem; }
.doc-section:last-child { border-bottom: 0; margin-bottom: 0; }
.doc-section > p { max-width: 72ch; }
.doc-section h3 { margin-top: .6rem; }
.note { border-left: 3px solid var(--cyan); background: var(--gray); padding: 1rem 1.2rem; border-radius: 0 var(--radius) var(--radius) 0; font-size: .95rem; max-width: 72ch; }

/* Banda de llamada a la acción */
.cta-band { background: var(--navy); color: var(--on-navy); position: relative; }
.cta-band::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(to right, rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 32px 32px; pointer-events: none; }
.cta-band .wrap { position: relative; display: grid; gap: 1.5rem; grid-template-columns: 1fr; align-items: center; padding-block: clamp(44px, 6vw, 72px); }
.cta-band h2 { color: var(--white); }
.cta-band p { color: var(--on-navy-muted); max-width: 60ch; margin-top: .6rem; }

/* Personas */
.people { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
.person { display: grid; gap: 1rem; grid-template-columns: 96px 1fr; align-items: start; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; background: var(--white); }
.person > * { min-width: 0; }
.avatar { width: 96px; height: 96px; border-radius: 50%; background: var(--gray); border: 1px dashed #B9C6D3; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 1.6rem; color: var(--navy); }
.person h3 { margin-bottom: .2rem; }
.person .role-line { font-size: var(--fs-sm); color: var(--cyan); font-weight: 600; font-family: var(--display); margin-bottom: .6rem; }

/* Casos */
.case { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); padding: 1.5rem; display: grid; gap: .8rem; }
.case dl { display: grid; gap: .6rem; grid-template-columns: 1fr; }
.case dt { font-family: var(--display); font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.case dd { margin: 0 0 .4rem; }

/* Sectores */
.sector { border-top: 1px solid var(--line); padding-block: 1.6rem; display: grid; gap: .8rem; grid-template-columns: 1fr; }
.sector > * { min-width: 0; }
.sector:last-child { border-bottom: 1px solid var(--line); }
.sector .links { display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-size: .93rem; }

/* Contacto */
.contact-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
.contact-grid > * { min-width: 0; }
.contact-data { display: grid; gap: 1rem; align-content: start; }
.contact-data dl { display: grid; gap: .2rem; }
.contact-data dt { font-family: var(--display); font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact-data dd { margin: 0 0 .8rem; }

/* Footer */
.site-footer { background: var(--navy); color: var(--on-navy-muted); font-size: .92rem; }
.site-footer a { color: var(--on-navy); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; padding-block: clamp(44px, 6vw, 64px); }
.footer-grid h2 { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-navy-muted); margin-bottom: .8rem; font-weight: 700; }
.footer-grid ul { list-style: none; padding: 0; display: grid; gap: .45rem; }
.footer-grid li { margin: 0; }
.footer-brand .brand { color: var(--white); }
.footer-brand p { margin-top: .9rem; max-width: 36ch; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 1.2rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; font-size: .82rem; }

/* 7. Efectos (sutiles) -------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* 8. Responsive (mobile-first) ------------------------------ */
@media (max-width: 959px) {
  .js .nav-toggle { display: inline-flex; align-items: center; gap: .5rem; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem .8rem; min-height: 44px; color: var(--navy); font-family: var(--display); font-weight: 600; font-size: .9rem; }
  .nav-toggle-bars { width: 18px; height: 12px; position: relative; display: inline-block; }
  .nav-toggle-bars::before, .nav-toggle-bars::after, .nav-toggle-bars span { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px; }
  .nav-toggle-bars::before { top: 0; } .nav-toggle-bars span { top: 5px; } .nav-toggle-bars::after { bottom: 0; }
  .header-inner { flex-wrap: wrap; }
  .site-nav { width: 100%; padding-bottom: 1rem; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: flex; flex-direction: column; align-items: stretch; gap: .8rem; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .site-nav > ul { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .site-nav > ul > li { border-bottom: 1px solid var(--line); }
  .site-nav a.nav-link { padding-block: .8rem; width: 100%; }
  .site-nav a.nav-link[aria-current="page"] { box-shadow: none; }
  .submenu { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 .6rem .8rem; min-width: 0; }
  .submenu a { padding: .45rem .5rem; }
  .header-cta { width: 100%; }
}
@media (min-width: 540px) {
  .form-row { grid-template-columns: 1fr 1fr; }
  .situations { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 720px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cols-2, .roles { grid-template-columns: 1fr 1fr; }
  .people { grid-template-columns: 1fr 1fr; }
  .case dl { grid-template-columns: 1fr 1fr; gap: .6rem 1.6rem; }
  .sector { grid-template-columns: 1.1fr 1.4fr 1fr; gap: 1.5rem; align-items: start; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (min-width: 960px) {
  .hero-inner { grid-template-columns: 1.05fr .95fr; }
  .cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .situations { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .doc-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 3.5rem; }
  .toc-inner { position: sticky; top: calc(var(--header-h) + 24px); }
  .cta-band .wrap { grid-template-columns: 1fr auto; }
  .contact-grid { grid-template-columns: .85fr 1.15fr; gap: 4rem; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}
@media (max-width: 959px) {
  .toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; background: var(--gray); }
  .toc-inner { border-left: 0; padding-left: 0; }
}

/* 9. Movimiento reducido (lo pide la definición del sitio) --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .flow .path-active { animation: none; }
  .btn:hover { transform: none; }
}

/* Impresión */
@media print {
  .site-header, .site-footer, .cta-band, .toc { display: none; }
}

/* Ajustes: diagrama según ancho, pasos en columnas angostas */
.flow .track { font-family: var(--body); font-size: 11px; fill: var(--muted); }
.flow--v { display: none; }
@media (max-width: 539px) {
  .flow--h { display: none; }
  .flow--v { display: block; }
  .flow--v .node text { font-size: 15px; }
  .flow--v .node .sub { font-size: 12px; }
}
@media (min-width: 720px) { .doc-section .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.doc-section .steps li, .contact-data .steps li { padding-right: 1.2rem; }
.contact-data .steps { grid-template-columns: 1fr; }
.contact-data .steps li { grid-template-columns: 2rem 1fr; column-gap: .6rem; padding-block: .7rem; }
.contact-data .steps .num { grid-row: span 2; padding-top: .2rem; }

/* Proyectos y resultados */
.projects { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
.project { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: grid; gap: .7rem; align-content: start; }
.project > * { min-width: 0; }
.project .tag { font-family: var(--display); font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); }
.project h2, .project h3 { font-size: 1.2rem; }
.project p { color: var(--muted); font-size: .97rem; }
.project .links { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .9rem; font-weight: 600; font-family: var(--display); }
.project .links a { text-decoration: none; }
.metric { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .6rem; border-left: 3px solid var(--cyan); padding-left: .8rem; }
.metric strong { font-family: var(--display); font-size: 1.8rem; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; line-height: 1.1; }
.metric span { font-size: .9rem; color: var(--muted); }
.doc-section .projects { margin-top: .4rem; }
@media (min-width: 720px) { .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Evaluación inicial sin cargo */
.eval { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: center; }
.eval > * { min-width: 0; }
.eval h2 { margin-top: .6rem; }
.eval .lead { margin-top: 1rem; }
.eval-box { background: var(--navy); color: var(--on-navy); border-radius: 10px; padding: clamp(20px, 3vw, 32px); display: grid; gap: 1.4rem; }
.eval-facts { list-style: none; padding: 0; display: grid; gap: .9rem; }
.eval-facts li { margin: 0; display: grid; gap: .1rem; padding-bottom: .9rem; border-bottom: 1px solid rgba(255,255,255,.14); }
.eval-facts li:last-child { border-bottom: 0; padding-bottom: 0; }
.eval-facts strong { font-family: var(--display); font-size: 1.25rem; color: var(--white); }
.eval-facts span { font-size: .92rem; color: var(--on-navy-muted); }
.eval-box .btn--primary { background: var(--white); color: var(--navy); border-color: var(--white); }
.eval-box .btn--primary:hover { background: var(--gray); color: var(--navy); }
.eval-note { border: 1px solid var(--line); border-left: 3px solid var(--cyan); border-radius: var(--radius); padding: 1rem 1.2rem; background: var(--gray); }
.eval-note strong { font-family: var(--display); color: var(--navy); }
.eval-note p { font-size: .94rem; color: var(--muted); margin-top: .3rem; }
.chip--static { cursor: default; }
.chip--static:hover { border-color: var(--line); color: var(--navy); }
@media (min-width: 960px) { .eval { grid-template-columns: 1.2fr .8fr; gap: 4rem; } }

/* =============================================================
   Estilo v2 — referencias Levin (portada oscura, bloques superpuestos)
   y KPMG (barra superior, tarjetas de publicación)
   ============================================================= */
:root { --ink: #081626; --ink-2: #0B1F33; --cyan-light: #4FC3F7; }

/* Barra superior */
.topbar { background: var(--ink); font-size: .8rem; }
.topbar-inner { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .3rem 1.6rem; padding-block: .45rem; }
.topbar a { color: #B8C7D6; text-decoration: none; font-family: var(--display); font-weight: 500; }
.topbar a:hover { color: var(--white); }
.topbar a:first-child { color: var(--cyan-light); }

/* Encabezado oscuro */
.site-header { background: var(--ink-2); border-bottom: 1px solid rgba(255,255,255,.08); }
.site-header.is-scrolled { box-shadow: 0 8px 24px -12px rgba(0,0,0,.6); }
.site-header .brand { color: var(--white); }
.site-header .brand-mark rect { fill: #173A5C; }
.site-nav a.nav-link { color: #D5DEE8; }
.site-nav a.nav-link:hover { color: var(--white); }
.site-nav a.nav-link[aria-current="page"] { color: var(--cyan-light); box-shadow: inset 0 -2px 0 var(--cyan-light); }
.footer-brand .brand-mark rect { fill: #173A5C; }
@media (max-width: 959px) {
  .js .nav-toggle { color: var(--white); border-color: rgba(255,255,255,.25); }
  .site-nav > ul > li { border-bottom-color: rgba(255,255,255,.1); }
  .site-nav a.nav-link[aria-current="page"] { box-shadow: none; }
  .submenu { background: transparent; }
  .submenu a { color: #B8C7D6; }
  .submenu a:hover { background: rgba(255,255,255,.06); color: var(--white); }
  .submenu .submenu-all { border-top-color: rgba(255,255,255,.1); }
}

/* Fondo oscuro con textura de puntos */
.hero-dark {
  background-color: var(--ink);
  background-image: url("assets/img/hero-red.webp");
  background-size: cover; background-position: center left;
  color: #E8EEF4;
}
@media (max-width: 719px) { .hero-dark { background-image: url("assets/img/hero-red-sm.webp"); } }
.hero-dark h1, .hero-dark h2, .hero-dark h3 { color: var(--white); }
.hero-dark .lead, .hero-dark .for { color: #B8C7D6; }
.hero-dark .eyebrow { color: var(--cyan-light); }
.hero-dark .breadcrumb, .hero-dark .breadcrumb a { color: #B8C7D6; }
.hero-dark .breadcrumb a:hover { color: var(--white); }
.hero-dark .breadcrumb li + li::before { color: rgba(255,255,255,.3); }
.hero-dark .btn--ghost { color: var(--white); border-color: rgba(255,255,255,.55); }
.hero-dark .btn--ghost:hover { background: rgba(255,255,255,.08); color: var(--white); }
.page-hero.hero-dark { border-bottom: 0; }
.page-hero.hero-dark .wrap { padding-block: clamp(48px, 7vw, 96px); }

/* Portada: título centrado + bloque superpuesto */
.home-hero__bg { padding-block: clamp(64px, 9vw, 120px) clamp(150px, 15vw, 210px); }
.home-hero__head { text-align: center; display: grid; gap: 1rem; justify-items: center; }
.home-hero__head h1 { max-width: 21ch; font-size: clamp(2rem, 1.2rem + 3.4vw, 3.6rem); }
.home-panel { position: relative; margin-top: clamp(-170px, -12vw, -110px); display: grid; grid-template-columns: 1fr; background: var(--white); box-shadow: 0 30px 60px -30px rgba(8,22,38,.45); }
.home-panel > * { min-width: 0; }
.home-panel__text { padding: clamp(24px, 4vw, 52px); display: grid; gap: 1rem; align-content: center; }
.home-panel__text .statement { font-family: var(--display); font-weight: 600; font-size: clamp(1.2rem, 1rem + .8vw, 1.5rem); line-height: 1.35; color: var(--navy); }
.home-panel__text > p:not(.statement):not(.hero-meta) { color: var(--muted); }
.home-panel__text .btn-row { margin-top: .4rem; }
.home-panel__text .hero-meta { margin-top: 0; }
.home-panel__visual { margin: 0; background: var(--gray); padding: clamp(18px, 3vw, 36px); display: grid; place-items: center; }
@media (min-width: 960px) { .home-panel { grid-template-columns: 1fr 1fr; } }
.home-hero + .home-solutions { padding-top: clamp(48px, 6vw, 80px); }

/* Tarjetas: barra celeste junto al título (KPMG) */
.card h3, .pub-title { position: relative; }
.card h3::before, .pub-title::before { content: ""; position: absolute; left: -1.5rem; top: .15em; bottom: .15em; width: 4px; background: var(--cyan); }
.card { border-radius: 0; }
.more { font-family: var(--display); font-weight: 600; font-size: .95rem; text-decoration: none; display: inline-flex; align-items: center; gap: .45em; }
.more::after { content: "›"; font-size: 1.25em; line-height: 1; transition: transform .2s var(--ease-out); }
.more:hover::after { transform: translateX(3px); }
.more--light { color: var(--white); }
.more--light:hover { color: var(--cyan-light); }

/* Publicaciones (guías) */
.pubs { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.pub { background: var(--white); display: grid; grid-template-rows: auto 1fr; }
.pub-media { height: 170px; position: relative; display: flex; align-items: flex-end; padding: 1rem 1.5rem; }
.pub-media span { font-family: var(--display); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--white); }
.pub-media--0 { background: radial-gradient(rgba(255,255,255,.35) 1.2px, transparent 1.4px) 0 0/14px 14px, linear-gradient(135deg, #175CD3, #0B1F33); }
.pub-media--1 { background: repeating-linear-gradient(115deg, rgba(79,195,247,.35) 0 2px, transparent 2px 22px), linear-gradient(135deg, #102A43, #081626); }
.pub-media--2 { background: linear-gradient(to right, rgba(255,255,255,.12) 1px, transparent 1px) 0 0/28px 28px, linear-gradient(to bottom, rgba(255,255,255,.12) 1px, transparent 1px) 0 0/28px 28px, linear-gradient(135deg, #0093D1, #175CD3); }
.pub-body { padding: 1.4rem 1.5rem 1.6rem; display: grid; gap: .8rem; align-content: start; }
.pub-title { font-size: 1.08rem; font-weight: 650; }
.pub .badge { justify-self: start; }
@media (min-width: 720px) { .pubs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Proyectos y resultados: carrusel */
.results { padding-block: clamp(56px, 7vw, 96px); }
.slides { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; overflow-y: visible; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slides:focus-visible { outline: 3px solid var(--cyan-light); outline-offset: 4px; }
.slide { scroll-snap-align: start; display: grid; grid-template-columns: 1fr; background: var(--white); color: var(--text); min-width: 0; }
.slide > * { min-width: 0; }
.slide-side { background: linear-gradient(135deg, #175CD3, #0B1F33); color: var(--white); padding: clamp(24px, 4vw, 48px); display: grid; align-content: center; gap: .5rem; min-height: 180px; }
.slide-side strong { font-family: var(--display); font-weight: 700; font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem); line-height: 1.05; font-variant-numeric: tabular-nums; }
.slide-side strong.small { font-size: clamp(1.3rem, 1rem + 1vw, 1.7rem); }
.slide-side span { color: #C9D7E6; font-size: .95rem; }
.slide-body { padding: clamp(24px, 4vw, 48px); display: grid; gap: .8rem; align-content: center; }
.slide-body .tag { font-family: var(--display); font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); }
.slide-body h3 { font-size: clamp(1.25rem, 1rem + .8vw, 1.6rem); color: var(--navy); }
.slide-body p { color: var(--muted); max-width: 60ch; }
.slide-body .links { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-family: var(--display); font-weight: 600; font-size: .9rem; }
.slide-body .links a { text-decoration: none; }
.slider-nav { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.4rem; }
.dots { display: flex; gap: .6rem; }
.dot { width: 12px; height: 12px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.35); cursor: pointer; }
.dot.is-active { background: var(--white); }
@media (min-width: 720px) { .slide { grid-template-columns: .85fr 1.4fr; } }

/* Legibilidad del texto sobre la textura */
.page-hero.hero-dark { background-image: linear-gradient(90deg, rgba(8,22,38,.94) 0%, rgba(8,22,38,.82) 45%, rgba(8,22,38,.25) 100%), url("assets/img/hero-red.webp"); background-position: center right; }
.home-hero__bg.hero-dark { background-image: radial-gradient(60% 55% at 50% 42%, rgba(8,22,38,.88) 0%, rgba(8,22,38,.55) 60%, rgba(8,22,38,.1) 100%), url("assets/img/hero-red.webp"); }
.results.hero-dark { background-image: linear-gradient(180deg, rgba(8,22,38,.9) 0%, rgba(8,22,38,.6) 45%, rgba(8,22,38,.35) 100%), url("assets/img/hero-red.webp"); }
@media (max-width: 719px) {
  .page-hero.hero-dark { background-image: linear-gradient(rgba(8,22,38,.88), rgba(8,22,38,.88)), url("assets/img/hero-red-sm.webp"); }
  .home-hero__bg.hero-dark { background-image: linear-gradient(rgba(8,22,38,.8), rgba(8,22,38,.8)), url("assets/img/hero-red-sm.webp"); }
  .results.hero-dark { background-image: linear-gradient(rgba(8,22,38,.85), rgba(8,22,38,.7)), url("assets/img/hero-red-sm.webp"); }
  .topbar a:nth-child(2) { display: none; }
}

/* Fotografías */
.card--media { padding: 0; overflow: hidden; gap: 0; }
.card-img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card-body { padding: 1.4rem 1.5rem 1.6rem; display: grid; gap: .7rem; align-content: start; }
.home-panel__visual--photo { padding: 0; overflow: hidden; }
.home-panel__visual--photo img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
.page-hero__grid { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: center; }
.page-hero__grid > * { min-width: 0; }
.page-hero__photo { margin: 0; }
.page-hero__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); }
@media (min-width: 960px) { .page-hero__grid { grid-template-columns: 1.25fr .75fr; gap: 3.5rem; } }
@media (max-width: 719px) { .page-hero__photo img { aspect-ratio: 16 / 9; } }
.sector-img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-top: .9rem; }
.footer-bottom a { color: var(--on-navy-muted); text-decoration: underline; }

/* Logo ACARDI */
.brand-mark { width: auto; height: 34px; }
.brand-name { font-weight: 800; letter-spacing: .02em; font-size: 1.35rem; }
