:root {
  --white: #ffffff;
  --navy: #081a3a;
  --navy-soft: #1a2f59;
  --gold: #c9a24f;
  --gold-soft: #e7d3a4;
  --ink: #0d1f43;
  --muted: #4e607f;
  --line: rgba(8, 26, 58, 0.14);
  --panel: rgba(255, 255, 255, 0.88);
  --radius: 18px;
  --shadow: 0 16px 40px rgba(8, 26, 58, 0.12);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Sora", sans-serif;
  line-height: 1.65;
  background:
    radial-gradient(circle at 10% 5%, rgba(201, 162, 79, 0.24), transparent 26%),
    radial-gradient(circle at 86% 20%, rgba(10, 34, 77, 0.16), transparent 34%),
    linear-gradient(180deg, #f7f9ff 0%, #ffffff 50%, #f7f9ff 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(8, 26, 58, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(8, 26, 58, 0.025) 1px, transparent 1px);
  background-size: 34px 34px;
  z-index: -1;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
  font-family: "Cormorant Garamond", serif;
  color: var(--navy);
}

p {
  margin: 0;
}

.container {
  width: min(1140px, 92vw);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  text-decoration: none;
  color: var(--navy);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.85rem;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  font-weight: 600;
  padding: 0.45rem 0.8rem;
  border-radius: 10px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
}

.main-nav a.active {
  color: var(--navy);
  position: relative;
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 2px;
  background: var(--gold);
}

.hero {
  padding: 6.8rem 0 4rem;
}

.hero-premium {
  position: relative;
  overflow: hidden;
}

.hero-premium::after {
  content: "";
  position: absolute;
  right: -120px;
  top: 90px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 79, 0.2) 0%, rgba(201, 162, 79, 0) 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 1.4rem;
  align-items: end;
}

.hero-visual {
  border: 1px solid rgba(201, 162, 79, 0.34);
  border-radius: var(--radius);
  padding: 1.2rem;
  background: linear-gradient(160deg, rgba(8, 26, 58, 0.96), rgba(17, 39, 82, 0.93));
  color: var(--white);
  box-shadow: var(--shadow);
}

.visual-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--gold-soft);
  font-size: 0.74rem;
  font-weight: 700;
}

.hero-visual h2 {
  margin-top: 0.55rem;
  color: var(--white);
  font-size: clamp(1.55rem, 3.2vw, 2.3rem);
  max-width: 18ch;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 1rem;
}

.metric-box {
  border: 1px solid rgba(231, 211, 164, 0.28);
  border-radius: 14px;
  padding: 0.75rem 0.6rem;
  background: rgba(255, 255, 255, 0.05);
}

.metric-num {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.6rem, 3.8vw, 2.3rem);
  color: var(--gold-soft);
  line-height: 1;
  display: block;
  font-weight: 700;
}

.metric-label {
  margin-top: 0.45rem;
  display: block;
  color: #d8e4ff;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.4;
}

.hero-slim {
  padding-bottom: 2.4rem;
}

.eyebrow {
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
}

h1 {
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  max-width: 14ch;
}

body[data-page="home"] .hero h1,
body[data-page="profile"] .hero h1,
body[data-page="articles"] .hero h1 {
  max-width: 20ch;
  line-height: 1.03;
}

body[data-page="home"] .hero-copy,
body[data-page="profile"] .hero-copy,
body[data-page="articles"] .hero-copy {
  margin-top: 0.85rem;
}

.hero-copy {
  margin-top: 1.1rem;
  max-width: 65ch;
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.12rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.hero-quote {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding-top: 1.5rem;
}

.hero-quote blockquote {
  margin: 0;
  max-width: 28rem;
  border-left: 4px solid var(--gold);
  padding: 0.35rem 0 0.35rem 1.2rem;
  background: transparent;
}

.hero-quote blockquote p {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--navy);
  line-height: 1.35;
  margin: 0;
}

.hero-quote blockquote cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.78rem 1.3rem;
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  border: 1px solid transparent;
  background: var(--gold);
  color: var(--navy);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(201, 162, 79, 0.35);
}

.btn-small {
  padding: 0.5rem 0.9rem;
  font-size: 0.9rem;
}

.btn-helix {
  background: var(--white);
  color: var(--navy);
  border-color: rgba(8, 26, 58, 0.35);
}

.btn-helix:hover {
  background: #f6f8ff;
  color: var(--navy);
  box-shadow: 0 10px 24px rgba(8, 26, 58, 0.18);
}

.main-nav a.btn-helix.active {
  color: var(--navy);
}

.main-nav a.btn-helix.active::after {
  display: none;
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: rgba(8, 26, 58, 0.2);
}

.section {
  padding: 4.4rem 0;
}

.section-contrast {
  background: linear-gradient(180deg, rgba(8, 26, 58, 0.95), rgba(10, 34, 77, 0.94));
  color: #f6f8ff;
}

.section-contrast h2,
.section-contrast h3 {
  color: #ffffff;
}

.section-contrast .card {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(231, 211, 164, 0.24);
  color: #e6ecff;
}

.section-contrast .card a,
.section-contrast .card p,
.section-contrast .card a,
.section-contrast .meta {
  color: #dbe6ff;
}

.section-contrast .btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
  background: transparent;
}

.section-contrast .btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.08);
}

.section-head h2 {
  font-size: clamp(1.8rem, 4.2vw, 3.1rem);
  max-width: 19ch;
}

.cards {
  margin-top: 1.8rem;
  display: grid;
  gap: 1rem;
}

.cards-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 1.3rem;
}

.card h3 {
  font-size: 1.7rem;
  margin-bottom: 0.55rem;
}

.card p {
  color: var(--muted);
}

.article-card a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
}

.cert-list {
  display: grid;
  gap: 1rem;
}

.cert-list-spaced {
  margin-top: 1.5rem;
}

.cert-intro {
  color: var(--muted);
  max-width: 70ch;
  margin-top: 1rem;
}

.profile-back-link {
  margin-top: 1.4rem;
  display: inline-flex;
}

.cert-card {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 1rem;
  align-items: start;
}

.cert-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 2px);
  overflow: hidden;
  background: #f3f4f6;
}

.cert-thumb img,
.cert-thumb object {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.cert-pdf-holder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.cert-pdf-holder canvas {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
}

.cert-pdf-object {
  width: 100%;
  height: 100%;
  border: 0;
}

.cert-pdf-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.82rem;
}

.cert-content h3 {
  font-size: 1.12rem;
  margin-bottom: 0.5rem;
}

.cert-content p {
  margin: 0.2rem 0;
}

.cert-link {
  display: inline-flex;
  margin-top: 0.55rem;
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
}

.article-thumb {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(201, 162, 79, 0.38);
  color: var(--navy);
  background: rgba(201, 162, 79, 0.14);
  font-weight: 600;
}

.thumb-ops {
  background: rgba(201, 162, 79, 0.18);
}

.thumb-brand {
  background: rgba(231, 211, 164, 0.3);
}

.thumb-product {
  background: rgba(150, 173, 216, 0.22);
}

.thumb-leadership {
  background: rgba(181, 154, 79, 0.22);
}

.meta {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.split {
  display: grid;
  gap: 1rem;
  margin-top: 1.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bullet-list {
  margin: 0.7rem 0 0;
  padding-left: 1.2rem;
}

.bullet-list li {
  margin-bottom: 0.55rem;
}

.profile-links {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.profile-link-card {
  text-decoration: none;
  border: 1px solid rgba(8, 26, 58, 0.12);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 255, 0.96));
  padding: 0.95rem 1rem;
  box-shadow: 0 10px 24px rgba(8, 26, 58, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-height: 92px;
}

.profile-link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(201, 162, 79, 0.45);
  box-shadow: 0 16px 30px rgba(8, 26, 58, 0.12);
}

.profile-link-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold);
}

.profile-link-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.35rem;
  line-height: 1.05;
  color: var(--navy);
}

.timeline {
  margin-top: 1.8rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.timeline-exec {
  margin-top: 1.8rem;
  position: relative;
  padding-left: 1.6rem;
}

.timeline-exec::before {
  content: "";
  position: absolute;
  left: 0.46rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 2px;
  background: linear-gradient(180deg, rgba(231, 211, 164, 0.7), rgba(231, 211, 164, 0.1));
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0.9rem;
  margin-bottom: 0.85rem;
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.24rem;
  top: 0.75rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(231, 211, 164, 0.16);
}

.timeline-period {
  font-size: 0.76rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #dbe6ff;
  font-weight: 700;
  padding-top: 0.85rem;
}

.timeline-body h3 {
  font-size: 1.55rem;
}

.achievements-block .card h3 {
  color: var(--gold);
  font-size: clamp(2rem, 5vw, 2.8rem);
}

/* KPI project context anchor */
.kpi-project {
  font-size: 0.72rem;
  color: var(--gold);
  margin-top: 0.75rem;
  font-style: italic;
  border-top: 1px solid var(--line);
  padding-top: 0.55rem;
}

/* Casos de Éxito */
.casos-grid {
  margin-top: 1.8rem;
  display: grid;
  gap: 1.4rem;
}

.caso-card .caso-header {
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.75rem;
}

.caso-card .caso-header h3 {
  font-size: 1.25rem;
  margin-top: 0.2rem;
}

.caso-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.caso-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.caso-tag {
  flex-shrink: 0;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--gold);
  border-radius: 3px;
  padding: 0.2rem 0.5rem;
  margin-top: 0.2rem;
}

.caso-result {
  color: var(--text) !important;
  font-weight: 600;
}

/* Proof social strip */
.proof-section {
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 3rem 0;
}

.proof-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1.5rem;
  justify-content: center;
}

.proof-logo {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.5rem 1.2rem;
  background: var(--bg);
}

/* CTA list de disponibilidad */
.cta-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cta-list li {
  font-size: 0.92rem;
  color: var(--muted);
}

.cta-list li::before {
  content: "✓ ";
  color: var(--gold);
  font-weight: 700;
}

.feature-article {
  border-color: rgba(201, 162, 79, 0.35);
  background: linear-gradient(180deg, rgba(253, 249, 239, 0.78), rgba(255, 255, 255, 0.92));
}

.article-feature-media {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
  color: var(--navy);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.feature-points {
  margin-top: 0.9rem;
}

.article-read {
  margin-top: 0.9rem;
  font-size: 0.78rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}

.articles-more {
  text-align: center;
  margin-top: 2rem;
}

@media (max-width: 860px) {
  .profile-links {
    grid-template-columns: 1fr;
  }
}

.program-pill {
  height: 60px;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
}

.program-pill-1 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.program-pill-2 {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.program-pill-3 {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.program-meta {
  font-size: 0.85rem;
  color: #666;
  margin-top: 1rem;
}

.article-media {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 0.85rem;
  border: 1px solid rgba(8, 26, 58, 0.12);
  max-height: 340px;
  object-fit: cover;
}

.article-media-small {
  max-height: 180px;
}

.feature-article h3 {
  margin-bottom: 0.8rem;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.3rem 0;
  background: rgba(255, 255, 255, 0.6);
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer a {
  text-decoration: none;
  color: var(--muted);
}

.editor-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(640px, 1.9fr) minmax(340px, 1fr);
  gap: 1rem;
}

body[data-page="editor"] .container {
  width: min(1920px, 98vw);
}

body[data-page="editor"] .editor-form-pane textarea#content {
  min-height: 320px;
}

.editor-list-pane,
.editor-form-pane,
.editor-preview-pane {
  min-height: 620px;
}

.editor-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.editor-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.article-item {
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0.65rem 0.75rem;
  cursor: pointer;
}

.article-item.active {
  border-color: var(--gold);
  box-shadow: 0 8px 20px rgba(201, 162, 79, 0.24);
}

.article-item-title {
  display: block;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.93rem;
}

.article-item-meta {
  display: block;
  color: var(--muted);
  margin-top: 0.2rem;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.editor-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.8rem;
}

.editor-form label {
  color: var(--navy-soft);
  font-weight: 600;
  font-size: 0.88rem;
}

.editor-form input,
.editor-form select,
.editor-form textarea,
.publish-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.62rem 0.7rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

.editor-form textarea {
  resize: vertical;
}

.word-counter {
  margin: -0.35rem 0 0.1rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.word-counter.is-invalid {
  color: #b42318;
}

.word-counter.is-valid {
  color: #067647;
}

.editor-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.editor-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.25rem;
}

.editor-status {
  font-size: 0.82rem;
  color: var(--muted);
}

.article-preview .card {
  box-shadow: none;
}

.editor-divider {
  margin: 1rem 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.publish-form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.publish-status {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.maintenance-view {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(circle at 20% 30%, rgba(201, 162, 79, 0.18) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(26, 47, 89, 0.4) 0%, transparent 50%),
    linear-gradient(155deg, #081a3a 0%, #0d2656 55%, #081a3a 100%);
}

.maintenance-view::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 38px 38px;
}

.maintenance-wrap {
  position: relative;
  max-width: 680px;
}

.maintenance-brand {
  position: absolute;
  top: -3.3rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
}

.maintenance-icon {
  width: 64px;
  height: 64px;
  color: var(--gold);
  margin: 0 auto 2rem;
}

.maintenance-eyebrow {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 1rem;
}

.maintenance-view h1 {
  color: #fff;
  max-width: 18ch;
  margin-inline: auto;
}

.maintenance-view p {
  color: rgba(255, 255, 255, 0.68);
  max-width: 54ch;
  margin-inline: auto;
}

.maintenance-divider {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 2rem auto;
  border-radius: 2px;
}

.maintenance-contact {
  margin-top: 2.2rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ── Program pills ─────────────────────────────────────── */
.program-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: var(--navy);
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  border: 1px solid rgba(201, 162, 79, 0.4);
}

.program-pill-2 {
  background: linear-gradient(135deg, rgba(8, 26, 58, 0.08), rgba(8, 26, 58, 0.14));
  border-color: rgba(8, 26, 58, 0.18);
  color: var(--navy);
}

.program-pill-3 {
  background: linear-gradient(135deg, rgba(201, 162, 79, 0.12), rgba(201, 162, 79, 0.22));
  border-color: rgba(201, 162, 79, 0.3);
  color: var(--navy);
}

.program-meta {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.75rem;
  margin-bottom: 0.35rem;
}

#programas .card a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

#programas .card a:hover {
  text-decoration: underline;
}
/* ─────────────────────────────────────────────────────── */

.helix-chat-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr);
}

.helix-chat-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  min-height: 420px;
  max-height: 62vh;
  overflow: auto;
  padding: 1rem;
}

.helix-msg {
  border-radius: 14px;
  padding: 0.72rem 0.9rem;
  margin-bottom: 0.7rem;
  max-width: 86%;
  white-space: pre-wrap;
}

.helix-msg-user {
  margin-left: auto;
  background: rgba(8, 26, 58, 0.95);
  color: var(--white);
}

.helix-msg-assistant {
  margin-right: auto;
  background: rgba(201, 162, 79, 0.15);
  color: var(--ink);
  border: 1px solid rgba(201, 162, 79, 0.28);
}

.helix-form {
  display: grid;
  gap: 0.7rem;
}

.helix-form textarea {
  width: 100%;
  resize: vertical;
  min-height: 110px;
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 0.8rem;
  font: inherit;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.95);
}

.helix-hint {
  font-size: 0.86rem;
  color: var(--muted);
}

.maintenance-contact a {
  color: var(--gold-soft);
  text-decoration: none;
}

.maintenance-contact a:hover {
  color: var(--gold);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .cards-3,
  .cards-2,
  .split,
  .timeline {
    grid-template-columns: 1fr;
  }

  .hero-grid,
  .hero-metrics,
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    gap: 0.55rem;
  }

  .timeline-period {
    padding-top: 0;
  }

  .cta,
  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .editor-layout,
  .editor-grid-2 {
    grid-template-columns: 1fr;
  }

  .cert-card {
    grid-template-columns: 1fr;
  }

  .cert-thumb {
    max-width: 320px;
  }
}

@media (max-width: 1400px) {
  .editor-layout {
    grid-template-columns: minmax(220px, 0.8fr) minmax(520px, 1.5fr) minmax(320px, 1fr);
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 78px;
    left: 2vw;
    right: 2vw;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0.8rem;
    box-shadow: var(--shadow);
    z-index: 1000;
  }

  .main-nav a {
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    width: 100%;
    display: block;
    word-wrap: break-word;
  }

  .main-nav a:hover {
    background-color: rgba(255, 212, 0, 0.1);
  }

  .main-nav.open {
    display: flex;
  }

  .hero {
    padding-top: 5.4rem;
  }
}

/* ── Card icons ─────────────────────────── */
.card-icon {
  color: var(--gold);
  margin-bottom: 0.9rem;
  display: block;
}

.section-contrast .card-icon {
  color: var(--gold-soft);
}

/* ── Stats strip ────────────────────────── */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 2.4rem 0 3rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat {
  text-align: center;
  padding: 1.2rem 0.8rem;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: none;
}

.stat-num {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}

@media (max-width: 760px) {
  .stats-strip {
    grid-template-columns: 1fr;
  }

  .stat {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .stat:last-child {
    border-bottom: none;
  }
}
