/* Talent Perú Más — estilos
   Paleta: tinta (#0D2A40), azul marca (#2477B3), niebla (#EEF4F8), señal (#F2B705) */
:root {
  --ink: #0D2A40;
  --ink-2: #163A57;
  --blue: #2477B3;
  --blue-d: #1B5E8F;
  --mist: #EEF4F8;
  --line: #D3DFE8;
  --text: #1A2733;
  --muted: #546575;
  --signal: #F2B705;
  --white: #fff;
  --wa: #1FAF5A;
  --radius: 10px;
  --wrap: 1160px;
  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6;
  color: var(--text); background: var(--white);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue-d); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; color: var(--ink); margin: 0 0 .6em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 700; }
h3, .h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
.sr { 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(--ink); color: #fff; padding: 10px 16px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(18px, 4vw, 32px); }
.narrow { max-width: 780px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font: 600 1rem/1 var(--font); padding: 15px 22px; border-radius: 8px;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--wa); color: #fff; }
.btn-primary:hover { background: #178F49; color: #fff; }
.btn-ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-sm { padding: 10px 16px; font-size: .95rem; }
.btn-block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6rem 0 0; }
.link { font-weight: 600; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.header-in { display: flex; align-items: center; justify-content: space-between; min-height: 70px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.brand b { font-weight: 800; }
.logo-mark { width: 36px; height: 36px; color: var(--ink); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { color: var(--text); text-decoration: none; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav ul a:hover, .site-nav ul a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--blue); }
.menu-btn { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.bars, .bars::before, .bars::after { position: absolute; left: 10px; width: 24px; height: 2px; background: var(--ink); transition: transform .2s, opacity .2s; content: ""; }
.bars { top: 21px; }
.bars::before { top: -7px; left: 0; }
.bars::after { top: 7px; left: 0; }
.menu-btn[aria-expanded="true"] .bars { background: transparent; }
.menu-btn[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .menu-btn { display: block; }
  .site-nav { position: fixed; inset: 70px 0 auto 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 24px; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(13,42,64,.35); display: none; max-height: calc(100vh - 70px); overflow: auto; }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav ul a[aria-current="page"] { border-bottom-color: var(--line); color: var(--blue-d); }
  .site-nav .btn { margin-top: 16px; }
}

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

.brand picture { display: block; line-height: 0; }
.logo-img { height: 54px; width: auto; }
.brand-light { background: #fff; padding: 10px 14px; border-radius: 10px; }
.brand-light .logo-img { height: 56px; }
@media (max-width: 640px) { .logo-img { height: 44px; } }

/* ---------- Héroe ---------- */
.hero { background: var(--ink); color: #DCE7F0; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(56px, 8vw, 104px); }
.hero h1 { color: #fff; max-width: 17ch; font-size: clamp(2.1rem, 4.2vw, 3.25rem); }
.kicker { color: #9FC3E0; font-weight: 600; margin-bottom: 1rem; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--muted); max-width: 60ch; }
.hero .lead { color: #C8D8E6; }
.hero .btn-ghost { color: #fff; }
.hero .btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.proof { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 8px; font-size: .98rem; }
.proof li { padding-left: 26px; position: relative; }
.proof li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px; border-left: 2px solid var(--signal); border-bottom: 2px solid var(--signal); transform: rotate(-45deg); }

/* Terna (elemento memorable) */
.terna { margin: 0; position: relative; isolation: isolate; }
.terna-card {
  position: relative; background: #fff; color: var(--text); border-radius: 14px; padding: 22px;
  box-shadow: 0 30px 60px -25px rgba(0,0,0,.55);
}
.terna-card::before, .terna-card::after {
  content: ""; position: absolute; left: 14px; right: 14px; border-radius: 14px; background: #fff; z-index: -1;
}
.terna-card::before { top: -10px; bottom: 10px; opacity: .55; transform: rotate(-2.2deg); }
.terna-card::after { top: -20px; bottom: 20px; left: 28px; right: 28px; opacity: .25; transform: rotate(2.4deg); }
.terna-head { display: flex; flex-direction: column; gap: 2px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.terna-head span { font-size: .85rem; color: var(--muted); }
.terna-head strong { font-size: 1.2rem; color: var(--ink); }
.terna-list { list-style: none; margin: 0; padding: 6px 0; }
.terna-list li { display: grid; grid-template-columns: 40px 1fr 96px; grid-template-areas: "av who fit" "av who tag"; align-items: center; column-gap: 12px; padding: 12px 8px; border-radius: 10px; }
.terna-list li + li { border-top: 1px dashed var(--line); }
.terna-list .pick { background: #FFF8E1; border-top: 0; }
.terna-list .pick + li { border-top: 0; }
.av { grid-area: av; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--mist); color: var(--ink); font-weight: 700; }
.pick .av { background: var(--ink); color: #fff; }
.who { grid-area: who; display: flex; flex-direction: column; line-height: 1.3; }
.who b { color: var(--ink); }
.who small { color: var(--muted); font-size: .85rem; }
.fit { grid-area: fit; height: 8px; background: var(--mist); border-radius: 99px; overflow: hidden; }
.fit i { display: block; height: 100%; width: var(--v); background: var(--blue); border-radius: 99px; }
.pick .fit i { background: var(--signal); }
.terna-list em { grid-area: tag; font-style: normal; font-size: .78rem; font-weight: 700; color: #7A5B00; margin-top: 4px; }
.terna-foot { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.terna-foot span { font-size: .8rem; background: var(--mist); color: var(--ink-2); padding: 5px 10px; border-radius: 99px; }
.terna figcaption { margin-top: 18px; font-size: .92rem; color: #9FB6C9; }
@media (prefers-reduced-motion: no-preference) {
  .fit i { animation: grow 1.1s cubic-bezier(.2,.7,.2,1) .25s both; }
  @keyframes grow { from { width: 0; } }
}

/* ---------- Secciones ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section.pt0 { padding-top: 0; }
.section.tint { background: var(--mist); }
.section.dark { background: var(--ink); color: #C8D8E6; }
.section.dark h2, .section.dark dt { color: #fff; }
.section.dark a { color: #9FC3E0; }
.sec-head { max-width: 640px; margin-bottom: 2.2rem; }
.sec-head p { color: var(--muted); }
.sec-head.row { max-width: none; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.split { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.sticky { position: sticky; top: 100px; }
.lead-sm { font-size: 1.12rem; }
.page-head { padding: clamp(36px, 6vw, 72px) 0 clamp(32px, 5vw, 56px); }
.page-head .meta, .meta { color: var(--muted); font-size: .95rem; }

/* Servicios: filas, no tarjetas */
.svc-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(24px, 4vw, 56px); }
.svc-list li { border-top: 2px solid var(--ink); }
.svc-list a { display: block; padding: 22px 0 30px; text-decoration: none; color: var(--text); height: 100%; }
.svc-list h3, .svc-list h2 { margin-bottom: .4em; }
.svc-list p { color: var(--muted); max-width: 52ch; }
.more { display: inline-block; font-weight: 600; color: var(--blue-d); text-decoration: underline; text-underline-offset: 4px; }
.svc-list a:hover h3, .svc-list a:hover h2 { color: var(--blue-d); }
.svc-compact li { border-top-width: 1px; border-color: var(--line); }
.svc-compact a { padding: 16px 0 18px; }
.svc-compact h3 { font-size: 1.08rem; }

/* Pasos (secuencia real) */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 48px 1fr; gap: 18px; position: relative; padding-bottom: 28px; }
.steps li:not(:last-child)::before { content: ""; position: absolute; left: 23px; top: 48px; bottom: 4px; width: 2px; background: var(--line); }
.step-n { width: 48px; height: 48px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); color: var(--ink); display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; }
.steps h3 { margin: 10px 0 .35em; font-size: 1.15rem; }
.steps p { color: var(--muted); margin: 0; }
.steps-compact li { padding-bottom: 18px; }
.steps-compact h3 { margin-top: 12px; }

/* Sectores */
.sector-links { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.sector-links li { border-bottom: 1px solid var(--line); }
.sector-links a { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 22px 0; text-decoration: none; color: var(--ink); flex-wrap: wrap; }
.sector-links span { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -0.02em; }
.sector-links small { color: var(--muted); font-size: .98rem; }
.sector-links a:hover span { color: var(--blue-d); }
.sector-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(24px, 4vw, 56px); }
.sector-cards li { border-top: 2px solid var(--ink); }
.sector-cards a { display: block; padding: 22px 0 30px; color: var(--text); text-decoration: none; }
.sector-cards p { color: var(--muted); }
.after { margin-top: 1.5rem; color: var(--muted); }
.roles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 24px; }
.roles li { padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 500; }

/* Por qué */
.why { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 36px; }
.why dt { font-weight: 700; font-size: 1.12rem; margin-bottom: .35em; padding-top: 14px; border-top: 2px solid var(--signal); }
.why dd { margin: 0; }

/* Listas de verificación */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.checks li { position: relative; padding: 12px 0 12px 32px; border-bottom: 1px solid var(--line); }
.checks li::before { content: ""; position: absolute; left: 4px; top: 1.15em; width: 14px; height: 8px; border-left: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue); transform: rotate(-45deg); }
.note { background: var(--mist); border-left: 4px solid var(--blue); padding: 24px 26px; border-radius: 0 var(--radius) var(--radius) 0; }
.note p:last-child { margin-bottom: 0; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 600; font-size: 1.08rem; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--muted); padding-bottom: 8px; max-width: 68ch; }

/* Texto largo */
.prose { font-size: 1.08rem; }
.prose h2 { margin-top: 1.8em; font-size: clamp(1.35rem, 2.4vw, 1.7rem); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.article .page-head { padding-bottom: 8px; }

/* Blog */
.posts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.posts a { display: flex; flex-direction: column; height: 100%; background: #fff; padding: 24px; border-radius: var(--radius); text-decoration: none; color: var(--text); border: 1px solid var(--line); }
.posts a:hover { border-color: var(--blue); }
.posts time { font-size: .88rem; color: var(--muted); margin-bottom: 10px; }
.posts h3 { font-size: 1.15rem; }
.posts p { color: var(--muted); margin: 0; font-size: .98rem; }

/* Banda CTA */
.band { background: var(--blue); color: #EAF3FA; padding: clamp(44px, 6vw, 72px) 0; }
.band-in { display: grid; grid-template-columns: 1.2fr auto; gap: 24px 48px; align-items: center; }
.band h2 { color: #fff; margin-bottom: .3em; }
.band p { margin: 0; max-width: 56ch; }
.band .actions { margin: 0; }
.band .btn-ghost { color: #fff; }
.band .btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* Contacto */
.form { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: clamp(22px, 3vw, 34px); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: .95rem; color: var(--ink); }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; color: var(--text); width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(36,119,179,.2); }
.row2 { display: grid; grid-template-columns: 1fr 130px; gap: 14px; }
.fine { font-size: .85rem; color: var(--muted); margin: 14px 0 0; }
.contact-info dl { margin: 0 0 28px; }
.contact-info dl div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-info dt { font-size: .88rem; color: var(--muted); }
.contact-info dd { margin: 2px 0 0; font-weight: 600; font-size: 1.08rem; }

/* Footer */
.site-footer { background: #091F30; color: #A9BDCD; padding: 64px 0 calc(28px + env(safe-area-inset-bottom, 0px)); font-size: .97rem; }
.site-footer a { color: #DCE7F0; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid address { font-style: normal; }
.f-title { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.brand-light { color: #fff; margin-bottom: 14px; }
.brand-light .logo-mark { color: var(--blue); }
.muted { color: #7F97AB; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 44px; padding-top: 22px; border-top: 1px solid #1D3A52; font-size: .88rem; }
.footer-bottom p { margin: 0; }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(0,0,0,.45); z-index: 40; }
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { background: #178F49; color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-in, .split, .band-in { grid-template-columns: 1fr; }
  .terna { max-width: 480px; margin-top: 12px; }
  .sticky { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .posts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .svc-list, .sector-cards, .why, .posts, .roles { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .actions .btn { flex: 1 1 100%; }
  .row2 { grid-template-columns: 1fr; }
  .terna-list li { grid-template-columns: 40px 1fr 64px; }
  .sector-links a { flex-direction: column; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
