:root {
  --navy: #071422;
  --navy-2: #0c2238;
  --ink: #12151a;
  --muted: #5b6573;
  --line: #e4e8ee;
  --paper: #f4f7fb;
  --white: #ffffff;
  --blue: #0a7ad9;
  --cyan: #2eb6ff;
  --ice: #9fe4ff;
  --shadow: 0 18px 50px rgba(7, 20, 34, 0.12);
  --radius: 18px;
  --max: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 6px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--blue), var(--ice));
}

h1, h2, .display {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-style: italic;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 0.95;
  text-transform: uppercase;
}

p { color: var(--muted); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img { height: 46px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  padding: 8px 12px;
  font-size: 0.92rem;
  font-weight: 650;
  color: #334;
  border-radius: 999px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--blue);
  background: #eef6ff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 700;
  font-family: inherit;
  transition: 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #0868c4, var(--cyan));
  color: white;
  box-shadow: 0 10px 24px rgba(10, 122, 217, 0.28);
}

.btn-primary:hover { transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,.3);
}

.btn-dark {
  background: var(--navy);
  color: white;
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(46,182,255,.28), transparent 55%),
    radial-gradient(700px 380px at 0% 110%, rgba(10,122,217,.35), transparent 50%),
    linear-gradient(160deg, #06101c 0%, #0c2744 55%, #082033 100%);
  color: white;
  padding: 84px 0 72px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -40px -80px auto;
  width: 420px;
  height: 220px;
  background: radial-gradient(circle, rgba(159,228,255,.2), transparent 65%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 5.6rem);
  color: white;
  margin: 16px 0 18px;
}

.hero p.lead {
  color: #c5d5e8;
  font-size: 1.08rem;
  max-width: 52ch;
}

.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

.pulse-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px;
  padding: 28px;
  backdrop-filter: blur(10px);
}

.dots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px 18px;
  margin-bottom: 22px;
}

.dot {
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--cyan) 55%, var(--ice));
  position: relative;
}

.dot::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: var(--ice);
  box-shadow: 0 0 16px var(--cyan);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.stat strong {
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  font-style: italic;
  font-size: 1.8rem;
  color: white;
}

.stat span { color: #9fb4c9; font-size: 0.82rem; }

/* Sections */
.section { padding: 84px 0; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 36px;
}

.section-head h2 { font-size: clamp(2rem, 4vw, 3.2rem); }

.muted-link {
  color: var(--blue);
  font-weight: 700;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 10px 30px rgba(7,20,34,.04);
}

.card h3 {
  font-family: "Barlow Condensed", sans-serif;
  font-style: italic;
  font-size: 1.7rem;
  text-transform: uppercase;
  margin: 12px 0 8px;
}

.icon-blob {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #d9efff, #edf8ff);
  color: var(--blue);
  font-weight: 800;
}

.featured {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 22px;
}

.article-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: white;
  min-height: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.cover {
  height: 210px;
  background: #0c2238;
  position: relative;
  overflow: hidden;
}

.cover.tall { height: 320px; }

.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .35s ease;
}

.article-card:hover .cover img {
  transform: scale(1.04);
}

.cover-inner {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(46,182,255,.45), transparent 32%),
    linear-gradient(135deg, #071422, #11406d);
}

.cover-inner.alt {
  background:
    radial-gradient(circle at 20% 80%, rgba(159,228,255,.4), transparent 36%),
    linear-gradient(160deg, #0a1c30, #0a7ad9);
}

.cover-inner.sec {
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 12px, transparent 12px 24px),
    linear-gradient(145deg, #08111c, #16385c);
}

.prose .cover {
  height: 320px;
  border-radius: 18px;
  margin-bottom: 24px;
}

.article-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }

.meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
}

.tag {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eaf4ff;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.tag.seguridad { background: #ece9ff; color: #4b3fd6; }
.tag.rrhh { background: #e8f8ef; color: #1c7a45; }
.tag.tech { background: #fff3df; color: #9a5b00; }

.article-body h3 {
  font-family: "Barlow Condensed", sans-serif;
  font-style: italic;
  font-size: 1.8rem;
  text-transform: uppercase;
  line-height: 1;
}

.stack { display: grid; gap: 16px; }

.paper { background: var(--paper); }

.cta {
  background: var(--navy);
  color: white;
  border-radius: 28px;
  padding: 42px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.cta h2, .cta p { color: white; }
.cta p { color: #b8c8d8; }

footer {
  background: #050b13;
  color: #d5e0ea;
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 32px;
}

footer a { color: #9fb4c9; }
footer a:hover { color: white; }
footer h4 {
  font-family: "Barlow Condensed", sans-serif;
  font-style: italic;
  letter-spacing: .08em;
  margin-bottom: 12px;
  color: white;
}
footer ul { list-style: none; display: grid; gap: 8px; }
.copy { border-top: 1px solid #1c2b3c; padding-top: 16px; font-size: 0.85rem; color: #7f93a6; }

/* Blog */
.page-hero {
  padding: 56px 0 24px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 8px;
}

.filter, .search {
  border: 1px solid var(--line);
  background: white;
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
}

.filter.active {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}

.search { min-width: 240px; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Article */
.post {
  display: grid;
  grid-template-columns: 0.72fr 0.28fr;
  gap: 40px;
  padding: 48px 0 80px;
}

.prose { max-width: 72ch; }
.prose h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); margin: 12px 0 18px; }
.prose p { margin: 0 0 16px; color: #3d4653; font-size: 1.05rem; }
.prose h2 { font-size: 1.8rem; margin: 28px 0 12px; }
.prose ul { margin: 0 0 16px 22px; color: #3d4653; }
.prose li { margin: 6px 0; }

.aside {
  position: sticky;
  top: 100px;
  align-self: start;
  display: grid;
  gap: 16px;
}

.mini {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: white;
}

form { display: grid; gap: 12px; }
label { font-size: 0.85rem; font-weight: 700; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  background: white;
}

.form-card {
  max-width: 640px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
  background: white;
}

.success {
  display: none;
  background: #e8f8ef;
  color: #1c7a45;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 700;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.hidden { display: none !important; }

@media (max-width: 900px) {
  .menu-btn { display: grid; place-items: center; }
  .nav-links {
    display: none;
    position: absolute;
    left: 20px;
    right: 20px;
    top: 78px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
  }
  .nav-links.open { display: flex; }
  .hero-grid, .featured, .cards, .blog-grid, .post, .cta, .footer-grid, .split, .section-head {
    grid-template-columns: 1fr;
    display: grid;
  }
  .cta, .section-head { display: grid; }
  .hero { padding: 56px 0; }
  .brand img { height: 38px; }
}
