/* ================================
   DOCS SITE
   Estilos del sitio de documentación
   ================================ */

:root {
  --docs-bg: #ffffff;
  --docs-surface: #ffffff;
  --docs-surface-soft: #f6f7f8;
  --docs-border: rgba(17, 24, 39, 0.08);
  --docs-border-strong: rgba(17, 24, 39, 0.14);
  --docs-text: #0f1720;
  --docs-muted: rgba(15, 23, 32, 0.72);
  --docs-soft: rgba(15, 23, 32, 0.48);
  --docs-accent: #111111;
  --docs-radius: 20px;

  --font-base: "Poppins", system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ----------------
   Base
   ---------------- */

html {
  scroll-behavior: smooth;
}

body {
  background: var(--docs-bg);
  color: var(--docs-text);
  font-family: var(--font-base);
  font-weight: 400;
}

a {
  color: var(--docs-text);
  text-decoration: none;
  transition:
    color 0.2s ease,
    opacity 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}

a:hover {
  opacity: 0.92;
}

p {
  color: var(--docs-muted);
}

strong {
  color: var(--docs-text);
  font-weight: 600;
}

img {
  display: block;
  max-width: 100%;
}

.title {
  font-weight: 700;
}

.subtitle,
.meta {
  font-weight: 500;
}


/* ----------------
   animation
   ---------------- */

.refined-reveal {
  opacity: 0;
  filter: blur(6px);
  transform: translateY(6px) scale(0.995);
  animation: refinedReveal 1.6s cubic-bezier(0.19,1,0.22,1) forwards;
  animation-delay: 0s;
}

@keyframes refinedReveal {
  to {
    opacity: 0.92;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}

/* ----------------
   Header
   ---------------- */

.docs-header {
position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

.docs-brand {
  color: var(--docs-text);
}

.docs-brand:hover {
  opacity: 1;
}

.docs-nav .list-inline a {
  position: relative;
  color: var(--docs-soft);
  font-size: var(--text-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-bottom: 0.35rem;
}

.docs-nav .list-inline a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--docs-text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.docs-nav .list-inline a:hover,
.docs-nav .list-inline a{
  color: var(--docs-text);
}

.docs-nav .list-inline a:hover::after,
.docs-nav .list-inline a::after {
  transform: scaleX(1);
}

/* ----------------
   Hero portada
   ---------------- */

.docs-hero-animated {
  position: relative;
  overflow: hidden;
  background: #ffffff;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 1;
  opacity: 1;
}

.docs-hero-animated::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.00), rgba(255,255,255,0.10) 78%),
    linear-gradient(to bottom, rgba(255,255,255,0.00), rgba(255,255,255,0.04));
  pointer-events: none;
  z-index: 1;
}

.docs-hero-inner {
  position: relative;
  z-index: 2;
  margin-top: 50px;
  margin-bottom: 50px;
}

.docs-hero-cover {
  position: relative;
  overflow: hidden;
  min-height: 84vh;
  display: flex;
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid rgba(17, 24, 39, 0.06);
}

.docs-cover-wrap {
  max-width: 72rem;
  margin-inline: auto;
}

.docs-cover-head {
  align-items: center;
}


.docs-cover-title {
  font-size: 30px;
  line-height: 110%;
  letter-spacing: 4px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--docs-text);
  margin-inline: auto;
}

.docs-cover-intro {
  max-width: 58rem;
  margin-inline: auto;
  color: black;
}

.docs-cover-actions {
  margin-top: var(--space-3);
}

/* ----------------
   Cover context
   ---------------- */

.docs-cover-context {
  border-top: 1px solid var(--docs-border);
}

.docs-cover-summary {
  max-width: 48rem;
  margin-inline: auto;
  color: var(--docs-muted);
}

/* ----------------
   Hero páginas internas
   ---------------- */

.docs-hero-static {
  position: relative;
  overflow: hidden;
  min-height: auto;
  display: flex;
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid rgba(17, 24, 39, 0.06);
}

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

.docs-page-title {
  font-size: 30px;
  line-height: 120%;
  letter-spacing: 4px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--docs-text);
}

.docs-intro {
  color: var(--docs-muted);
  max-width: 44rem;
  font-weight: 400;
}

/* ----------------
   Links / buttons
   ---------------- */

.docs-links {
  margin-top: var(--space-2);
}

.docs-btn {
  display: block;
  width: fit-content;
  min-width: 100%;
  padding: 15px 30px;
  border-radius: 999px;
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  transition: .3s ease;
  border: solid 2px black;
}


@media (min-width: 640px) {
  .docs-btn {
     min-width: 250px;
  }
}


.docs-btn-primary {
  background: black;
  color: white;
}

.docs-btn-primary:hover {
  background: #2f3034;
  color: white;
}

.docs-btn-secondary {
      background: rgba(240 240 240 / 50%);
  color: black;
  border: 1px solid var(--docs-border-strong);
  backdrop-filter: blur(2px);
}

.docs-btn-secondary:hover {
  background: rgba(240 230 230 / 50%);
  color: black;
}

/* ----------------
   Section titles
   ---------------- */

.docs-section-title {
  color: var(--docs-text);
  letter-spacing: -0.03em;
  font-weight: 700;
}

.docs-section-copy {
  color: var(--docs-muted);
}

/* ----------------
   Cards
   ---------------- */

.docs-card {
  background: var(--docs-surface);
  border: 1px solid var(--docs-border);
  border-radius: var(--docs-radius);
  padding: var(--space-4);
  box-shadow: none;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}

.docs-card h2,
.docs-card h3,
.docs-card h4 {
  color: var(--docs-text);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.docs-card p,
.docs-card li {
  color: var(--docs-muted);
  font-weight: 400;
}

.docs-card-hover:hover {
  transform: translateY(-1px);
  border-color: var(--docs-border-strong);
      box-shadow: 0 3px 12px rgba(0 0 0 / 5%);
}

/* ----------------
   Cover cards
   ---------------- */

.docs-cover-cards {
  margin-top: var(--space-2);
}

.docs-cover-card {
  min-height: 100%;
  justify-content: flex-start;
  padding: var(--space-5);
  text-align: left;
}

.docs-cover-principle-label {
  color: var(--docs-soft);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.docs-cover-principle-copy {
  color: var(--docs-muted);
  max-width: 28ch;
}

.docs-cover-meta {
  margin-top: var(--space-2);
}

.docs-cover-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--docs-border);
  border-radius: 999px;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
      background: rgba(240 240 240 / 50%);
  color: var(--docs-text);
      backdrop-filter: blur(2px);

}

.docs-cover-card-link {
  text-decoration: none;
  color: inherit;
}

.docs-cover-card-link:hover {
  opacity: 1;
}

/* ----------------
   Card title spacing
   ---------------- */

.docs-card-title {
  margin: 0;
  line-height: 1.15;
}

.docs-card h2 + ul,
.docs-card h2 + p,
.docs-card h3 + ul,
.docs-card h3 + p,
.docs-card h4 + ul,
.docs-card h4 + p {
  margin-top: 1rem;
}

.docs-card ul + .docs-card-title,
.docs-card p + .docs-card-title {
  margin-top: .75rem;
}

/* ----------------
   Architecture block
   ---------------- */

.docs-architecture {
  background: #ffffff;
  border: 1px solid var(--docs-border);
  border-radius: calc(var(--docs-radius) + 2px);
  padding: var(--space-5);
}

.docs-layer-list li {
  padding-bottom: var(--space-2);
  border-bottom: 1px solid rgba(17, 24, 39, 0.06);
}

.docs-layer-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

/* ----------------
   Docs map
   ---------------- */

.docs-map-wrap {
  padding: var(--space-5);
}

.docs-map-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.9rem;
}

.docs-map-list .docs-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--docs-border);
  background: var(--docs-surface);
  color: var(--docs-text);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.docs-map-list .docs-tag-muted {
  background: var(--docs-surface-soft);
  color: var(--docs-soft);
}

/* ----------------
   Code block
   ---------------- */

pre {
  margin: 0;
  background: #101418;
  color: #eef2f7;
  border-radius: var(--docs-radius);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: var(--space-4);
  overflow-x: auto;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.94rem;
  line-height: 1.65;
  color: inherit;
}

/* ----------------
   Footer
   ---------------- */

.docs-footer {
  border-top: 1px solid var(--docs-border);
  background: #ffffff;
}

.docs-footer p {
  color: black;
}

/* ----------------
   Helpers
   ---------------- */

.docs-divider {
  width: 100%;
  height: 1px;
  background: var(--docs-border);
}

.docs-muted {
  color: var(--docs-soft);
}

/* ----------------
   Responsive
   ---------------- */

@media (min-width: 576px) {
  .docs-page-title,
  .docs-cover-title {
    font-size: clamp(2.8rem, 4vw, 5rem);
  }
}

@media (min-width: 768px) {
  .docs-card {
    padding: var(--space-5);
  }

  .docs-hero-cover {
    min-height: 92vh;
  }
}

@media (min-width: 1024px) {
  .docs-page-title,
  .docs-cover-title {
    margin-inline: auto;
  }

  .docs-intro,
  .docs-cover-intro,
  .docs-cover-summary {
    margin-inline: auto;
  }
}


.docs-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.25rem;
  border: 1px solid var(--docs-border-strong);
  border-radius: 999px;
  background: black;
  color: white;
  font-family: var(--font-base);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
  margin: 15px 0;
}

.docs-menu-toggle:hover {
  background: #2f3034;
  opacity: 1;
}

.docs-menu-panel {
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.docs-menu-panel.is-open {
  opacity: 1;
  pointer-events: auto;
}

.docs-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 32, 0.18);
  backdrop-filter: blur(12px);
}

.docs-menu-dialog {
  position: absolute;
  inset: 0;
  background: rgba(255 255 255 / 90%);
  transform: translateY(2%);
  opacity: 0;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
  overflow-y: auto;
}

.docs-menu-panel.is-open .docs-menu-dialog {
  transform: translateY(0);
  opacity: 1;
}

.docs-menu-shell {
  min-height: 100%;
  padding: 2rem 1.5rem 3rem;
}

.docs-menu-top {
  padding-bottom: 1.25rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--docs-border);
}

.docs-menu-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding:  0.8rem 1.25rem;
  border: 1px solid var(--docs-border-strong);
  border-radius: 999px;
  background: black;
  color: white;
  font-family: var(--font-base);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease;
}

.docs-menu-close:hover {
  background: #2f3034;
  border-color: var(--docs-text);
}

.docs-menu-layout {
  align-items: start;
}

.docs-menu-group {
  padding-top: 0.25rem;
}

.docs-menu-title {
  color: var(--docs-soft);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
    margin-bottom: 22px;
}

.docs-menu-group ul li a {
  display: inline-block;
  color: var(--docs-text);
  font-size: 1.02rem;
  line-height: 1.35;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.docs-menu-group ul li a:hover {
  opacity: 1;
  transform: translateX(4px);
}

body.docs-menu-open {
  overflow: hidden;
}

@media (min-width: 1024px) {
  .docs-menu-shell {
    padding: 2.25rem 2.5rem 3rem;
  }

  .docs-menu-top {
    margin-bottom: 2.5rem;
  }

  .docs-menu-group ul li a {
    font-size: 1.08rem;
  }
}

@media (max-width: 767px) {

  .docs-menu-shell {
    padding: 1.25rem 1rem 2rem;
  }

  .docs-menu-top {
    margin-bottom: 1.5rem;
  }
}

.brand{
  position: relative;
  width: 250px;
  height: 54px;
  display: flex;
  align-items: center;
}

.brand img{
  width: 250px;
  min-width: 250px;
  height: auto;
  margin: 0;
}

.docs-brand {
  overflow: hidden;
  width: 65px;
  height: 45px;
  transition: .3s ease;
}

@media (min-width: 400px) {
.docs-brand {
  overflow: hidden;
  width: 250px;
  height: 45px;
} 
}

.docs-brand.active {
  width: 65px;
}