
/* Biblioteca Oficial GLOBWSY */
.info-library {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

.info-hero {
  padding: 64px 28px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(14, 24, 45, 0.96), rgba(40, 92, 86, 0.92));
  color: #fff;
  text-align: center;
  margin-bottom: 32px;
}

.info-hero .eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .85;
}

.info-hero h1 {
  font-size: clamp(2.3rem, 6vw, 4.8rem);
  line-height: 1;
  margin: 0 0 20px;
}

.info-hero p {
  max-width: 820px;
  margin: 12px auto 0;
  font-size: 1.1rem;
  line-height: 1.7;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 34px 0;
}

.info-card,
.info-section {
  background: #ffffff;
  border: 1px solid rgba(20, 30, 45, .08);
  box-shadow: 0 18px 50px rgba(15, 23, 42, .08);
  border-radius: 26px;
  padding: 28px;
}

.info-card h2,
.info-section h2 {
  margin-top: 0;
  color: #102033;
}

.info-card ul,
.info-section ol {
  padding-left: 20px;
  line-height: 1.8;
}

.info-section {
  margin-top: 24px;
}

.info-section p {
  line-height: 1.8;
  color: #405064;
}

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

  .info-hero {
    padding: 44px 20px;
  }
}

/* Biblioteca Oficial GLOBWSY */
.info-library {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

.info-hero {
  padding: 64px 28px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(14, 24, 45, 0.96), rgba(40, 92, 86, 0.92));
  color: #fff;
  text-align: center;
  margin-bottom: 32px;
}

.info-hero h1 {
  font-size: clamp(2.3rem, 6vw, 4.8rem);
  line-height: 1;
  margin: 0 0 20px;
}

.info-hero p {
  max-width: 820px;
  margin: 12px auto 0;
  font-size: 1.1rem;
  line-height: 1.7;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 34px 0;
}

.info-card,
.info-section {
  background: #ffffff;
  border: 1px solid rgba(20, 30, 45, .08);
  box-shadow: 0 18px 50px rgba(15, 23, 42, .08);
  border-radius: 26px;
  padding: 28px;
}

.info-card h2,
.info-section h2 {
  margin-top: 0;
  color: #102033;
}

.info-card ul,
.info-section ol {
  padding-left: 20px;
  line-height: 1.8;
}

.info-section {
  margin-top: 24px;
}

.info-section p {
  line-height: 1.8;
  color: #405064;
}

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

  .info-hero {
    padding: 44px 20px;
  }
}

/* Categorías Biblioteca GLOBWSY */
.info-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease;
}

.info-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, .12);
}

.info-hero.small {
  padding: 48px 26px;
}

.back-link {
  display: inline-block;
  margin-bottom: 18px;
  color: #0f3d2e;
  font-weight: 700;
  text-decoration: none;
}

.doc-list {
  background: #ffffff;
  border: 1px solid rgba(20, 30, 45, .08);
  border-radius: 26px;
  padding: 28px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .08);
}

.doc-list h2 {
  margin-top: 0;
  color: #102033;
}

.doc-list ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding-left: 0;
  list-style: none;
}

.doc-list li {
  padding: 16px 18px;
  border-radius: 18px;
  background: #f6faf7;
  color: #102033;
  font-weight: 700;
}

@media (max-width: 700px) {
  .doc-list ul {
    grid-template-columns: 1fr;
  }
}

/* Documentos Biblioteca */
.doc-layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 20px 80px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
}

.doc-sidebar {
  position: sticky;
  top: 24px;
  align-self: start;
  background: #ffffff;
  border: 1px solid rgba(20, 30, 45, .08);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .08);
}

.doc-sidebar a {
  display: block;
  margin-top: 14px;
  color: #0f3d2e;
  text-decoration: none;
  font-weight: 700;
}

.doc-content {
  background: #ffffff;
  border: 1px solid rgba(20, 30, 45, .08);
  border-radius: 28px;
  padding: 42px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .08);
}

.doc-content h1 {
  color: #102033;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  margin: 14px 0 24px;
}

.doc-content p,
.doc-content li {
  color: #405064;
  font-size: 1.08rem;
  line-height: 1.8;
}

.doc-label {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eafff1;
  color: #0f3d2e;
  font-weight: 800;
  font-size: .9rem;
}

.doc-list a {
  color: #102033;
  text-decoration: none;
  display: block;
}

.doc-list a:hover {
  color: #16a34a;
}

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

  .doc-sidebar {
    position: static;
  }

  .doc-content {
    padding: 28px;
  }
}

/* Contenido documental Biblioteca Oficial GLOBWSY */
.doc-page {
  max-width: 980px;
  margin: 0 auto;
  padding: 56px 22px 90px;
}

.doc-card {
  background: #ffffff;
  border-radius: 28px;
  padding: 42px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.doc-kicker {
  color: #16856f;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .82rem;
  margin-bottom: 12px;
}

.doc-card h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  margin: 0 0 20px;
  color: #102236;
}

.doc-card h2 {
  color: #102236;
  margin-top: 36px;
  margin-bottom: 12px;
  font-size: 1.45rem;
}

.doc-card p,
.doc-card li {
  color: #415166;
  font-size: 1.05rem;
  line-height: 1.75;
}

.doc-card ul,
.doc-card ol {
  padding-left: 22px;
}

.doc-highlight {
  background: linear-gradient(135deg, rgba(22,133,111,.1), rgba(240,184,72,.14));
  border-left: 5px solid #16856f;
  border-radius: 18px;
  padding: 20px 22px;
  margin: 28px 0;
  color: #102236;
  font-weight: 700;
}

.doc-note {
  background: #f8fafc;
  border-radius: 18px;
  padding: 18px 20px;
  margin: 24px 0;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.doc-back {
  display: inline-flex;
  margin-bottom: 20px;
  color: #16856f;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 640px) {
  .doc-page {
    padding: 34px 14px 70px;
  }

  .doc-card {
    padding: 26px 20px;
    border-radius: 22px;
  }
}

/* Buscador Biblioteca Oficial */
.library-search-box {
  max-width: 760px;
  margin: 28px auto 36px;
  background: #ffffff;
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.library-search-input {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 18px;
  padding: 16px 18px;
  font-size: 1rem;
  outline: none;
}

.library-search-input:focus {
  border-color: #16856f;
  box-shadow: 0 0 0 4px rgba(22, 133, 111, 0.12);
}

.library-results {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.library-result {
  display: block;
  padding: 16px 18px;
  border-radius: 18px;
  background: #f8fafc;
  text-decoration: none;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.library-result strong {
  display: block;
  color: #102236;
  margin-bottom: 4px;
}

.library-result span {
  color: #526174;
  font-size: .95rem;
}

.library-no-results {
  padding: 14px 16px;
  color: #526174;
  font-weight: 700;
}

/* Pulido visual Biblioteca Oficial */
.info-card ul {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 12px;
}

.info-card li {
  margin: 0;
}

.info-card a {
  display: block;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: #102236;
  text-decoration: none;
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.info-card a:hover {
  transform: translateY(-2px);
  border-color: rgba(22, 133, 111, 0.35);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.10);
  color: #16856f;
}

.info-card h2 {
  margin-bottom: 8px;
}

.library-search-box {
  margin-bottom: 44px;
}

@media (max-width: 640px) {
  .info-card a {
    padding: 13px 14px;
  }
}

/* Corrección visual final Inicio rápido */
.info-grid {
  align-items: stretch;
}

.quick-start-card {
  grid-column: 1 / -1 !important;
  width: 100%;
  background: linear-gradient(135deg, rgba(22,133,111,.10), rgba(240,184,72,.16)) !important;
  border: 1px solid rgba(22,133,111,.18) !important;
  border-radius: 26px !important;
  padding: 28px 32px !important;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08) !important;
}

.quick-start-card h2 {
  margin: 0 0 12px !important;
  color: #102236 !important;
  font-size: 1.55rem !important;
}

.quick-start-card p {
  color: #415166 !important;
  font-weight: 800 !important;
  line-height: 1.6 !important;
  margin-bottom: 18px !important;
}

.quick-start-steps {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

.quick-start-steps span {
  display: block !important;
  background: #ffffff !important;
  border-radius: 16px !important;
  padding: 15px 14px !important;
  font-weight: 900 !important;
  color: #102236 !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  text-align: center !important;
}

@media (max-width: 900px) {
  .quick-start-steps {
    grid-template-columns: 1fr !important;
  }
}

/* Alcance por consumo en Inicio rápido */
.quick-consumption-levels {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(15, 23, 42, 0.10);
}

.quick-consumption-levels h3 {
  margin: 0 0 14px;
  color: #102236;
  font-size: 1.05rem;
  font-weight: 900;
}

.quick-level-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.quick-level-grid span {
  display: block;
  background: #ffffff;
  border-radius: 16px;
  padding: 15px 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  text-align: center;
}

.quick-level-grid strong {
  display: block;
  color: #102236;
  font-size: 1rem;
  margin-bottom: 4px;
}

.quick-level-grid small {
  display: block;
  color: #415166;
  font-weight: 800;
}

@media (max-width: 900px) {
  .quick-level-grid {
    grid-template-columns: 1fr;
  }
}

/* Ajustes finales Biblioteca Oficial */
.library-subtitle {
  color: #f0b848;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  margin: -8px 0 14px;
  font-weight: 900;
}

.tag-free {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(22, 133, 111, 0.12);
  color: #16856f;
  font-size: .68rem;
  font-weight: 900;
  vertical-align: middle;
}

.library-institutional-note {
  max-width: 1180px;
  margin: 34px auto 80px;
  padding: 18px 22px;
  border-radius: 18px;
  background: #f0f7ff;
  border: 1px solid rgba(59, 130, 246, 0.22);
  color: #102236;
  line-height: 1.65;
  font-weight: 700;
}

.library-institutional-note strong {
  color: #16856f;
}

.quick-start-steps span {
  min-height: 48px;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.quick-level-grid small {
  line-height: 1.35;
}

@media (max-width: 900px) {
  .library-institutional-note {
    margin: 26px 16px 60px;
  }
}

/* Ajustes finales Biblioteca Oficial */
.library-subtitle {
  color: #f0b848;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  margin: -8px 0 14px;
  font-weight: 900;
}

.tag-free {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(22, 133, 111, 0.12);
  color: #16856f;
  font-size: .68rem;
  font-weight: 900;
  vertical-align: middle;
}

.library-institutional-note {
  max-width: 1180px;
  margin: 34px auto 80px;
  padding: 18px 22px;
  border-radius: 18px;
  background: #f0f7ff;
  border: 1px solid rgba(59, 130, 246, 0.22);
  color: #102236;
  line-height: 1.65;
  font-weight: 700;
}

.library-institutional-note strong {
  color: #16856f;
}

.quick-start-steps span {
  min-height: 48px;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.quick-level-grid small {
  line-height: 1.35;
}

@media (max-width: 900px) {
  .library-institutional-note {
    margin: 26px 16px 60px;
  }
}

/* Biblioteca Oficial - índice completo */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.doc-card {
  display: block;
  padding: 22px;
  border: 1px solid rgba(12, 45, 38, 0.12);
  border-radius: 22px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 14px 34px rgba(12, 45, 38, 0.06);
}

.doc-card h3 {
  margin: 0 0 8px;
  color: #0f253f;
}

.doc-card p {
  margin: 0;
  color: #4d5d68;
}

.doc-card:hover {
  transform: translateY(-2px);
}

.info-card ul {
  padding-left: 22px;
  line-height: 1.8;
}

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

/* Biblioteca Oficial - bloques visuales v190 */
.library-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.library-steps div {
  background: #fff;
  border: 1px solid rgba(12, 45, 38, 0.12);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 12px 28px rgba(12, 45, 38, 0.06);
}

.library-steps strong {
  display: inline-flex;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: #123d35;
  color: #fff;
  margin-bottom: 10px;
}

.library-steps h3 {
  margin: 4px 0 8px;
}

.library-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
}

.library-table th,
.library-table td {
  padding: 14px;
  border-bottom: 1px solid rgba(12, 45, 38, 0.10);
  text-align: left;
}

.library-table th {
  background: #123d35;
  color: #fff;
}

.warning-stack p {
  background: #fff;
  border-left: 5px solid #9bcf53;
  padding: 14px 16px;
  border-radius: 14px;
  margin: 10px 0;
  font-weight: 800;
}

.network-demo {
  background: #0f253f;
  color: #fff;
  border-radius: 22px;
  padding: 22px;
  font-family: monospace;
  white-space: pre-line;
  line-height: 1.7;
  margin: 20px 0;
}

.flow-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.flow-line span {
  background: #123d35;
  color: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
}

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

/* =========================================================
   OFFICIAL LIBRARY DARK IDENTITY
========================================================= */

:root {
  --lib-bg: #09111f;
  --lib-bg2: #0d1828;
  --lib-card: #131f33;
  --lib-card2: #18263c;
  --lib-border: rgba(255,255,255,.11);
  --lib-text: #f0f4f8;
  --lib-muted: #94a3b8;
  --lib-orange: #f97316;
  --lib-green: #34d399;
  --lib-blue: #60a5fa;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--lib-bg);
  color: var(--lib-text);
  font-family: "DM Sans", Arial, sans-serif;
}

.info-library {
  width: calc(100% - 40px);
  max-width: 1220px;
  margin: 0 auto;
  padding: 54px 0 90px;
}

.info-hero {
  padding: 66px 30px;
  border: 1px solid rgba(249,115,22,.25);
  border-radius: 24px;
  background:
    radial-gradient(circle at 82% 18%, rgba(52,211,153,.13), transparent 34%),
    linear-gradient(135deg, var(--lib-bg2), var(--lib-card));
  color: var(--lib-text);
  box-shadow: 0 26px 65px rgba(0,0,0,.28);
}

.info-hero h1,
.info-card h2,
.info-section h2,
.doc-list h2,
.quick-start-card h2 {
  color: var(--lib-text) !important;
}

.info-hero p,
.info-section p,
.quick-start-card p {
  color: var(--lib-muted) !important;
}

.library-subtitle {
  color: var(--lib-orange) !important;
}

.library-search-box,
.info-card,
.info-section,
.doc-list,
.doc-card,
.doc-content,
.doc-sidebar {
  background: var(--lib-card) !important;
  color: var(--lib-text) !important;
  border: 1px solid var(--lib-border) !important;
  border-radius: 18px !important;
  box-shadow: 0 20px 48px rgba(0,0,0,.2) !important;
}

.library-search-input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(9,17,31,.8) !important;
  color: var(--lib-text) !important;
  border: 1px solid var(--lib-border) !important;
}

.library-search-input::placeholder {
  color: #64748b;
}

.library-result,
.info-card a,
.doc-list a {
  background: rgba(9,17,31,.72) !important;
  color: var(--lib-text) !important;
  border: 1px solid var(--lib-border) !important;
  text-decoration: none;
}

.library-result:hover,
.info-card a:hover,
.doc-list a:hover {
  color: #fb923c !important;
  border-color: rgba(249,115,22,.55) !important;
}

.quick-start-card {
  background:
    linear-gradient(135deg, rgba(52,211,153,.07), rgba(249,115,22,.06)),
    var(--lib-card) !important;
  border: 1px solid rgba(52,211,153,.24) !important;
  border-radius: 20px !important;
}

.quick-start-steps span,
.quick-level-grid span {
  background: rgba(9,17,31,.76) !important;
  color: var(--lib-text) !important;
  border: 1px solid var(--lib-border) !important;
  border-radius: 12px !important;
}

.quick-level-grid strong {
  color: #fb923c !important;
}

.quick-level-grid small {
  color: var(--lib-muted) !important;
}

.tag-free {
  background: rgba(52,211,153,.12) !important;
  color: var(--lib-green) !important;
}

.library-institutional-note {
  background: rgba(96,165,250,.07) !important;
  color: var(--lib-muted) !important;
  border: 1px solid rgba(96,165,250,.25) !important;
}

.library-institutional-note strong {
  color: var(--lib-blue) !important;
}

.site-header {
  background: rgba(9,17,31,.95) !important;
  border-bottom: 1px solid var(--lib-border) !important;
}

.site-header a,
.back-link,
.doc-back {
  color: var(--lib-text) !important;
}

.site-header nav a:hover,
.back-link:hover,
.doc-back:hover {
  color: #fb923c !important;
}

.site-footer {
  background: #060b14 !important;
  color: var(--lib-muted) !important;
  border-top: 1px solid var(--lib-border) !important;
}

@media (max-width: 900px) {
  .info-library {
    width: calc(100% - 28px);
    padding-top: 30px;
  }

  .info-grid,
  .doc-layout,
  .quick-start-steps,
  .quick-level-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ==================================================
   GLOBWSY INTERNAL LIBRARY HIGH-CONTRAST CORRECTION
   ================================================== */

.info-library,
.info-library article,
.info-library section,
.info-library .info-card {
  color: #dce6f3 !important;
}

.info-library h1,
.info-library h2,
.info-library h3,
.info-library h4,
.info-library h5,
.info-library h6 {
  color: #f8fafc !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

.info-library p,
.info-library li,
.info-library span:not(.tag-free),
.info-library strong,
.info-library em {
  color: #cbd7e6 !important;
  opacity: 1 !important;
}

.info-library strong {
  color: #f5f8fc !important;
}

.info-library ul li::marker,
.info-library ol li::marker {
  color: #42d6b0 !important;
}

.info-library a {
  color: #7db9ff;
}

.info-library .notice,
.info-library .info-note,
.info-library .important-note,
.info-library .legal-note,
.info-library .warning,
.info-library blockquote,
.info-library aside {
  background: #0c1728 !important;
  border-color: #2dd4aa !important;
  color: #e5edf7 !important;
}

.info-library .notice *,
.info-library .info-note *,
.info-library .important-note *,
.info-library .legal-note *,
.info-library .warning *,
.info-library blockquote *,
.info-library aside * {
  color: #e5edf7 !important;
  opacity: 1 !important;
}

/* Corrige cualquier recuadro blanco dentro de artículos oscuros */
.info-library div[style*="background: white"],
.info-library div[style*="background:#fff"],
.info-library div[style*="background: #fff"],
.info-library div[style*="background-color: white"],
.info-library div[style*="background-color:#fff"] {
  background: #eaf0f7 !important;
  color: #172033 !important;
}

.info-library div[style*="background: white"] *,
.info-library div[style*="background:#fff"] *,
.info-library div[style*="background: #fff"] *,
.info-library div[style*="background-color: white"] *,
.info-library div[style*="background-color:#fff"] * {
  color: #172033 !important;
  opacity: 1 !important;
}

