:root {
  --bg: #031126;
  --bg-2: #071a38;
  --panel: rgba(9, 35, 72, .78);
  --panel-2: rgba(13, 45, 87, .82);
  --line: rgba(76, 160, 255, .23);
  --text: #f5f8ff;
  --muted: #a9b8d0;
  --blue: #35a7ff;
  --cyan: #41dbe0;
  --yellow: #ffd400;
  --green: #3ddd9a;
  --orange: #ff8b27;
  --violet: #9a85ff;
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 0%, rgba(20, 112, 210, .12), transparent 28rem),
    linear-gradient(180deg, #031126 0%, #020b19 100%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }

.ambient {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(110px);
  opacity: .12;
  pointer-events: none;
  z-index: -1;
}
.ambient-one { background: #037cff; top: 10%; left: -170px; }
.ambient-two { background: #02d5e8; right: -200px; top: 45%; }

.site-header {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(24px, 5vw, 80px);
  border-bottom: 1px solid var(--line);
  background: rgba(2, 13, 30, .72);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { max-width: 165px; max-height: 48px; object-fit: contain; }
.brand-text { display: none; flex-direction: column; line-height: 1.05; }
.brand-text strong { letter-spacing: .12em; }
.brand-text small { color: var(--muted); margin-top: 5px; }
.top-nav { display: flex; align-items: center; gap: 28px; font-size: 14px; color: #cad6e7; }
.top-nav a { transition: .2s ease; }
.top-nav a:hover { color: white; }
.nav-primary {
  padding: 11px 17px;
  border: 1px solid rgba(53, 167, 255, .45);
  border-radius: 12px;
  background: rgba(53, 167, 255, .08);
}

.hero {
  max-width: 1040px;
  margin: 0 auto;
  text-align: center;
  padding: 95px 24px 70px;
}
.hero-badge, .eyebrow {
  color: var(--blue);
  font-size: 12px;
  letter-spacing: .22em;
  font-weight: 800;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  border: 1px solid rgba(53, 167, 255, .22);
  border-radius: 999px;
  background: rgba(53, 167, 255, .07);
}
.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 5px rgba(65, 219, 224, .1), 0 0 16px var(--cyan);
}
.hero h1 {
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -.05em;
  margin: 25px 0 20px;
}
.hero > p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.7;
}
.search-shell {
  max-width: 850px;
  margin: 40px auto 18px;
  height: 70px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  border: 1px solid rgba(66, 164, 255, .42);
  border-radius: 18px;
  background: rgba(9, 31, 63, .88);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .32), 0 0 0 4px rgba(53, 167, 255, .04);
}
.search-shell:focus-within {
  border-color: var(--blue);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .32), 0 0 0 4px rgba(53, 167, 255, .1);
}
.search-shell svg {
  width: 24px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.8;
}
.search-shell input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: white;
  font-size: 17px;
  min-width: 0;
}
.search-shell input::placeholder { color: #7589a7; }
kbd {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #8ea2be;
  background: #07172f;
  font-size: 12px;
}
.quick-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  color: #8194af;
  font-size: 13px;
}
.quick-links button {
  border: 0;
  background: transparent;
  color: #b9cae2;
  cursor: pointer;
  padding: 3px 5px;
}
.quick-links button:hover { color: var(--blue); }

.content-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 30px 24px 80px;
}
.section-heading, .articles-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: end;
  margin-bottom: 28px;
}
.section-heading h2, .articles-toolbar h2 {
  margin: 9px 0 0;
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -.035em;
}
.section-heading > p {
  color: var(--muted);
  max-width: 470px;
  line-height: 1.7;
  margin: 0;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.category-card {
  width: 100%;
  min-height: 116px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(13, 44, 83, .78), rgba(6, 24, 52, .86));
  padding: 20px;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 15px;
  text-align: left;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.category-card:hover {
  transform: translateY(-3px);
  border-color: rgba(53, 167, 255, .52);
}
.category-card.active {
  border-color: var(--blue);
  background: linear-gradient(145deg, rgba(17, 65, 118, .92), rgba(8, 34, 72, .92));
  box-shadow: 0 12px 34px rgba(0, 64, 130, .18);
}
.category-card .icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  border: 1px solid currentColor;
  background: rgba(255,255,255,.03);
}
.icon.blue { color: var(--blue); }
.icon.cyan { color: var(--cyan); }
.icon.yellow { color: var(--yellow); }
.icon.violet { color: var(--violet); }
.icon.green { color: var(--green); }
.icon.orange { color: var(--orange); }
.category-card strong { display: block; font-size: 16px; margin-bottom: 7px; }
.category-card small { display: block; color: var(--muted); line-height: 1.45; }
.category-card b {
  min-width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(53, 167, 255, .1);
  color: #a8d9ff;
  font-size: 12px;
}

.articles-toolbar { margin-top: 68px; }
.results-count {
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 13px;
}
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.article-card {
  min-height: 225px;
  padding: 24px;
  border-radius: 19px;
  border: 1px solid var(--line);
  background: linear-gradient(155deg, rgba(13, 43, 82, .78), rgba(5, 21, 47, .88));
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: .22s ease;
}
.article-card:hover {
  transform: translateY(-4px);
  border-color: rgba(53, 167, 255, .58);
  box-shadow: 0 18px 40px rgba(0,0,0,.2);
}
.article-meta {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  margin-bottom: 18px;
}
.article-tag {
  color: var(--blue);
  font-size: 11px;
  letter-spacing: .12em;
  font-weight: 800;
  text-transform: uppercase;
}
.article-time { color: #7890ae; font-size: 12px; }
.article-card h3 {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: -.02em;
}
.article-card p {
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
  margin: 0 0 20px;
}
.article-open {
  margin-top: auto;
  color: #66bcff;
  font-size: 14px;
  font-weight: 700;
}
.article-open::after { content: "  →"; }

.empty-state {
  text-align: center;
  padding: 70px 20px;
  border: 1px dashed var(--line);
  border-radius: 22px;
}
.empty-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border: 1px solid var(--blue);
  border-radius: 50%;
  color: var(--blue);
  font-weight: 800;
  font-size: 22px;
}
.empty-state p { color: var(--muted); }
.empty-state a { color: var(--blue); font-weight: 700; }

.support-cta {
  max-width: 1280px;
  margin: 0 auto 80px;
  padding: 42px;
  border: 1px solid rgba(53, 167, 255, .32);
  border-radius: 24px;
  background:
    radial-gradient(circle at 95% 0%, rgba(53, 167, 255, .18), transparent 18rem),
    linear-gradient(145deg, rgba(14, 50, 94, .92), rgba(6, 25, 54, .95));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 35px;
}
.support-cta h2 { margin: 10px 0; font-size: 34px; }
.support-cta p { color: var(--muted); line-height: 1.7; max-width: 680px; margin: 0; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  padding: 14px 19px;
  border-radius: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.btn.primary { background: var(--blue); color: #001226; }
.btn.secondary { border: 1px solid var(--line); background: rgba(255,255,255,.03); }

footer {
  min-height: 110px;
  padding: 30px clamp(24px, 5vw, 80px);
  border-top: 1px solid var(--line);
  color: #8ea2be;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
footer strong { display: block; color: #d5e1f2; margin-bottom: 6px; }
footer span { font-size: 13px; }
footer a { color: var(--blue); font-weight: 700; }

dialog {
  width: min(820px, calc(100vw - 30px));
  max-height: 88vh;
  padding: 0;
  border: 1px solid rgba(53, 167, 255, .38);
  border-radius: 22px;
  background: #071a35;
  color: white;
  box-shadow: 0 35px 110px rgba(0,0,0,.65);
}
dialog::backdrop {
  background: rgba(0, 7, 18, .78);
  backdrop-filter: blur(8px);
}
.modal-head {
  position: sticky;
  top: 0;
  background: rgba(7, 26, 53, .96);
  border-bottom: 1px solid var(--line);
  padding: 25px 28px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  z-index: 2;
}
.modal-category {
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.modal-head h2 { margin: 8px 0 0; font-size: 27px; line-height: 1.3; }
#closeModal {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  font-size: 25px;
  cursor: pointer;
}
.modal-body { padding: 28px; color: #c7d4e5; line-height: 1.75; }
.modal-body h3 { color: white; margin-top: 28px; }
.modal-body ol, .modal-body ul { padding-left: 22px; }
.modal-body .note {
  border-left: 3px solid var(--blue);
  padding: 14px 16px;
  background: rgba(53, 167, 255, .08);
  border-radius: 0 12px 12px 0;
}
.modal-footer {
  border-top: 1px solid var(--line);
  padding: 18px 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
}
.modal-footer div { display: flex; gap: 7px; }
.modal-footer button {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius: 9px;
  padding: 7px 11px;
  cursor: pointer;
}
.modal-footer a { margin-left: auto; color: var(--blue); font-weight: 700; }

@media (max-width: 980px) {
  .category-grid, .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .support-cta { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 720px) {
  .site-header { height: auto; padding-top: 15px; padding-bottom: 15px; }
  .top-nav a:not(.nav-primary) { display: none; }
  .hero { padding-top: 65px; }
  .search-shell { height: 62px; }
  kbd { display: none; }
  .section-heading, .articles-toolbar { align-items: flex-start; flex-direction: column; gap: 12px; }
  .category-grid, .articles-grid { grid-template-columns: 1fr; }
  .support-cta { margin-left: 16px; margin-right: 16px; padding: 30px 24px; }
  footer { align-items: flex-start; flex-direction: column; }
  .modal-footer { flex-wrap: wrap; }
  .modal-footer a { width: 100%; margin: 7px 0 0; }
}


/* =========================================================
   ENCABEZADO CORPORATIVO — IGUAL A SOPORTE REMOTO
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  padding: 0;
  border-bottom: 1px solid rgba(86, 137, 196, .18);
  background: rgba(2, 13, 30, .84);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-header .container {
  width: min(calc(100% - 40px), 1180px);
  margin-inline: auto;
}

.site-header .header-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  gap: 34px;
}

.site-header .brand {
  width: 170px;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.site-header .logo-misol {
  display: block;
  width: auto;
  height: 58px;
  object-fit: contain;
}

.site-header .nav {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

.site-header .nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c3cee0;
  font-size: .91rem;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s ease;
}

.site-header .nav a:hover {
  color: #ffffff;
}

.site-header .nav svg {
  width: 17px;
  height: 17px;
}

.site-header .button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 21px;
  border-radius: 14px;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .25s ease, background .25s ease;
}

.site-header .button svg {
  width: 18px;
  height: 18px;
}

.site-header .button:hover {
  transform: translateY(-2px);
}

.site-header .button-outline {
  border: 1px solid #208fff;
  background: rgba(7, 47, 93, .24);
}

@media (max-width: 1050px) {
  .site-header .nav {
    display: none;
  }

  .site-header .header-inner {
    justify-content: space-between;
  }
}

@media (max-width: 760px) {
  .site-header .container {
    width: min(calc(100% - 28px), 1180px);
  }

  .site-header .header-inner {
    min-height: 76px;
    gap: 12px;
  }

  .site-header .logo-misol {
    height: 45px;
    max-width: 145px;
  }

  .site-header .button {
    min-height: 42px;
    width: auto;
    padding: 9px 13px;
    font-size: .78rem;
  }
}

@media (max-width: 380px) {
  .site-header .logo-misol {
    max-width: 125px;
  }

  .site-header .button {
    padding: 8px 10px;
    font-size: .72rem;
  }
}
