/* =========================
   🌌 BASE — FONDO Y TEXTO
========================= */

body {
  margin: 10px;
  padding: 10px;

  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 18px;
  line-height: 1.7;

  /* #0b0f17 #ededed */
  /* #202b41 #fdfdfd */
  background: #202b41;
  /* oscuro elegante, no negro puro #0b0f17 */
  color: #fdfdfd;
  /* texto principal #ededed */

  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* =========================
   📝 TEXTO
========================= */

p {
  color: #d1d1d1;
  margin-bottom: 16px;
  font-weight: 500;
}

h1,
h2,
h3,
h4 {
  color: #f0f6fc;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 32px;
  margin-bottom: 12px;
}

/* =========================
   🔗 LINKS (CRÍTICO SEO/UX)
========================= */

a {
  color: #58a6ff;
  /* azul moderno tipo GitHub */
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: #79c0ff;
  text-decoration: underline;
}

a:visited {
  color: #8ab4f8;
}

a:active {
  color: #1f6feb;
}

/* =========================
   📌 LISTAS (como tu sidebar)
========================= */

ul {
  padding-left: 20px;
}

li {
  margin-bottom: 6px;
  color: #c9d1d9;
}

/* =========================
   Explore Tools (botones de acción)
========================= */
header {
  display: flex;
  align-items: center;
}

.cta-group {
  margin-left: auto;
  /* 🔥 esto lo empuja a la derecha */
  display: flex;
  align-items: center;
  gap: 10px;
}

/* =========================
   🔘 BOTONES HEADER
========================= */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 8px 16px;
  border-radius: 10px;

  font-size: 13px;
  font-weight: 600;

  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fefefe;

  text-decoration: none;
  border: none;

  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #4f8ef7, #3b82f6);
}

/* Docs */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 8px 14px;
  border-radius: 10px;

  font-size: 13px;
  font-weight: 500;

  background: rgba(255, 255, 255, 0.04);
  color: #c9d1d9;

  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.1);

  transition: all 0.2s ease;
}

/* =========================
   🔝 HEADER LEFT
========================= */

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-info {
  display: flex;
  flex-direction: column;
}

/* fila superior */
.header-top-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* logo */
.logo {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

.logo a {
  color: #7aa2f7;
  text-decoration: none;
}

.logo a:hover {
  color: #9bbcff;
}

/* badge */
.badge {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 20px;

  background: rgba(79, 142, 247, 0.12);
  color: #7aa2f7;
}

/* subtitle */
.subtitle {
  margin: 2px 0 0 0;
  font-size: 13px;
  color: #9fb3c8;
}

/* =========================
   ☰ SIDEBAR TRIGGER
========================= */

.sb-trigger {
  width: 36px;
  height: 36px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);

  background: rgba(255, 255, 255, 0.03);
  color: #c9d1d9;

  cursor: pointer;
  font-size: 16px;

  transition: all 0.15s ease;
}

.sb-trigger:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

/* ocultar sidebar por defecto */

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 420px;

  background: var(--bg-sidebar);
  /* 🔥 clave */
  border-right: 1px solid var(--border);

  transform: translateX(-100%);

  z-index: 1000;
  overflow: hidden;

  display: flex;
  flex-direction: column;

  transition: left 0.3s ease;

}


.sidebar-nav {
    flex: 1;

    min-height: 0;

    overflow-y: auto;

    overflow-x: hidden;
}


/* =========================================================
    SCROLLBAR
 ========================================================= */

.sidebar::-webkit-scrollbar,
textarea::-webkit-scrollbar {
    width: 10px;
}

.sidebar::-webkit-scrollbar-track,
textarea::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb,
textarea::-webkit-scrollbar-thumb {
    background:
        rgba(255, 255, 255, 0.12);

    border-radius: 20px;
}

.sidebar::-webkit-scrollbar-thumb:hover,
textarea::-webkit-scrollbar-thumb:hover {
    background:
        rgba(255, 255, 255, 0.22);
}


/* mostrar cuando JS activa */
.sidebar.open {
  transform: translateX(0);
}

/* ocultar árbol */
.tree ul {
  display: none;
}

/* mostrar solo expandido */
.tree-item.expanded>ul {
  display: block;
}

/* border last 1px solid #7aa2f7; */
.tree-toggle {
  background-color: rgba(0, 0, 0, 0.1);
  color: #7aa2f7;
  font-size: 18px;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 4px;
  transform: translateX(-6px);
}

:root {
  --bg-main: #0b0f17;
  --bg-sidebar: #0f1623;
  /* 🔥 un poco diferente */
  --border: rgba(255, 255, 255, 0.06);
}

.tree,
.tree ul {
  list-style: none;
  margin: 0;
}

.tree ul {
  padding-left: 14px;
}

.tree-item {
  position: relative;
}

.tree ul {
  position: relative;
}

.tree ul::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.06);
}

.tree-item::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 12px;
  width: 8px;
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
}

.tree-item::before {
  opacity: 0.5;
}

.tree-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tree-link {
  position: relative;
  padding-left: 14px;
}

.tree-item.has-children>.tree-link::before {
  content: ">";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: #7aa2f7;
}

.tree-item.expanded>.tree-link::before {
  content: "v";
}

.tree-item:not(.has-children)>.tree-link::before {
  content: "";
}

.tree ul {
  position: relative;
  padding-left: 14px;
}

.tree-item.active>.tree-link {
  color: #ffffff;
  font-weight: 600;
}

.tree-item:has(.active)::before {
  left: -10px;
  top: 15px;
  width: 10px;
  height: 4px;
  background: #ffffff;
}

/* ocultar items */
.tree-item.hidden {
  display: none;
}

/* resaltar coincidencia */
.tree-item.match>.tree-link {
  color: #7aa2f7;
  font-weight: 600;
}


/* LEGAL AND TRUST */
.legal-content {
  margin: 0 auto;
  line-height: 1.6;
}


/* New view, 3 columns */

.layout {
  display: grid;
  grid-template-columns: 1fr minmax(0, 1000px) 1fr;
  gap: 24px;
}

/* Centro real */
.content-center {
  width: 100%;
}

/* Ads laterales */
.ad-left,
.ad-right {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* Opcional: sticky ads */
.ad-left,
.ad-right {
  position: sticky;
  top: 80px;
  height: fit-content;
}



@media (max-width: 1200px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .ad-left,
  .ad-right {
    display: none;
  }
}





/* --------------------------------------------- */
/* --------------------------------------------- */
/* --------------------------------------------- */
/* ------------------- TOOLS ------------------- */

.tool-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

/* 🔥 TEXTO */
.tool-title {
  color: #111111;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.tool-description {
  color: #555555;   /* ← clave */
  font-size: 14px;
  margin-bottom: 20px;
}

/* 🔥 INPUTS */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.field label {
  font-size: 13px;
  color: #353535;
}

.group.horizontal {
  display: flex;
  flex-direction: row;
  gap: 16px;
}

.group.vertical {
  display: flex;
  flex-direction: column;
}

.input-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 8px 10px;
  background: #fafafa;
}

.input-wrapper span {
  margin-right: 6px;
  color: #686868;
}

.input-wrapper input {
  border: none;
  outline: none;
  width: 100%;
  background: transparent;
}

/* 🔥 BOTÓN */
button {
  background: #2563eb;
  color: #ffffff;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
}

button:hover {
  background: #1d4ed8;
}

/* 🔥 OUTPUT */
.output {
  font-weight: 600;
  font-size: 16px;
  color: #181818;
}

.output.highlight {
  color: #16a34a;
}

/* 🔥 ESPACIADO */
.tool-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tool-container {
  display: flex;
  justify-content: center;
  margin: 40px 0;
}


.tool-header {
  margin-bottom: 20px;
}

.input-large .input-control {
  font-size: 16px;
  padding: 12px;
}

.field.input {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field.input label {
  font-size: 13px;
  color: #333;
}

.input-control {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
}

.input-control:focus {
  background: #fff;
}

/* ----------------- TOOLS END ----------------- */
/* --------------------------------------------- */
/* --------------------------------------------- */
/* --------------------------------------------- */



.line-svg {
  stroke: rgb(255, 255, 255);
  stroke-width: 2;
}

polygon {
  fill: #ffffff;
  stroke: #ffffff;
  stroke-width: 2;
}

.text-svg {
  color: #ffffff;
  background: transparent;
  font-size: 14px;
  stroke-width: 2;
}


