/* IT-Talent · páginas de estudios — tokens según Manual de marca v1.0 */
:root {
  --b-navy: #0A1F5C;
  --b-green: #1CA716;
  --b-green-dark: #35C92B;
  --b-ice: #F5F8FF;
  --b-slate: #4A5A85;
  --b-line: #DCE3F2;
  --b-mono: "JetBrains Mono", ui-monospace, monospace;
  --b-body: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.est { font-family: var(--b-body); color: var(--b-navy); background: #fff; }
.est h1, .est h2, .est h3 { font-family: var(--b-mono); font-weight: 700; letter-spacing: -.02em; color: var(--b-navy); margin: 0; }
.est p { margin: 0; line-height: 1.65; }
.est .wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.est .tag { font-family: var(--b-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--b-green); }
.est .tag::before { content: "> "; }

/* breadcrumb */
.est-crumbs { font-family: var(--b-mono); font-size: 13px; color: var(--b-slate); display: flex; flex-wrap: wrap; gap: 8px; }
.est-crumbs a { color: var(--b-slate); text-decoration: none; }
.est-crumbs a:hover { color: var(--b-navy); text-decoration: underline; }

/* hero */
.est-hero { background: var(--b-ice); border-bottom: 1px solid var(--b-line); padding: calc(var(--header-h, 72px) + 40px) 0 56px; }
.est-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: center; margin-top: 24px; }
.est-hero h1 { font-size: clamp(28px, 4vw, 42px); line-height: 1.15; margin: 14px 0 16px; text-wrap: balance; }
.est-hero__lead { font-size: 18px; color: var(--b-slate); max-width: 62ch; }
.est-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }
.est-hero__meta { font-family: var(--b-mono); font-size: 13px; color: var(--b-slate); }
.est-cover { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--b-line); box-shadow: 0 18px 40px rgba(10, 31, 92, .14); background: #fff; }
.est-cover img { display: block; width: 100%; height: auto; }

/* buttons */
.est-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 10px; font-family: var(--b-mono); font-weight: 700; font-size: 15px; text-decoration: none; transition: background .15s, color .15s, border-color .15s; }
.est-btn--primary { background: var(--b-green); color: #fff; }
.est-btn--primary:hover { background: #168A12; }
.est-btn--ghost { border: 1.5px solid var(--b-navy); color: var(--b-navy); }
.est-btn--ghost:hover { background: var(--b-navy); color: #fff; }
.est-btn:focus-visible { outline: 3px solid var(--b-green-dark); outline-offset: 2px; }
.est-btn svg { width: 18px; height: 18px; flex: none; }

/* ficha + cifras */
.est-facts { padding: 48px 0 8px; }
.est-ficha { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0; border: 1px solid var(--b-line); border-radius: 12px; overflow: hidden; }
.est-ficha div { padding: 16px 20px; border-right: 1px solid var(--b-line); }
.est-ficha div:last-child { border-right: 0; }
.est-ficha dt { font-family: var(--b-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--b-slate); margin-bottom: 4px; }
.est-ficha dd { margin: 0; font-size: 15px; line-height: 1.45; }
.est-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.est-stat { border-top: 3px solid var(--b-green); padding: 18px 4px 0; }
.est-stat strong { display: block; font-family: var(--b-mono); font-size: clamp(30px, 3.4vw, 40px); line-height: 1; color: var(--b-navy); letter-spacing: -.03em; }
.est-stat span { display: block; margin-top: 10px; font-size: 15px; line-height: 1.45; color: var(--b-slate); }

/* cuerpo */
.est-body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 64px; padding: 56px 0 72px; }
.est-body section + section { margin-top: 56px; }
.est-body h2 { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.25; margin-bottom: 18px; }
.est-body h3 { font-size: 17px; line-height: 1.35; margin-bottom: 6px; }
.est-prose p + p { margin-top: 16px; }
.est-prose p { font-size: 17px; max-width: 70ch; }
.est-findings { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: f; }
.est-findings li { counter-increment: f; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 12px; padding: 18px 20px; background: var(--b-ice); border-radius: 12px; }
.est-findings li::before { content: counter(f, decimal-leading-zero); grid-row: span 2; font-family: var(--b-mono); font-weight: 700; font-size: 15px; color: var(--b-green); padding-top: 1px; }
.est-findings p { font-size: 16px; color: var(--b-slate); }

.est-table-wrap { margin-top: 20px; overflow-x: auto; border: 1px solid var(--b-line); border-radius: 12px; }
.est-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 480px; }
.est-table th { font-family: var(--b-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; text-align: left; color: var(--b-slate); background: var(--b-ice); padding: 12px 14px; border-bottom: 1px solid var(--b-line); }
.est-table td { padding: 11px 14px; border-bottom: 1px solid var(--b-line); font-variant-numeric: tabular-nums; }
.est-table tr:last-child td { border-bottom: 0; }
.est-table td:not(:first-child), .est-table th:not(:first-child) { text-align: right; white-space: nowrap; }
.est-note { font-size: 13px; color: var(--b-slate); margin-top: 10px; }

/* aside */
.est-aside { position: relative; }
.est-aside__box { position: sticky; top: calc(var(--header-h, 72px) + 24px); border: 1px solid var(--b-line); border-radius: 14px; padding: 22px; }
.est-aside__box h2 { font-size: 15px; margin-bottom: 12px; }
.est-toc { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.est-toc li { padding-left: 14px; position: relative; color: var(--b-slate); line-height: 1.4; }
.est-toc li::before { content: "_"; position: absolute; left: 0; color: var(--b-green); font-family: var(--b-mono); }
.est-aside .est-btn { width: 100%; justify-content: center; }
.est-aside__size { display: block; text-align: center; margin-top: 8px; font-family: var(--b-mono); font-size: 12px; color: var(--b-slate); }

/* banda final */
.est-band { background: var(--b-navy); color: #fff; padding: 56px 0; }
.est-band__grid { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; }
.est-band h2 { color: #fff; font-size: clamp(22px, 2.6vw, 28px); }
.est-band p { color: #C9D3EC; margin-top: 10px; max-width: 60ch; }
.est-band .est-btn--primary { background: var(--b-green-dark); color: var(--b-navy); }
.est-band .est-btn--primary:hover { background: #fff; }

/* relacionados / listado */
.est-related { padding: 64px 0 80px; }
.est-related h2 { font-size: clamp(22px, 2.6vw, 28px); margin-bottom: 24px; }
.est-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.est-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; border: 1px solid var(--b-line); border-radius: 14px; overflow: hidden; background: #fff; transition: transform .15s, box-shadow .15s, border-color .15s; }
.est-card:hover { transform: translateY(-3px); border-color: var(--b-green); box-shadow: 0 14px 30px rgba(10, 31, 92, .12); }
.est-card__img { aspect-ratio: 16 / 10; background: var(--b-navy); overflow: hidden; }
.est-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.est-card__body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.est-card__meta { font-family: var(--b-mono); font-size: 12px; color: var(--b-green); text-transform: uppercase; letter-spacing: .06em; }
.est-card h3 { font-size: 16px; line-height: 1.35; }
.est-card p { font-size: 14px; color: var(--b-slate); line-height: 1.5; }
.est-card__more { margin-top: auto; padding-top: 6px; font-family: var(--b-mono); font-size: 13px; font-weight: 700; color: var(--b-navy); }

.est-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 28px; }
.est-filters button { font-family: var(--b-mono); font-size: 13px; padding: 8px 14px; min-height: 40px; border-radius: 999px; border: 1px solid var(--b-line); background: #fff; color: var(--b-navy); cursor: pointer; }
.est-filters button[aria-pressed="true"] { background: var(--b-navy); color: #fff; border-color: var(--b-navy); }

@media (max-width: 960px) {
  .est-hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .est-cover { max-width: 320px; }
  .est-body { grid-template-columns: 1fr; gap: 40px; }
  .est-aside { order: -1; }
  .est-aside__box { position: static; }
  .est-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .est .wrap { padding: 0 16px; }
  .est-ficha div { border-right: 0; border-bottom: 1px solid var(--b-line); }
  .est-ficha div:last-child { border-bottom: 0; }
  .est-hero__actions .est-btn { width: 100%; justify-content: center; }
  .est-findings li { grid-template-columns: 1fr; padding: 16px; }
  .est-findings li::before { grid-row: auto; }
}
.est-card[hidden] { display: none; }
