/* IT-Talent · tema del home alineado con el hero (tipografías, tamaños y colores del Manual de marca).
   Se carga después de it-talent-final.css y solo redefine tokens y estilos de texto. */

:root {
  --font-display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --accent: #1CA716;
  --accent-hover: #168A12;
  --link: #0A1F5C;
  --link-hover: #1CA716;
  --ink: #0A1F5C;
  --ink-soft: #4A5A85;
  --ink-mute: #4A5A85;
  --navy-900: #050F30;
  --navy-800: #06153F;
  --navy-700: #0A1F5C;
  --navy-600: #0D2A78;
  --navy-500: #12348C;
  --navy-line: #1F3A86;
  --sky: #35C92B;
  --on-dark: #E3ECFF;
  --on-dark-soft: #C9D6F2;
  --on-dark-mute: #AEBEE3;
  --bg-soft: #F5F8FF;
  --line: #DCE3F2;
  --line-strong: #C3CEE6;
}

body { font-family: var(--font-body); color: var(--ink); }

/* titulares: como el hero (Space Grotesk 500, interletra cerrada) */
.h2, .ceo__title, .cta__title, .contact h2 {
  font-family: var(--font-display); font-weight: 500; letter-spacing: -.035em; line-height: 1.08; color: inherit;
}
.h2 { font-size: clamp(30px, 1.4rem + 1.6vw, 48px); }
.section--dark .h2, .section--dark .cta__title { color: #fff; }

/* etiquetas superiores: mono, mayúsculas, verde con cuadradito como el badge del hero */
.eyebrow, .clients__eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-weight: 700; font-size: 12px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before, .clients__eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 1px; background: currentColor; box-shadow: 0 0 8px 1px rgb(53 201 43 / .5); }
.section--dark .eyebrow, .eyebrow--light, .ceo .eyebrow, .contact .eyebrow { color: #35C92B; }

/* botones: mono en mayúsculas, esquinas de 10px, primario verde */
.btn { font-family: var(--font-mono); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; border-radius: 10px; font-size: 13px; }
.btn--lg { font-size: 14px; }
.btn--primary { background: #1CA716; background-image: linear-gradient(180deg, #2DBF24, #179012); color: #fff;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .3), 0 10px 28px -14px rgb(53 201 43 / .7); }
.btn--primary:hover { background: #168A12; }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); background: #fff; }
.btn--ghost:hover { border-color: var(--ink); }
.link-arrow { font-family: var(--font-mono); font-weight: 700; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink); }
.link-arrow:hover { color: var(--accent); }
.section--dark .link-arrow, .ceo .link-arrow { color: #fff; }

/* cifras y números: mono como la barra del hero */
.stat__num, .clients__num, .step__num, .fxp-stat-value { font-family: var(--font-mono); font-weight: 700; letter-spacing: -.03em; color: var(--ink); }
.stat__label { color: var(--ink-soft); }
.clients__num { background: linear-gradient(180deg, #0A1F5C, #1CA716) !important; -webkit-background-clip: text !important; background-clip: text !important; }
.clients__label { font-family: var(--font-display) !important; font-weight: 500 !important; color: var(--ink) !important; letter-spacing: -.02em; }
.logo-tile:hover { border-color: #1CA716 !important; box-shadow: 0 16px 34px rgba(28, 167, 22, .16) !important; }
.step { border-top-color: var(--ink); }
.step__num { color: var(--accent); }
.service__num, .office__tag, .card__tag, .post__meta { font-family: var(--font-mono); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.section--dark .service__num, .section--dark .office__tag { color: #35C92B; }
.office--hq { border-color: #35C92B; }

/* tarjetas y textos */
.post__title { font-family: var(--font-display); font-weight: 500; letter-spacing: -.02em; color: var(--ink); }
.post:hover .post__title { color: var(--accent); }
.service h3, .card h3, .step h3, .office__country, .ceo__name, .feature h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: -.02em; }
.ceo__tags span { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }

/* secciones oscuras con el navy del hero */
.section--dark, .contact { background: #06153F; }
.footer { background: #050F30; }

/* ---------- carrusel de recomendaciones ---------- */
#testimonios .container { max-width: none; padding-inline: 0; }
#testimonios .section__head { padding-inline: clamp(16px, 4.3vw, 72px); margin-inline: auto; align-items: center; text-align: center; }
.tm { display: flex; flex-direction: column; gap: 18px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.tm-row { overflow: hidden; }
.tm-track { display: flex; gap: 18px; width: max-content; padding-block: 6px; animation: tm-scroll 160s linear infinite; }
.tm-row--b .tm-track { animation-direction: reverse; animation-duration: 180s; }
.tm-row:hover .tm-track, .tm-row:focus-within .tm-track { animation-play-state: paused; }
@keyframes tm-scroll { to { transform: translateX(calc(-50% - 9px)); } }
.tm-card { flex: none; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; width: clamp(290px, 28vw, 400px); margin: 0; padding: 24px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; border-top: 3px solid #1CA716; box-shadow: 0 1px 0 rgb(10 31 92 / .03); }
.tm-card blockquote { margin: 0; font-size: 15.5px; line-height: 1.6; color: #1C2A55;
  display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.tm-card figcaption { display: flex; align-items: center; gap: 12px; }
.tm-avatar { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #0A1F5C; color: #fff; font-family: var(--font-mono); font-weight: 700; font-size: 13px; }
.tm-card strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--ink); }
.tm-role { display: block; margin-top: 2px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .03em; color: var(--ink-soft); line-height: 1.4; }
.tm-more { text-align: center; }
@media (prefers-reduced-motion: reduce) {
  .tm { -webkit-mask-image: none; mask-image: none; }
  .tm-track { animation: none; }
  .tm-row { overflow-x: auto; padding-inline: 16px; scroll-snap-type: x mandatory; }
  .tm-card { scroll-snap-align: start; }
  .tm-card[aria-hidden="true"] { display: none; }
}

/* ---------- artículos y prensa (home) ---------- */
.ap-press { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.ap-press-title { font-family: var(--font-mono); font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }

/* tarjetas de prensa */
.pr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.pr-card { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 20px; background: #fff; border: 1px solid var(--b-line, #DCE3F2); border-radius: 14px; border-top: 3px solid var(--b-green, #1CA716); }
.pr-card__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pr-card__medio { font-family: "JetBrains Mono", ui-monospace, monospace; font-weight: 700; font-size: 17px; color: #0A1F5C; letter-spacing: -.01em; }
.pr-card__tipo { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #4A5A85; background: #F5F8FF; border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.pr-card__fecha { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12px; color: #1CA716; }
.pr-card h3 { font-family: "JetBrains Mono", ui-monospace, monospace; font-weight: 700; font-size: 16px; line-height: 1.4; color: #0A1F5C; margin: 0; }
.pr-card p { font-size: 15px; line-height: 1.55; color: #4A5A85; margin: 0; }
.pr-card__link { margin-top: auto; padding-top: 6px; font-family: "JetBrains Mono", ui-monospace, monospace; font-weight: 700; font-size: 13px; color: #0A1F5C; text-decoration: none; }
.pr-card__link:hover { color: #1CA716; text-decoration: underline; }
.pr-medios { display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: "JetBrains Mono", ui-monospace, monospace; font-weight: 700; font-size: 15px; color: #4A5A85; }
.pr-medios span { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* menú del encabezado fijo: mismo estilo que la pestaña del hero */
.site-header .nav a:not(.btn) { font-family: var(--font-mono); font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.site-header { background: #06153F; }

/* tarjetas de servicio enlazadas a su página */
a.service { text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: transform .2s, border-color .2s; }
a.service:hover { transform: translateY(-2px); }
a.service:hover .h3 { color: #35C92B; }
.service__more { margin-top: auto; padding-top: 14px; font-family: "JetBrains Mono", ui-monospace, monospace; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #35C92B; }
.tm-row--solo .tm-track { animation-duration: 320s; }
.tm-more { margin-top: 32px; }
.tm-more .link-arrow { display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border: 1px solid #DCE3F2; border-radius: 999px; background: #fff; font-family: "JetBrains Mono", ui-monospace, monospace; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: #0A1F5C; text-decoration: none; }
.tm-more .link-arrow:hover { border-color: #1CA716; color: #1CA716; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center; margin-top: 16px; font-size: 13px; color: #8FA0C8; }
.footer__legal nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.footer__legal a { color: #C9D3EC; text-decoration: none; }
.footer__legal a:hover { color: #35C92B; }
.footer__legal span[aria-hidden] { color: #4A5A85; }

/* ---------- Tipografía más compacta fuera del hero (≈10% menor) ---------- */
html body { font-size: 15px; }
html body .h2 { font-size: clamp(26px, 1.2rem + 1.3vw, 40px); }
html body .h3 { font-size: 19px; }
html body .stat__num { font-size: 34px; }
html body .stat__label { font-size: 14px; }
html body .section__split > p { font-size: 16px; }
html body .section__split--dark > p { font-size: 15px; }
html body .service p, html body .card p, html body .feature p { font-size: 15px; }
html body .step h3, html body .office__country { font-size: 18px; }
html body .quote blockquote { font-size: 16px; }
html body .tm-card blockquote { font-size: 14.5px; }
html body .ceo__title { font-size: 34px; }
html body .ceo__text, html body .contact__lead { font-size: 16px; }
html body .cta__title { font-size: 30px; }
html body .post__title { font-size: 19px; }
html body .est-hero h1 { font-size: clamp(26px, 3.4vw, 36px); }
html body .art-hero h1 { font-size: clamp(26px, 3.4vw, 36px); }
html body .est-hero__lead { font-size: 16px; }
html body .est-body h2, html body .est-related h2, html body .est-band h2 { font-size: clamp(20px, 2.2vw, 24px); }
html body .est-body h3 { font-size: 16px; }
html body .est-prose p, html body .rc-list li { font-size: 15.5px; }
html body .est-findings p { font-size: 15px; }
html body .art-body { font-size: 16.5px; }
html body .art-body h2 { font-size: clamp(20px, 2.2vw, 23px); }
html body .svc-card h3 { font-size: 18px; }
html body .svc-card--min h3 { font-size: 17px; }
html body .svc-faq summary { font-size: 16px; }
html body .svc-proof strong { font-size: 24px; }
html body .svc-tags li { font-size: 14px; }
html body .gl-item dt { font-size: 17px; }
html body .gl-item dd p { font-size: 14.5px; }
@media (max-width: 760px) {
  html body .ceo__title { font-size: 28px; }
  html body .cta__title { font-size: 25px; }
  html body .stat__num { font-size: 30px; }
  html body .art-body { font-size: 16px; }
}
html body .fxp { font-size: 16px; } /* el hero mantiene su tamaño */

/* Aviso de cookies (legal/cookies.js) */
#itt-cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1000; max-width: 720px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; justify-content: space-between; padding: 18px 20px; background: #06153F; color: #C9D3EC; border-radius: 14px; box-shadow: 0 12px 40px rgba(6,21,63,.35); font-size: 14px; }
#itt-cookie-banner p { margin: 0; flex: 1 1 320px; line-height: 1.5; }
#itt-cookie-banner a { color: #35C92B; }
#itt-cookie-banner div { display: flex; gap: 10px; }
#itt-cookie-banner button { font: 700 12px "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: .04em; padding: 12px 16px; border-radius: 10px; border: 1px solid #35C92B; background: transparent; color: #fff; cursor: pointer; }
#itt-cookie-banner button.is-primary { background: #1CA716; border-color: #1CA716; }

/* ---------- Documento con menú de contenido (estudios y legales) ---------- */
.doc-wrap { background: #F5F8FF; border-top: 1px solid #E3E9F5; }
.doc { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; padding-top: 40px; padding-bottom: 88px; align-items: start; }
.doc-toc { position: sticky; top: calc(var(--header-h, 72px) + 20px); display: flex; flex-direction: column; gap: 14px; max-height: calc(100vh - var(--header-h, 72px) - 40px); }
.doc-toc__box { background: #fff; border: 1px solid #DCE3F2; border-radius: 14px; padding: 16px 12px 12px; overflow: auto; min-height: 0; }
.doc-toc__box summary { list-style: none; cursor: pointer; padding: 0 8px 10px; font-family: "JetBrains Mono", ui-monospace, monospace; font-weight: 700; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #0A1F5C; display: flex; justify-content: space-between; }
.doc-toc__box summary::-webkit-details-marker { display: none; }
.doc-toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.doc-toc ol a { display: block; padding: 6px 10px; border-left: 2px solid transparent; border-radius: 0 8px 8px 0; font-size: 13.5px; line-height: 1.4; color: #4A5A85; text-decoration: none; transition: color .15s, background .15s, border-color .15s; }
.doc-toc ol a:hover { color: #0A1F5C; background: #F5F8FF; }
.doc-toc ol a.is-active { color: #0A1F5C; font-weight: 600; background: #EEF7EC; border-left-color: #1CA716; }
.doc-toc__extra { display: flex; flex-direction: column; gap: 10px; padding: 0 4px; }
.doc-toc__extra .est-btn { width: 100%; justify-content: center; }
.doc-toc__link { font-family: "JetBrains Mono", ui-monospace, monospace; font-weight: 700; font-size: 12px; color: #1CA716; text-decoration: none; }
.doc-toc__link:hover { text-decoration: underline; }
.doc-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.doc-card { background: #fff; border: 1px solid #DCE3F2; border-radius: 16px; padding: 32px 36px; scroll-margin-top: calc(var(--header-h, 72px) + 20px); }
html body .doc-card h2 { font-size: clamp(20px, 2.1vw, 23px); line-height: 1.3; margin: 0 0 14px; color: #0A1F5C; }
html body .doc-card h3 { font-size: 16px; line-height: 1.35; margin-bottom: 6px; }
.doc-card .est-prose p:last-child { margin-bottom: 0; }
.doc-card > .est-hero__actions { margin-top: 20px; }
.doc-card .est-table-wrap { margin-top: 16px; }
.doc-meta { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #4A5A85; margin: 0 0 4px; }
@media (max-width: 960px) {
  .doc { grid-template-columns: 1fr; gap: 20px; padding-top: 24px; padding-bottom: 64px; }
  .doc-toc { position: static; max-height: none; }
  .doc-toc__box summary::after { content: "+"; font-size: 16px; line-height: 1; color: #1CA716; }
  .doc-toc__box[open] summary::after { content: "–"; }
  .doc-card { padding: 22px 20px; }
}
.doc-list { margin: 10px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 20px; }
.doc-list li { position: relative; padding-left: 18px; color: #34436E; font-size: 14.5px; line-height: 1.5; }
.doc-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 2px; background: #1CA716; }

/* ---------- Selector de idioma ---------- */
.lang-switch { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(201, 211, 236, .35); color: #fff; text-decoration: none; font-family: "JetBrains Mono", ui-monospace, monospace; font-weight: 700; font-size: 12px; letter-spacing: .06em; transition: border-color .15s, background .15s; white-space: nowrap; }
.lang-switch:hover { border-color: #35C92B; background: rgba(53, 201, 43, .12); }
.lang-switch svg { display: block; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }
.header__cta .lang-switch { margin-right: 4px; }
@media (max-width: 960px) { .header__cta .lang-switch { margin-right: 0; } }
html body .lang-switch svg { width: 22px !important; height: 15px !important; flex: none; max-width: none; }
