﻿/* OldLife Community — estilos de la web */
:root {
  --bg: #0b0b0e;
  --bg-soft: #121217;
  --card: #15151b;
  --card-hover: #1a1a21;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f2f2f5;
  --muted: #a1a1ad;
  --red: #ed4245;
  --red-strong: #d6292d;
  --red-soft: rgba(237, 66, 69, 0.12);
  --radius: 14px;
  --radius-sm: 10px;
  --max: 1120px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
.section { padding: 96px 0; }
.section--soft { background: var(--bg-soft); border-block: 1px solid var(--line); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; margin-bottom: 14px; }
h3 { font-size: 19px; font-weight: 650; }
.lead { color: var(--muted); font-size: 18px; max-width: 640px; }
.section-head { margin-bottom: 52px; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ───── Botones ───── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 24px; border-radius: 999px;
  font: 600 15px var(--font); cursor: pointer; border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-strong); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.28); }
.btn--sm { height: 38px; padding: 0 18px; font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ───── Barra superior ───── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 14, 0.78); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
/* Logo pegado a la izquierda de la pantalla, enlaces centrados y botones a la derecha */
.nav__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 68px; padding: 0 32px; }
.nav__brand { justify-self: start; }
.nav__brand img { height: 44px; width: auto; }
.nav__links { display: flex; align-items: center; justify-content: center; gap: 6px; }
.nav__right { justify-self: end; display: flex; align-items: center; gap: 10px; }
.nav__links a:not(.btn) {
  padding: 8px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.nav__links a:not(.btn):hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav__links a.is-active { color: var(--text); background: rgba(255, 255, 255, 0.08); }
.nav__toggle { display: none; background: none; border: 0; color: var(--text); width: 42px; height: 42px; cursor: pointer; }
.nav__toggle span { display: block; width: 20px; height: 2px; background: currentColor; margin: 5px auto; border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }

/* ───── Portada ───── */
/* El banner ya lleva el logo: se enseña entero arriba, difuminado hacia el fondo, y el texto va debajo */
.hero { position: relative; padding: 0 0 96px; text-align: center; }
.hero__banner {
  width: 100%; max-height: 520px; object-fit: cover; object-position: center;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}
.hero .container { margin-top: -64px; position: relative; }
.hero h1 { font-size: clamp(34px, 6vw, 58px); font-weight: 800; margin-bottom: 18px; }
.hero p { color: #d0d0d8; font-size: 19px; max-width: 600px; margin: 0 auto 34px; }
.hero .btn-row { justify-content: center; }
.page-hero { padding: 72px 0 56px; border-bottom: 1px solid var(--line); background: radial-gradient(900px 300px at 50% -10%, var(--red-soft), transparent); }
.page-hero h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 800; margin-bottom: 12px; }
.page-hero p { color: var(--muted); font-size: 18px; max-width: 640px; }

/* ───── Tarjetas ───── */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--line-strong); background: var(--card-hover); transform: translateY(-2px); }
.card__icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--red-soft); color: var(--red); margin-bottom: 18px;
}
.card__icon svg { width: 22px; height: 22px; }
.card p { color: var(--muted); font-size: 15.5px; margin-top: 8px; }

/* ───── Pasos ───── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 26px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--red); color: #fff; font-weight: 700; font-size: 15px; margin-bottom: 16px;
}
.step p { color: var(--muted); font-size: 15px; margin-top: 6px; }
.steps--3 { grid-template-columns: repeat(3, 1fr); }

/* ───── Llamada a la acción ───── */
.cta {
  text-align: center; padding: 64px 28px; border-radius: 22px; border: 1px solid var(--line);
  background: radial-gradient(600px 220px at 50% 0%, var(--red-soft), transparent), var(--card);
}
.cta .btn-row { justify-content: center; margin-top: 26px; }
.cta .lead { margin-inline: auto; }

/* ───── Normativa: índice + acordeón ───── */
.docs { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
.toc { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 2px; }
.toc a { padding: 9px 14px; border-radius: var(--radius-sm); color: var(--muted); font-size: 14.5px; font-weight: 500; border-left: 2px solid transparent; }
.toc a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.toc a.is-active { color: var(--text); border-left-color: var(--red); background: rgba(255, 255, 255, 0.05); }
.doc-block { margin-bottom: 44px; scroll-margin-top: 92px; }
.doc-block > h2 { font-size: 26px; margin-bottom: 18px; }
.accordion { display: flex; flex-direction: column; gap: 10px; }
.acc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.acc summary {
  list-style: none; cursor: pointer; padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-weight: 600; font-size: 16px;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: ''; flex: none; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform 0.25s;
}
.acc[open] summary::after { transform: rotate(-135deg); }
.acc[open] { border-color: var(--line-strong); }
.acc__body { padding: 0 22px 20px; color: var(--muted); font-size: 15.5px; }
.acc__body p + p, .acc__body ul { margin-top: 10px; }
.acc__body li { position: relative; padding-left: 20px; margin-top: 6px; }
.acc__body li::before { content: ''; position: absolute; left: 2px; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--red-soft); color: var(--red); margin-left: 8px; vertical-align: middle; }
.notice { display: flex; gap: 14px; padding: 18px 22px; border-radius: var(--radius-sm); background: var(--red-soft); border: 1px solid rgba(237, 66, 69, 0.28); color: #f3c9ca; font-size: 15px; margin-bottom: 32px; }

/* ───── Sesión de Discord ───── */
.auth { position: relative; display: flex; align-items: center; }
.user {
  display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px 0 5px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); color: var(--text); font: 600 14px var(--font); cursor: pointer;
}
.user:hover { background: rgba(255, 255, 255, 0.1); }
.user img, .user__fallback { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.user__fallback { display: grid; place-items: center; background: var(--red); font-size: 14px; }
.user-menu {
  position: absolute; top: 52px; right: 0; width: 300px; padding: 18px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line-strong); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); z-index: 60;
}
.user-menu[hidden] { display: none; }
.user-menu__head { display: flex; flex-direction: column; margin-bottom: 14px; }
.user-menu__head span { color: var(--muted); font-size: 13.5px; }
.user-menu__actions { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.user-menu__actions .btn { width: 100%; }
.profile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.profile__head { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; }
.profile__head p { color: var(--muted); }
.profile__avatar { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; }
.profile__avatar--fallback { display: grid; place-items: center; background: var(--red); font-size: 34px; font-weight: 700; }
.profile h3 { font-size: 15px; color: var(--muted); font-weight: 600; margin: 24px 0 12px; }
.profile .status span { font-weight: 400; opacity: 0.85; }
.status { padding: 10px 14px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 12px; }
.status--ok { background: rgba(67, 181, 129, 0.14); color: #6fdca6; }
.status--no { background: var(--red-soft); color: #ff8a8c; }
.status--warn { background: rgba(250, 166, 26, 0.14); color: #ffc66a; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); font-size: 12.5px; color: #d6d6de; }
.chip i { width: 9px; height: 9px; border-radius: 50%; display: block; }
.status-card {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 28px 32px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
}
.status-card p { color: var(--muted); margin-top: 6px; }
.status-card .chips { margin-top: 16px; }
.status-card--ok { border-color: rgba(67, 181, 129, 0.4); background: linear-gradient(90deg, rgba(67, 181, 129, 0.1), var(--card) 60%); }
.status-card--no { border-color: rgba(237, 66, 69, 0.35); background: linear-gradient(90deg, var(--red-soft), var(--card) 60%); }
.status-card--warn { border-color: rgba(250, 166, 26, 0.35); }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); padding: 13px 22px; border-radius: 999px; background: var(--card); border: 1px solid var(--red); color: var(--text); font-size: 14px; z-index: 100; }

/* ───── Galería: carrusel panorámico ───── */
.carousel { position: relative; width: min(1400px, calc(100vw - 48px)); left: 50%; transform: translateX(-50%); }
.carousel__frame { aspect-ratio: 1400 / 700; overflow: hidden; border-radius: 16px; border: 1px solid var(--line); background: var(--card); }
.carousel__track { display: flex; height: 100%; transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1); }
.carousel__slide { flex: 0 0 100%; height: 100%; cursor: zoom-in; }
.carousel__slide img { width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; }
.carousel__arrow {
  position: absolute; top: calc(50% - 22px); width: 28px; height: 28px; border-radius: 50%; padding: 0;
  display: grid; place-items: center; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.04);
  color: #fff; font-size: 18px; line-height: 1; cursor: pointer; transition: background 0.2s;
}
.carousel__arrow:hover { background: rgba(255, 255, 255, 0.14); }
.carousel__arrow[hidden] { display: none; }
.carousel__arrow--prev { left: -48px; }
.carousel__arrow--next { right: -48px; }
.carousel__dots { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.carousel__dots[hidden] { display: none; }
.carousel__dot { width: 7px; height: 7px; padding: 0; border-radius: 999px; border: 0; background: rgba(255, 255, 255, 0.28); cursor: pointer; transition: width 0.3s, background 0.3s; }
.carousel__dot:hover { background: rgba(255, 255, 255, 0.55); }
.carousel__dot.is-active { width: 24px; background: #fff; }
@media (max-width: 1500px) { .carousel__arrow--prev { left: 10px; } .carousel__arrow--next { right: 10px; } .carousel__arrow { top: calc(50% - 22px); background: rgba(11, 11, 14, 0.6); width: 34px; height: 34px; } }.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 32px; background: rgba(0, 0, 0, 0.92); }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1400px, 100%); max-height: 100%; border-radius: var(--radius); object-fit: contain; }
.lightbox__close { position: absolute; top: 18px; right: 22px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.08); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.lightbox__close:hover { background: rgba(255, 255, 255, 0.16); }

/* ───── Partners ───── */
.partner { display: flex; flex-direction: column; gap: 16px; padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); transition: border-color 0.2s, transform 0.2s; }
.partner:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.partner__top { display: flex; align-items: center; gap: 16px; }
.partner__logo { width: 64px; height: 64px; flex: none; overflow: hidden; border-radius: 16px; display: grid; place-items: center; font-weight: 800; font-size: 22px; color: #fff; background: linear-gradient(160deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #000)); }
.partner__tag { display: inline-block; margin-top: 4px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; color: var(--muted); }
.partner p { color: var(--muted); font-size: 15.5px; }
.partner__perk { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--red-soft); border: 1px solid rgba(237, 66, 69, 0.22); font-size: 14.5px; font-weight: 500; }
.code { font: 700 13px ui-monospace, 'SF Mono', Consolas, monospace; letter-spacing: 0.08em; padding: 6px 12px; border-radius: 8px; border: 1px dashed rgba(255, 255, 255, 0.35); background: rgba(0, 0, 0, 0.3); color: #fff; cursor: pointer; }
.code:hover { border-color: #fff; }
.partner__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }

/* ───── Pie ───── */
.footer { margin-top: 0; border-top: 1px solid var(--line); padding: 56px 0 28px; color: var(--muted); font-size: 14px; background: radial-gradient(900px 260px at 50% 120%, var(--red-soft), transparent); }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px 64px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.footer__brand { max-width: 320px; }
.footer__brand img { height: 38px; width: auto; margin-bottom: 16px; }
.footer__brand p { line-height: 1.6; }
.footer__cols { display: flex; flex-wrap: wrap; gap: 36px 72px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; min-width: 140px; }
.footer__col h4 { margin-bottom: 4px; font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); opacity: 0.8; }
.footer__col a { color: #c9c9d1; transition: color 0.2s, transform 0.2s; }
.footer__col a:hover { color: var(--text); transform: translateX(3px); }
.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; font-size: 13px; }
.footer__social { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line-strong); color: #c9c9d1; transition: color 0.2s, border-color 0.2s, background 0.2s; }
.footer__social svg { width: 18px; height: 18px; }
.footer__social:hover { color: #fff; border-color: rgba(139, 149, 255, 0.6); background: rgba(139, 149, 255, 0.12); }
@media (max-width: 700px) { .footer__cols { gap: 28px 40px; } .footer__top { gap: 32px; } }

/* ───── Animación de aparición ───── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ───── Móvil ───── */
@media (max-width: 900px) {
  .grid--3, .steps, .steps--3 { grid-template-columns: repeat(2, 1fr); }
  .docs { grid-template-columns: 1fr; gap: 28px; }
  .toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .toc a { border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; }
  .toc a.is-active { border-color: var(--red); }
}
@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .nav__inner { display: flex; justify-content: space-between; padding: 0 20px; }
  .user__name { display: none; }
  .user { padding: 0 5px; }
  .user-menu { position: fixed; top: 76px; right: 16px; left: 16px; width: auto; }
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 14px 24px 22px; background: rgba(11, 11, 14, 0.97); border-bottom: 1px solid var(--line); display: none;
  }
  .nav.is-open .nav__links { display: flex; }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .grid--3, .grid--2, .steps, .steps--3 { grid-template-columns: 1fr; }
  .hero { padding-bottom: 64px; }
  .hero__banner { height: 260px; }
}




/* ───────────── Normativas ───────────── */
.norm-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 28px; }
.norm-tab { text-align: left; font: inherit; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; cursor: pointer; transition: border-color 0.2s, background 0.2s, transform 0.2s; }
.norm-tab:hover { background: var(--card-hover); border-color: var(--line-strong); transform: translateY(-2px); }
.norm-tab strong { font-size: 17px; font-weight: 700; }
.norm-tab span { color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.norm-tab em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 4px; }
.norm-tab.is-active { border-color: var(--red); background: linear-gradient(180deg, var(--red-soft), var(--card)); }
.norm-tab.is-active em { color: var(--red); }
.norm-tools { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 32px; }
.norm-search { position: relative; flex: 1 1 320px; max-width: 520px; }
.norm-search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.norm-search input { width: 100%; height: 44px; padding: 0 16px 0 42px; font: inherit; font-size: 15px; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 999px; outline: none; transition: border-color 0.2s; }
.norm-search input:focus { border-color: var(--red); }
.norm-count { color: var(--muted); font-size: 14px; }
.norm-tools .btn { margin-left: auto; }
.norm-empty { color: var(--muted); padding: 40px 0; }
.norm .toc { max-height: calc(100vh - 120px); overflow-y: auto; scrollbar-width: thin; padding-right: 6px; }
.norm .toc a[hidden], .norm-chapter[hidden], .norm .acc[hidden], .norm .prose[hidden] { display: none; }
.norm .toc a { font-size: 13.5px; line-height: 1.35; }
.norm .doc-block > h2 { font-size: 24px; font-weight: 800; padding-bottom: 12px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.norm .acc summary { font-weight: 600; }
.prose { color: #d6d6de; font-size: 15.5px; line-height: 1.7; }
.prose > * + * { margin-top: 12px; }
.norm-chapter > .prose { margin-bottom: 18px; }
.prose strong { color: var(--text); font-weight: 650; }
.prose h4 { margin-top: 22px; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--red); font-weight: 700; }
.prose ul { padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.prose ul ul { margin-top: 6px; }
.prose li::marker { color: var(--red); }
.callout { border-radius: var(--radius-sm); padding: 16px 18px; border: 1px solid var(--line); border-left: 4px solid var(--c, #6aa0ff); background: color-mix(in srgb, var(--c, #6aa0ff) 9%, var(--card)); }
.callout > * + * { margin-top: 8px; }
.callout__title { display: block; font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c, #6aa0ff) !important; }
.callout--ok { --c: #4cc38a; }
.callout--bad { --c: #ed4245; }
.callout--warn { --c: #e8b53c; }
.callout--info { --c: #6aa0ff; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); scrollbar-width: thin; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 520px; }
.prose th { text-align: left; font-size: 12.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); background: rgba(255, 255, 255, 0.04); padding: 11px 14px; }
.prose td { padding: 11px 14px; vertical-align: top; border-top: 1px solid var(--line); }
.prose td > * + * { margin-top: 6px; }
.prose tr.sep td { background: rgba(255, 255, 255, 0.03); font-weight: 650; }
@media (max-width: 860px) {
  .norm .docs { grid-template-columns: 1fr; gap: 24px; }
  .norm .toc { position: static; max-height: none; flex-direction: row; overflow-x: auto; padding-bottom: 6px; }
  .norm .toc a { white-space: nowrap; border-left: 0; border-bottom: 2px solid transparent; }
  .norm .toc a.is-active { border-bottom-color: var(--red); }
  .norm-tools .btn { margin-left: 0; }
}

.norm .docs > * { min-width: 0; }

/* Visor de normativas (Drive) */
.norm-viewer { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.norm-viewer__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.norm-viewer__bar strong { font-size: 16px; }
.norm-frame { position: relative; background: #1f2023; }
.norm-frame[hidden] { display: none; }
.norm-frame.is-loading::after { content: 'Cargando normativa…'; position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted, #aaa); font-size: 15px; pointer-events: none; }
.norm-viewer iframe { display: block; width: 100%; height: 1180px; max-height: none; border: 0; background: #1f2023; }


@media (max-width: 700px) { .norm-viewer iframe { height: 80vh; min-height: 520px; } }


/* ───────────── Datos bajo los botones del inicio ───────────── */
.hero-stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.stat { display: inline-flex; align-items: center; gap: 12px; height: 48px; padding: 0 20px; border-radius: 999px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-strong); color: var(--text); font-size: 15px; backdrop-filter: blur(6px); }
.stat strong { font-weight: 800; font-size: 16px; }
.stat span { color: var(--muted); }
.stat--ip { border-radius: 14px; font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; background: rgba(0, 0, 0, 0.35); }
.stat__cmd { color: var(--muted); }
.stat__ip { color: var(--red) !important; font-weight: 700; letter-spacing: 0.02em; }




/* ───────────── Caminos: un solo rectángulo con escenario y pestañas ───────────── */
.showcase { display: grid; grid-template-columns: 1.8fr 1fr; min-height: 580px; position: relative; left: 50%; width: min(1400px, calc(100vw - 48px)); margin-left: calc(min(1400px, calc(100vw - 48px)) / -2); border-radius: 28px; overflow: hidden; border: 1px solid var(--line-strong); background: var(--card); box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.03) inset; }
.showcase__stage { position: relative; min-height: 440px; background: #0e0e12; overflow: hidden; }
.stage { --c: var(--red); position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.7s ease, visibility 0.7s; background: radial-gradient(120% 120% at 15% 10%, color-mix(in srgb, var(--c) 40%, #0e0e12), #0e0e12 65%); }
.stage.is-active { opacity: 1; visibility: visible; }
.stage__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s ease-out; }
.stage.is-active .stage__img { transform: scale(1); }
.stage__img[hidden] { display: none; }
.stage::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 11, 14, 0.15) 20%, rgba(11, 11, 14, 0.92) 100%), linear-gradient(90deg, color-mix(in srgb, var(--c) 22%, transparent), transparent 60%); pointer-events: none; }
.stage__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 36px 40px 38px; }
.stage__tag { display: inline-block; margin-bottom: 14px; padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; background: color-mix(in srgb, var(--c) 30%, rgba(11, 11, 14, 0.7)); border: 1px solid color-mix(in srgb, var(--c) 60%, transparent); backdrop-filter: blur(6px); }
.stage__body h3 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; }
.stage__body > p { color: #d0d0d8; line-height: 1.65; max-width: 520px; margin-bottom: 18px; }
.stage .chips { margin-bottom: 22px; }
.stage__link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: #fff; text-decoration: none; }
.stage__link i { font-style: normal; color: var(--c); transition: transform 0.2s; }
.stage__link:hover i { transform: translateX(5px); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12); backdrop-filter: blur(4px); }
.showcase__side { display: flex; flex-direction: column; justify-content: center; padding: 44px 44px; border-left: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent); }
.showcase__side h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -0.02em; margin: 6px 0 12px; }
.showcase__side .lead { color: var(--muted); margin-bottom: 28px; }
.tabs-way { display: flex; flex-direction: column; counter-reset: way; border-top: 1px solid var(--line); }
.tab-way { --c: var(--red); counter-increment: way; position: relative; display: flex; align-items: baseline; gap: 18px; width: 100%; padding: 22px 6px 22px 22px; text-align: left; font: inherit; color: var(--muted); background: none; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; overflow: hidden; transition: color 0.25s, padding 0.25s; }
.tab-way::before { content: counter(way, decimal-leading-zero); font-size: 13px; font-weight: 800; letter-spacing: 0.1em; color: var(--muted); transition: color 0.25s; }
.tab-way::after { content: ''; position: absolute; left: 0; top: 22px; bottom: 22px; width: 3px; border-radius: 3px; background: var(--c); transform: scaleY(0); transition: transform 0.3s; }
.tab-way:hover { color: var(--text); }
.tab-way.is-active { color: var(--text); padding-left: 30px; }
.tab-way.is-active::before { color: var(--c); }
.tab-way.is-active::after { transform: scaleY(1); }
.tab-way__icon { display: none; }
.tab-way__txt { display: flex; flex-direction: column; gap: 4px; }
.tab-way__txt strong { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.tab-way__txt small { color: var(--muted); font-size: 13px; opacity: 0; max-height: 0; transition: opacity 0.3s, max-height 0.3s; }
.tab-way.is-active .tab-way__txt small { opacity: 1; max-height: 24px; }
.tab-way__bar { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--c); }
.tab-way.is-active .tab-way__bar { animation: way-progress var(--way-ms, 8000ms) linear forwards; }
@keyframes way-progress { to { width: 100%; } }.way--civil { --c: #2f9e6e; }
.way--crime { --c: #ed4245; }
.way--public { --c: #3d7ee0; }
@media (max-width: 900px) {
  .showcase { grid-template-columns: 1fr; min-height: 0; }
  .showcase__stage { min-height: 460px; order: 0; }
  .showcase__side { border-left: 0; border-top: 1px solid var(--line); padding: 32px 22px; }
  .stage__body { padding: 26px 22px 28px; }
}




/* Partners: todos en una sola línea (las columnas se ajustan a cuántos haya) */
#partners-grid { grid-template-columns: repeat(var(--partners, 3), minmax(0, 1fr)); }
@media (max-width: 900px) { #partners-grid { grid-template-columns: 1fr; } }

/* ───────────── Tickets de whitelist (estética OldLife: banner, rojo y tarjetas con color por tipo) ───────────── */
.tk { padding: 0 0 90px; min-height: 72vh; }
.tkx-hero { position: relative; padding: 54px 0 40px; border-bottom: 1px solid var(--line); overflow: hidden; background: radial-gradient(800px 260px at 15% 0%, var(--red-soft), transparent), linear-gradient(180deg, rgba(11, 11, 14, 0.2), var(--bg)); }
.tkx-hero::before { content: ''; position: absolute; inset: 0; background: url('../assets/banner.jpg') center 30% / cover; opacity: 0.16; mask-image: linear-gradient(180deg, #000, transparent); -webkit-mask-image: linear-gradient(180deg, #000, transparent); pointer-events: none; }
.tkx-hero .container { position: relative; max-width: 1000px; }
.tkx-hero h1 { font-size: clamp(30px, 4.4vw, 42px); font-weight: 800; letter-spacing: -0.02em; }
.tkx-lead { color: var(--muted); margin-top: 8px; font-size: 16px; }
.tkx-back { display: inline-block; margin-bottom: 18px; color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; }
.tkx-back:hover { color: var(--text); }
.tkx-wrap { max-width: 1000px; padding-top: 34px; }
.tkx-wrap--chat { max-width: 880px; }
.tkx-h2 { font-size: 13px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 34px 0 14px; }
.tkx-title { --c: var(--red); display: flex; align-items: center; gap: 18px; }
.tkx-ico { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(180deg, color-mix(in srgb, var(--c, var(--red)) 82%, #fff), color-mix(in srgb, var(--c, var(--red)) 72%, #000)); box-shadow: 0 10px 24px -10px var(--c, var(--red)); }
.tkx-ico svg { width: 22px; height: 22px; }

.tkx-ico--big { width: 66px; height: 66px; border-radius: 20px; }
.tkx-ico--big svg { width: 32px; height: 32px; }

.tkx-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 10px; color: var(--muted); font-size: 13px; font-weight: 600; }
.tkp { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: 0.03em; border: 1px solid currentColor; }
.tkp--open { color: #e8b53c; } .tkp--approved { color: #4cc38a; } .tkp--rejected { color: var(--red); } .tkp--closed { color: var(--muted); }

/* Seguimiento del estado */
.tkx-track { display: flex; list-style: none; margin-top: 28px; max-width: 560px; }
.tkx-track li { position: relative; flex: 1; display: flex; flex-direction: column; gap: 8px; font-size: 12px; font-weight: 700; color: var(--muted); }
.tkx-track li i { position: relative; z-index: 1; width: 14px; height: 14px; border-radius: 50%; background: var(--card); border: 2px solid var(--line-strong); }
.tkx-track li::before { content: ''; position: absolute; top: 6px; left: 14px; right: -2px; height: 2px; background: var(--line-strong); }
.tkx-track li:last-child::before { display: none; }
.tkx-track li.is-done i { background: #4cc38a; border-color: #4cc38a; }
.tkx-track li.is-done::before { background: #4cc38a; }
.tkx-track li.is-now i { border-color: #e8b53c; box-shadow: 0 0 0 5px rgba(232, 181, 60, 0.18); animation: tkx-pulse 1.8s ease-in-out infinite; }
.tkx-track li.is-done, .tkx-track li.is-now { color: var(--text); }
.tkx-track--rejected li:last-child i { background: var(--red); border-color: var(--red); }
.tkx-track--closed li:last-child i { background: var(--muted); border-color: var(--muted); }
.tkx-track--rejected li:last-child, .tkx-track--closed li:last-child { color: var(--text); }
@keyframes tkx-pulse { 50% { box-shadow: 0 0 0 9px rgba(232, 181, 60, 0); } }

/* Lista */
.tkx-note { padding: 16px 18px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); margin-bottom: 18px; color: #d6d6de; }
.tkx-note a { color: var(--red); }
.tkx-note--ok { border-color: rgba(76, 195, 138, 0.4); background: rgba(76, 195, 138, 0.08); }
.tkx-choose { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.tkx-choice { --c: var(--red); position: relative; display: flex; gap: 18px; align-items: center; padding: 24px; border-radius: 20px; text-decoration: none; color: var(--text); overflow: hidden; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 10%, var(--card)), var(--card) 70%); border: 1px solid var(--line); transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s; }
.tkx-choice::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, transparent, var(--c), transparent); }
.tkx-choice:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--c) 60%, transparent); box-shadow: 0 26px 50px -28px var(--c); }
.tkx-choice .tkx-ico { width: 58px; height: 58px; border-radius: 18px; }
.tkx-choice .tkx-ico svg { width: 28px; height: 28px; }
.tkx-choice strong { display: block; font-size: 19px; font-weight: 800; margin-bottom: 4px; }
.tkx-choice span span, .tkx-choice div > span { color: var(--muted); font-size: 14px; line-height: 1.5; }
.tkx-list { display: flex; flex-direction: column; gap: 10px; }
.tkx-row { --c: var(--red); display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--text); transition: border-color 0.2s, transform 0.2s; }
.tkx-row:hover { border-color: color-mix(in srgb, var(--c) 55%, transparent); transform: translateX(4px); }
.tkx-row__main { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.tkx-row__main small { color: var(--muted); font-size: 13px; }
.tkx-empty { color: var(--muted); padding: 50px 0; text-align: center; }

/* Formularios */
.tkx-panel { --c: var(--red); position: relative; display: flex; flex-direction: column; gap: 18px; padding: 30px; border-radius: 22px; overflow: hidden; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 7%, var(--card)), var(--card) 40%); border: 1px solid var(--line-strong); }
.tkx-panel::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, transparent, var(--c), transparent); }
.tkx-label, .tkx-field > span { font-size: 14px; font-weight: 700; }
.tkx-field { display: flex; flex-direction: column; gap: 8px; }
.tkx-two { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; }
.tkx-field input, .tkx-field textarea, .tkx-composer textarea { width: 100%; font: inherit; color: var(--text); background: rgba(0, 0, 0, 0.28); border: 1px solid var(--line-strong); border-radius: 12px; padding: 12px 14px; outline: none; resize: vertical; transition: border-color 0.2s; }
.tkx-field input:focus, .tkx-field textarea:focus, .tkx-composer textarea:focus { border-color: var(--c, var(--red)); }
.tkx-hint { color: var(--muted); font-size: 13px; }
.tkx-error { color: #ff7a7c; font-size: 14px; font-weight: 600; }
.tkx-actions { display: flex; gap: 10px; }
.tkx-guide { padding: 16px 18px; border-radius: 14px; background: color-mix(in srgb, var(--c) 10%, transparent); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); font-size: 14px; line-height: 1.65; color: #d0d6e4; }
.tkx-guide b { display: block; margin-bottom: 6px; color: var(--text); }
.tkx-guide ul { margin: 8px 0 8px 20px; }
.tkx-servers { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.tkx-server { position: relative; cursor: pointer; }
.tkx-server input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.tkx-server span { display: block; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(0, 0, 0, 0.28); font-weight: 600; font-size: 14px; transition: border-color 0.2s, background 0.2s; }
.tkx-server:hover span { border-color: rgba(255, 255, 255, 0.3); }
.tkx-server input:checked + span { border-color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); }
.up__drop { display: flex; flex-direction: column; gap: 4px; align-items: center; text-align: center; padding: 22px; border: 1.5px dashed var(--line-strong); border-radius: 14px; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.up__drop span { color: var(--muted); font-size: 13px; font-weight: 400; }
.up.is-over .up__drop, .up__drop:hover { border-color: var(--c, var(--red)); background: color-mix(in srgb, var(--c, var(--red)) 8%, transparent); }
.up.is-busy .up__drop { opacity: 0.6; }
.up__thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.up__thumb { position: relative; width: 92px; height: 92px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-strong); background: var(--bg); }
.up__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.up__pdf { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.up__pdf b { font-size: 20px; color: var(--red); }
.up__pdf small { color: var(--muted); }
.up__thumb button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, 0.7); color: #fff; cursor: pointer; line-height: 1; }

/* Conversación */
.tkx-data { margin-bottom: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.tkx-data summary { cursor: pointer; padding: 14px 18px; font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); list-style: none; }
.tkx-data summary::-webkit-details-marker { display: none; }
.tkx-data summary::after { content: '＋'; float: right; color: var(--red); }
.tkx-data[open] summary::after { content: '－'; }
.tkx-data dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 24px; padding: 4px 18px 18px; }
.tkx-data dt { color: var(--muted); font-size: 12px; margin-bottom: 3px; }
.tkx-data dd { font-weight: 600; white-space: pre-wrap; word-break: break-word; }
.tkx-thread { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.tkx-day { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; }
.tkx-day::before, .tkx-day::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.tkx-sys { display: flex; gap: 14px; padding: 18px 20px; border-radius: 18px; background: linear-gradient(180deg, var(--red-soft), rgba(255, 255, 255, 0.02)); border: 1px solid rgba(237, 66, 69, 0.3); }
.tkx-sys > img { flex: none; width: 38px; height: 38px; border-radius: 10px; object-fit: contain; }
.tkx-sys__tag { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }
.tkx-sys__body { font-size: 14.5px; line-height: 1.7; color: #d6d6de; }
.tkx-msg { display: flex; gap: 12px; align-items: flex-end; max-width: 86%; }
.tkx-msg--me { align-self: flex-end; flex-direction: row-reverse; }
.tkx-av { flex: none; width: 38px; height: 38px; border-radius: 50%; overflow: hidden; background: #5865f2; display: grid; place-items: center; font-weight: 800; }
.tkx-av img { width: 100%; height: 100%; object-fit: cover; }
.tkx-bubble { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-strong); border-radius: 18px 18px 18px 4px; padding: 11px 16px; min-width: 0; }
.tkx-msg--me .tkx-bubble { border-radius: 18px 18px 4px 18px; background: linear-gradient(180deg, rgba(237, 66, 69, 0.2), rgba(237, 66, 69, 0.1)); border-color: rgba(237, 66, 69, 0.4); }
.tkx-msg--staff .tkx-bubble { border-left: 3px solid var(--red); }
.tkx-bubble__top { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; flex-wrap: wrap; }
.tkx-bubble__top strong { font-size: 14px; }
.tkx-bubble__top em { font-style: normal; font-size: 10.5px; font-weight: 800; padding: 2px 8px; border-radius: 6px; background: var(--red); color: #fff; }
.tkx-bubble__top small { color: var(--muted); font-size: 12px; }
.tkx-bubble p { font-size: 14.5px; line-height: 1.6; word-break: break-word; }
.tkx-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tkx-img { max-width: 240px; max-height: 170px; border-radius: 12px; border: 1px solid var(--line-strong); cursor: zoom-in; object-fit: cover; }
.tkx-file { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(0, 0, 0, 0.25); text-decoration: none; color: var(--text); font-size: 14px; font-weight: 600; }
.tkx-file b { color: var(--red); }
.tkx-composer { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 20px; background: var(--card); border: 1px solid var(--line-strong); }
.tkx-composer textarea { --c: var(--red); }
.tkx-composer .up__drop { padding: 12px; }
.tkx-closed { color: var(--muted); text-align: center; padding: 20px; border: 1px dashed var(--line-strong); border-radius: 16px; }
@media (max-width: 700px) { .tkx-two { grid-template-columns: 1fr; } .tkx-msg { max-width: 96%; } .tkx-panel { padding: 22px 18px; } }

#wl-actions:not(:empty) { margin-bottom: 18px; }


/* Paso de la ficha de PJ dentro del ticket */
.tkx-sheet { margin-bottom: 22px; }
.tkx-sheet h2 { font-size: 24px; font-weight: 800; margin: 4px 0 6px; }
.tkx-sheet p { color: var(--muted); }
.tkx-sheet__tag { font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #4cc38a; }
.tkx-sheet--wait { display: flex; flex-direction: column; gap: 4px; padding: 16px 20px; border-radius: 16px; border: 1px solid rgba(232, 181, 60, 0.4); background: rgba(232, 181, 60, 0.07); }
.tkx-sheet--wait span { color: #d6d6de; font-size: 14px; }
.tkx-track { --n: 3; max-width: calc(var(--n) * 190px); }


.tkx-thread + #tk-sheet { margin-top: 6px; }
#tk-sheet:empty { display: none; }

/* Iconos del pack dentro de los textos del ticket */
.tkx-ic { --c: var(--red); display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 9px; vertical-align: -5px; border-radius: 7px; color: #fff; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 82%, #fff), color-mix(in srgb, var(--c) 72%, #000)); box-shadow: 0 4px 10px -4px var(--c); }
.tkx-ic svg { width: 14px; height: 14px; }

.tkx-download { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); background: color-mix(in srgb, var(--c) 12%, transparent); }
.tkx-download > div { display: flex; flex-direction: column; gap: 4px; max-width: 460px; }
.tkx-download b { font-size: 17px; }
.tkx-download span { color: #d0d6e4; font-size: 14px; line-height: 1.55; }

/* El atributo hidden tiene que ganar a los display de estos bloques */
.tk [hidden], .tkx-composer[hidden], .tkx-closed[hidden], .tkx-sheet[hidden] { display: none !important; }

/* Con whitelist pero sin ficha: el aviso sale arriba y debajo el botón de la ficha */
.wl-sheet-first { display: flex; flex-direction: column; }
.wl-sheet-first #wl-status { order: -1; margin-bottom: 18px; }
.wl-sheet-first #wl-actions { margin-bottom: 0 !important; }


/* Esqueletos de carga: se ve la forma de la página al instante en lugar de un «Cargando…» */
.tkx-skel { border-radius: 14px; background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 25%, rgba(255, 255, 255, 0.09) 50%, rgba(255, 255, 255, 0.04) 75%); background-size: 200% 100%; animation: tkx-shimmer 1.2s linear infinite; }
.tkx-skel--title { width: min(340px, 70%); height: 38px; margin: 24px 0 14px; }
.tkx-skel--line { width: min(520px, 90%); height: 16px; }
.tkx-skel--card { height: 92px; margin-bottom: 14px; }
@keyframes tkx-shimmer { to { background-position: -200% 0; } }


/* Test de la whitelist */
.tkx-progress { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin: 0 0 20px; border-radius: 0 0 14px 14px; background: var(--bg); border: 1px solid var(--line-strong); border-top: 0; box-shadow: 0 14px 18px -12px rgba(0, 0, 0, 0.9); font-size: 13px; font-weight: 700; }
.tkx-progress__bar { flex: 1; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.tkx-progress__bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #ed4245, #f28a8c); transition: width 0.25s ease; }
.tkx-q { margin: 0 0 16px; padding: 22px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); transition: border-color 0.2s; }
.tkx-q.is-missing { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.tkx-q legend { float: left; width: 100%; display: flex; gap: 12px; font-size: 16px; font-weight: 700; line-height: 1.5; margin-bottom: 14px; padding: 0; }
.tkx-q legend span { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; font-size: 13px; background: var(--red-soft); color: var(--red); }
.tkx-q .tkx-opt { clear: both; }
.tkx-opt { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; margin-top: 8px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(0, 0, 0, 0.22); cursor: pointer; transition: border-color 0.15s, background 0.15s, transform 0.15s; }
.tkx-opt:hover { border-color: rgba(255, 255, 255, 0.3); transform: translateX(3px); }
.tkx-opt input { position: absolute; opacity: 0; pointer-events: none; }
.tkx-opt__l { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; font-size: 12px; font-weight: 800; background: rgba(255, 255, 255, 0.08); }
.tkx-opt__t { font-size: 14.5px; line-height: 1.55; color: #dcdce4; }
.tkx-opt:has(input:checked) { border-color: var(--red); background: color-mix(in srgb, var(--red) 14%, transparent); }
.tkx-opt:has(input:checked) .tkx-opt__l { background: var(--red); color: #fff; }
.tkx-wait { align-items: flex-start; }
.tkx-wait__time { font-size: 44px; font-weight: 800; letter-spacing: -0.02em; }
@media (max-width: 700px) { .tkx-progress { top: 0; } .tkx-q { padding: 16px; } .tkx-wait__time { font-size: 34px; } }

.partner__logo img { width: 100%; height: 100%; object-fit: cover; display: block; background: #fff; }

.tkx-dev { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; padding: 12px 16px; border-radius: 14px; border: 1px dashed rgba(232, 181, 60, 0.6); background: rgba(232, 181, 60, 0.07); font-size: 13.5px; font-weight: 600; color: #e8d29a; }

.footer__socials { display: flex; gap: 10px; }
.footer__social[aria-label='TikTok']:hover { border-color: rgba(37, 244, 238, 0.6); background: rgba(37, 244, 238, 0.1); }
.footer__social[aria-label^='X']:hover { border-color: rgba(255, 255, 255, 0.55); background: rgba(255, 255, 255, 0.1); }

/* Mis personajes */
.pj-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 18px; }
.pj { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: linear-gradient(180deg, rgba(237, 66, 69, 0.08), var(--card) 35%); border: 1px solid var(--line-strong); }
.pj__head { display: flex; align-items: center; gap: 16px; padding: 22px 24px 12px; }
.pj__av { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; font-size: 24px; font-weight: 800; color: #fff; background: linear-gradient(180deg, #f2656a, #c0292d); box-shadow: 0 10px 24px -10px var(--red); }
.pj__head h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.pj__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.pj__meta span { padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); color: #d0d0d8; }
.pj__body { padding: 8px 24px 6px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.pj__two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pj__sec h4 { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); margin-bottom: 4px; }
.pj__sec p { font-size: 14.5px; line-height: 1.6; color: #d6d6de; }
.pj__story { border-radius: 14px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.22); }
.pj__story summary { cursor: pointer; padding: 12px 16px; font-weight: 700; font-size: 14px; list-style: none; display: flex; justify-content: space-between; }
.pj__story summary::-webkit-details-marker { display: none; }
.pj__story summary::after { content: '＋'; color: var(--red); }
.pj__story[open] summary::after { content: '－'; }
.pj__text { padding: 0 16px 16px; max-height: 420px; overflow-y: auto; font-size: 14.5px; line-height: 1.7; color: #d6d6de; scrollbar-width: thin; }
.pj__text p + p { margin-top: 10px; }
.pj__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 24px 20px; color: var(--muted); }
.pj__empty { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 26px; border-radius: 18px; border: 1px dashed var(--line-strong); background: var(--card); }
.pj__empty span { color: var(--muted); }
@media (max-width: 520px) { .pj-grid { grid-template-columns: 1fr; } .pj__two { grid-template-columns: 1fr; } }
.footer__social[aria-label='Instagram']:hover { border-color: rgba(225, 48, 108, 0.65); background: rgba(225, 48, 108, 0.12); }
.footer__social[aria-label='YouTube']:hover { border-color: rgba(255, 60, 60, 0.7); background: rgba(255, 60, 60, 0.12); }

/* ───────────── Mi perfil: panel de control ───────────── */
.dash__hello { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.dash__av { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; object-fit: cover; font-size: 26px; font-weight: 800; background: var(--card); border: 1px solid var(--line-strong); }
.dash__hello h1 { font-size: clamp(26px, 4vw, 34px); font-weight: 800; letter-spacing: -0.02em; }
.dash__hello p { color: var(--muted); margin-top: 4px; }
.dash__banner { --c: var(--red); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 22px 26px; border-radius: 20px; border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); background: linear-gradient(90deg, color-mix(in srgb, var(--c) 12%, var(--card)), var(--card) 70%); }
.dash__banner--ok { --c: #2f9e6e; } .dash__banner--warn { --c: #e8b53c; } .dash__banner--no { --c: var(--red); }
.dash__banner h3 { font-size: 19px; font-weight: 800; margin-bottom: 4px; }
.dash__banner p { color: #c9c9d1; font-size: 14.5px; max-width: 680px; line-height: 1.55; }
.dash__h { margin: 40px 0 16px; font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.dash__cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; align-items: stretch; }
.dash__card { display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); transition: border-color 0.2s; }
.dash__card:hover { border-color: var(--line-strong); }
.dash__card > header { display: flex; align-items: center; gap: 10px; }
.dash__card > header i { display: grid; place-items: center; width: 22px; height: 22px; color: var(--muted); }
.dash__card > header i svg { width: 20px; height: 20px; }
.dash__card > header h3 { flex: 1; font-size: 17px; font-weight: 700; }
.dash__card > header a { font-size: 13px; font-weight: 700; color: var(--red); text-decoration: none; }
.dash__card > header a:hover { text-decoration: underline; }
.dash__empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 28px 22px; border-radius: 16px; border: 1px dashed var(--line-strong); }
.dash__empty > i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: rgba(255, 255, 255, 0.06); color: var(--muted); margin-bottom: 4px; }
.dash__empty > i svg { width: 18px; height: 18px; }
.dash__empty strong { font-size: 15px; }
.dash__empty span { color: var(--muted); font-size: 13.5px; line-height: 1.55; max-width: 270px; }
.dash__empty .btn { margin-top: 6px; }
.dash__list { display: flex; flex-direction: column; gap: 8px; }
.dash__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); text-decoration: none; color: var(--text); transition: border-color 0.2s, transform 0.2s; }
.dash__row:hover { border-color: var(--line-strong); transform: translateX(3px); }
.dash__row span:first-child { display: flex; flex-direction: column; gap: 2px; }
.dash__row small { color: var(--muted); font-size: 12px; }
.dash__chips { padding: 4px 2px; }
@media (max-width: 700px) { .dash__banner { padding: 18px; } .dash__cards { grid-template-columns: 1fr; } }

/* Formulario de la ficha de PJ */
.sf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.sf__sec { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.18); }
.sf__sec--wide { grid-column: 1 / -1; }
.sf__sec h4 { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.sf__sec h4 span { display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 6px; border-radius: 7px; font-size: 11px; background: var(--red); color: #fff; }
.sf__sec h4 em, .sf label em { font-style: normal; font-weight: 600; font-size: 11.5px; letter-spacing: 0; text-transform: none; color: var(--muted); }
.sf label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 700; color: #cfcfd8; }
.sf input, .sf textarea { width: 100%; font: inherit; font-weight: 400; font-size: 14.5px; color: var(--text); background: rgba(0, 0, 0, 0.32); border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px 12px; outline: none; resize: vertical; transition: border-color 0.2s; }
.sf input:focus, .sf textarea:focus { border-color: var(--c, var(--red)); }
.sf__2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sf small { align-self: flex-end; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.sf small.is-ok { color: #4cc38a; }
@media (max-width: 800px) { .sf { grid-template-columns: 1fr; } .sf__2 { grid-template-columns: 1fr; } }

/* Normativas propias */
.norm .acc > .acc__prose { padding: 0 22px 20px; }
.norm .acc__prose .norm-share { margin-top: 14px; font-size: 13px; }
.norm .acc__prose .norm-share a { color: var(--muted); text-decoration: underline; }
.norm .acc__prose .norm-share a:hover { color: var(--red); }
.norm-anchor { margin-left: 8px; color: var(--muted); font-size: 0.7em; opacity: 0; text-decoration: none; transition: opacity 0.2s; }
.doc-block:hover .norm-anchor, .norm-anchor:focus { opacity: 1; }
.norm .doc-block, .norm .acc { scroll-margin-top: 92px; }
.norm-viewer iframe { height: 1180px; }
@media (max-width: 700px) { .norm-anchor { opacity: 1; } .norm .acc > .acc__prose { padding: 0 16px 16px; } .norm .acc summary { padding: 16px; } }

/* Páginas legales */
.legal { max-width: 780px; }
.legal h3 { margin-top: 28px; font-size: 20px; color: var(--text); }
.legal a { color: var(--red); text-decoration: underline; }
.legal code { background: rgba(255,255,255,0.07); padding: 1px 6px; border-radius: 6px; font-size: 0.9em; }
.legal .table-wrap { margin-top: 12px; }
.legal__date { color: var(--muted); font-size: 13.5px; margin-top: 32px; }
.footer__bottom a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* Directorio */
.dir .dir-block + .dir-block { margin-top: 64px; }
.dir .section-head { margin-bottom: 28px; }
.dir-card { position: relative; padding-left: 26px; }
.dir-card h3 { font-size: 18px; }
.dir-dot { position: absolute; left: 0; top: 18px; bottom: 18px; width: 4px; border-radius: 4px; }
.dir-tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.dir-tag--ok { background: rgba(76, 195, 138, 0.15); color: #4cc38a; }
.dir-tag--no { background: rgba(237, 66, 69, 0.15); color: #ed4245; }

/* Resaltados de las normativas (estilo de marcador) */
.norm .prose strong { color: #fff; font-weight: 700; background: rgba(237, 66, 69, 0.16); border: 1px solid rgba(237, 66, 69, 0.22); padding: 1px 8px; border-radius: 7px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.norm .prose em { color: #6ab7d8; font-style: italic; }
.norm .prose th strong, .norm .prose h4 strong, .norm .callout__title { background: none; border: 0; padding: 0; }
.hl { color: #fff; font-weight: 600; padding: 1px 9px; border-radius: 7px; -webkit-box-decoration-break: clone; box-decoration-break: clone; background: rgba(237, 66, 69, 0.2); border: 1px solid rgba(237, 66, 69, 0.3); }
.hl--yellow { color: #24200f; background: #e8c35a; border-color: #e8c35a; }
.hl--red { background: rgba(237, 66, 69, 0.22); border-color: rgba(237, 66, 69, 0.34); }
.hl--blue { background: rgba(106, 160, 255, 0.18); border-color: rgba(106, 160, 255, 0.3); color: #cfe0ff; }
.hl--green { background: rgba(76, 195, 138, 0.18); border-color: rgba(76, 195, 138, 0.3); color: #c9f2dc; }
.hl--purple { background: rgba(167, 139, 250, 0.2); border-color: rgba(167, 139, 250, 0.32); color: #e2d8ff; }
.hl strong, strong .hl { background: none; border: 0; padding: 0; }
.norm .prose li { line-height: 1.85; }

/* Barras de desplazamiento con el estilo de la web */
html { scrollbar-color: rgba(237, 66, 69, 0.55) #0c0c10; }
* { scrollbar-width: thin; scrollbar-color: rgba(237, 66, 69, 0.5) transparent; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: transparent; }
html::-webkit-scrollbar-track { background: #0c0c10; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, rgba(237, 66, 69, 0.75), rgba(160, 30, 36, 0.75)); border-radius: 999px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #ed4245, #b3262b); background-clip: padding-box; border: 3px solid transparent; }
::-webkit-scrollbar-corner { background: transparent; }
