/* ============================================================
   MAKAL · People Talent — Sistema de diseño compartido
   Tokens, tipografía y componentes para todas las páginas.
   ============================================================ */

:root {
  --navy-900: #0F2A4E;
  --navy-800: #15355F;
  --navy-700: #1E4373;
  --ink: #0A0A0A;
  --gray-900: #1A1A1A;
  --gray-700: #4A4A4A;
  --gray-500: #7A7A7A;
  --gray-300: #D4D4D4;
  --gray-100: #F4F4F4;
  --error: #B33A3A;
  --success: #2D7A4F;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'ss01', 'cv11';
}

*, *::before, *::after { border-radius: 0 !important; }

/* ============ Tipografía ============ */
/* Fraunces para display/serif editorial · Geist para UI/body */
.ff-display {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-optical-sizing: auto;
  font-variation-settings: 'opsz' 144, 'SOFT' 30;
}
.t-display { font-family: 'Fraunces', Georgia, serif; font-optical-sizing: auto; font-variation-settings: 'opsz' 144, 'SOFT' 50; font-size: clamp(48px, 6.4vw, 88px); line-height: 1.02; font-weight: 500; letter-spacing: -0.02em; }
.t-h1 { font-family: 'Fraunces', Georgia, serif; font-optical-sizing: auto; font-variation-settings: 'opsz' 144, 'SOFT' 50; font-size: clamp(40px, 4.2vw, 56px); line-height: 1.08; font-weight: 500; letter-spacing: -0.014em; }
.t-h2 { font-family: 'Fraunces', Georgia, serif; font-optical-sizing: auto; font-variation-settings: 'opsz' 96, 'SOFT' 50; font-size: clamp(32px, 3vw, 40px); line-height: 1.18; font-weight: 500; letter-spacing: -0.01em; }
.t-h3 { font-family: 'Fraunces', Georgia, serif; font-optical-sizing: auto; font-variation-settings: 'opsz' 60, 'SOFT' 50; font-size: clamp(24px, 2vw, 28px); line-height: 1.25; font-weight: 500; letter-spacing: -0.005em; }
.t-h4 { font-family: 'Fraunces', Georgia, serif; font-optical-sizing: auto; font-variation-settings: 'opsz' 60, 'SOFT' 50; font-size: clamp(20px, 1.4vw, 22px); line-height: 1.3; font-weight: 500; letter-spacing: -0.005em; }
.t-bodylg { font-size: clamp(18px, 1.35vw, 20px); line-height: 1.6; font-weight: 400; }
.t-body { font-size: 17px; line-height: 1.6; font-weight: 400; }
.t-small { font-size: 15px; line-height: 1.5; font-weight: 400; }
.t-eyebrow {
  font-size: 12px; line-height: 1; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.18em;
  font-family: 'Geist', sans-serif;
}
.t-metric {
  font-family: 'Fraunces', Georgia, serif;
  font-optical-sizing: auto;
  font-variation-settings: 'opsz' 144, 'SOFT' 30;
  font-size: clamp(48px, 5.5vw, 72px);
  line-height: 1; font-weight: 500;
  letter-spacing: -0.025em;
  font-feature-settings: 'tnum';
}
.t-metric-sm {
  font-family: 'Fraunces', Georgia, serif;
  font-optical-sizing: auto;
  font-variation-settings: 'opsz' 96, 'SOFT' 30;
  font-size: clamp(32px, 3vw, 40px);
  line-height: 1; font-weight: 500;
  letter-spacing: -0.02em;
  font-feature-settings: 'tnum';
}

/* ============ Botones ============ */
.btn-primary {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--navy-900); color: #FFFFFF;
  font-size: 16px; font-weight: 500;
  padding: 14px 28px; border: 1px solid var(--navy-900);
  transition: background-color 200ms ease, gap 200ms ease;
}
.btn-primary:hover { background: var(--navy-800); gap: 18px; }
.btn-primary:focus-visible { outline: 2px solid rgba(15,42,78,0.3); outline-offset: 2px; }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 14px;
  background: transparent; color: var(--navy-900);
  font-size: 16px; font-weight: 500;
  padding: 13px 27px; border: 1px solid var(--navy-900);
  transition: all 200ms ease;
}
.btn-secondary:hover { background: var(--navy-900); color: #FFFFFF; gap: 18px; }
.btn-secondary:focus-visible { outline: 2px solid rgba(15,42,78,0.3); outline-offset: 2px; }

.btn-on-navy {
  display: inline-flex; align-items: center; gap: 14px;
  background: #FFFFFF; color: var(--navy-900);
  font-size: 16px; font-weight: 500;
  padding: 14px 28px; border: 1px solid #FFFFFF;
  transition: background-color 200ms ease, gap 200ms ease;
}
.btn-on-navy:hover { background: var(--gray-100); gap: 18px; }

.btn-on-navy-ghost {
  display: inline-flex; align-items: center; gap: 14px;
  background: transparent; color: #FFFFFF;
  font-size: 16px; font-weight: 500;
  padding: 13px 27px; border: 1px solid rgba(255,255,255,0.4);
  transition: all 200ms ease;
}
.btn-on-navy-ghost:hover { border-color: #FFFFFF; gap: 18px; }

.arrow-cta::after {
  content: "→";
  display: inline-block;
  transition: transform 200ms ease;
}
.group:hover .arrow-cta::after { transform: translateX(4px); }

/* ============ Links ============ */
.link-inline {
  color: var(--navy-900);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: opacity 200ms ease;
}
.link-inline:hover { opacity: 0.7; }

.link-cta {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--navy-900); font-size: 16px; font-weight: 500;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(15,42,78,0.4);
  transition: border-color 200ms ease;
}
.link-cta:hover { border-bottom-color: var(--navy-900); }

.link-cta-on-navy {
  display: inline-flex; align-items: center; gap: 12px;
  color: #FFFFFF; font-size: 16px; font-weight: 500;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  transition: border-color 200ms ease;
}
.link-cta-on-navy:hover { border-bottom-color: #FFFFFF; }

/* ============ Navegación ============ */
.nav-link {
  color: var(--gray-900); font-size: 14px; font-weight: 500;
  transition: color 200ms ease;
  position: relative;
}
.nav-link:hover { color: var(--navy-900); }
.nav-link[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -32px;
  height: 1px; background: var(--navy-900);
}

/* ============ Card ============ */
.card {
  background: #FFFFFF;
  border: 1px solid var(--gray-300);
  transition: border-color 200ms ease, background-color 200ms ease;
  display: flex; flex-direction: column;
}
.card:hover { border-color: var(--navy-900); }
.card-visual {
  aspect-ratio: 16 / 10;
  background: #F4F4F4;
  border-bottom: 1px solid var(--gray-300);
  position: relative;
  overflow: hidden;
  transition: background-color 200ms ease;
}
.card:hover .card-visual { background: #ECECEC; }
.card-num {
  position: absolute;
  inset: auto 0 -0.18em 24px;
  font-size: clamp(96px, 13vw, 180px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--navy-900);
  font-feature-settings: 'tnum';
}
.card-mark {
  position: absolute;
  top: 20px; right: 20px;
  width: 40px; height: 40px;
  color: var(--navy-900);
}
.card-body {
  padding: 28px;
  display: flex; flex-direction: column; flex: 1;
}
@media (min-width: 1024px) {
  .card-body { padding: 32px; }
}
.card-arrow {
  margin-top: auto;
  padding-top: 24px;
  color: var(--navy-900);
  font-size: 18px;
  transition: transform 200ms ease;
}
.card:hover .card-arrow { transform: translateX(4px); }

/* ============ Blockquote / frase de golpe ============ */
.quote {
  border-left: 3px solid var(--navy-900);
  padding-left: 28px;
  font-family: 'Fraunces', Georgia, serif;
  font-optical-sizing: auto;
  font-variation-settings: 'opsz' 96, 'SOFT' 100;
  font-size: clamp(20px, 1.7vw, 26px);
  line-height: 1.4;
  font-weight: 400;
  font-style: italic;
  color: var(--gray-900);
}
.quote-on-navy {
  border-left: 3px solid #FFFFFF;
  padding-left: 28px;
  font-family: 'Fraunces', Georgia, serif;
  font-optical-sizing: auto;
  font-variation-settings: 'opsz' 96, 'SOFT' 100;
  font-size: clamp(20px, 1.7vw, 26px);
  line-height: 1.4;
  font-weight: 400;
  font-style: italic;
  color: #FFFFFF;
}

/* Frase de golpe (no-italic, según brief 5.2) */
.punch {
  font-size: clamp(22px, 1.8vw, 28px);
  line-height: 1.35;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.punch-on-navy {
  font-size: clamp(22px, 1.8vw, 28px);
  line-height: 1.35;
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: -0.005em;
}

/* ============ Skip link · a11y ============ */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy-900); color: #FFFFFF;
  padding: 12px 20px; z-index: 100;
}
.skip-link:focus { left: 16px; top: 16px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

a:focus-visible, button:focus-visible {
  outline: 2px solid rgba(15,42,78,0.3);
  outline-offset: 2px;
}

/* ============ Section padding ============ */
.pad-y-section { padding-top: 64px; padding-bottom: 64px; }
@media (min-width: 1024px) {
  .pad-y-section { padding-top: 128px; padding-bottom: 128px; }
}
.pad-y-hero { padding-top: 96px; padding-bottom: 96px; }
@media (min-width: 1024px) {
  .pad-y-hero { padding-top: 160px; padding-bottom: 160px; }
}

/* ============ Form ============ */
.input-field {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid var(--gray-300);
  padding: 14px 16px;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  transition: border-color 200ms ease, outline 200ms ease;
}
.input-field:focus {
  outline: 2px solid rgba(15,42,78,0.3);
  outline-offset: 0;
  border-color: var(--navy-900);
}
.input-field::placeholder { color: var(--gray-500); }

.input-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}
.input-required { color: var(--gray-700); }

.input-textarea {
  min-height: 140px;
  resize: vertical;
}
