@font-face {
  font-family: 'League Spartan';
  font-style: normal;
  font-weight: 300 900; /* Esto cubre todos los pesos si es variable */
  font-display: swap;   /* Evita texto invisible [cite: 1] */
  src: url('../fonts/league-spartan-main.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  /* Brand palette */
  --bg-deep:    #0f131b;
  --bg:         #0f131b;
  --bg2:        #0f131b;
  --bg3:        #0f131b;
  --surface:    #131f42;
  --border:     rgba(255,255,255,0.07);
  --border-glow:rgba(0,102,255,0.25);

  /* Acentos */
  --blue:       #0050ff;
  --blue-light: #3b82ff;
  --blue-glow:  rgba(0,80,255,0.18);
  --orange:     #f97316;
  --violet:     #8b5cf6;
  --cyan:       #06d6e0;

  --text:       #dce8ff;
  --text-muted: #6b85b8;
  --text-dim:   #2d4070;
  --white:      #ffffff;

  --font: 'League Spartan', sans-serif;
  --radius: 14px;
}



*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* LOGO */
.logo-svg { display:flex; align-items:center; gap:10px; text-decoration:none; }
.logo-wordmark {
  font-family: var(--font);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--white);
  letter-spacing: 0.05em;
}

/* NAV */
nav {
  position: fixed;
  top:0; left:0; right:0;
  z-index: 200;
  height: 68px;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0f131b;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
  background: var(--blue) !important;
  color: var(--white) !important;
  padding: 0.45rem 1.2rem !important;
  border-radius: 8px;
  transition: all 0.2s !important;
}
.nav-cta:hover { background: var(--blue-light) !important; transform: translateY(-1px); box-shadow: 0 4px 20px var(--blue-glow); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s; }

.mobile-menu {
  display: none;
  position: fixed;
  top: 68px; left:0; right:0;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 5%;
  flex-direction: column;
  gap: 1rem;
  z-index: 199;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

/* MARQUEE */
.marquee-wrap { padding: 20px 0; background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow: hidden; position: relative; z-index: 2; }
.marquee-track { display:flex; gap:2.5rem; white-space:nowrap; animation: marquee 22s linear infinite; width: max-content; }
.marquee-item { display:flex; align-items:center; gap:0.6rem; font-size:0.8rem; font-weight:700; color:var(--text-main, #ffffff); letter-spacing:0.08em; text-transform:uppercase; }
.mdot { width:4px;height:4px;background:var(--blue-light);border-radius:50%; }
@keyframes marquee { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* COMPONENTES GLOBALES */
section { position:relative; z-index:1; }
.container { max-width:1200px; margin:0 auto; padding:0 5%; }
.section-pad { padding:90px 0; }

.tag { display:inline-block; font-size:0.72rem; font-weight:800; letter-spacing:0.14em; text-transform:uppercase; color:var(--blue-light); margin-bottom:0.85rem; }
.section-title { font-size: clamp(1.9rem,3.5vw,2.8rem); font-weight:900; letter-spacing:-0.025em; color:var(--white); line-height:1.08; margin-bottom:0.9rem; }
.section-desc { color:var(--text-muted); font-size:0.95rem; max-width:500px; line-height:1.7; font-weight:400; }

.btn-primary { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--blue); color: var(--white); padding: 0.85rem 1.75rem; border-radius: 10px; font-weight: 700; font-size: 0.95rem; font-family: var(--font); text-decoration: none; letter-spacing: 0.02em; transition: all 0.25s;marg }
.btn-primary:hover { background: var(--blue-light); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,80,255,0.4); }

.btn-ghost { display: inline-flex; align-items: center; gap: 0.5rem; background: transparent; color: var(--text); padding: 0.85rem 1.75rem; border-radius: 10px; font-weight: 600; font-size: 0.95rem; font-family: var(--font); text-decoration: none; border: 1px solid var(--border); transition: all 0.25s; }
.btn-ghost:hover { border-color: rgba(255,255,255,0.18); background: rgba(255,255,255,0.04); }

/* FOOTER */
footer { background:var(--bg2); border-top:1px solid var(--border); padding:3rem 5%; position:relative; z-index:1; }
.footer-inner { max-width:1200px; margin:0 auto; display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:3rem; }
.footer-brand p { color:var(--text-muted); font-size:0.85rem; line-height:1.7; margin-top:0.75rem; max-width:270px; font-weight:400; }
.footer-col h5 { font-size:0.72rem; font-weight:900; color:var(--white); letter-spacing:0.12em; text-transform:uppercase; margin-bottom:1rem; }
.footer-col a { display:block; color:var(--text-muted); text-decoration:none; font-size:0.875rem; font-weight:500; margin-bottom:0.55rem; transition:color 0.2s; }
.footer-col a:hover { color:var(--text); }
.footer-bottom { max-width:1200px; margin:2rem auto 0; padding-top:1.75rem; border-top:1px solid var(--border); display:flex; justify-content:space-between; align-items:center; font-size:0.78rem; color:var(--text-main, #ffffff); font-weight:500; }

/* ANIMACIONES */
.reveal { opacity:0; transform:translateY(22px); transition:opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity:1; transform:translateY(0); }

@media (max-width:900px) {
  .nav-links { display:none; }
  .hamburger { display:flex; }
  .footer-inner { grid-template-columns:1fr 1fr; gap:2rem; }
  .footer-bottom { flex-direction:column; gap:0.5rem; text-align:center; }
}
@media (max-width:600px) {
  .footer-inner { grid-template-columns:1fr; }
}

.wsp-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  z-index: 9999;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wsp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}

.wsp-btn img {
  width: 34px;
  height: 34px;
}
/* Estilos de la Terminal IDE */
    .ide-window {
      background: #0d1117;
      border: 1px solid #30363d;
      border-radius: 10px;
      overflow: hidden;
      box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 20px rgba(139, 92, 246, 0.1);
      font-family: 'Fira Code', 'Courier New', Courier, monospace;
      width: 100%;
      max-width: 500px;
      margin: 0 auto;
    }
    .ide-header {
      background: #161b22;
      padding: 0.75rem 1rem;
      display: flex;
      align-items: center;
      border-bottom: 1px solid #30363d;
    }
    .ide-buttons {
      display: flex;
      gap: 6px;
    }
    .ide-buttons span {
      width: 12px;
      height: 12px;
      border-radius: 50%;
    }
    .ide-buttons .close { background: #ff5f56; }
    .ide-buttons .minimize { background: #ffbd2e; }
    .ide-buttons .maximize { background: #27c93f; }
    .ide-title {
      color: #8b949e;
      font-size: 0.8rem;
      margin-left: auto;
      margin-right: auto;
      padding-right: 40px; /* Para centrar compensando los botones */
    }
    .ide-body {
      display: flex;
      padding: 1rem 0;
      min-height: 280px;
    }
    .line-numbers {
      display: flex;
      flex-direction: column;
      padding: 0 1rem;
      color: #484f58;
      font-size: 0.85rem;
      text-align: right;
      user-select: none;
      border-right: 1px solid #30363d;
    }
    .ide-body pre {
      margin: 0;
      padding: 0 1rem;
      color: #c9d1d9;
      font-size: 0.85rem;
      line-height: 1.5;
      white-space: pre-wrap;
      word-break: break-all;
    }
    /* Colores de sintaxis tipo neón */
    .token-keyword { color: #ff7b72; }
    .token-function { color: #d2a8ff; }
    .token-string { color: #a5d6ff; }
    .token-comment { color: #8b949e; font-style: italic; }
    .token-success { color: #3fb950; font-weight: bold; }
    
    .cursor {
      display: inline-block;
      width: 8px;
      height: 15px;
      background-color: #06d6e0;
      animation: blink 1s step-end infinite;
      vertical-align: middle;
      margin-left: 2px;
    }
    @keyframes blink {
      0%, 100% { opacity: 1; }
      50% { opacity: 0; }
    }

    /* =========================================
   SECCIÓN FAQ & TERMINAL IDE
========================================= */

/* Estructura del Wrapper y Acordeón */
.faq-wrapper {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: start;
}
.faq-left-side {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.faq-item {
  cursor: pointer;
  background: var(--surface) !important;
  margin: 0 !important;
  padding: 1.25rem 1.5rem !important;
  transition: border-color 0.3s ease, transform 0.3s ease !important;
  border: 1px solid var(--border);
}
.faq-item[open] {
  border-color: rgba(139, 92, 246, 0.4) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.faq-item summary {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--white);
  outline: none;
  list-style: none;
  position: relative;
  padding-right: 2rem;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--blue-light);
  transition: transform 0.3s ease;
}
.faq-item[open] summary::after {
  content: '−';
  transform: translateY(-50%) rotate(180deg);
  color: #f97316;
}
.faq-content {
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  margin-top: 0.75rem;
}
.faq-content p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
}

/* Panel Visual Derecho: ESTILOS DE LA TERMINAL */
.faq-right-side {
  position: sticky;
  top: 120px;
}
.ide-window {
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 20px rgba(139, 92, 246, 0.1);
  font-family: 'Fira Code', 'Courier New', Courier, monospace;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}
.ide-header {
  background: #161b22;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #30363d;
}
.ide-buttons {
  display: flex;
  gap: 6px;
}
.ide-buttons span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.ide-buttons .close { background: #ff5f56; }
.ide-buttons .minimize { background: #ffbd2e; }
.ide-buttons .maximize { background: #27c93f; }
.ide-title {
  color: #8b949e;
  font-size: 0.8rem;
  margin-left: auto;
  margin-right: auto;
  padding-right: 40px; 
}
.ide-body {
  display: flex;
  padding: 1rem 0;
  min-height: 280px;
}
.line-numbers {
  display: flex;
  flex-direction: column;
  padding: 0 1rem;
  color: #484f58;
  font-size: 0.85rem;
  text-align: right;
  user-select: none;
  border-right: 1px solid #30363d;
}
.ide-body pre {
  margin: 0;
  padding: 0 1rem;
  color: #c9d1d9;
  font-size: 0.85rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-all;
}

/* Colores de sintaxis tipo neón para el JS */
.token-keyword { color: #ff7b72; }
.token-function { color: #d2a8ff; }
.token-string { color: #a5d6ff; }
.token-comment { color: #8b949e; font-style: italic; }
.token-success { color: #3fb950; font-weight: bold; }

.cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background-color: #06d6e0;
  animation: blink 1s step-end infinite;
  vertical-align: middle;
  margin-left: 2px;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Responsividad */
@media (max-width: 992px) {
  .faq-wrapper {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .faq-right-side {
    position: static;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
  }
}