/* ===== GUÍA PVP ===================================================== */

:root {
    --neon-cyan: #65E6FF;
    --neon-cyan-glow: rgba(101, 230, 255, 0.45);
    --deep-purple: #0f0c29;
    --card-bg: rgba(15, 12, 41, 0.6);
    --card-border: rgba(101, 230, 255, 0.15);
    --text-muted: rgba(255, 255, 255, 0.5);
}

/* ---- Layout ---- */
.guide-page {
    padding: 40px 0 80px;
    min-height: 60vh;
}

.guide-header {
    margin-bottom: 36px;
}

.guide-title {
    font-family: 'Archivo Black', sans-serif;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    color: #fff;
    margin: 0 0 8px;
}

.guide-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* ---- Tabs (radio button hack, sin JS) ---- */
.guide-tabs input[type="radio"] {
    display: none;
}

.guide-tab-bar {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 2px 2px 4px;
    margin-bottom: 28px;
    scrollbar-width: thin;
    scrollbar-color: var(--card-border) transparent;
}

.guide-tab-bar label {
    flex-shrink: 0;
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 8px;
    overflow: hidden;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    transition: color 0.2s, border-color 0.2s, background 0.2s;
    white-space: nowrap;
    user-select: none;
}

.guide-tab-bar label:hover {
    color: #fff;
    border-color: rgba(101, 230, 255, 0.35);
}

#gt1:checked ~ .guide-tab-bar label[for="gt1"],
#gt2:checked ~ .guide-tab-bar label[for="gt2"],
#gt3:checked ~ .guide-tab-bar label[for="gt3"],
#gt4:checked ~ .guide-tab-bar label[for="gt4"],
#gt5:checked ~ .guide-tab-bar label[for="gt5"],
#gt6:checked ~ .guide-tab-bar label[for="gt6"] {
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
    background: rgba(101, 230, 255, 0.08);
}

/* ---- Contenidos de tab ---- */
.guide-content {
    display: none;
    animation: guideSlideIn 0.22s ease;
}

@keyframes guideSlideIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

#gt1:checked ~ .guide-content[data-tab="1"],
#gt2:checked ~ .guide-content[data-tab="2"],
#gt3:checked ~ .guide-content[data-tab="3"],
#gt4:checked ~ .guide-content[data-tab="4"],
#gt5:checked ~ .guide-content[data-tab="5"],
#gt6:checked ~ .guide-content[data-tab="6"] {
    display: block;
}

/* ---- Secciones dentro de un tab ---- */
.guide-section {
    margin-bottom: 40px;
}

.guide-section-title {
    font-family: 'Archivo Black', sans-serif;
    font-size: 1.15rem;
    color: var(--neon-cyan);
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.guide-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--card-border);
}

.guide-section-intro {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.93rem;
    line-height: 1.6;
    margin: 0 0 20px;
}

.guide-section-intro strong {
    color: #fff;
}

/* ---- Layout visual: media + tabla ---- */
.guide-visual-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

@media (max-width: 768px) {
    .guide-visual-row {
        grid-template-columns: 1fr;
    }
}

/* ---- Placeholder de asset (mientras el staff no haya subido el archivo) ---- */
.asset-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: rgba(15, 12, 41, 0.8);
    border: 2px dashed rgba(101, 230, 255, 0.25);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-family: 'Inconsolata', monospace;
    text-align: center;
    padding: 16px;
}

.asset-placeholder-icon {
    font-size: 1.8rem;
    opacity: 0.5;
}

.asset-placeholder-name {
    background: rgba(101, 230, 255, 0.07);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    color: rgba(101, 230, 255, 0.6);
}

/* ---- Clip de vídeo real ---- */
.guide-video {
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--card-border);
    display: block;
    background: #000;
    cursor: zoom-in;
}

/* ---- Captura con imagen real ---- */
.guide-img {
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--card-border);
    display: block;
    cursor: zoom-in;
}

/* ---- Lightbox ---- */
.guide-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.93);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    animation: guideSlideIn 0.15s ease;
}

.guide-lightbox.hidden { display: none; }

.guide-lightbox-img {
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.8);
    pointer-events: none;
}

.guide-lightbox-video {
    max-width: 92vw;
    max-height: 88vh;
    border-radius: 8px;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.8);
    pointer-events: none;
}

.guide-lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 1;
}

.guide-lightbox-close:hover { background: rgba(255, 255, 255, 0.22); }

/* ---- Tabla de botones ---- */
.btn-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.btn-table caption {
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    padding: 12px 16px 8px;
}

.btn-table th {
    text-align: left;
    padding: 10px 16px;
    background: rgba(101, 230, 255, 0.05);
    color: var(--neon-cyan);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--card-border);
}

.btn-table td {
    padding: 10px 16px;
    border-bottom: 1px solid rgba(101, 230, 255, 0.06);
    vertical-align: top;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}

.btn-table td:first-child {
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    width: 38%;
}

.btn-table tr:last-child td {
    border-bottom: none;
}

.btn-table-wrap {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.btn-table-wrap table {
    width: 100%;
    border-collapse: collapse;
}

/* ---- Aviso / callout ---- */
.guide-callout {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 61, 90, 0.08);
    border: 1px solid rgba(255, 61, 90, 0.25);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 16px 0;
}

.guide-callout-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.guide-callout-info {
    background: rgba(101, 230, 255, 0.07);
    border-color: rgba(101, 230, 255, 0.2);
}

/* ---- Tabla de rangos ---- */
.rank-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.rank-table th {
    text-align: left;
    padding: 10px 16px;
    background: rgba(101, 230, 255, 0.05);
    color: var(--neon-cyan);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--card-border);
}

.rank-table td {
    padding: 10px 16px;
    border-bottom: 1px solid rgba(101, 230, 255, 0.06);
    color: rgba(255, 255, 255, 0.85);
}

.rank-table tr:last-child td {
    border-bottom: none;
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.rank-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ---- Liga cards ---- */
.league-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.league-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 14px 12px;
    text-align: center;
}

.league-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    margin-bottom: 4px;
}

.league-pts {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ---- Tabla XP ---- */
.xp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.xp-table th {
    text-align: left;
    padding: 10px 16px;
    background: rgba(101, 230, 255, 0.05);
    color: var(--neon-cyan);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--card-border);
}

.xp-table td {
    padding: 10px 16px;
    border-bottom: 1px solid rgba(101, 230, 255, 0.06);
    color: rgba(255, 255, 255, 0.85);
}

.xp-table tr:last-child td {
    border-bottom: none;
}

.xp-table td:first-child {
    font-weight: 600;
    color: #fff;
}

.xp-val {
    font-family: 'Inconsolata', monospace;
    color: var(--neon-cyan);
    font-weight: 700;
}

/* ---- Pill / key ---- */
.key-pill {
    display: inline-block;
    background: rgba(101, 230, 255, 0.12);
    border: 1px solid rgba(101, 230, 255, 0.3);
    border-radius: 6px;
    padding: 2px 10px;
    font-family: 'Inconsolata', monospace;
    font-size: 0.9rem;
    color: var(--neon-cyan);
    font-weight: 700;
    letter-spacing: 0.04em;
}

/* ---- Paso numerado ---- */
.guide-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 12px 0;
}

.guide-step {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.step-num {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(101, 230, 255, 0.12);
    border: 1px solid rgba(101, 230, 255, 0.3);
    color: var(--neon-cyan);
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.step-text {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.55;
}

.step-text strong {
    color: #fff;
}

/* ---- Tabla de posición tormenta ---- */
.pos-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    margin-top: 12px;
}

.pos-table th {
    text-align: left;
    padding: 10px 16px;
    background: rgba(101, 230, 255, 0.05);
    color: var(--neon-cyan);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--card-border);
}

.pos-table td {
    padding: 10px 16px;
    border-bottom: 1px solid rgba(101, 230, 255, 0.06);
}

.pos-table tr:last-child td {
    border-bottom: none;
}

.pos-win  { color: #00ff88; font-weight: 700; }
.pos-ok   { color: #FFD447; font-weight: 700; }
.pos-loss { color: #FF3D5A; font-weight: 700; }

/* ---- Botón siguiente tab ---- */
.guide-next-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 36px;
    padding: 12px 28px;
    background: var(--neon-cyan);
    color: #0f0c29;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: background 0.15s, transform 0.1s;
    user-select: none;
    border: none;
}

.guide-next-btn:hover {
    background: #8af0ff;
    transform: translateY(-1px);
}

@media (max-width: 480px) {
    .btn-table,
    .rank-table,
    .xp-table,
    .pos-table {
        font-size: 0.78rem;
    }

    .btn-table td:first-child {
        white-space: normal;
    }

    .btn-table th,
    .btn-table td,
    .rank-table th,
    .rank-table td,
    .xp-table th,
    .xp-table td,
    .pos-table th,
    .pos-table td {
        padding: 8px 10px;
    }
}
