:root {
  --blue: #001d6c;
  --purple: #491d8b;
  --violet: #7b1fa2;
  --magenta: #d81b60;
  --orange: #ff5722;
  --yellow: #ffc107;
  --ink: #140c2e;
  --muted: #5c6478;
  --line: #e6e8ef;
  --soft: #f6f7fb;
  --card: #fff;
  --gradient: linear-gradient(120deg, #001d6c 0%, #491d8b 22%, #7b1fa2 44%, #d81b60 66%, #ff5722 85%, #ffc107 100%);
  --shadow: 0 24px 60px -32px rgba(73, 29, 139, 0.45);
  --header: 4.25rem;
  --font: "Inter", ui-sans-serif, system-ui, sans-serif;
  --display: "Space Grotesk", var(--font);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.03em; line-height: 1.08; margin: 0; }
p { margin: 0; }
button, input { font: inherit; }
.wrap { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

.preview-bar {
  background: var(--ink);
  color: #fff;
  text-align: center;
  font-size: 0.85rem;
  padding: 0.55rem 1rem;
}
.preview-bar a { color: var(--yellow); }
.skip {
  position: absolute; left: 1rem; top: -4rem; background: #fff; color: var(--ink);
  padding: 0.5rem 0.8rem; z-index: 20;
}
.skip:focus { top: 0.5rem; }

.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
  color: var(--ink);
  border-bottom: 1px solid rgba(230, 232, 239, 0.9);
}
.header-bar {
  min-height: var(--header);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.logo img { height: 1.7rem; width: auto; }
.site-nav { display: flex; align-items: center; gap: 1.1rem; }
.site-nav a { text-decoration: none; color: var(--muted); font-size: 0.92rem; font-weight: 500; }
.site-nav a:hover, .site-nav a.is-active { color: var(--ink); }
.nav-empresas { color: var(--ink) !important; min-height: 2.4rem; }
.nav-empresas svg { color: var(--magenta); }
.nav-toggle { display: none; }

.btn, .nav-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 2.75rem; padding: 0.55rem 1.05rem; border-radius: 999px;
  text-decoration: none; font-weight: 600; border: 0; cursor: pointer;
}
.btn svg, .nav-ghost svg, .text-link svg { width: 1rem; height: 1rem; }
.btn-brand { background: var(--gradient); color: #fff !important; box-shadow: var(--shadow); }
.btn-light { background: #fff; color: var(--ink) !important; }
.btn-ink { background: var(--ink); color: #fff !important; }
.btn-line, .btn-ghost { background: transparent; color: inherit !important; box-shadow: inset 0 0 0 1px currentColor; }
.nav-ghost { color: #fff !important; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.28); min-height: 2.35rem; }
.site-nav .btn-brand { color: #fff; }

.hero { position: relative; color: #fff; isolation: isolate; }
.hero-media {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10,3,39,0.28) 0%, rgba(20,8,60,0.55) 42%, rgba(244,245,248,0.2) 78%, #f4f5f8 100%);
}
.hero-copy { padding: 5.5rem 0 4.5rem; max-width: 46rem; margin-right: auto; text-align: left; }
.hero h1 { font-size: clamp(3rem, 6.4vw, 4.7rem); line-height: 0.98; max-width: 12ch; }
.hero-lead { margin-top: 1.15rem; font-size: 1.12rem; color: rgba(255,255,255,0.88); max-width: 38rem; }
.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pill svg { width: 0.85rem; height: 0.85rem; color: var(--yellow); }
.pill, .kicker {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
}
.pill {
  background: rgba(255,255,255,0.12); border-radius: 999px; padding: 0.35rem 0.7rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
}
.kicker { color: var(--magenta); margin-bottom: 0.7rem; }
.kicker-light { color: var(--yellow); }

.search-form {
  margin-top: 1.7rem; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.45rem;
  background: rgba(255,255,255,0.96); color: var(--ink); border-radius: 999px; padding: 0.4rem 0.4rem 0.4rem 0.2rem;
  box-shadow: var(--shadow); max-width: 40rem;
}
.search-field { display: flex; align-items: center; gap: 0.55rem; min-width: 0; padding-left: 0.7rem; }
.search-field svg { width: 1.15rem; height: 1.15rem; color: var(--muted); flex: none; }
.search-field input {
  width: 100%; border: 0; background: transparent; min-height: 2.75rem; outline: none; font-size: 16px;
}
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1rem; }
.chips a {
  text-decoration: none; color: rgba(255,255,255,0.88); background: rgba(255,255,255,0.1);
  border-radius: 999px; padding: 0.35rem 0.8rem; font-size: 0.82rem;
  min-height: 2.4rem; display: inline-flex; align-items: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.16);
}
.trust { background: #f4f5f8; border-block: 1px solid var(--line); padding: 1.6rem 0 1.8rem; }
.trust p { text-align: center; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.trust-row { margin-top: 0.9rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem 1.6rem; }
.trust-row span { color: #8b90a3; font-weight: 600; font-size: 1.05rem; white-space: nowrap; }
.hero-alt { display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem; margin-top: 1.3rem; color: rgba(255,255,255,0.8); }

.band { padding: 4.5rem 0; }
.band h2 { font-size: clamp(2rem, 4vw, 3.1rem); max-width: 18ch; }
.sub { margin-top: 0.9rem; color: var(--muted); font-size: 1.05rem; max-width: 42rem; }
.band-soft { background: var(--soft); }
.band-dark {
  background:
    radial-gradient(800px 400px at 15% 20%, rgba(73,29,139,0.85), transparent 60%),
    radial-gradient(700px 400px at 90% 30%, rgba(216,27,96,0.7), transparent 60%),
    linear-gradient(180deg, #0a0327, #14063d);
  color: #fff;
}
.band-dark .sub, .band-dark p { color: rgba(255,255,255,0.78); }

.cards { display: grid; gap: 1rem; margin-top: 1.8rem; }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  background: var(--card); color: var(--ink); border: 1px solid var(--line);
  border-radius: 1.4rem; padding: 1.3rem; box-shadow: 0 16px 40px -28px rgba(20,12,46,0.5);
}
.card h2, .card h3 { font-size: 1.2rem; }
.card p { margin-top: 0.55rem; color: var(--muted); }
.card-link { text-decoration: none; display: flex; flex-direction: column; gap: 0.4rem; }
.card-link:hover { border-color: transparent; box-shadow: var(--shadow); }
.swatch { display: block; width: 2.6rem; height: 2.6rem; border-radius: 0.8rem; margin-bottom: 0.9rem; }
.swatch-0 { background: linear-gradient(135deg, var(--blue), var(--purple)); }
.swatch-1 { background: linear-gradient(135deg, var(--purple), var(--violet)); }
.swatch-2 { background: linear-gradient(135deg, var(--violet), var(--magenta)); }
.swatch-3 { background: linear-gradient(135deg, var(--magenta), var(--orange)); }
.text-link { display: inline-flex; align-items: center; gap: 0.25rem; margin-top: 0.8rem; font-weight: 600; text-decoration: none; color: var(--ink); }
.card h3 a, .card h2 a { text-decoration: none; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.8rem; }
.steps article {
  border-radius: 1.4rem; padding: 1.3rem;
  background: rgba(255,255,255,0.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
}
.steps span { font-family: var(--display); font-size: 2.2rem; font-weight: 700; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.steps h3 { margin: 0.6rem 0; font-size: 1.25rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }

.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2rem; align-items: center; }
.frame { margin: 0; border-radius: 1.6rem; overflow: hidden; box-shadow: var(--shadow); }
.frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; margin-top: 1.2rem; }
.mini {
  display: flex; flex-direction: column; gap: 0.3rem; text-decoration: none;
  border: 1px solid var(--line); border-radius: 1rem; padding: 0.9rem; background: #fff;
}
.mini span { color: var(--muted); font-size: 0.92rem; }

.awards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 1.6rem; }
.award { background: #fff; border-radius: 1.2rem; padding: 1rem; border: 1px solid var(--line); }
.award img { width: 4.5rem; height: 5.5rem; object-fit: contain; margin-bottom: 0.6rem; }
.award .year { color: var(--magenta); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.award h3 { font-size: 1.05rem; margin-top: 0.25rem; }
.award p { color: var(--muted); margin-top: 0.3rem; }
.section-head { display: flex; justify-content: space-between; gap: 1rem; align-items: end; }

.closing { padding-bottom: 4.5rem; }
.closing-box {
  display: grid; grid-template-columns: 1.3fr auto; gap: 1.5rem; align-items: center;
  background: var(--gradient); color: #fff; border-radius: 1.8rem; padding: 2rem;
}
.closing-box h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.closing-box p { margin-top: 0.6rem; max-width: 36rem; }
.closing-box .btn-ink { background: rgba(10,3,39,0.88); }

.page-hero { padding: 3.2rem 0 0.5rem; background: linear-gradient(180deg, #f4f1fb, #fff 80%); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 16ch; }
.lead { margin-top: 0.8rem; color: var(--muted); font-size: 1.1rem; max-width: 40rem; }
.prose { max-width: 44rem; }
.prose p + p { margin-top: 0.9rem; }
.prose h2 { margin: 1.6rem 0 0.7rem; font-size: 1.6rem; }
.course-list { margin: 0; padding-left: 1.1rem; }
.course-list li { margin: 0.35rem 0; }
.muted { color: var(--muted); font-size: 0.92rem; }

.faq { max-width: 46rem; }
.faq details { border-bottom: 1px solid var(--line); padding: 0.85rem 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; min-height: 2.35rem; display: flex; align-items: center; }
.faq details p { margin-top: 0.45rem; color: var(--muted); }

.site-footer { background: var(--ink); color: rgba(255,255,255,0.72); padding-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 0.7fr 1.6fr; gap: 2rem; }
.footer-claim { color: #fff; font-size: 1.15rem; font-weight: 600; margin-top: 0.8rem; }
.socials { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1rem; }
.socials a { color: rgba(255,255,255,0.72); text-decoration: none; }
.socials a:hover { color: #fff; }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.footer-cols h2 { color: #fff; font-size: 0.95rem; margin-bottom: 0.6rem; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin: 0.35rem 0; }
.footer-cols a { color: rgba(255,255,255,0.66); text-decoration: none; font-size: 0.9rem; }
.footer-cols a:hover { color: #fff; }
.footer-base { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 2rem; }
.footer-base .wrap { padding: 1rem 0 5rem; font-size: 0.8rem; }

.whatsapp {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 25;
  background: #128c7e; color: #fff; text-decoration: none; font-weight: 700;
  min-height: 2.75rem; display: inline-flex; align-items: center; padding: 0 1rem;
  border-radius: 999px; box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

@media (max-width: 1100px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 0.35rem;
    min-height: 2.75rem; padding: 0.4rem 0.75rem; border-radius: 999px;
    background: #fff; color: var(--ink); border: 1px solid var(--line);
  }
  .nav-toggle svg { width: 1.1rem; height: 1.1rem; }
  .nav-toggle-close { display: none; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-close { display: inline-flex; align-items: center; gap: 0.35rem; }
  .site-nav {
    display: none; position: absolute; z-index: 40;
    top: 100%; left: 0; right: 0; max-height: calc(100dvh - 4.5rem);
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0.35rem;
    padding: 1rem; overflow: auto;
  }
  .site-nav[data-open="true"] { display: flex; }
  .site-nav a, .site-nav .btn { min-height: 2.75rem; font-size: 1rem; justify-content: flex-start; }
}
.blog-hero {
  position: relative; isolation: isolate; color: #fff; overflow: hidden;
  background:
    radial-gradient(1200px 800px at 15% 20%, rgba(73,29,139,0.9), rgba(0,0,0,0) 60%),
    radial-gradient(1000px 700px at 85% 30%, rgba(216,27,96,0.8), rgba(0,0,0,0) 60%),
    radial-gradient(1000px 800px at 70% 90%, rgba(255,87,34,0.75), rgba(0,0,0,0) 60%),
    radial-gradient(900px 700px at 20% 90%, rgba(0,29,108,0.95), rgba(0,0,0,0) 60%),
    linear-gradient(#0a0327, #14063d);
}
.blog-hero-copy { max-width: 46rem; margin-right: auto; padding: 4.2rem 0 3.4rem; text-align: left; }
.blog-hero .kicker { color: rgba(255,255,255,0.82); letter-spacing: 0.14em; font-size: 0.75rem; }
.blog-hero h1 { font-size: clamp(2.6rem, 5vw, 3.75rem); margin: 0 0 1rem; }
.blog-hero .lead { color: rgba(255,255,255,0.88); max-width: 36rem; }
.blog-search input {
  width: 100%; border: 0; border-radius: 999px; min-height: 3.1rem; padding: 0 1.3rem;
  font: inherit; font-size: 1rem; background: #fff; color: var(--ink);
}
.segment {
  display: inline-flex; flex-wrap: wrap; gap: 0.15rem; padding: 0.25rem; margin-bottom: 0.9rem;
  border-radius: 999px; background: #fff; border: 1px solid var(--line);
}
.segment-item, .filter-chip, .pager-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.4rem; padding: 0 0.95rem; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: 0.92rem; color: var(--ink);
}
.segment-item.is-on { background: #efeaf8; color: var(--blue); }
.filter-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.6rem; }
.filter-chip { background: #fff; border: 1px solid var(--line); }
.filter-chip.is-on { background: var(--gradient); color: #fff; border-color: transparent; }
.result-count, .empty-note { color: var(--muted); font-size: 0.92rem; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.post-card {
  display: flex; flex-direction: column; min-width: 0; background: #fff; color: inherit;
  border-radius: 1.3rem; overflow: hidden; text-decoration: none; border: 1px solid var(--line);
}
.post-media { position: relative; display: block; aspect-ratio: 16 / 10; background: #ece8f4; }
.post-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-badge {
  position: absolute; left: 0.75rem; bottom: 0.75rem; color: #fff;
  background: linear-gradient(120deg, #7c3aed, #db2777); border-radius: 999px;
  padding: 0.28rem 0.7rem; font-size: 0.75rem; font-weight: 700;
}
.post-card .post-meta { display: block; color: var(--muted); font-size: 0.82rem; margin: 0.9rem 1rem 0; }
.post-card h2, .post-card h3 { font-size: 1.15rem; line-height: 1.25; margin: 0.35rem 1rem 0.45rem; }
.post-card p { color: #4b445c; font-size: 0.92rem; margin: 0 1rem 1.1rem; }
.pager { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.6rem; }
.pager-link { min-width: 2.4rem; background: #fff; border: 1px solid var(--line); }
.pager-link.is-on { background: var(--blue); color: #fff; border-color: transparent; }
.pager-link.is-disabled { opacity: 0.45; }
.article h1 { font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.05; max-width: 20ch; }
.article .post-meta { color: var(--muted); margin: 0.4rem 0 1rem; }
.article-cover { width: 100%; max-height: 28rem; object-fit: cover; border-radius: 1.3rem; margin: 0 0 1.4rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

.article-hero {
  position: relative; isolation: isolate; color: #fff; overflow: hidden; padding: 3rem 0 6.5rem;
  background:
    radial-gradient(1200px 800px at 15% 20%, rgba(73,29,139,0.9), rgba(0,0,0,0) 60%),
    radial-gradient(1000px 700px at 85% 30%, rgba(216,27,96,0.8), rgba(0,0,0,0) 60%),
    radial-gradient(1000px 800px at 70% 90%, rgba(255,87,34,0.75), rgba(0,0,0,0) 60%),
    radial-gradient(900px 700px at 20% 90%, rgba(0,29,108,0.95), rgba(0,0,0,0) 60%),
    linear-gradient(#0a0327, #14063d);
}
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.72); margin-bottom: 1.1rem; }
.breadcrumb a { color: rgba(255,255,255,0.72); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { margin: 0 0.3rem; }
.article-hero .pill { color: #fff; margin-bottom: 1rem; }
.article-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.3rem); max-width: 24ch; }
.article-hero .lead { color: rgba(255,255,255,0.88); max-width: 42rem; }
.article-hero .post-meta { color: rgba(255,255,255,0.7); margin-top: 1rem; }
.article-cover-wrap { margin-top: -5.5rem; margin-bottom: 0; }
.article-cover {
  width: 100%; max-height: 28rem; object-fit: cover; border-radius: 1.3rem;
  box-shadow: 0 30px 60px rgba(10,3,39,0.28); display: block;
}
.band-tight { padding: 2.6rem 0; }
.continue-box {
  margin-top: 1.6rem; padding: 1.3rem 1.4rem; border-radius: 1rem;
  background: #f4f5f8; border: 1px solid var(--line);
}
.related-title { margin-bottom: 1rem; }

@media (max-width: 767px) {
  .article-hero { padding-bottom: 4.5rem; }
  .article-cover-wrap { margin-top: -3rem; }
}

@media (max-width: 980px) {
  .cards-4, .awards { grid-template-columns: 1fr 1fr; }
  .cards-3, .steps, .footer-cols, .post-grid { grid-template-columns: 1fr 1fr; }
  .split, .footer-grid, .closing-box { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .cards-4, .cards-3, .steps, .awards, .footer-cols, .mini-grid, .post-grid { grid-template-columns: 1fr; }
  .search-form { grid-template-columns: 1fr; border-radius: 1.3rem; }
  .hero-copy { padding-top: 3.2rem; }
  .chips, .filter-row { margin-right: 6.5rem; }
  .hero h1 { max-width: none; }
  .band { padding: 3rem 0; }
  .btn, .nav-toggle, .search-form button, .chips a,
  .segment-item, .filter-chip, .pager-link, .blog-search input { min-height: 2.75rem; }
  .blog-hero h1 { font-size: 2.35rem; }
  input, select, textarea { font-size: 16px; }
}
