/* ==========================================================
   DESARROLLADORES - Documentación técnica
   Paleta de marca (misma de legalStyle.css / my_style.css)
========================================================== */

:root {
  --logi-deep: #1a0019;
  --logi-plum: #531351;
  --logi-purple: #520450;
  --logi-link: #630366;
  --logi-accent: #942f92;
  --logi-lila: #f7eef7;
  --logi-lila-border: #ead7ea;
  --docs-text: #3d3a40;
  --docs-muted: #6f6a73;
  --docs-border: #ececf0;
  --docs-code-bg: #1d1220;
  --docs-code-text: #f3e9f3;
  --docs-nav-offset: 110px;
}

/* ---------- HERO ---------- */

.docs-hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--logi-deep), var(--logi-plum));
  color: #fff;
  position: relative;
  overflow: hidden;
}

.docs-hero::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -160px;
  top: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(148, 47, 146, 0.35), transparent 70%);
  pointer-events: none;
}

.docs-hero .container {
  position: relative;
  z-index: 2;
}

.docs-breadcrumb {
  font-size: 14px;
  opacity: 0.85;
  margin-bottom: 18px;
}

.docs-breadcrumb a {
  color: #fff;
}

.docs-breadcrumb a:hover {
  color: #dfbcde;
  text-decoration: none;
}

.docs-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 18px;
}

.docs-hero h1 {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
}

.docs-hero p.lead {
  font-size: 18px;
  opacity: 0.92;
  max-width: 640px;
  line-height: 1.6;
  margin-bottom: 30px;
}

.docs-hero .btn-logi,
.docs-hero .btn-logi-outline {
  margin: 0 10px 10px 0;
}

/* ---------- TARJETAS DE RESUMEN ---------- */

.docs-highlights {
  margin-top: -48px;
  position: relative;
  z-index: 3;
}

.docs-highlight {
  background: #fff;
  border-radius: 18px;
  padding: 28px;
  height: 100%;
  border: 1px solid #f0f0f0;
  box-shadow: 0 14px 34px rgba(26, 0, 25, 0.08);
  transition: all 0.3s ease;
}

.docs-highlight:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(26, 0, 25, 0.12);
}

.docs-highlight-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--logi-lila);
  color: var(--logi-purple);
  font-size: 22px;
  margin-bottom: 16px;
}

.docs-highlight h3 {
  font-size: 19px;
  font-weight: 700;
  color: #222;
  margin-bottom: 8px;
}

.docs-highlight p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--docs-muted);
  margin: 0;
}

/* Tarjeta clicable (portada de la sección) */
a.docs-highlight {
  display: block;
  text-decoration: none;
}

a.docs-highlight:hover {
  text-decoration: none;
}

.docs-highlight-link {
  display: inline-block;
  margin-top: 18px;
  font-weight: 700;
  color: var(--logi-link);
}

/* ---------- LAYOUT ---------- */

.docs-body {
  padding: 70px 0 90px;
  background: #fff;
  color: var(--docs-text);
}

.docs-toc {
  position: sticky;
  top: var(--docs-nav-offset);
  max-height: calc(100vh - var(--docs-nav-offset) - 20px);
  overflow-y: auto;
  padding-right: 10px;
}

.docs-toc-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--docs-muted);
  margin: 22px 0 8px;
}

.docs-toc-title:first-child {
  margin-top: 0;
}

.docs-toc .nav-link {
  font-size: 14px;
  color: var(--docs-muted);
  padding: 5px 0 5px 14px;
  border-left: 2px solid var(--docs-border);
  transition: all 0.2s ease;
}

.docs-toc .nav-link:hover {
  color: var(--logi-link);
}

.docs-toc .nav-link.active {
  color: var(--logi-purple);
  font-weight: 700;
  border-left-color: var(--logi-accent);
}

/* ---------- CONTENIDO ---------- */

.docs-section {
  scroll-margin-top: var(--docs-nav-offset);
  padding-bottom: 28px;
  margin-bottom: 44px;
  border-bottom: 1px solid var(--docs-border);
}

.docs-section:last-child {
  border-bottom: none;
}

.docs-section-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--logi-accent);
  margin-bottom: 6px;
}

.docs-section h2 {
  font-size: 28px;
  font-weight: 700;
  color: #222;
  margin-bottom: 16px;
}

.docs-section h3 {
  font-size: 19px;
  font-weight: 700;
  color: #2b2b2b;
  margin: 32px 0 10px;
}

.docs-section p,
.docs-section li {
  font-size: 16px;
  line-height: 1.75;
  color: var(--docs-text);
}

.docs-section ul,
.docs-section ol {
  padding-left: 22px;
}

.docs-section li {
  margin-bottom: 10px;
}

.docs-section code {
  font-size: 0.88em;
  color: var(--logi-purple);
  background: var(--logi-lila);
  padding: 2px 6px;
  border-radius: 6px;
}

/* ---------- PASOS (INSTRUCTIVO) ---------- */

.docs-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: docs-step;
}

.docs-step {
  position: relative;
  padding: 0 0 36px 64px;
  counter-increment: docs-step;
}

.docs-step::before {
  content: counter(docs-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5a1450, var(--logi-accent));
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(90, 20, 80, 0.35);
}

.docs-step::after {
  content: "";
  position: absolute;
  left: 20px;
  top: 46px;
  bottom: 6px;
  width: 2px;
  background: var(--logi-lila-border);
}

.docs-step:last-child::after {
  display: none;
}

.docs-step h3 {
  margin-top: 6px;
}

/* Captura de pantalla (con marcador mientras no exista el archivo) */
/* El marco se ajusta al ancho real de la captura: nunca la agranda (una
   captura pequeña, como la del menú, se vería pixelada a ancho completo). */
.docs-shot {
  display: inline-block;
  vertical-align: top;
  max-width: 100%;
  margin: 14px 0 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--docs-border);
  box-shadow: 0 12px 30px rgba(26, 0, 25, 0.08);
  background: #fafafa;
}

.docs-shot img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* width 0 + min-width 100%: la leyenda toma el ancho de la imagen sin ensanchar el marco */
.docs-shot figcaption {
  width: 0;
  min-width: 100%;
  box-sizing: border-box;
}

.docs-shot figcaption {
  font-size: 13px;
  color: var(--docs-muted);
  padding: 10px 16px;
  border-top: 1px solid var(--docs-border);
  background: #fff;
}

.docs-shot.is-missing img {
  display: none;
}

.docs-shot.is-missing::before {
  content: "Captura pendiente: " attr(data-file);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  font-size: 14px;
  color: var(--logi-link);
  background: repeating-linear-gradient(
    45deg,
    var(--logi-lila),
    var(--logi-lila) 12px,
    #fff 12px,
    #fff 24px
  );
}

/* ---------- CÓDIGO ---------- */

.docs-code {
  position: relative;
  margin: 12px 0 18px;
}

.docs-code pre {
  background: var(--docs-code-bg);
  color: var(--docs-code-text);
  border-radius: 12px;
  padding: 18px 54px 18px 20px;
  font-size: 13.5px;
  line-height: 1.6;
  overflow-x: auto;
  margin: 0;
  border-left: 4px solid var(--logi-accent);
}

.docs-code pre code {
  color: inherit;
  background: none;
  padding: 0;
  font-size: inherit;
}

.docs-code-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--docs-muted);
  margin: 14px 0 -6px;
}

.docs-copy {
  position: absolute;
  top: 10px;
  right: 10px;
  border: none;
  border-radius: 8px;
  padding: 5px 9px;
  font-size: 13px;
  color: #dfbcde;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.2s ease;
}

.docs-copy:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.docs-copy.is-copied {
  color: #9be3b0;
}

/* ---------- TABLAS ---------- */

.docs-table-wrap {
  overflow-x: auto;
  margin: 12px 0 22px;
  border: 1px solid var(--docs-border);
  border-radius: 12px;
}

.docs-table {
  width: 100%;
  margin: 0;
  font-size: 14.5px;
  border-collapse: collapse;
}

.docs-table th {
  background: var(--logi-lila);
  color: var(--logi-purple);
  font-weight: 700;
  padding: 10px 14px;
  text-align: left;
  white-space: nowrap;
}

.docs-table td {
  padding: 10px 14px;
  border-top: 1px solid var(--docs-border);
  vertical-align: top;
  color: var(--docs-text);
  line-height: 1.55;
}

.docs-table td:first-child {
  white-space: nowrap;
}

.docs-table td.nested {
  padding-left: 34px;
  position: relative;
}

.docs-table td.nested::before {
  content: "└";
  position: absolute;
  left: 16px;
  color: #c9b3c9;
}

.docs-type {
  font-family: SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  color: var(--docs-muted);
  white-space: nowrap;
}

/* ---------- AVISOS ---------- */

.docs-callout {
  border-radius: 12px;
  padding: 16px 18px 16px 52px;
  margin: 18px 0;
  position: relative;
  font-size: 15px;
  line-height: 1.65;
}

.docs-callout::before {
  font-family: FontAwesome;
  position: absolute;
  left: 18px;
  top: 15px;
  font-size: 18px;
}

.docs-callout p:last-child {
  margin-bottom: 0;
}

.docs-callout-info {
  background: var(--logi-lila);
  border-left: 4px solid var(--logi-purple);
  color: #3a1f39;
}

.docs-callout-info::before {
  content: "\f05a";
  color: var(--logi-purple);
}

.docs-callout-warning {
  background: #fff7e8;
  border-left: 4px solid #e0a020;
  color: #5c4310;
}

.docs-callout-warning::before {
  content: "\f071";
  color: #e0a020;
}

/* ---------- ETIQUETAS ---------- */

.docs-badge {
  display: inline-block;
  font-family: SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--logi-purple);
  background: var(--logi-lila);
  border: 1px solid var(--logi-lila-border);
  border-radius: 8px;
  padding: 3px 10px;
  margin-right: 6px;
}

.docs-endpoint {
  display: inline-flex;
  align-items: center;
  font-family: SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 15px;
  background: var(--docs-code-bg);
  color: var(--docs-code-text);
  border-radius: 10px;
  padding: 8px 14px;
  margin: 4px 0 14px;
}

.docs-method {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--logi-accent);
  border-radius: 6px;
  padding: 2px 8px;
  margin-right: 10px;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 991px) {
  .docs-hero {
    padding: 120px 0 80px;
  }

  .docs-hero h1 {
    font-size: 34px;
  }

  .docs-toc {
    position: static;
    max-height: none;
    background: #fafafa;
    border: 1px solid var(--docs-border);
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 36px;
  }
}

@media (max-width: 767px) {
  .docs-hero {
    padding: 110px 0 70px;
  }

  .docs-hero h1 {
    font-size: 28px;
  }

  .docs-hero p.lead {
    font-size: 16px;
  }

  .docs-highlights .col-md-4 {
    margin-bottom: 16px;
  }

  .docs-section h2 {
    font-size: 24px;
  }

  .docs-step {
    padding-left: 54px;
  }
}
