/* ============================================================
   BFX3 — css/documentacion.css  v1.0
   Estilos específicos de documentacion.html
   Depende de perfil.css (variables, navbar, sidebar, etc.)
   ============================================================ */

/* ── Layout principal ─────────────────────────────────────── */
.doc-page {
    position: relative;
    z-index: 1;
    padding-top: var(--navbar-h);
    min-height: 100vh;
}

.doc-inner {
    max-width: 860px;
    margin: 0 auto;
    padding: 40px 24px 80px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* ── Cards ────────────────────────────────────────────────── */
.doc-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(81,39,123,0.40);
    border-radius: 16px;
    padding: 36px 40px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* ── Imágenes ─────────────────────────────────────────────── */
.doc-bsc-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 12px;
    display: block;
    margin: 0 auto 4px;
    object-fit: contain;
}

.doc-img-full {
    max-width: 100%;
}

.doc-img-lg {
    max-width: 70%;
}

/* ── Tipografía ───────────────────────────────────────────── */
.doc-h2 {
    font-family: 'Barlow', sans-serif;
    font-weight: 800;
    font-size: 22px;
    color: #ffffff;
    letter-spacing: -0.4px;
    line-height: 1.3;
}

.doc-h3 {
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    font-size: 17px;
    color: #F5BF5D;
    letter-spacing: -0.2px;
    margin-top: 4px;
}

.doc-p {
    font-size: 15px;
    color: rgba(255,255,255,0.75);
    line-height: 1.75;
    margin: 0;
}

.doc-p strong {
    color: #ffffff;
    font-weight: 700;
}

/* ── Listas ───────────────────────────────────────────────── */
.doc-check-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.doc-check-list li {
    font-size: 15px;
    color: rgba(255,255,255,0.75);
    line-height: 1.6;
}

.doc-bullet-list {
    padding-left: 22px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.doc-bullet-list li {
    font-size: 15px;
    color: rgba(255,255,255,0.75);
    line-height: 1.65;
}

/* ── Divisor ──────────────────────────────────────────────── */
.doc-divider {
    border: none;
    border-top: 1px solid rgba(81,39,123,0.30);
    margin: 0;
}

/* ── Lista numerada ───────────────────────────────────────── */
.doc-num-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.doc-num-list li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.doc-num-badge {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(108,63,197,0.30);
    border: 1px solid rgba(108,63,197,0.50);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Barlow', sans-serif;
    font-weight: 800;
    font-size: 13px;
    color: #a78bfa;
    margin-top: 2px;
}

.doc-num-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.doc-num-title {
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: #ffffff;
}

.doc-num-text {
    font-size: 14px;
    color: rgba(255,255,255,0.70);
    line-height: 1.65;
}

/* ── Video embed ──────────────────────────────────────────── */
.doc-video-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.doc-video-wrap iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
}

/* ── Token cards ──────────────────────────────────────────── */
.doc-token-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.doc-token-card {
    background: rgba(108,63,197,0.12);
    border: 1px solid rgba(108,63,197,0.30);
    border-radius: 12px;
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.doc-token-name {
    font-family: 'Barlow', sans-serif;
    font-weight: 800;
    font-size: 18px;
    color: #F5BF5D;
}

.doc-token-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.72);
    line-height: 1.65;
}

/* ── Position cards ───────────────────────────────────────── */
.doc-pos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.doc-pos-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(81,39,123,0.35);
    border-radius: 12px;
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.doc-pos-card:last-child {
    border-color: rgba(108,63,197,0.50);
    background: rgba(108,63,197,0.10);
}

.doc-pos-label {
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    font-size: 13px;
    color: #F5BF5D;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.doc-pos-line {
    font-size: 13px;
    color: rgba(255,255,255,0.72);
    line-height: 1.55;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
    .doc-inner  { padding: 24px 16px 60px; gap: 20px; }
    .doc-card   { padding: 22px 18px; gap: 18px; }
    .doc-h2     { font-size: 19px; }
    .doc-h3     { font-size: 16px; }
    .doc-p,
    .doc-check-list li,
    .doc-bullet-list li,
    .doc-num-text { font-size: 14px; }
    .doc-num-title { font-size: 14px; }
}

@media (max-width: 600px) {
    .doc-token-grid { grid-template-columns: 1fr; }
    .doc-pos-grid   { grid-template-columns: 1fr; }
}

@media (max-width: 390px) {
    .doc-inner { padding: 16px 12px 48px; }
    .doc-card  { padding: 18px 14px; }
    .doc-h2    { font-size: 17px; }
}

/* ── Warning box ─────────────────────────────────── */
.doc-warning {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    background: rgba(251,191,36,0.10);
    border: 1px solid rgba(251,191,36,0.45);
    border-radius: 12px;
}

.doc-warning-icon {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 1px;
}

.doc-warning-text {
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    line-height: 1.65;
}
