/* ─────────────────────────────────────────────────────────────
   AWRISK · hoja de estilos única
   Tokens de marca: azul AWRISK #13206F + naranja #FF8000 del logotipo.
   La matriz de riesgo 5×5 es el motivo visual del sitio; sus colores
   (verde→rojo) se usan SOLO para comunicar nivel de riesgo.
   ───────────────────────────────────────────────────────────── */
@font-face { font-family: 'Archivo'; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%; src: url(../fonts/archivo-latin-wdth-normal.woff2) format('woff2-variations'), url(../fonts/archivo-latin-wdth-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Archivo'; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%; src: url(../fonts/archivo-latin-ext-wdth-normal.woff2) format('woff2-variations'), url(../fonts/archivo-latin-ext-wdth-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+20A0-20AB,U+20AD-20C0,U+2C60-2C7F,U+A720-A7FF; }
:root {
  --navy: #13206f;
  --navy-900: #0b1347;
  --navy-700: #1c2c8c;
  --ink: #171d3b;
  --muted: #535a77;
  --line: #dde1eb;
  --paper: #f3f5f9;
  --white: #fff;
  --orange: #ff8000;
  --orange-600: #e87400;
  --focus: #ffb15c;
  --r1: #3aa57a; --r2: #f2c94c; --r3: #ff8a1f; --r4: #d6443a;
  --radius: 10px;
  --radius-sm: 6px;
  --wrap: 1200px;
  --gut: clamp(16px, 4vw, 32px);
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --shadow: 0 1px 2px rgba(19, 32, 111, .06), 0 8px 24px rgba(19, 32, 111, .08);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--white); font-stretch: 100%; }
img { max-width: 100%; height: auto; }
a { color: var(--navy-700); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, .h3 { font-stretch: 112%; line-height: 1.12; letter-spacing: -.01em; color: var(--navy-900); margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.25rem); font-weight: 750; }
h3, .h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.25; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 100; border-radius: var(--radius-sm); }
.skip:focus { left: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.narrow { max-width: 820px; }
.narrow-left > * { max-width: 46rem; }
.muted { color: var(--muted); font-size: .95rem; }
.center { text-align: center; }
.mt { margin-top: 2rem; }
.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.25em; }

/* ── Botones ─────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font: inherit; font-weight: 650; font-size: .98rem; line-height: 1.2; padding: .72em 1.15em; border-radius: var(--radius-sm); border: 2px solid transparent; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s; }
.btn-lg { font-size: 1.05rem; padding: .85em 1.35em; }
.btn.block { display: flex; width: 100%; }
.btn-primary { background: var(--orange); color: var(--navy-900); }
.btn-primary:hover { background: var(--orange-600); color: var(--navy-900); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-on-dark { color: #fff; border-color: rgba(255,255,255,.55); background: transparent; }
.btn-on-dark:hover { background: #fff; color: var(--navy-900); }
.link { font-weight: 650; color: var(--navy-700); }
.link::after { content: ''; display: inline-block; width: .45em; height: .45em; border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg); margin-left: .45em; vertical-align: .1em; }

/* ── Header y mega menú ─────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.2) blur(6px); }
.header-bar { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { flex: none; }
.brand img { display: block; height: 34px; width: auto; }
.main-nav { display: flex; align-items: center; flex: 1; gap: 16px; }
.nav-list { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; flex: 1; }
.nav-link, .nav-btn { white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; font: inherit; font-size: .97rem; font-weight: 600; color: var(--ink); text-decoration: none; background: none; border: 0; padding: 10px 12px; border-radius: var(--radius-sm); cursor: pointer; }
.nav-link:hover, .nav-btn:hover, .nav-btn[aria-expanded="true"] { background: var(--paper); color: var(--navy); }
.is-active > .nav-link, .is-active > .nav-btn { color: var(--navy); box-shadow: inset 0 -3px 0 var(--orange); border-radius: 0; }
.chev { width: 16px; height: 16px; transition: transform .2s; }
.nav-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav-cta { display: flex; gap: 10px; }
.nav-cta .btn { font-size: .92rem; padding: .6em 1em; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 8px; color: var(--navy); cursor: pointer; }
.nav-toggle .icon { width: 28px; height: 28px; }

.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px rgba(11,19,71,.12); padding: 28px 0 32px; display: none; }
.has-mega.open > .mega { display: block; }
html:not(.js) .has-mega:hover > .mega, html:not(.js) .has-mega:focus-within > .mega { display: block; }
.mega-grid { display: grid; gap: 32px; }
.mega-3 { grid-template-columns: 1.35fr 1fr .9fr; }
.mega-4 { grid-template-columns: repeat(4, 1fr) 1.1fr; }
.mega-2 { grid-template-columns: 1.4fr 1fr; max-width: 860px; }
.mega-title { font-size: .85rem; font-weight: 700; color: var(--muted); margin: 0 0 10px; }
.mega-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mega-list a { display: flex; gap: 12px; align-items: flex-start; text-decoration: none; color: var(--ink); padding: 8px 10px; border-radius: var(--radius-sm); }
.mega-list a:hover { background: var(--paper); color: var(--navy); }
.mega-list .icon { width: 26px; height: 26px; color: var(--navy); margin-top: 2px; }
.mega-list strong { display: block; font-weight: 650; }
.mega-list small { display: block; color: var(--muted); font-size: .85rem; line-height: 1.4; }
.mega-list.compact a { padding: 6px 10px; font-size: .95rem; }
.mega-list .more { font-weight: 650; color: var(--navy-700); }
.mega-aside { align-self: start; background: var(--paper); border-radius: var(--radius); padding: 20px; font-size: .95rem; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.mega-aside p { margin: 0; }

/* ── Migas ──────────────────────────────────────────────── */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 0 0; margin: 0 auto; font-size: .88rem; color: var(--muted); }
.crumbs li + li::before { content: '/'; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--muted); }

/* ── Hero de portada ────────────────────────────────────── */
.hero { background: var(--navy-900); color: #e9ecf8; padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 7vw, 96px); position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0/48px 48px, linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0/48px 48px; pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; position: relative; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
.hero .lead { font-size: 1.15rem; color: #c9cfe8; max-width: 38rem; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; font-size: .95rem; color: var(--orange-600); margin-bottom: 14px; }
.hero .kicker { color: var(--orange); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.hero .btn-ghost:hover { background: #fff; color: var(--navy-900); }
.hero-note { display: flex; align-items: center; gap: 8px; font-size: .92rem; color: #aab2d6; margin: 0; }
.lead { font-size: 1.12rem; color: var(--muted); }

/* Selector de sector con matriz de riesgo (motivo del sitio) */
.switcher { background: #fff; color: var(--ink); border-radius: 14px; padding: 22px; box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.switcher-q { font-weight: 700; color: var(--navy-900); margin: 0 0 12px; font-stretch: 112%; }
.switcher-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 18px; }
.switcher-tabs button { display: flex; align-items: center; gap: 8px; font: inherit; font-size: .88rem; font-weight: 600; padding: 9px 10px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; text-align: left; }
.switcher-tabs button .icon { width: 20px; height: 20px; color: var(--navy); }
.switcher-tabs button:hover { border-color: var(--navy); }
.switcher-tabs button[aria-selected="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.switcher-tabs button[aria-selected="true"] .icon { color: var(--orange); }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.panel-sector { font-weight: 700; margin: 0; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.chips li { font-size: .78rem; font-weight: 600; background: var(--paper); color: var(--navy); padding: 3px 9px; border-radius: 99px; }
.panel-points { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 6px; font-size: .95rem; }
.panel-points li { display: flex; gap: 8px; align-items: flex-start; }
.panel-points .icon, .ticks .icon { color: var(--r1); margin-top: 3px; }
.switcher-panel { animation: fadein .35s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.matrix { margin: 0; }
.matrix { display: grid; grid-template-columns: auto 1fr; grid-template-rows: 1fr auto auto; column-gap: 8px; }
.matrix::before { content: 'Probabilidad'; writing-mode: vertical-rl; transform: rotate(180deg); font-size: .72rem; color: var(--muted); text-align: center; grid-row: 1; }
.matrix::after { content: 'Impacto'; font-size: .72rem; color: var(--muted); text-align: center; grid-column: 2; grid-row: 2; margin-top: 4px; }
.matrix figcaption { grid-column: 2; grid-row: 3; }
.matrix-grid { display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: repeat(5, 1fr); gap: 3px; aspect-ratio: 5 / 3.1; grid-column: 2; grid-row: 1; }
.cell { position: relative; border-radius: 3px; display: flex; align-items: center; justify-content: center; gap: 3px; }
.cell.r1 { background: color-mix(in srgb, var(--r1) 30%, #fff); }
.cell.r2 { background: color-mix(in srgb, var(--r2) 40%, #fff); }
.cell.r3 { background: color-mix(in srgb, var(--r3) 40%, #fff); }
.cell.r4 { background: color-mix(in srgb, var(--r4) 38%, #fff); }
.dot { display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: .66rem; font-weight: 700; width: 24px; height: 24px; border-radius: 50%; }
.dot.inh { border: 2px dashed var(--navy); color: var(--navy); background: rgba(255,255,255,.8); }
.dot.res { background: var(--navy); color: #fff; }
.matrix figcaption { display: flex; gap: 16px; font-size: .78rem; color: var(--muted); margin-top: 8px; }
.matrix figcaption span { display: inline-flex; align-items: center; gap: 6px; }
.matrix figcaption .dot { width: 12px; height: 12px; }

/* ── Logos de clientes ──────────────────────────────────── */
.logos { padding: 34px 0; border-bottom: 1px solid var(--line); background: #fff; }
.logos-title { text-align: center; font-size: .95rem; color: var(--muted); margin-bottom: 18px; }
.logos-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px 34px; }
.logos-list img { height: 40px; width: auto; max-width: 124px; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.logos-list a:hover img, .logos-list a:focus-visible img { filter: none; opacity: 1; }

/* ── Secciones genéricas ────────────────────────────────── */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section + .section { padding-top: 0; }
/* Al cambiar de fondo, la sección siguiente recupera su margen superior */
:is(.sectors-sec, .pains, .measure, .demo-sec, .agent-sec, .apply-sec) + .section,
.section + :is(.sectors-sec, .pains, .measure, .demo-sec, .agent-sec, .apply-sec) { padding-top: clamp(48px, 7vw, 88px); }
.section-head { max-width: 46rem; margin-bottom: 32px; }
.section-head.row { max-width: none; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.page-hero { padding: clamp(32px, 5vw, 64px) 0 clamp(36px, 5vw, 56px); background: linear-gradient(180deg, var(--paper), #fff); }
.page-hero h1 { max-width: 24ch; font-size: clamp(2rem, 3.6vw, 2.9rem); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }

.outcomes { background: #fff; }
.outcome-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 3px solid var(--navy); }
.outcome { padding: 22px 22px 6px 0; }
.outcome + .outcome { padding-left: 22px; border-left: 1px solid var(--line); }
.outcome p { color: var(--muted); font-size: .98rem; }

/* Filas de sector (no tarjetas idénticas) */
.sectors-sec, .pains, .measure { background: var(--paper); }
.sector-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.sector-rows a { display: grid; grid-template-columns: 56px 1fr auto; gap: 20px; align-items: center; padding: 20px 12px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: background-color .15s; }
.sector-rows a:hover { background: #fff; }
.sr-icon { width: 52px; height: 52px; border-radius: 12px; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; }
.sr-icon .icon { width: 28px; height: 28px; }
.sr-main strong { display: block; font-stretch: 112%; font-size: 1.2rem; color: var(--navy-900); }
.sr-main span { color: var(--muted); }
.sr-tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; max-width: 380px; }
.sr-tags em { font-style: normal; font-size: .8rem; font-weight: 600; border: 1px solid var(--line); background: #fff; padding: 3px 9px; border-radius: 99px; color: var(--navy); }

/* ROI */
.roi-sec { background: #fff; }
.roi-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.roi { display: grid; grid-template-columns: 1fr; gap: 22px; background: var(--paper); border-radius: 14px; padding: clamp(18px, 3vw, 30px); }
.roi fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 14px; align-content: start; }
.roi legend { font-weight: 700; color: var(--navy-900); margin-bottom: 6px; font-stretch: 112%; }
.roi-field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 4px; }
.roi-field small { display: block; color: var(--muted); font-size: .8rem; margin-top: 4px; line-height: 1.4; }
.roi-input { display: flex; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.roi-input input { flex: 1; min-width: 0; font: inherit; border: 0; padding: 8px 10px; background: transparent; }
.roi-input span { padding: 0 10px; color: var(--muted); font-size: .85rem; }
.roi-range { display: flex; align-items: center; gap: 12px; }
.roi-range input { flex: 1; accent-color: var(--navy); }
.roi-range output { font-weight: 700; min-width: 3.5em; }
.roi-result { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; background: var(--navy-900); color: #fff; border-radius: var(--radius); padding: 22px; align-items: center; }
.roi-result p { margin: 0; }
.roi-big { display: block; font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; font-stretch: 112%; color: var(--orange); line-height: 1.1; }
.roi-result span:not(.roi-big) { color: #c9cfe8; font-size: .92rem; }
.roi-fte { grid-column: 1 / -1; color: #c9cfe8; font-size: .92rem; }
.roi-result .btn { grid-column: 1 / -1; justify-self: start; }
.roi fieldset:first-of-type { grid-template-columns: 1fr 1fr; column-gap: 18px; }
.roi fieldset:first-of-type legend { grid-column: 1 / -1; }

/* Demo + flujo */
.demo-sec { background: var(--paper); }
.demo-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.flow { list-style: none; counter-reset: f; padding: 0; margin: 0 0 28px; display: grid; gap: 4px; }
.flow li { counter-increment: f; display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.flow li::before { content: counter(f); grid-row: span 2; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.flow strong { font-stretch: 112%; color: var(--navy-900); }
.flow span { color: var(--muted); font-size: .96rem; }
.video { position: relative; border-radius: 14px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; box-shadow: var(--shadow); }
.video iframe, .video-poster, .video-poster img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video-poster::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11,19,71,.85), rgba(11,19,71,.1) 60%); }
.video-play { position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 76px; height: 76px; border-radius: 50%; background: var(--orange); color: var(--navy-900); display: flex; align-items: center; justify-content: center; }
.video-play .icon { width: 34px; height: 34px; margin-left: 4px; }
.video-title { position: absolute; z-index: 1; left: 20px; bottom: 16px; color: #fff; font-weight: 650; }

/* Agente */
.agent-sec { background: var(--navy); color: #dfe3f5; }
.agent-sec h2 { color: #fff; }
.agent-sec .kicker { color: var(--orange); }
.agent-sec .link { color: #fff; }
.agent-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.agent-caps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.agent-caps li { display: flex; gap: 12px; align-items: flex-start; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); padding: 12px 14px; border-radius: var(--radius); }
.agent-caps .icon { color: var(--orange); margin-top: 3px; }

/* Casos */
.cases-sec { }
.case-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.case { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; }
.case header { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.case header img { height: 40px; width: 72px; object-fit: contain; }
.case h3 { margin: 0; font-size: 1.08rem; }
.case h3 a { color: var(--navy-900); text-decoration: none; }
.case h3 a:hover { text-decoration: underline; }
.case header p { margin: 0; font-size: .85rem; color: var(--muted); }
.case dl, .case-story { margin: 0; display: grid; gap: 10px; }
.case dt, .case-story dt { font-size: .8rem; font-weight: 700; color: var(--orange-600); }
.case dd, .case-story dd { margin: 0; font-size: .96rem; }
.case-story dd { font-size: 1.05rem; }
.case-story > div { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.case-logo { height: 64px; width: auto; margin-bottom: 16px; }
.case-facts { background: var(--paper); border-radius: var(--radius); padding: 20px; font-size: .95rem; }
.case-facts p { display: flex; flex-wrap: wrap; gap: 6px 10px; }
.case-facts strong { width: 100%; font-size: .82rem; color: var(--muted); }
.metric { display: block; font-size: 1.8rem; color: var(--navy); }
.partner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.partner { display: flex; gap: 18px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.partner img { width: 90px; height: 48px; object-fit: contain; }
.partner h3 { margin: 0 0 4px; }
.partner p { margin: 0; font-size: .92rem; color: var(--muted); }

/* Recursos */
.res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.resource { border-top: 3px solid var(--orange); background: var(--paper); padding: 20px; border-radius: 0 0 var(--radius) var(--radius); }
.resource-type { display: flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 650; color: var(--muted); margin-bottom: 8px; }
.resource h3 a { color: var(--navy-900); text-decoration: none; }
.resource h3 a:hover { text-decoration: underline; }
.resource p:last-child { color: var(--muted); font-size: .95rem; margin: 0; }

/* Despliegue */
.deploy-sec { }
.deploy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.deploy { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.deploy ul { padding-left: 1.1em; margin: 0; color: var(--muted); font-size: .95rem; }

/* FAQ */
.faq { }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; font-weight: 650; font-size: 1.05rem; padding: 18px 36px 18px 0; position: relative; color: var(--navy-900); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 12px; font-size: 1.6rem; font-weight: 400; color: var(--navy); }
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--muted); }

/* Banda CTA */
.cta-band { background: var(--navy-900); color: #dfe3f5; padding: clamp(40px, 6vw, 72px) 0; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px 48px; flex-wrap: wrap; }
.cta-inner > div:first-child { flex: 1 1 420px; }
.cta-actions { flex: 0 0 auto; }
.cta-inner h2 { color: #fff; margin-bottom: .3em; max-width: 24ch; }
.cta-inner p { margin: 0; max-width: 40rem; color: #c9cfe8; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.no-cta .cta-band { display: none; }

/* Páginas de sector */
.reg-box { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--navy); border-radius: var(--radius); padding: 22px; font-size: .95rem; box-shadow: var(--shadow); }
.reg-title { font-weight: 700; color: var(--navy-900); }
.reg-box ul { padding-left: 1.1em; margin: 0 0 14px; display: grid; gap: 6px; }
.reg-for { color: var(--muted); margin: 0; }
.sector-hero .hero-grid { align-items: start; }
.sector-hero .kicker .icon { width: 22px; height: 22px; }
.pain-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.pain { padding: 22px; border-right: 1px solid var(--line); }
.pain:last-child { border-right: 0; }
.pain h3 { font-size: 1.05rem; position: relative; padding-top: 14px; }
.pain h3::before { content: ''; position: absolute; top: 0; left: 0; width: 28px; height: 4px; background: var(--r4); border-radius: 2px; }
.pain p { color: var(--muted); font-size: .95rem; margin: 0; }
.gains { }
.gains-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.gains-side { position: sticky; top: 100px; background: var(--paper); border-radius: 14px; padding: 20px; }
.gain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.gain-list li { display: flex; gap: 14px; }
.gain-list .icon { width: 26px; height: 26px; color: #fff; background: var(--r1); border-radius: 50%; padding: 4px; flex: none; }
.gain-list h3 { margin-bottom: 4px; }
.gain-list p { margin: 0; color: var(--muted); }
.mod-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.mod-chip { display: flex; flex-direction: column; text-decoration: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; color: var(--ink); min-width: 160px; }
.mod-chip:hover { border-color: var(--navy); }
.mod-chip small { color: var(--muted); font-size: .78rem; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.fw-sec { }
.fw-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0 28px; }
.fw-list a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.fw-list a:hover strong { text-decoration: underline; }
.fw-list strong { display: block; color: var(--navy-900); }
.fw-list span { color: var(--muted); font-size: .92rem; }
.measure .narrow p:last-child { margin: 18px 0 0; }
.measure .narrow { background: #fff; border-radius: 14px; padding: clamp(20px, 4vw, 40px); }
.fw-inline { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.fw-inline a { display: inline-block; border: 1px solid var(--line); border-radius: 99px; padding: 5px 12px; text-decoration: none; font-size: .92rem; font-weight: 600; }
.fw-inline a:hover { border-color: var(--navy); }

/* Soluciones y plataforma */
.sector-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.sector-card { display: block; text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.sector-card:hover { border-color: var(--navy); }
.sector-card .icon { width: 32px; height: 32px; color: var(--navy); margin-bottom: 10px; }
.sector-card p { color: var(--muted); font-size: .95rem; margin: 0; }
.mod-group h2 { font-size: 1.5rem; }
.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.mod-card { display: block; text-decoration: none; color: var(--ink); background: var(--paper); border-radius: var(--radius); padding: 20px; border: 1px solid transparent; }
.mod-card:hover { border-color: var(--navy); background: #fff; }
.mod-card small { color: var(--orange-600); font-weight: 700; font-size: .8rem; }
.mod-card h3 { margin: 4px 0 6px; }
.mod-card p { margin: 0; font-size: .95rem; color: var(--muted); }
.ai-box { background: var(--navy); color: #dfe3f5; border-radius: 14px; padding: 24px; }
.ai-box .kicker { color: var(--orange); }
.ai-box .link { color: #fff; }
.map-table, .compare { width: 100%; border-collapse: collapse; font-size: .95rem; }
.map-table th, .map-table td, .compare th, .compare td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.map-table thead th, .compare thead th { font-size: .85rem; color: var(--muted); border-bottom: 2px solid var(--navy); }
.compare thead th { color: var(--navy-900); font-size: 1rem; font-stretch: 112%; }
.compare tbody th { font-weight: 650; width: 22%; }
.table-wrap { overflow-x: auto; }
.disclaimer { font-size: .9rem; color: var(--muted); border-left: 3px solid var(--line); padding-left: 14px; }

/* Agente: simulación de chat */
.agent-hero .hero-grid { grid-template-columns: 1fr 1fr; }
.chat-mock { background: var(--navy-900); border-radius: 14px; padding: 22px; color: #e8ebf7; font-size: .95rem; box-shadow: var(--shadow); }
.cm-user { background: rgba(255,255,255,.1); border-radius: 12px 12px 2px 12px; padding: 12px 14px; margin: 0 0 14px 15%; }
.cm-bot { background: #fff; color: var(--ink); border-radius: 12px 12px 12px 2px; padding: 14px 16px; margin-right: 10%; }
.cm-bot ul { padding-left: 1.1em; margin: 0 0 10px; }
.cm-bot p { margin: 0 0 8px; }
.cm-actions { display: flex; gap: 8px; }
.cm-actions b { font-size: .85rem; background: var(--orange); color: var(--navy-900); padding: 4px 12px; border-radius: 99px; }
.cm-actions b + b { background: var(--paper); }
.cm-foot { font-size: .78rem; color: #8e97c4; margin: 12px 0 0; }

/* Formularios */
.gated-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow); }
.lead-form { display: grid; gap: 14px; }
form.lead-form { font-size: .95rem; color: var(--ink); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.f label { display: block; font-weight: 600; margin-bottom: 4px; font-size: .9rem; }
.f input:not([type="checkbox"]), .f select, .f textarea, .assist textarea { width: 100%; font: inherit; font-size: .97rem; padding: 10px 12px; border: 1px solid #c6cbda; border-radius: var(--radius-sm); background: #fff; color: var(--ink); }
.f input:focus, .f select:focus, .f textarea:focus { border-color: var(--navy); outline: 2px solid color-mix(in srgb, var(--navy) 25%, transparent); }
.f.check { display: flex; gap: 10px; align-items: flex-start; }
.f.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--navy); flex: none; }
.f.check label { font-weight: 400; font-size: .86rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 0; font-weight: 600; }
.form-status.ok { color: #1d7a52; }
.form-status.err { color: var(--r4); }
.booking { width: 100%; height: 640px; border: 0; border-radius: var(--radius); margin-bottom: 12px; }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.contact-list strong { display: block; font-size: .85rem; color: var(--muted); }
.prose h2 { font-size: 1.4rem; margin-top: 1.6em; }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer { background: #080f38; color: #b8bfdf; font-size: .92rem; padding: 56px 0 0; }
.site-footer a { color: #dfe3f5; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.footer-brand img { height: 34px; width: auto; margin-bottom: 14px; }
.footer-brand address { font-style: normal; line-height: 1.8; }
.footer-title { color: #fff; font-weight: 700; margin: 0 0 10px; }
.site-footer ul { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 6px; }
.social { display: flex; gap: 14px; margin-top: 14px; }
.social .icon { width: 22px; height: 22px; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: 32px; padding-top: 18px; padding-bottom: 24px; font-size: .85rem; }

/* ── Asistente IA ───────────────────────────────────────── */
.assist { position: fixed; right: 20px; bottom: 20px; z-index: 60; }
.assist-launch { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 650; background: var(--navy); color: #fff; border: 0; padding: 12px 18px; border-radius: 99px; box-shadow: 0 10px 30px rgba(11,19,71,.35); cursor: pointer; }
.assist-launch .icon { color: var(--orange); }
.assist-panel { position: absolute; right: 0; bottom: 64px; width: min(400px, calc(100vw - 32px)); max-height: min(620px, calc(100vh - 120px)); display: flex; flex-direction: column; background: #fff; border-radius: 14px; box-shadow: 0 24px 60px rgba(11,19,71,.3); overflow: hidden; }
.assist-panel[hidden] { display: none; }
.assist-panel header { display: flex; justify-content: space-between; align-items: flex-start; background: var(--navy); color: #fff; padding: 14px 16px; }
.assist-panel header p { margin: 0; }
.assist-panel header small { display: block; color: #c9cfe8; font-size: .8rem; }
.assist-close { background: none; border: 0; color: #fff; cursor: pointer; padding: 4px; }
.assist-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; font-size: .94rem; }
.assist-msg { margin: 0; padding: 10px 12px; border-radius: 12px; max-width: 90%; white-space: pre-wrap; }
.assist-msg.bot { background: var(--paper); align-self: flex-start; }
.assist-msg.user { background: var(--navy); color: #fff; align-self: flex-end; }
.assist-msg.err { background: #fdecea; color: #8a1f17; }
.assist-links { display: flex; flex-wrap: wrap; gap: 6px; }
.assist-links a { font-size: .85rem; border: 1px solid var(--line); border-radius: 99px; padding: 3px 10px; text-decoration: none; }
.assist-suggest { display: flex; flex-wrap: wrap; gap: 6px; }
.assist-suggest button { font: inherit; font-size: .85rem; border: 1px solid var(--navy); color: var(--navy); background: #fff; border-radius: 99px; padding: 4px 12px; cursor: pointer; }
.assist-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.assist-form textarea { resize: none; }
.assist-note { font-size: .74rem; color: var(--muted); padding: 0 12px 12px; margin: 0; }


/* ── Programa de partners ───────────────────────────────── */
.nav-link.nav-partner { color: var(--orange-600); gap: 6px; }
.nav-link.nav-partner .icon { width: 20px; height: 20px; }
.nav-link.nav-partner:hover { color: var(--navy); }
.partner-hero h1 { font-size: clamp(2rem, 3.8vw, 3.1rem); }
.partner-hero .kicker .icon { width: 22px; height: 22px; }
.partner-card { background: #fff; color: var(--ink); border-radius: 14px; padding: 26px; box-shadow: 0 30px 60px rgba(0,0,0,.35); border-top: 5px solid var(--orange); }
.pc-title { font-weight: 700; font-stretch: 112%; color: var(--navy-900); }
.pc-types { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 14px; }
.pc-types li { display: flex; gap: 12px; align-items: flex-start; }
.pc-types .icon { width: 26px; height: 26px; color: var(--navy); background: var(--paper); border-radius: 8px; padding: 4px; flex: none; }
.pc-types strong { display: block; color: var(--navy-900); }
.pc-types span { color: var(--muted); font-size: .94rem; line-height: 1.45; }
.pc-foot { margin: 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; font-size: .9rem; color: #aab2d6; }
.share > span { display: inline-flex; align-items: center; gap: 6px; margin-right: 4px; }
.share a, .share button { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); color: #fff; background: transparent; }
.share a:hover, .share button:hover { background: #fff; color: var(--navy-900); }
.share .icon { width: 18px; height: 18px; }
.share button { width: auto; border-radius: 99px; padding: 0 14px; font: inherit; font-size: .85rem; cursor: pointer; }
.model-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.model { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; }
.model h3 { padding-bottom: 10px; border-bottom: 3px solid var(--orange); }
.model-fit { color: var(--muted); font-size: .95rem; }
.model dl { margin: auto 0 0; display: grid; gap: 10px; }
.model dt { font-size: .8rem; font-weight: 700; color: var(--navy-700); }
.model dd { margin: 0; font-size: .94rem; }
.partner-list { display: grid; gap: 14px; align-content: start; align-self: start; }
.partner-list > h3 { margin: 0; }
.partner-list .partner { background: #fff; }
.social-sec { background: #fff; }
.hashtag { font-weight: 700; font-stretch: 112%; color: var(--orange-600); font-size: 1.15rem; margin: 0; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin-bottom: 24px; }
.post { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.post header { display: flex; gap: 10px; align-items: center; }
.post header .icon { width: 28px; height: 28px; color: var(--navy); }
.post-linkedin header .icon { color: #0a66c2; }
.post-youtube header .icon { color: #d6443a; }
.post header small { display: block; color: var(--muted); font-size: .8rem; }
.post h3 { margin: 0; font-size: 1.05rem; }
.post h3 a { color: var(--navy-900); text-decoration: none; }
.post h3 a:hover { text-decoration: underline; }
.post p { margin: 0; color: var(--muted); font-size: .95rem; }
.post .link { margin-top: auto; }
.post-embed iframe { width: 100%; height: 520px; border: 0; border-radius: var(--radius-sm); }
.post-embed iframe.embed-youtube { height: auto; aspect-ratio: 16 / 9; }
.follow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; background: var(--paper); border-radius: var(--radius); padding: 16px 20px; }
.follow p { margin: 0; font-weight: 600; }
.follow ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.follow a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.follow a:hover { text-decoration: underline; }
.apply-sec { background: var(--paper); padding-top: clamp(48px, 7vw, 88px); }
@media (max-width: 1240px) { .nav-link, .nav-btn { padding: 10px 8px; font-size: .93rem; } }
@media (max-width: 1100px) { .model-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .model-grid { grid-template-columns: 1fr; } }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1520px) {
  .nav-cta .btn-ghost { display: none; }
}
@media (max-width: 1100px) {
  .mega-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .outcome-grid { grid-template-columns: 1fr 1fr; }
  .outcome:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 1180px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 8px var(--gut) 20px; max-height: calc(100vh - 72px); overflow-y: auto; box-shadow: 0 20px 30px rgba(11,19,71,.12); }
  html:not(.js) .main-nav { display: flex; position: static; box-shadow: none; }
  .main-nav.open { display: flex; }
  .nav-list { flex-direction: column; }
  .nav-link, .nav-btn { width: 100%; justify-content: space-between; padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.05rem; }
  .is-active > .nav-link, .is-active > .nav-btn { box-shadow: none; }
  .nav-link.nav-partner { justify-content: flex-start; }
  .mega { position: static; box-shadow: none; border: 0; padding: 8px 0 16px; }
  .mega .wrap { padding: 0; }
  .mega-grid, .mega-3, .mega-4, .mega-2 { grid-template-columns: 1fr; gap: 18px; }
  .mega-list small { display: none; }
  .nav-cta { flex-direction: column; margin-top: 12px; }
  .nav-cta .btn-ghost { display: flex; }
}
@media (max-width: 960px) {
  .hero-grid, .agent-hero .hero-grid, .two-col, .gated-grid, .roi-grid, .demo-grid, .agent-grid, .gains-grid { grid-template-columns: minmax(0, 1fr); }
  .gains-side { position: static; }
  .deploy-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .sector-rows a { grid-template-columns: 48px 1fr; }
  .sr-icon { width: 46px; height: 46px; }
  .sr-tags { grid-column: 2; justify-content: flex-start; max-width: none; }
  .pain { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .switcher { padding: 16px; }
  .switcher-tabs { grid-template-columns: repeat(2, 1fr); }
  .outcome-grid { grid-template-columns: 1fr; }
  .outcome, .outcome + .outcome { padding: 18px 0 4px; border-left: 0; border-bottom: 1px solid var(--line); }
  .roi, .roi fieldset:first-of-type, .roi-result, .row2 { grid-template-columns: 1fr; }
  .cta-actions { flex: 1 1 100%; }
  .cta-actions .btn { width: 100%; }
  .btn { white-space: normal; text-align: center; }
  .hero-actions .btn { width: 100%; }
  .dot { width: 20px; height: 20px; font-size: .58rem; }
  .assist-launch span { display: none; }
  .assist-launch { padding: 14px; }
  .footer-grid { grid-template-columns: 1fr; }
  .case-grid, .partner-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .cta-band, .assist, .switcher { display: none; }
}
