/* Ajustes propios sobre la hoja del template.
 * Se carga después de ternic.css para poder anularla sin tocarla: ternic.css
 * se regenera desde el sitio oficial y cualquier cambio directo se perdería.
 */

/* ── Diagrama de integraciones ────────────────────────────────────────────
 * El círculo central venía con el azul de marca como fondo. Nuestro isotipo
 * también es azul, así que encima no se leía. Pasa a fondo oscuro con halo:
 * sigue siendo el foco visual del diagrama y el logotipo recupera contraste.
 */
.integration-main-icon-block {
  background-color: #080c18;
  background-image:
    radial-gradient(circle at 50% 42%, rgba(36, 73, 255, .38) 0%, rgba(36, 73, 255, 0) 68%);
  box-shadow:
    inset 0 0 0 1px rgba(36, 73, 255, .55),
    inset 0 0 60px -18px rgba(36, 73, 255, .9),
    0 0 90px -20px rgba(36, 73, 255, .75);
}

/* El selector va anidado a propósito: el template dimensiona el logotipo con
   una regla propia y hace falta más especificidad para ganarla. */
.integration-main-icon-block .integration-main-logo-picture {
  display: block;
  width: 62%;
  line-height: 0;
}

.integration-main-icon-block .integration-main-logo {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  /* El isotipo lleva su propio degradado; el halo lo integra con el círculo. */
  filter: drop-shadow(0 0 18px rgba(36, 73, 255, .45));
}

/* ── Pie de página ────────────────────────────────────────────────────────
 * La barra inferior original eran los créditos de la plantilla. Ahora lleva
 * el copyright, los enlaces legales y el aviso de riesgo obligatorio.
 */
/* La barra vive dentro de .footer-widgets-area, que es un flex. Sin forzar la
   base al 100 % se queda del ancho de su contenido en lugar de ocupar la fila. */
.tv-footer-bottom {
  flex: 1 0 100%;
  width: 100%;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.tv-footer-legal-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
}

.tv-footer-copy {
  color: rgba(255, 255, 255, .62);
  font-size: 14px;
}

.tv-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.tv-footer-links a {
  color: rgba(255, 255, 255, .62);
  font-size: 14px;
  text-decoration: none;
  transition: color .2s ease;
}

.tv-footer-links a:hover {
  color: #fff;
}

.tv-footer-risk {
  max-width: 900px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, .35);
  font-size: 12px;
  line-height: 1.6;
  text-align: left;
}

@media (max-width: 767px) {
  .tv-footer-bottom {
    margin-top: 20px;
    padding-top: 22px;
  }

  .tv-footer-legal-row {
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
  }

  .tv-footer-links {
    justify-content: center;
    gap: 10px 18px;
  }

  .tv-footer-risk {
    max-width: none;
    text-align: center;
  }
}

/* ── Tarjetas flotantes del hero ──────────────────────────────────────────
 * Sustituyen a las imágenes del template, que traían el texto en inglés
 * quemado en el píxel. Ahora son marcado real con cotización real de BTC/USDT,
 * así que se traducen, se animan y pesan una fracción de lo que pesaban.
 */
.tvc {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 18px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, .05) 0%, rgba(255, 255, 255, 0) 42%),
    #0a0e18;
  box-shadow: 0 24px 60px -28px rgba(0, 0, 0, .95);
  color: #fff;
  font-size: 13px;
  line-height: 1.3;
  overflow: hidden;
}

.tvc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tvc-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.tvc-tf {
  margin-left: 7px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .07);
  color: rgba(255, 255, 255, .55);
  font-size: 11px;
  font-weight: 500;
}

.tvc-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.tvc-pill.is-up   { background: rgba(62, 207, 142, .14); color: #3ecf8e; }
.tvc-pill.is-down { background: rgba(240, 85, 75, .14);  color: #ff7a70; }

/* ── Conversor ────────────────────────────────────────────────────────── */
.tvc-rate {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  color: rgba(255, 255, 255, .42);
  font-size: 14px;
}

.tvc-rate b {
  color: #fff;
  font-weight: 600;
}

.tvc-rate-to { margin-left: auto; }

.tvc-arrow {
  width: 22px;
  height: 11px;
  color: rgba(255, 255, 255, .35);
  /* El destello recorre la flecha: sugiere que la conversión está viva. */
  animation: tvc-arrow 2.8s ease-in-out infinite;
}

@keyframes tvc-arrow {
  0%, 70%, 100% { opacity: .35; transform: translateX(0); }
  82%           { opacity: 1;   transform: translateX(3px); }
}

.tvc-field { margin-top: 14px; }

.tvc-field-label {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, .38);
  font-size: 12px;
}

.tvc-field-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 11px;
  background: rgba(255, 255, 255, .028);
}

.tvc-amount {
  font-size: 17px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.tvc-coin {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, .5);
  font-size: 12.5px;
}

.tvc-coin-mark {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  color: #fff;
}

.tvc-usdt { background: #26a17b; }
.tvc-btc  { background: #f7931a; }

.tvc-cta {
  margin-top: auto;
  padding-top: 16px;
  text-align: center;
  color: rgba(255, 255, 255, .75);
  font-size: 14px;
  font-weight: 600;
}

/* ── Gráfico de velas ─────────────────────────────────────────────────── */
.tvc-quote {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 10px;
}

.tvc-quote-price {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}

.tvc-quote-unit {
  color: rgba(255, 255, 255, .4);
  font-size: 13px;
}

.tvc-canvas {
  flex: 1;
  width: 100%;
  min-height: 0;
  margin-top: 12px;
  overflow: visible;
}

.tvc-candle.is-up   { fill: #3ecf8e; }
.tvc-candle.is-down { fill: #f0554b; }

/* Cada vela crece desde su base con un retardo proporcional a su índice. */
.tvc-candle {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: tvc-grow .5s cubic-bezier(.2, .8, .3, 1) both;
  animation-delay: calc(var(--i) * 26ms + 260ms);
}

@keyframes tvc-grow {
  from { transform: scaleY(0); opacity: 0; }
  to   { transform: scaleY(1); opacity: 1; }
}

.tvc-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: rgba(255, 255, 255, .3);
  font-size: 10.5px;
  letter-spacing: .02em;
}

/* ── Curva de equity ──────────────────────────────────────────────────── */
.tvc-eq-line {
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: tvc-draw 1.5s cubic-bezier(.4, 0, .2, 1) .3s forwards;
  filter: drop-shadow(0 0 6px rgba(62, 207, 142, .5));
}

@keyframes tvc-draw { to { stroke-dashoffset: 0; } }

.tvc-eq-area {
  opacity: 0;
  animation: tvc-fade .8s ease 1.2s forwards;
}

@keyframes tvc-fade { to { opacity: 1; } }

/* El punto final aparece justo cuando la línea lo alcanza, y luego late. */
.tvc-eq-dot {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: tvc-fade .3s ease 1.7s forwards, tvc-pulse 2.4s ease-in-out 2s infinite;
}

@keyframes tvc-pulse {
  0%, 100% { r: 3.5; }
  50%      { r: 5;   }
}

.tvc-stats {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .07);
}

.tvc-stats div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tvc-stats span {
  color: rgba(255, 255, 255, .38);
  font-size: 11px;
}

.tvc-stats b {
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ── Panel de riesgo ──────────────────────────────────────────────────── */
.tvc-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #3ecf8e;
  font-size: 12px;
  font-weight: 600;
}

.tvc-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3ecf8e;
  box-shadow: 0 0 0 0 rgba(62, 207, 142, .6);
  animation: tvc-beacon 2s ease-out infinite;
}

@keyframes tvc-beacon {
  0%   { box-shadow: 0 0 0 0 rgba(62, 207, 142, .55); }
  70%  { box-shadow: 0 0 0 8px rgba(62, 207, 142, 0); }
  100% { box-shadow: 0 0 0 0 rgba(62, 207, 142, 0); }
}

.tvc-gauges {
  display: grid;
  gap: 15px;
  margin-top: 18px;
}

.tvc-gauge-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}

.tvc-gauge-top span {
  color: rgba(255, 255, 255, .5);
  font-size: 12.5px;
}

.tvc-gauge-top b {
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.tvc-gauge-track {
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .07);
  overflow: hidden;
}

.tvc-gauge-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--tone) 55%, transparent), var(--tone));
  box-shadow: 0 0 10px -2px var(--tone);
  animation: tvc-fill 1.1s cubic-bezier(.2, .8, .3, 1) .45s forwards;
}

@keyframes tvc-fill { to { width: var(--fill); } }

.tvc-rule {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  color: rgba(255, 255, 255, .45);
  font-size: 12px;
  line-height: 1.35;
}

.tvc-rule svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: #3ecf8e;
}

/* ── Brillo que recorre el borde de cada tarjeta ──────────────────────────
 * Un barrido lento y muy tenue basta para que la tarjeta no se lea como una
 * captura estática. Cada una arranca desfasada.
 */
.tvc::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, .05) 50%, transparent 58%);
  pointer-events: none;
  animation: tvc-sheen 7s ease-in-out infinite;
}

.tvc { position: relative; }
.tvc-chart::after  { animation-delay: 1.4s; }
.tvc-equity::after { animation-delay: 2.8s; }
.tvc-risk::after   { animation-delay: 4.2s; }

@keyframes tvc-sheen {
  0%, 62%, 100% { transform: translateX(-60%); }
  85%           { transform: translateX(60%); }
}

@media (prefers-reduced-motion: reduce) {
  .tvc-candle,
  .tvc-arrow,
  .tvc-eq-dot,
  .tvc-live i,
  .tvc::after {
    animation: none;
  }

  .tvc-eq-line { stroke-dashoffset: 0; animation: none; }
  .tvc-eq-area { opacity: 1; animation: none; }
  .tvc-gauge-track i { width: var(--fill); animation: none; }
}

/* ── Marcas de plataformas ────────────────────────────────────────────────
 * Lockup de monograma + nombre mientras no haya logotipo oficial en
 * `brokers.logo_path`. Cuando lo haya, la plantilla usa la imagen y estas
 * reglas dejan de aplicarse.
 */
.tvb {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  white-space: nowrap;
  opacity: .62;
  transition: opacity .25s ease;
}

.brand-item:hover .tvb { opacity: 1; }

.tvb-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 10px;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font-size: 15px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: -.02em;
}

.tvb-name {
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.015em;
}

.tvb img {
  height: 30px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 767px) {
  .tvb-name { font-size: 15px; }
  .tvb-mark { width: 30px; height: 30px; font-size: 13px; }
}

/* ── Acceso en la cabecera ────────────────────────────────────────────────
 * El template solo traía el CTA de registro. El enlace de inicio de sesión va
 * en texto, sin competir visualmente con el botón principal.
 */
/* Este bloque lleva también la clase hide-mobile del template, que lo oculta
   por debajo de 992 px. La regla se acota al mismo punto para no anularla:
   en móvil el acceso vive dentro del panel desplegable. */
.tv-nav-auth { display: none; }

@media (min-width: 992px) {
  .tv-nav-auth {
    display: flex;
    align-items: center;
    gap: 22px;
  }
}

.tv-nav-login {
  color: rgba(255, 255, 255, .74);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s ease;
}

.tv-nav-login:hover { color: #fff; }

/* Bloque que aparece dentro del panel desplegable en móvil. */
.tv-nav-mobile-auth {
  display: none;
  gap: 12px;
  margin-top: 26px;
  padding: 22px 0 6px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

@media (max-width: 991px) {
  .tv-nav-mobile-auth { display: grid; }
}

.tv-mobile-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: filter .2s ease, background-color .2s ease;
}

.tv-mobile-btn-primary {
  background: linear-gradient(135deg, #2449ff 0%, #4d6bff 55%, #7830ff 100%);
  color: #fff;
  box-shadow: 0 10px 30px -14px rgba(36, 73, 255, .95);
}

.tv-mobile-btn-primary:hover { filter: brightness(1.08); }

.tv-mobile-btn-ghost {
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .05);
  color: #fff;
}

.tv-mobile-btn-ghost:hover { background: rgba(255, 255, 255, .1); }

/* ── Documentos legales ───────────────────────────────────────────────────
 * Tipografía de lectura larga: medida corta, interlineado alto y jerarquía
 * clara. No usan el maquetado del template porque no son páginas de venta.
 */
.legal-page {
  padding: 140px 24px 96px;
}

.legal-shell {
  max-width: 780px;
  margin-inline: auto;
}

.legal-eyebrow {
  margin: 0 0 10px;
  color: #2449ff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.legal-title {
  margin: 0;
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.02em;
}

.legal-meta {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, .45);
  font-size: 14px;
}

.legal-notice {
  margin-top: 36px;
  padding: 18px 20px;
  border: 1px solid rgba(245, 175, 60, .3);
  border-radius: 14px;
  background: rgba(245, 175, 60, .07);
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, .7);
}

.legal-notice-title {
  margin: 0 0 6px;
  color: #f5af3c;
  font-weight: 600;
}

.legal-notice p:last-child { margin-bottom: 0; }

.legal-toc {
  margin-top: 36px;
  padding: 22px 26px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px;
  background: rgba(255, 255, 255, .025);
}

.legal-toc-title {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
}

.legal-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 32px;
  counter-reset: toc;
}

.legal-toc li {
  break-inside: avoid;
  margin-bottom: 7px;
  counter-increment: toc;
}

.legal-toc a {
  color: rgba(255, 255, 255, .68);
  font-size: 14px;
  text-decoration: none;
  transition: color .18s ease;
}

.legal-toc a::before {
  content: counter(toc) ". ";
  color: rgba(255, 255, 255, .32);
}

.legal-toc a:hover { color: #fff; }

.legal-body {
  margin-top: 48px;
  color: rgba(255, 255, 255, .72);
  font-size: 16px;
  line-height: 1.75;
}

.legal-body h2 {
  margin: 52px 0 16px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.01em;
  color: #fff;
  scroll-margin-top: 120px;
}

.legal-body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

.legal-body h3 {
  margin: 30px 0 10px;
  font-size: 17px;
  font-weight: 600;
  color: rgba(255, 255, 255, .92);
}

.legal-body p { margin: 0 0 16px; }
.legal-body strong { color: rgba(255, 255, 255, .95); font-weight: 600; }

.legal-body ul {
  margin: 0 0 18px;
  padding-left: 22px;
  list-style: none;
}

.legal-body ul > li {
  position: relative;
  margin-bottom: 9px;
}

.legal-body ul > li::before {
  content: "";
  position: absolute;
  left: -16px;
  top: .68em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #2449ff;
}

.legal-body a {
  color: #6d8cff;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.legal-body a:hover { color: #a5b8ff; }

/* Bloques destacados: lo que el usuario no debe pasar por alto. */
.legal-callout {
  margin: 22px 0;
  padding: 18px 20px;
  border-left: 3px solid #2449ff;
  border-radius: 0 12px 12px 0;
  background: rgba(36, 73, 255, .08);
  color: rgba(255, 255, 255, .82);
}

.legal-callout-risk {
  border-left-color: #f0554b;
  background: rgba(240, 85, 75, .09);
}

/* Campos que dependen de la sociedad concreta: deben cantar hasta rellenarse. */
.legal-fill {
  padding: 1px 7px;
  border: 1px dashed rgba(245, 175, 60, .55);
  border-radius: 6px;
  background: rgba(245, 175, 60, .1);
  color: #f5af3c;
  font-size: .92em;
  white-space: nowrap;
}

.legal-table-wrap {
  margin: 22px 0;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
}

.legal-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14px;
}

.legal-table th,
.legal-table td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.legal-table th {
  background: rgba(255, 255, 255, .04);
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}

.legal-table tr:last-child td { border-bottom: 0; }

.legal-footer {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .5);
  font-size: 14px;
}

.legal-footer a { color: #6d8cff; text-decoration: none; }
.legal-footer a:hover { text-decoration: underline; }

.legal-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 10px;
}

@media (max-width: 767px) {
  .legal-page { padding: 110px 20px 72px; }
  .legal-toc ol { columns: 1; }
  .legal-body { font-size: 15px; }
}

/* ── Documentación ────────────────────────────────────────────────────────
 * El hub de guías y el artículo. Tipografía de lectura + ilustraciones SVG
 * animadas por sección (components/doc-illustration.twig).
 */
.docs-hub { padding: 140px 24px 90px; }
.docs-shell { max-width: 1080px; margin-inline: auto; }

.docs-eyebrow {
  margin: 0 0 10px;
  color: #2449ff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.docs-title {
  margin: 0;
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.02em;
}

.docs-sub {
  max-width: 560px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, .55);
  font-size: 16px;
  line-height: 1.65;
}

.docs-search { max-width: 460px; margin-top: 26px; }

.docs-search .input {
  height: 48px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, .13);
  background: rgba(255, 255, 255, .05);
  color: #fff;
  font-size: 15px;
  padding: 0 16px;
  width: 100%;
}

.docs-section { margin-top: 56px; }

.docs-section-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.docs-section-head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.docs-section-head p {
  margin: 3px 0 0;
  color: rgba(255, 255, 255, .45);
  font-size: 13px;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 14px;
}

.docs-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 16px;
  background: rgba(255, 255, 255, .028);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background-color .18s ease;
}

.docs-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, #2449ff 45%, rgba(255, 255, 255, .1));
  background: rgba(36, 73, 255, .06);
}

.docs-card-title { color: #fff; font-size: 16px; font-weight: 600; line-height: 1.3; }
.docs-card-summary { color: rgba(255, 255, 255, .52); font-size: 13.5px; line-height: 1.55; flex: 1; }

.docs-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, .4);
  font-size: 12px;
}

.docs-card-arrow {
  margin-left: auto;
  color: #6d8cff;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .18s ease, transform .18s ease;
}

.docs-card:hover .docs-card-arrow { opacity: 1; transform: none; }

.docs-empty {
  margin-top: 48px;
  color: rgba(255, 255, 255, .5);
  text-align: center;
}
.docs-empty a { color: #6d8cff; }

/* ── Artículo ── */
.docs-article-page { padding: 130px 24px 90px; }

.docs-article-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 56px;
  max-width: 1120px;
  margin-inline: auto;
}

@media (max-width: 991px) {
  .docs-article-shell { grid-template-columns: 1fr; gap: 24px; }
  .docs-aside { display: none; }
}

.docs-aside-nav {
  position: sticky;
  top: 110px;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  padding-right: 6px;
}

.docs-aside-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, .55);
  font-size: 13.5px;
  text-decoration: none;
}
.docs-aside-back:hover { color: #fff; }

.docs-aside-group {
  margin: 18px 0 6px;
  color: rgba(255, 255, 255, .38);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.docs-aside-nav ul { margin: 0; padding: 0; list-style: none; }

.docs-aside-nav ul a {
  display: block;
  padding: 6px 10px;
  border-radius: 8px;
  color: rgba(255, 255, 255, .58);
  font-size: 13.5px;
  line-height: 1.35;
  text-decoration: none;
  transition: color .15s ease, background-color .15s ease;
}

.docs-aside-nav ul a:hover { color: #fff; }

.docs-aside-nav ul a.is-current {
  background: rgba(36, 73, 255, .14);
  color: #fff;
  font-weight: 500;
}

.docs-article-head { margin-bottom: 34px; }

.docs-article-illo {
  display: inline-block;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 18px;
  background:
    radial-gradient(80% 80% at 30% 20%, rgba(36, 73, 255, .14) 0%, transparent 70%),
    rgba(255, 255, 255, .03);
}

.docs-article-head h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.docs-article-summary {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, .55);
  font-size: 17px;
  line-height: 1.6;
}

/* Cuerpo tipográfico */
.docs-body {
  color: rgba(255, 255, 255, .72);
  font-size: 16px;
  line-height: 1.75;
}

.docs-body h2 {
  margin: 38px 0 12px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: #fff;
}

.docs-body p { margin: 0 0 15px; }
.docs-body b, .docs-body strong { color: rgba(255, 255, 255, .95); }

.docs-body ul, .docs-body ol { margin: 0 0 16px; padding-left: 24px; }
.docs-body li { margin-bottom: 8px; }
.docs-body li::marker { color: #2449ff; font-weight: 600; }

.docs-body .math {
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .05);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 14.5px;
  color: #a5b8ff;
}

.doc-tip, .doc-warn {
  margin: 22px 0;
  padding: 15px 18px;
  border-left: 3px solid #2449ff;
  border-radius: 0 12px 12px 0;
  background: rgba(36, 73, 255, .08);
  font-size: 14.5px;
  line-height: 1.6;
}

.doc-warn {
  border-left-color: #f5af3c;
  background: rgba(245, 175, 60, .08);
}

.docs-article-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 48px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .09);
}

.docs-next {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 46%;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 13px;
  text-align: right;
  text-decoration: none;
  transition: border-color .18s ease, background-color .18s ease;
}

.docs-next.is-prev { text-align: left; }

.docs-next:hover {
  border-color: color-mix(in srgb, #2449ff 45%, transparent);
  background: rgba(36, 73, 255, .06);
}

.docs-next span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: rgba(255, 255, 255, .45);
  font-size: 12px;
}
.docs-next.is-prev span { justify-content: flex-start; }
.docs-next:not(.is-prev) span { justify-content: flex-end; }
.docs-next b { color: #fff; font-size: 14.5px; font-weight: 600; line-height: 1.3; }

/* ── Ilustraciones animadas ── */
.doc-illo {
  display: inline-block;
  width: 84px;
  height: 84px;
  flex: 0 0 auto;
  color: rgba(255, 255, 255, .8);
}

.doc-illo svg { width: 100%; height: 100%; }

.illo-draw {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: illo-draw 1.6s cubic-bezier(.4, 0, .2, 1) .2s forwards;
}

.illo-check {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: illo-draw .6s ease 1s forwards;
}

.illo-pop {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: illo-pop .4s cubic-bezier(.2, .8, .3, 1.4) 1.5s forwards;
}

.illo-ring {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: illo-ring 2.2s ease-out 1.8s infinite;
}

.illo-pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: illo-breathe 2.6s ease-in-out calc(var(--d, 0s)) infinite;
}

.illo-dash { animation: illo-march 1.4s linear infinite; }

.illo-candle {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: illo-grow .55s cubic-bezier(.2, .8, .3, 1) calc(var(--d, 0s) + .2s) both;
}

.illo-bubble {
  transform-box: fill-box;
  transform-origin: center;
  animation: illo-bubble 2.4s ease-in calc(var(--d, 0s)) infinite;
}

.illo-float {
  animation: illo-floaty 3.4s ease-in-out infinite;
}

.illo-shine { animation: illo-breathe 2s ease-in-out infinite; }

@keyframes illo-draw   { to { stroke-dashoffset: 0; } }
@keyframes illo-pop    { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: scale(1); } }
@keyframes illo-ring   { 0% { opacity: .8; transform: scale(.4); } 100% { opacity: 0; transform: scale(1.6); } }
@keyframes illo-breathe{ 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
@keyframes illo-march  { to { stroke-dashoffset: -16; } }
@keyframes illo-grow   { from { opacity: 0; transform: scaleY(0); } to { opacity: 1; transform: scaleY(1); } }
@keyframes illo-bubble { 0% { opacity: 0; transform: translateY(6px) scale(.6); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(-18px) scale(1); } }
@keyframes illo-floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

@media (prefers-reduced-motion: reduce) {
  .illo-draw, .illo-check { stroke-dashoffset: 0; animation: none; }
  .illo-pop { opacity: 1; animation: none; }
  .illo-ring, .illo-pulse, .illo-dash, .illo-candle,
  .illo-bubble, .illo-float, .illo-shine { animation: none; opacity: 1; }
}

@media (max-width: 767px) {
  .docs-hub, .docs-article-page { padding-top: 110px; }
  .docs-next { max-width: 100%; }
  .docs-article-footer { flex-direction: column; }
}

/* ── Titulares ────────────────────────────────────────────────────────────
 * El template capitaliza cada palabra, que es la convención inglesa. En
 * español solo van en mayúscula la inicial y los nombres propios.
 */
.section-title,
.hero-title,
.footer-title,
.card-title,
.process-title,
.button-text,
.button-text-hover,
.nav-link,
.header-nav-title,
.text-large,
.faq-title,
.pricing-title {
  text-transform: none;
}
