

:root {
  --bg: #020617;
  --bg-alt: #020617;
  --panel: #020617;
  --panel-elevated: #020617;
  --panel-border: rgba(148, 163, 184, 0.18);
  --text: #e2e8f0;
  --text-dim: #94a3b8;
  --accent: #22c55e;
  --accent-soft: rgba(34, 197, 94, 0.12);
  --danger: #ef4444;
  --danger-soft: rgba(239, 68, 68, 0.14);

  --radius-lg: 18px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.8);

  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --nav-height: 64px;              
  --shell-offset: calc(var(--nav-height) + 2rem);
}


*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
  font-family: var(--font-sans);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at top, #0f172a 0, #020617 55%, #020617 100%);
  background-attachment: fixed;
  color: var(--text);
  overscroll-behavior: none;
  scroll-behavior: smooth;
}

body {
  padding-top: var(--nav-height);
}


a {
  color: inherit;
  text-decoration: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 8px;
}
html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 999px;
}
html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.7);
  border-radius: 999px;
}
html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
  background: rgba(226, 232, 240, 0.9);
}

html {
  overflow-y: scroll;        
  scrollbar-gutter: stable;    

}
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: radial-gradient(circle at top left,
    rgba(15, 23, 42, 0.98),
    rgba(15, 23, 42, 0.92)
  );
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  animation: nav-drop 0.45s ease-out;
}



@keyframes nav-drop {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.navbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0.7rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .navbar-inner {
    padding-inline: 1.25rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #22c55e, #166534 60%, #020617 100%);
  border: 1px solid rgba(74, 222, 128, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 1px rgba(21, 128, 61, 0.4),
    0 12px 30px rgba(15, 23, 42, 0.9);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-brand-text-main {
  font-size: 0.96rem;
  font-weight: 600;
}
.nav-brand-text-sub {
  font-size: 0.8rem;
  margin-top: 5px;
  color: var(--text-dim);
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.82rem;
}
.nav-link {
  position: relative;
  padding: 0.32rem 0.95rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  color: var(--text-dim);
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  background: transparent;
}

.nav-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.08) 0%,
    rgba(59, 130, 246, 0.05) 100%
  );
  border-radius: var(--radius-pill);
  transform: translateY(100%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: -1;
}
.nav-link::after {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.4),
    rgba(59, 130, 246, 0.3)
  );
  border-radius: var(--radius-pill);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -2;
}

.nav-link-span {
  position: relative;
  display: inline-block;
  transition: transform 0.3s ease;
}

.nav-link:hover {
  color: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 
    0 8px 20px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(34, 197, 94, 0.1);
}
.nav-link:hover::before {
  opacity: 1;
  transform: scale(1);
}


.nav-link:hover::before {
  transform: translateY(0);
  opacity: 1;
}

.nav-link:hover::after {
  opacity: 1;
}

.nav-link:hover span {
  transform: scale(1.05);
}

@keyframes subtlePulse {
  0%, 100% {
    box-shadow: 
      0 8px 20px rgba(0, 0, 0, 0.25),
      0 0 0 1px rgba(34, 197, 94, 0.1);
  }
  50% {
    box-shadow: 
      0 8px 24px rgba(0, 0, 0, 0.3),
      0 0 0 1px rgba(34, 197, 94, 0.15),
      0 0 20px rgba(34, 197, 94, 0.05);
  }
}

.nav-link:hover {
  animation: subtlePulse 2s infinite;
}

.nav-link--primary {
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.15),
    rgba(22, 163, 74, 0.08)
  );
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: var(--accent);
  position: relative;
  overflow: hidden;
}

.nav-link--primary::before {
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.2),
    rgba(59, 130, 246, 0.1)
  );
  transform: translateY(0);
  opacity: 1;
}

.nav-link--primary::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(34, 197, 94, 0.1) 50%,
    transparent 100%
  );
  transform: rotate(30deg) translateY(-200%);
  animation: shine 3s infinite linear;
  opacity: 0;
  z-index: -1;
}

@keyframes shine {
  0% {
    transform: rotate(30deg) translateY(-200%);
    opacity: 0;
  }
  10%, 90% {
    opacity: 0.3;
  }
  100% {
    transform: rotate(30deg) translateY(200%);
    opacity: 0;
  }
}

.nav-link--primary:hover {
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.25),
    rgba(22, 163, 74, 0.15)
  );
  border-color: rgba(34, 197, 94, 0.7);
  box-shadow: 
    0 10px 25px rgba(34, 197, 94, 0.15),
    inset 0 0 20px rgba(34, 197, 94, 0.05);
  animation: primaryPulse 2s infinite;
}

@keyframes primaryPulse {
  0%, 100% {
    box-shadow: 
      0 10px 25px rgba(34, 197, 94, 0.15),
      inset 0 0 20px rgba(34, 197, 94, 0.05);
  }
  50% {
    box-shadow: 
      0 12px 28px rgba(34, 197, 94, 0.25),
      inset 0 0 20px rgba(34, 197, 94, 0.08),
      0 0 30px rgba(34, 197, 94, 0.1);
  }
}

.nav-link span {
  display: inline-block;
}


.nav-link--primary {
  border-color: rgba(34, 197, 94, 0.85);
  background: radial-gradient(circle at top left,
    rgba(34, 197, 94, 0.18),
    rgba(15, 23, 42, 0.98)
  );
  color: var(--accent);
}


.layout {
  max-width: 1240px;
  margin: 0 auto;
  padding: 2rem 2rem 3rem;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  column-gap: 2.5rem;
  align-items: flex-start;
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 1.5rem;
    padding: 1.5rem 1.25rem 2.5rem;
  }
}


.sidebar {
  position: sticky;
  top: var(--shell-offset);
  align-self: flex-start;
  background: rgba(15, 23, 42, 0.96);
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  padding: 1rem 0.9rem 1.2rem;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.85);
}


@media (max-width: 900px) {
  .sidebar {
    position: static;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.7);
  }
}

.sidebar-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  padding: 0.1rem 0.9rem 0.35rem;
}

.sidebar-group {
  margin-top: 0.3rem;
  padding-bottom: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.sidebar-link {
  position: relative;
  display: block;
  padding: 0.42rem 0.95rem 0.42rem 1.6rem;
  font-size: 0.86rem;
  color: var(--text-dim);
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.sidebar-link::before {
  content: "";
  position: absolute;
  left: 0.7rem;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.7);
  transform: translateY(-50%);
  transition: background 0.16s ease, width 0.16s ease, height 0.16s ease;
}

.sidebar-link:hover {
  color: var(--accent);
  background: rgba(15, 23, 42, 0.98);
  border-color: rgba(34, 197, 94, 0.4);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.9);
}

.sidebar-link:hover::before {
  background: var(--accent);
  width: 6px;
}

.sidebar-link--active {
  color: var(--accent);
  background: rgba(22, 163, 74, 0.08);
  border-color: rgba(34, 197, 94, 0.9);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.9);
}

.sidebar-link--active::before {
  background: var(--accent);
  width: 6px;
  height: 6px;
}


.content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.page-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.page-kicker {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.page-title {
  font-size: 1.9rem;
  font-weight: 650;
}

.page-lead {
  font-size: 0.98rem;
  color: var(--text-dim);
  max-width: 640px;
}

.section {
  scroll-margin-top: var(--shell-offset); /* antes tenías 96px fijo */
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding-top: 0.3rem;
  border-top: 1px solid rgba(30, 41, 59, 0.8);
}


.section:first-of-type {
  border-top: none;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.section-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-dim);
}

.section-title {
  font-size: 1.2rem;
  font-weight: 600;
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--text-dim);
  max-width: 640px;
}

.section-body {
  background: rgba(15, 23, 42, 0.97);
  border-radius: 18px;
  border: 1px solid rgba(51, 65, 85, 0.9);
  padding: 1.3rem 1.4rem 1.35rem;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.85);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.12s ease,
    background 0.18s ease;
  font-size: 0.95rem;
}

.section-body:hover {
  border-color: rgba(148, 163, 184, 0.6);
  background: radial-gradient(circle at top left,
    rgba(148, 163, 184, 0.12),
    rgba(15, 23, 42, 0.98)
  );
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.95);
  transform: translateY(-1px);
}

.section-body p {
  line-height: 1.6;
}

.section-body ul {
  margin-top: 0.45rem;
  padding-left: 1.1rem;
}
.section-body li + li {
  margin-top: 0.25rem;
}

.text-muted {
  color: var(--text-dim);
}



.code-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
  margin-top: 0.7rem;
  margin-bottom: 0.2rem;
}

.code-block {
  margin-top: 0.2rem;
  margin-bottom: 0.8rem;
  padding: 10px 12px;
  border-radius: 10px;
  background: #020617;
  border: 1px solid #111827;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 0.84rem;
  line-height: 1.5;
  overflow-x: auto;
  white-space: pre;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.7) rgba(15, 23, 42, 0.9);
}

.code-block::-webkit-scrollbar {
  height: 4px;
}
.code-block::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 999px;
}
.code-block::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.7);
  border-radius: 999px;
}
.code-block::-webkit-scrollbar-thumb:hover {
  background: rgba(226, 232, 240, 0.9);
}



.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.9);
}



.page-footer {
  margin-top: 1.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.team-header-intro {
  margin-bottom: 0.8rem;
}

.team-grid {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  margin-top: 0.6rem;
}

.team-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  height: 100%;
}

.team-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.team-avatar {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(148, 163, 184, 0.65);
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.9),
    0 10px 26px rgba(15, 23, 42, 0.85);
}

.team-avatar-fallback {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.3rem;
  background: radial-gradient(
    circle at 30% 20%,
    #22c55e,
    #0f172a 60%,
    #020617 100%
  );
  border: 1px solid rgba(74, 222, 128, 0.8);
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.9),
    0 10px 26px rgba(15, 23, 42, 0.85);
  color: #bbf7d0;
}

.team-name {
  font-size: 1.02rem;
  font-weight: 600;
}

.team-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.95);
  color: #e5e7eb;
}

.team-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.9);
}

.team-list {
  margin-top: 0.4rem;
  padding-left: 1.1rem;
  font-size: 0.9rem;
}

.team-list li + li {
  margin-top: 0.2rem;
}

.team-footer-note {
  margin-top: 0.9rem;
  font-size: 0.8rem;
  color: #9ca3af;
}

main.layout.page-fade-in {
  animation: pageFadeIn 180ms ease-out;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

html {
  scroll-behavior: smooth;
}

.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.65);
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  display: block;
}






