/* =========================================================
   SISTEMES LINUX — Design tokens
   ========================================================= */
:root {
  /* Color */
  --slx-navy:        #061029;   /* fondo terminal / secciones oscuras */
  --slx-blue-900:     #0a2c66;
  --slx-blue-700:     #0d47a1;   /* azul principal (logo) */
  --slx-blue-600:     #1667d6;   /* azul interactivo / enlaces */
  --slx-blue-100:     #e9f1fd;   /* tinte de fondo */
  --slx-blue-50:      #f5f9fe;
  --slx-teal:         #22d3a5;   /* acento terminal, uso puntual */
  --slx-ink:          #10192e;
  --slx-mist:         #5b6a86;
  --slx-line:         #dde6f3;
  --slx-white:        #ffffff;

  /* Tipografía */
  --slx-font-display: 'Space Grotesk', sans-serif;
  --slx-font-body:    'Inter', sans-serif;
  --slx-font-mono:    'JetBrains Mono', monospace;

  /* Layout */
  --slx-radius:  14px;
  --slx-radius-sm: 8px;
  --slx-shadow: 0 20px 45px -20px rgba(10, 44, 102, 0.35);
  --slx-container: 1180px;
}

/* =========================================================
   Reset básico
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--slx-font-body);
  color: var(--slx-ink);
  background: var(--slx-white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--slx-font-display);
  margin: 0 0 .5em;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1em; color: var(--slx-mist); line-height: 1.65; }

.slx-skip {
  position: absolute; left: -999px; top: 0;
  background: var(--slx-blue-700); color: #fff; padding: 10px 16px; z-index: 999;
}
.slx-skip:focus { left: 10px; top: 10px; }

.slx-container {
  max-width: var(--slx-container);
  margin: 0 auto;
  padding: 0 24px;
}

:focus-visible {
  outline: 3px solid var(--slx-teal);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* =========================================================
   Botones
   ========================================================= */
.slx-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px;
  font-family: var(--slx-font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
}
.slx-btn:hover { transform: translateY(-2px); }
.slx-btn--sm { padding: 9px 18px; font-size: 0.85rem; }
.slx-btn--primary { background: var(--slx-blue-700); color: #fff; box-shadow: var(--slx-shadow); }
.slx-btn--primary:hover { background: var(--slx-blue-600); }
.slx-btn--accent { background: var(--slx-teal); color: var(--slx-navy); }
.slx-btn--accent:hover { background: #3fe3bb; }
.slx-btn--outline { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.slx-btn--outline:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.slx-btn--ghost { background: transparent; border-color: var(--slx-line); color: var(--slx-ink); }
.slx-btn--ghost:hover { background: var(--slx-blue-50); }

/* =========================================================
   Topbar
   ========================================================= */
.slx-topbar {
  background: var(--slx-navy);
  color: #b9c6e3;
  font-size: 0.82rem;
}
.slx-topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 38px;
}
.slx-topbar__info { display: flex; gap: 22px; }
.slx-topbar__info i { color: var(--slx-teal); margin-right: 5px; }
.slx-topbar__right { display: flex; align-items: center; gap: 20px; }
.slx-topbar__right a:hover { color: #fff; }
.slx-lang-switch { display: flex; align-items: center; gap: 6px; }
.slx-lang-switch a { color: #b9c6e3; font-weight: 600; }
.slx-lang-switch a.is-active { color: var(--slx-teal); }
.slx-lang-switch span { color: #56638a; }

@media (max-width: 780px) {
  .slx-topbar__info { display: none; }
  .slx-topbar__inner { justify-content: flex-end; }
}

/* =========================================================
   Header / navegación
   ========================================================= */
.slx-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--slx-line);
}
.slx-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 96px;
}
.slx-logo img { height: 56px; width: auto; }
.slx-nav { display: flex; align-items: center; gap: 34px; }
.slx-nav a {
  font-weight: 600; font-size: 0.94rem; color: var(--slx-ink);
  position: relative; padding: 6px 0;
}
.slx-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--slx-blue-600); transform: scaleX(0); transform-origin: left;
  transition: transform .2s ease;
}
.slx-nav a:hover::after, .slx-nav a.is-active::after { transform: scaleX(1); }
.slx-nav a.is-active { color: var(--slx-blue-700); }

.slx-header__actions { display: flex; align-items: center; gap: 14px; }
.slx-nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: none; cursor: pointer;
}
.slx-nav-toggle span { display: block; height: 2px; width: 22px; background: var(--slx-ink); border-radius: 2px; }

@media (max-width: 940px) {
  .slx-nav {
    position: fixed; inset: 96px 0 0 0; background: #fff;
    flex-direction: column; align-items: flex-start; padding: 28px 24px;
    gap: 22px; transform: translateX(100%); transition: transform .25s ease;
    border-top: 1px solid var(--slx-line);
  }
  .slx-nav.is-open { transform: translateX(0); }
  .slx-nav a { font-size: 1.1rem; }
  .slx-nav-toggle { display: flex; }
  .slx-header__actions .slx-btn--primary { display: none; }
}

/* =========================================================
   HERO — terminal
   ========================================================= */
.slx-hero {
  background: radial-gradient(circle at 15% 20%, #0d2a63 0%, var(--slx-navy) 55%, #050b1c 100%);
  color: #fff;
  overflow: hidden;
  position: relative;
  padding: 84px 0 110px;
}
.slx-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 20% 30%, black, transparent 70%);
}
.slx-hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.slx-hero__kicker {
  font-family: var(--slx-font-mono);
  color: var(--slx-teal);
  font-size: 0.82rem;
  letter-spacing: .04em;
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 18px;
}
.slx-hero__kicker::before { content: '●'; font-size: .6rem; }
.slx-hero h1 {
  font-size: clamp(2.3rem, 4.4vw, 3.5rem);
  color: #fff;
}
.slx-hero h1 span { color: var(--slx-teal); }
.slx-hero p.slx-hero__desc {
  color: #c3cee6; font-size: 1.08rem; max-width: 46ch; margin-bottom: 30px;
}
.slx-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }

.slx-hero__stats { display: flex; gap: 34px; flex-wrap: wrap; }
.slx-hero__stats div strong {
  display: block; font-family: var(--slx-font-display); font-size: 1.6rem; color: #fff;
}
.slx-hero__stats div span { font-size: .82rem; color: #93a2c5; }

/* Ventana terminal */
.slx-terminal {
  background: #0b1631;
  border: 1px solid #1d2c54;
  border-radius: var(--slx-radius);
  box-shadow: 0 30px 70px -25px rgba(0,0,0,.6);
  overflow: hidden;
}
.slx-terminal__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: #0f1c3d;
  border-bottom: 1px solid #1d2c54;
}
.slx-terminal__dot { width: 10px; height: 10px; border-radius: 50%; }
.slx-terminal__dot--r { background: #ff5f56; }
.slx-terminal__dot--y { background: #ffbd2e; }
.slx-terminal__dot--g { background: #27c93f; }
.slx-terminal__title {
  margin-left: auto; margin-right: auto;
  font-family: var(--slx-font-mono); font-size: .75rem; color: #7482a6;
}
.slx-terminal__body {
  padding: 22px 20px 26px;
  font-family: var(--slx-font-mono);
  font-size: .88rem;
  color: #cdd8f2;
  min-height: 230px;
}
.slx-terminal__line { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.slx-terminal__prompt { color: var(--slx-teal); white-space: nowrap; }
.slx-terminal__path { color: #6f7fac; }
.slx-terminal__typed { color: #fff; }
.slx-terminal__cursor {
  display: inline-block; width: 8px; height: 1.1em; background: var(--slx-teal);
  margin-left: 2px; animation: slx-blink 1s steps(1) infinite; vertical-align: text-bottom;
}
@keyframes slx-blink { 50% { opacity: 0; } }
.slx-terminal__out { color: #93a2c5; padding-left: 14px; margin-bottom: 4px; }
.slx-terminal__out b { color: #e9edf9; }
.slx-terminal__list { margin-top: 8px; }
.slx-terminal__list li { padding-left: 14px; color: #93a2c5; margin-bottom: 3px; }
.slx-terminal__list li::before { content: '✓ '; color: var(--slx-teal); }

@media (max-width: 940px) {
  .slx-hero__inner { grid-template-columns: 1fr; }
}

/* =========================================================
   Sección genérica / cabeceras
   ========================================================= */
.slx-section { padding: 96px 0; }
.slx-section--tight { padding: 72px 0; }
.slx-section--tint { background: var(--slx-blue-50); }
.slx-section-head { max-width: 640px; margin-bottom: 48px; }
.slx-kicker {
  font-family: var(--slx-font-mono);
  color: var(--slx-blue-600);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  display: block; margin-bottom: 10px;
}
.slx-section-head h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); color: var(--slx-ink); }
.slx-section-head--split {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}

/* =========================================================
   Sobre nosotros (home)
   ========================================================= */
.slx-about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.slx-about__art {
  background: linear-gradient(145deg, var(--slx-blue-700), var(--slx-navy));
  border-radius: var(--slx-radius);
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.slx-about__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slx-about__art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,25,60,.55), transparent 45%);
}
.slx-about__badge {
  position: absolute; bottom: 20px; left: 20px; right: 20px; z-index: 1;
  background: rgba(10,25,60,.45);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--slx-radius-sm);
  padding: 14px 16px;
  color: #fff; font-family: var(--slx-font-mono); font-size: .8rem;
}
.slx-feat-list { display: grid; gap: 20px; margin-top: 30px; }
.slx-feat-item { display: flex; gap: 14px; align-items: flex-start; }
.slx-feat-item i {
  width: 42px; height: 42px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--slx-blue-100); color: var(--slx-blue-700);
  border-radius: 10px; font-size: 1rem;
}
.slx-feat-item h4 { margin: 0 0 3px; font-size: 1rem; }
.slx-feat-item p { margin: 0; font-size: .9rem; }

@media (max-width: 860px) {
  .slx-about { grid-template-columns: 1fr; }
}

/* =========================================================
   Cursos — listado tipo "gestor de paquetes"
   ========================================================= */
.slx-pkg-list {
  border: 1px solid var(--slx-line);
  border-radius: var(--slx-radius);
  overflow: hidden;
  background: #fff;
}
.slx-pkg-head {
  display: grid; grid-template-columns: 2.4fr 1fr 1fr 1fr auto;
  gap: 16px; padding: 14px 22px;
  background: var(--slx-navy); color: #93a2c5;
  font-family: var(--slx-font-mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .05em;
}
.slx-pkg-row {
  display: grid; grid-template-columns: 2.4fr 1fr 1fr 1fr auto;
  gap: 16px; align-items: center;
  padding: 20px 22px;
  border-top: 1px solid var(--slx-line);
  transition: background-color .15s ease;
}
.slx-pkg-row:hover { background: var(--slx-blue-50); }
.slx-pkg-name { display: flex; gap: 14px; align-items: flex-start; }
.slx-pkg-name i {
  width: 40px; height: 40px; flex: none; border-radius: 10px;
  background: var(--slx-blue-100); color: var(--slx-blue-700);
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.slx-pkg-name h3 { font-size: 1.02rem; margin: 0 0 4px; }
.slx-pkg-name p { font-size: .87rem; margin: 0; max-width: 46ch; }
.slx-pkg-tag {
  font-family: var(--slx-font-mono); font-size: .78rem;
  color: var(--slx-mist);
}
.slx-pkg-badge {
  display: inline-block;
  font-family: var(--slx-font-mono); font-size: .68rem; text-transform: uppercase;
  background: var(--slx-teal); color: var(--slx-navy);
  padding: 2px 8px; border-radius: 999px; margin-left: 8px; vertical-align: middle;
}
.slx-pkg-cta {
  font-size: .82rem; font-weight: 600; color: var(--slx-blue-700);
  white-space: nowrap;
}
.slx-pkg-cta i { margin-left: 4px; transition: transform .15s ease; }
.slx-pkg-row:hover .slx-pkg-cta i { transform: translateX(3px); }

@media (max-width: 780px) {
  .slx-pkg-head { display: none; }
  .slx-pkg-row { grid-template-columns: 1fr; row-gap: 10px; }
  .slx-pkg-cta { justify-self: flex-start; }
}

.slx-courses-footer { text-align: center; margin-top: 40px; }

/* Filtros página cursos */
.slx-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.slx-filter {
  font-family: var(--slx-font-mono); font-size: .82rem;
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--slx-line);
  background: #fff; cursor: pointer; color: var(--slx-mist);
}
.slx-filter.is-active, .slx-filter:hover { background: var(--slx-blue-700); color: #fff; border-color: var(--slx-blue-700); }

/* =========================================================
   Franja de estadísticas
   ========================================================= */
.slx-stats-band {
  background: var(--slx-blue-700);
  background-image: linear-gradient(120deg, var(--slx-blue-700), var(--slx-blue-900));
  color: #fff;
}
.slx-stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  padding: 56px 0;
}
.slx-stats-grid div { text-align: center; }
.slx-stats-grid strong {
  display: block; font-family: var(--slx-font-display); font-size: 2.4rem;
}
.slx-stats-grid span { font-size: .85rem; color: #c3d1f0; }

@media (max-width: 780px) {
  .slx-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   Testimonios
   ========================================================= */
.slx-testi-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 1fr);
  gap: 22px; overflow-x: auto; padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}
.slx-testi-track::-webkit-scrollbar { height: 6px; }
.slx-testi-track::-webkit-scrollbar-thumb { background: var(--slx-line); border-radius: 999px; }
.slx-testi-card {
  scroll-snap-align: start;
  background: #fff; border: 1px solid var(--slx-line); border-radius: var(--slx-radius);
  padding: 26px; display: flex; flex-direction: column; gap: 14px;
}
.slx-testi-card .fa-quote-left { color: var(--slx-blue-100); font-size: 1.6rem; }
.slx-testi-stars { color: #f5a623; font-size: .82rem; }
.slx-testi-card p { color: var(--slx-ink); font-size: .95rem; margin: 0; }
.slx-testi-person { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.slx-testi-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--slx-blue-100); color: var(--slx-blue-700);
  display: flex; align-items: center; justify-content: center; font-weight: 700;
  font-family: var(--slx-font-display);
}
.slx-testi-person strong { display: block; font-size: .88rem; }
.slx-testi-person span { font-size: .78rem; color: var(--slx-mist); }

/* =========================================================
   CTA final
   ========================================================= */
.slx-final-cta {
  background: var(--slx-navy);
  color: #fff;
}
.slx-final-cta__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 56px 0;
}
.slx-final-cta h2 { color: #fff; margin-bottom: 6px; font-size: 1.6rem; }
.slx-final-cta p { color: #93a2c5; margin: 0; }

/* =========================================================
   Footer
   ========================================================= */
.slx-footer { background: #071129; color: #93a2c5; padding: 64px 0 0; }
.slx-footer__grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 40px;
  padding-bottom: 44px; border-bottom: 1px solid #16233f;
}
.slx-footer__logo { height: 30px; margin-bottom: 14px; filter: brightness(0) invert(1); }
.slx-footer__brand p { color: #7987ab; font-size: .88rem; }
.slx-social { display: flex; gap: 10px; margin-top: 16px; }
.slx-social a {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid #223258;
  display: flex; align-items: center; justify-content: center;
}
.slx-social a:hover { background: var(--slx-blue-600); border-color: var(--slx-blue-600); }
.slx-footer__col h3 { color: #fff; font-size: .92rem; margin-bottom: 16px; }
.slx-footer__col a, .slx-footer__col p {
  display: block; font-size: .88rem; color: #93a2c5; margin-bottom: 10px;
}
.slx-footer__col a:hover { color: #fff; }
.slx-footer__col i { color: var(--slx-teal); margin-right: 6px; }
.slx-footer__col--contact p { display: flex; align-items: flex-start; }
.slx-footer__col--contact p a { display: inline; margin-bottom: 0; }
.slx-footer__col--contact i { margin-top: 3px; }
.slx-footer__bottom {
  padding: 22px 0; font-size: .8rem; color: #5b6a86; text-align: center;
}

@media (max-width: 860px) {
  .slx-footer__grid { grid-template-columns: 1fr 1fr; }
}

/* =========================================================
   Banner de cookies
   ========================================================= */
.slx-cookie-banner {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 200;
  max-width: 620px; margin: 0 auto;
  background: #fff; border: 1px solid var(--slx-line); border-radius: var(--slx-radius);
  box-shadow: var(--slx-shadow);
  padding: 20px 22px;
  display: flex; flex-direction: column; gap: 14px;
  max-height: calc(100vh - 40px); overflow-y: auto;
}
/* El atributo [hidden] debe ganar siempre a las reglas de display de abajo */
.slx-cookie-banner[hidden] { display: none; }
.slx-cookie-banner__body p { margin: 0; font-size: .86rem; color: var(--slx-mist); }
.slx-cookie-banner__body p a { color: var(--slx-blue-700); font-weight: 600; }
.slx-cookie-banner__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.slx-cookie-panel {
  display: flex; flex-direction: column; gap: 14px;
  padding-top: 4px; border-top: 1px solid var(--slx-line);
}
.slx-cookie-panel[hidden] { display: none; }
.slx-cookie-cat__head { display: flex; align-items: flex-start; gap: 12px; }
.slx-cookie-cat__head h4 { margin: 0 0 2px; font-size: .92rem; color: var(--slx-ink); }
.slx-cookie-cat__head p { margin: 0; font-size: .82rem; color: var(--slx-mist); }
.slx-cookie-cat__badge {
  font-size: .72rem; font-weight: 600; color: var(--slx-blue-700);
  background: var(--slx-blue-100); padding: 2px 8px; border-radius: 999px;
}

.slx-switch { position: relative; display: inline-flex; flex: 0 0 auto; width: 40px; height: 22px; }
.slx-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.slx-switch__track {
  position: absolute; inset: 0; background: var(--slx-line); border-radius: 999px; transition: background .15s;
}
.slx-switch__track::before {
  content: ''; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px;
  background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s;
}
.slx-switch input:checked + .slx-switch__track { background: var(--slx-blue-700); }
.slx-switch input:checked + .slx-switch__track::before { transform: translateX(18px); }
.slx-switch input:disabled + .slx-switch__track { background: var(--slx-blue-600); opacity: .55; cursor: not-allowed; }
.slx-switch input:disabled { cursor: not-allowed; }

/* =========================================================
   Páginas internas: cabecera de página
   ========================================================= */
.slx-page-header {
  background: radial-gradient(circle at 85% 0%, #0d2a63 0%, var(--slx-navy) 60%);
  color: #fff; padding: 64px 0 68px;
}
.slx-page-header h1 { color: #fff; font-size: clamp(2rem, 4vw, 2.7rem); }
.slx-page-header p { color: #c3cee6; max-width: 56ch; }

/* =========================================================
   Página Sobre nosotros
   ========================================================= */
.slx-values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.slx-value-card {
  border: 1px solid var(--slx-line); border-radius: var(--slx-radius);
  padding: 28px; background: #fff;
}
.slx-value-card i {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--slx-blue-100); color: var(--slx-blue-700);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem; margin-bottom: 16px;
}
.slx-value-card h3 { font-size: 1.05rem; }
.slx-value-card p { font-size: .9rem; margin: 0; }

@media (max-width: 860px) {
  .slx-values-grid { grid-template-columns: 1fr; }
}

.slx-mission-band {
  display: grid; grid-template-columns: 0.9fr 1.3fr; gap: 50px; align-items: center;
  background: var(--slx-blue-50); border-radius: var(--slx-radius);
  padding: 46px; margin-bottom: 64px;
}
.slx-mission-band i { font-size: 3rem; color: var(--slx-blue-700); }
@media (max-width: 780px) {
  .slx-mission-band { grid-template-columns: 1fr; padding: 30px; }
}

.slx-partners-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.slx-partner-badge {
  display: flex; align-items: center; gap: 14px;
  border: 1px solid var(--slx-line); border-radius: var(--slx-radius-sm);
  padding: 16px 18px; background: #fff;
}
.slx-partner-badge i {
  width: 38px; height: 38px; border-radius: 10px; flex: 0 0 auto;
  background: var(--slx-blue-100); color: var(--slx-blue-700);
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.slx-partner-badge span { font-size: .88rem; font-weight: 600; color: var(--slx-ink); }

/* =========================================================
   Página Contacto
   ========================================================= */
.slx-contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; }
.slx-contact-info { display: grid; gap: 22px; align-content: start; }
.slx-contact-info-item { display: flex; gap: 14px; }
.slx-contact-info-item i {
  width: 42px; height: 42px; flex: none; border-radius: 10px;
  background: var(--slx-blue-100); color: var(--slx-blue-700);
  display: flex; align-items: center; justify-content: center;
}
.slx-contact-info-item h4 { margin: 0 0 3px; font-size: .95rem; }
.slx-contact-info-item p { margin: 0; font-size: .9rem; }
.slx-map {
  border-radius: var(--slx-radius); overflow: hidden; border: 1px solid var(--slx-line);
  aspect-ratio: 16/10;
}
.slx-map iframe { width: 100%; height: 100%; border: 0; }

.slx-form { display: grid; gap: 18px; }
.slx-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.slx-field { display: grid; gap: 6px; }
.slx-field label { font-size: .85rem; font-weight: 600; color: var(--slx-ink); }
.slx-field input, .slx-field select, .slx-field textarea {
  font-family: var(--slx-font-body); font-size: .95rem;
  padding: 12px 14px; border: 1px solid var(--slx-line); border-radius: var(--slx-radius-sm);
  background: #fff; color: var(--slx-ink);
}
.slx-field textarea { resize: vertical; min-height: 120px; }
.slx-field input:focus, .slx-field select:focus, .slx-field textarea:focus {
  outline: none; border-color: var(--slx-blue-600); box-shadow: 0 0 0 3px rgba(22,103,214,.15);
}
.slx-checkbox { display: flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--slx-mist); }
.slx-form-msg {
  padding: 14px 16px; border-radius: var(--slx-radius-sm); font-size: .9rem; display: none;
}
.slx-form-msg.is-success { display: block; background: #e6f8f1; color: #0a7a54; }
.slx-form-msg.is-error { display: block; background: #fdecec; color: #b3261e; }

@media (max-width: 860px) {
  .slx-contact-grid { grid-template-columns: 1fr; }
  .slx-form-row { grid-template-columns: 1fr; }
}

/* =========================================================
   HERO SLIDER (estilo referencia)
   ========================================================= */
.slx-slider {
  position: relative;
  overflow: hidden;
  color: #fff;
}
.slx-slide {
  display: none;
  position: relative;
  min-height: 560px;
  align-items: center;
  background: linear-gradient(120deg, rgba(6,16,41,.92), rgba(10,44,102,.82));
  background-size: cover;
  background-position: center;
}
.slx-slide.has-photo {
  /* Overlay más claro para que la foto de fondo sea visible y a la vez el texto siga siendo legible */
  background-image: linear-gradient(120deg, rgba(6,16,41,.62), rgba(10,44,102,.5)), var(--slx-slide-img, none);
}
.slx-slide.is-active { display: flex; }
.slx-slide::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 20% 30%, black, transparent 70%);
}
.slx-slide__inner {
  position: relative; z-index: 1;
  max-width: 640px;
  padding: 90px 0;
}
.slx-slide__kicker {
  font-family: var(--slx-font-mono);
  color: var(--slx-teal);
  font-size: .82rem;
  letter-spacing: .04em;
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 18px;
}
.slx-slide__kicker::before { content: '●'; font-size: .6rem; }
.slx-slide h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.3rem);
  color: #fff;
  margin-bottom: 18px;
}
.slx-slide p {
  color: #c3cee6; font-size: 1.08rem; max-width: 50ch; margin-bottom: 30px;
}
.slx-slide__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.slx-slider-icon {
  position: absolute; right: 4%; top: 50%; transform: translateY(-50%);
  font-size: 16rem; color: rgba(255,255,255,.05);
  z-index: 0; pointer-events: none;
}

.slx-slider-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25);
  color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 2; transition: background-color .15s ease;
}
.slx-slider-nav:hover { background: rgba(255,255,255,.22); }
.slx-slider-nav--prev { left: 24px; }
.slx-slider-nav--next { right: 24px; }

.slx-slider-dots {
  position: absolute; left: 0; right: 0; bottom: 22px;
  display: flex; justify-content: center; gap: 10px; z-index: 2;
}
.slx-slider-dots button {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.35); border: none; cursor: pointer; padding: 0;
}
.slx-slider-dots button.is-active { background: var(--slx-teal); }

@media (max-width: 780px) {
  .slx-slide { min-height: 460px; }
  .slx-slider-icon { display: none; }
  .slx-slider-nav { width: 38px; height: 38px; }
  .slx-slider-nav--prev { left: 10px; }
  .slx-slider-nav--next { right: 10px; }
}

/* =========================================================
   Cursos — tarjetas (grid estilo referencia)
   ========================================================= */
.slx-courses-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.slx-course-card {
  background: #fff; border: 1px solid var(--slx-line); border-radius: var(--slx-radius);
  overflow: hidden; transition: box-shadow .2s ease, transform .2s ease;
}
.slx-course-card:hover { box-shadow: var(--slx-shadow); transform: translateY(-4px); }
.slx-course-card__media {
  position: relative;
  height: 190px;
  background: linear-gradient(135deg, var(--slx-blue-700), var(--slx-navy));
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.slx-course-card__media i { font-size: 3.4rem; color: rgba(255,255,255,.35); }
.slx-course-card__media img {
  width: 100%; height: 100%; object-fit: cover;
}
.slx-course-card__level {
  position: absolute; top: 14px; left: 14px;
  background: var(--slx-teal); color: var(--slx-navy);
  font-family: var(--slx-font-mono); font-size: .68rem; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}
.slx-course-card__body { padding: 20px; }
.slx-course-card__meta {
  display: flex; align-items: center; gap: 6px;
  font-size: .78rem; color: var(--slx-mist); margin-bottom: 10px;
}
.slx-course-card__body h3 { font-size: 1.08rem; margin-bottom: 8px; }
.slx-course-card__body p { font-size: .88rem; margin-bottom: 0; }

@media (max-width: 940px) { .slx-courses-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .slx-courses-grid { grid-template-columns: 1fr; } }

/* =========================================================
   Blog / noticias
   ========================================================= */
.slx-news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.slx-news-card {
  background: #fff; border: 1px solid var(--slx-line); border-radius: var(--slx-radius); overflow: hidden;
}
.slx-news-card__media {
  height: 180px;
  background: linear-gradient(135deg, var(--slx-blue-600), var(--slx-blue-900));
  display: flex; align-items: center; justify-content: center;
}
.slx-news-card__media i { font-size: 2.6rem; color: rgba(255,255,255,.35); }
.slx-news-card__body { padding: 22px; }
.slx-news-card__meta {
  display: flex; gap: 16px; font-size: .78rem; color: var(--slx-mist); margin-bottom: 10px;
  font-family: var(--slx-font-mono);
}
.slx-news-card__meta i { color: var(--slx-blue-600); margin-right: 4px; }
.slx-news-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.slx-news-card p { font-size: .88rem; margin-bottom: 14px; }
.slx-news-card__link { font-size: .84rem; font-weight: 600; color: var(--slx-blue-700); }
.slx-news-card__link i { margin-left: 4px; }

@media (max-width: 940px) { .slx-news-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .slx-news-grid { grid-template-columns: 1fr; } }

/* =========================================================
   Testimonios — carrusel con flechas
   ========================================================= */
.slx-testi-carousel { position: relative; max-width: 720px; margin: 0 auto; }
.slx-testi-slide { display: none; text-align: center; }
.slx-testi-slide.is-active { display: block; }
.slx-testi-slide .fa-quote-left { color: var(--slx-blue-100); font-size: 2.2rem; }
.slx-testi-slide p {
  font-size: 1.15rem; color: var(--slx-ink); max-width: 56ch; margin: 14px auto 20px;
}
.slx-testi-slide .slx-testi-stars { justify-content: center; display: flex; margin-bottom: 10px; }
.slx-testi-slide .slx-testi-person { justify-content: center; }
.slx-testi-carousel-nav {
  display: flex; justify-content: center; gap: 14px; margin-top: 26px;
}
.slx-testi-carousel-nav button {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--slx-line);
  background: #fff; color: var(--slx-blue-700); cursor: pointer;
}
.slx-testi-carousel-nav button:hover { background: var(--slx-blue-700); color: #fff; border-color: var(--slx-blue-700); }

/* =========================================================
   Newsletter
   ========================================================= */
.slx-newsletter {
  background: linear-gradient(120deg, var(--slx-blue-700), var(--slx-navy));
  color: #fff; border-radius: var(--slx-radius);
  padding: 50px 44px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.slx-newsletter h2 { color: #fff; font-size: 1.5rem; margin-bottom: 6px; }
.slx-newsletter p { color: #c3d1f0; margin: 0; }
.slx-newsletter form { display: flex; flex-wrap: wrap; gap: 10px; flex: 0 0 auto; }
.slx-newsletter input {
  padding: 13px 16px; border-radius: 999px; border: none; min-width: 260px;
  font-family: var(--slx-font-body);
}
.slx-newsletter input:focus { outline: 3px solid var(--slx-teal); }
.slx-newsletter .slx-form-msg { flex: 1 0 100%; margin: 0; }
.slx-newsletter .slx-form-msg.is-success { background: #e6f8f1; color: #0a7a54; }
.slx-newsletter .slx-form-msg.is-error { background: #fdecec; color: #b3261e; }

@media (max-width: 780px) {
  .slx-newsletter { flex-direction: column; text-align: center; padding: 36px 24px; }
  .slx-newsletter form { flex-direction: column; width: 100%; }
  .slx-newsletter input { min-width: 0; width: 100%; }
}

/* añadido imagen index */
.hero-panel {
    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 4 / 5;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #1e3a8a, #0a1128); /* fallback mientras carga */
}

.hero-panel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.hero-terminal {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 14px 18px;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    color: #e2e8f0;
}

.hero-terminal .terminal-prompt {
    display: block;
    color: #94a3b8;
}

.hero-terminal .terminal-response {
    display: block;
    font-weight: 700;
    color: #ffffff;
}

@media (max-width: 768px) {
    .hero-panel {
        max-width: 100%;
        aspect-ratio: 4 / 5;
    }
}

/* =========================================================
   Páginas legales (aviso legal, privacidad, cookies)
   ========================================================= */
.slx-legal { max-width: 760px; margin: 0 auto; }
.slx-legal h2 { font-size: 1.35rem; color: var(--slx-ink); margin-top: 2.2em; }
.slx-legal h2:first-child { margin-top: 0; }
.slx-legal h3 { font-size: 1.05rem; color: var(--slx-ink); margin-top: 1.6em; }
.slx-legal p, .slx-legal li { color: var(--slx-mist); line-height: 1.75; }
.slx-legal ul { margin: 0 0 1em; padding-left: 1.3em; list-style: disc; }
.slx-legal li { margin-bottom: .4em; }
.slx-legal strong { color: var(--slx-ink); }
.slx-legal table { width: 100%; border-collapse: collapse; margin: 1em 0 1.6em; font-size: .88rem; }
.slx-legal th, .slx-legal td { text-align: left; padding: 10px 12px; border: 1px solid var(--slx-line); }
.slx-legal th { background: var(--slx-blue-50); color: var(--slx-ink); }
.slx-legal .slx-legal__updated { font-size: .82rem; color: var(--slx-mist); margin-bottom: 2em; }
.slx-legal mark { background: #fff3cd; color: var(--slx-ink); padding: 0 3px; border-radius: 3px; }
