﻿/* =====================================================
   NUEVAS IMAGENES - Arka Gaming
   Integración de imágenes de NuevasImagenes/
   Archivo: assets/css/nuevas-imagenes.css
   ===================================================== */

/* ============================================
   MODAL DE PUBLICIDAD - Grand Opening 2026
   ============================================ */
.publicidad-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
    align-items: center;
    justify-content: center;
}

.publicidad-modal.publicidad-visible {
    display: flex;
    animation: publi-aparecer 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.publicidad-modal.publicidad-salida .publicidad-contenedor {
    animation: publi-salir 0.4s ease-in forwards;
}

@keyframes publi-aparecer {
    from {
        opacity: 0;
        transform: scale(0.85);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes publi-salir {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
}

.publicidad-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.publicidad-contenedor {
    position: relative;
    z-index: 1;
    max-width: min(420px, 92vw);
    width: 100%;
    background: linear-gradient(160deg, #0d0b0f 0%, #13101a 100%);
    border: 2px solid rgba(147, 51, 234, 0.6);
    border-radius: 16px;
    box-shadow:
        0 0 60px rgba(147, 51, 234, 0.3),
        0 0 120px rgba(59, 130, 246, 0.15),
        0 30px 80px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    animation: publi-glow-border 3s ease-in-out infinite alternate;
}

@keyframes publi-glow-border {
    from { box-shadow: 0 0 40px rgba(147, 51, 234, 0.3), 0 0 80px rgba(59, 130, 246, 0.1), 0 30px 80px rgba(0,0,0,0.8); }
    to   { box-shadow: 0 0 60px rgba(147, 51, 234, 0.5), 0 0 120px rgba(59, 130, 246, 0.2), 0 30px 80px rgba(0,0,0,0.8); }
}

.publicidad-cerrar {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(201, 169, 97, 0.4);
    color: #c9a961;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    line-height: 1;
}

.publicidad-cerrar:hover {
    background: rgba(201, 169, 97, 0.2);
    border-color: #c9a961;
    color: #fff;
    transform: rotate(90deg) scale(1.1);
}

.publicidad-link {
    display: block;
    text-decoration: none;
}

.publicidad-imagen {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.publicidad-link:hover .publicidad-imagen {
    transform: scale(1.02);
}

.publicidad-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid rgba(147, 51, 234, 0.3);
}

.publicidad-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.4), rgba(59, 130, 246, 0.4));
    border: 1px solid rgba(147, 51, 234, 0.7);
    color: #e2d4f5;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.publicidad-btn:hover {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.7), rgba(59, 130, 246, 0.6));
    box-shadow: 0 0 20px rgba(147, 51, 234, 0.4);
    color: #fff;
    transform: translateY(-1px);
}

.publicidad-skip {
    background: none;
    border: none;
    color: rgba(245, 240, 230, 0.45);
    font-size: 0.75rem;
    cursor: pointer;
    padding: 6px 8px;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.publicidad-skip:hover {
    color: rgba(245, 240, 230, 0.8);
    text-decoration: underline;
}

/* ============================================
   HERO BACKGROUND - Arka Fondo Pantalla.png
   ============================================ */
.nuevas-hero-bg {
    position: relative;
    background-image: url('../img/NuevasImagenes/Arka%20Fondo%20Pnatalla.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.nuevas-hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg,
            rgba(13, 11, 8, 0.55) 0%,
            rgba(13, 11, 8, 0.3) 40%,
            rgba(13, 11, 8, 0.6) 80%,
            rgba(13, 11, 8, 0.92) 100%
        ),
        radial-gradient(ellipse at 50% 30%, rgba(147, 51, 234, 0.08) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}

.nuevas-hero-bg .hero-bg-overlay {
    display: none; /* handled by ::before */
}

.nuevas-hero-bg .hero-content-medieval,
.nuevas-hero-bg .server-panel-medieval {
    position: relative;
    z-index: 2;
}

/* Logo en el hero */
.hero-logo-wrapper {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.hero-logo-img {
    max-width: 280px;
    width: 70%;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(147, 51, 234, 0.5)) drop-shadow(0 0 60px rgba(59, 130, 246, 0.2));
    animation: hero-logo-float 4s ease-in-out infinite alternate;
}

@keyframes hero-logo-float {
    from { filter: drop-shadow(0 0 20px rgba(147, 51, 234, 0.4)) drop-shadow(0 0 40px rgba(59, 130, 246, 0.15)); transform: translateY(0); }
    to   { filter: drop-shadow(0 0 40px rgba(147, 51, 234, 0.7)) drop-shadow(0 0 80px rgba(59, 130, 246, 0.3)); transform: translateY(-6px); }
}

/* Grand Opening Badge en hero */
.hero-opening-badge {
    display: inline-block;
    margin-top: 28px;
    padding: 10px 28px;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.2), rgba(59, 130, 246, 0.15));
    border: 1px solid rgba(147, 51, 234, 0.5);
    border-radius: 40px;
    color: #c9b8e8;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    animation: badge-pulse 2.5s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% { box-shadow: 0 0 10px rgba(147, 51, 234, 0.2); }
    50%       { box-shadow: 0 0 25px rgba(147, 51, 234, 0.4), 0 0 50px rgba(59, 130, 246, 0.1); }
}

/* ============================================
   SECCIÓN DESTACADA - Arka Gaming Server.png
   ============================================ */
.server-featured-section {
    padding: 90px 40px;
    background: linear-gradient(180deg,
        rgba(13, 11, 8, 0.98) 0%,
        rgba(10, 8, 18, 0.99) 100%
    );
    position: relative;
    overflow: hidden;
}

.server-featured-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 15% 50%, rgba(147, 51, 234, 0.07) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 50%, rgba(59, 130, 246, 0.06) 0%, transparent 55%);
    pointer-events: none;
}

.server-featured-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.server-featured-image-wrap {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.server-featured-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    border: 2px solid rgba(147, 51, 234, 0.4);
    box-shadow:
        0 0 0 1px rgba(59, 130, 246, 0.15),
        0 20px 60px rgba(0, 0, 0, 0.7),
        0 0 80px rgba(147, 51, 234, 0.2);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.server-featured-image-wrap:hover .server-featured-img {
    transform: scale(1.03);
    box-shadow:
        0 0 0 1px rgba(59, 130, 246, 0.3),
        0 25px 80px rgba(0, 0, 0, 0.8),
        0 0 120px rgba(147, 51, 234, 0.35);
}

.server-featured-glow {
    position: absolute;
    inset: -2px;
    border-radius: 18px;
    background: linear-gradient(45deg, transparent 30%, rgba(147, 51, 234, 0.15) 50%, transparent 70%);
    pointer-events: none;
    animation: featured-glow-sweep 4s linear infinite;
}

@keyframes featured-glow-sweep {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Contenido texto sección destacada */
.server-featured-badge {
    display: inline-block;
    padding: 7px 20px;
    background: rgba(147, 51, 234, 0.15);
    border: 1px solid rgba(147, 51, 234, 0.5);
    color: #c9b8e8;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    border-radius: 4px;
    margin-bottom: 20px;
}

.server-featured-title {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: #e8d5a3;
    background: linear-gradient(180deg, #e8d5a3 0%, #c9a961 60%, #8b7355 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    line-height: 1.2;
}

.server-featured-desc {
    font-size: 1.05rem;
    color: rgba(245, 240, 230, 0.7);
    line-height: 1.75;
    margin-bottom: 28px;
}

.server-featured-desc strong {
    color: #c9a961;
}

.server-featured-list {
    list-style: none;
    margin-bottom: 36px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.server-featured-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: rgba(245, 240, 230, 0.8);
    padding: 10px 16px;
    background: rgba(201, 169, 97, 0.06);
    border: 1px solid rgba(201, 169, 97, 0.15);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.server-featured-list li:hover {
    background: rgba(201, 169, 97, 0.12);
    border-color: rgba(201, 169, 97, 0.3);
    transform: translateX(5px);
}

.server-featured-list li strong {
    color: #c9a961;
}

.server-featured-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ============================================
   FOOTER LOGOS - Arka Logo + ArkaGaming Logo Oficial
   ============================================ */
.footer-brand-logos {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.footer-logo-main {
    height: 55px;
    width: auto;
    filter: drop-shadow(0 0 12px rgba(147, 51, 234, 0.4));
    transition: filter 0.3s ease;
}

.footer-logo-emblem {
    height: 52px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.3));
    transition: filter 0.3s ease;
    border-radius: 50%;
}

.footer-logo-main:hover {
    filter: drop-shadow(0 0 20px rgba(147, 51, 234, 0.7));
}

.footer-logo-emblem:hover {
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.6));
}

/* ============================================
   API SCANNER DE IMAGENES - Card UI
   ============================================ */
.imagenes-scanner-section {
    padding: 60px 40px;
    background: rgba(13, 11, 8, 0.98);
}

/* ============================================
   RESPONSIVE - Nuevas imágenes
   ============================================ */
@media (max-width: 1024px) {
    .server-featured-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .server-featured-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .publicidad-contenedor {
        max-width: 95vw;
    }

    .publicidad-footer {
        flex-direction: column;
        text-align: center;
    }

    .server-featured-section {
        padding: 60px 20px;
    }

    .server-featured-title {
        font-size: 1.7rem;
    }

    .hero-logo-img {
        max-width: 200px;
    }

    .hero-opening-badge {
        font-size: 0.75rem;
        padding: 8px 18px;
    }

    .footer-brand-logos {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .publicidad-footer {
        padding: 12px 14px;
    }

    .publicidad-btn {
        padding: 9px 16px;
        font-size: 0.75rem;
    }

    .server-featured-title {
        font-size: 1.4rem;
    }
}


/* ============================================
   FIX LAYOUT HERO - Server Panel Posicionamiento
   El panel quedaba descentrado con el contenido nuevo.
   Solucion: layout flex-row en desktop, panel alineado.
   ============================================ */

/* Hero con nuevas imagenes usa layout de 2 columnas en desktop */
.nuevas-hero-bg {
    flex-direction: row !important;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    align-items: center;
    padding: 130px 60px 80px !important;
}

/* El contenido texto queda a la izquierda/centro */
.nuevas-hero-bg .hero-content-medieval {
    flex: 1 1 480px;
    max-width: 680px;
    text-align: left;
}

/* El panel server queda a la derecha, en flujo normal (no absoluto) */
.nuevas-hero-bg .server-panel-medieval {
    position: relative !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    flex: 0 0 auto;
    align-self: center;
    margin: 0;
    min-width: 290px;
    max-width: 320px;
}

/* Centrar el logo y el badge en este layout de texto a la izquierda */
.nuevas-hero-bg .hero-logo-wrapper {
    justify-content: flex-start;
    margin-bottom: 20px;
}

.nuevas-hero-bg .hero-cta-medieval {
    justify-content: flex-start;
}

.nuevas-hero-bg .hero-badge-medieval {
    display: inline-block;
}

.nuevas-hero-bg .hero-opening-badge {
    display: inline-block;
    margin-top: 20px;
}

/* Responsive: en tablet y movil vuelve a una columna centrada */
@media (max-width: 1100px) {
    .nuevas-hero-bg {
        flex-direction: column !important;
        padding: 120px 30px 60px !important;
    }

    .nuevas-hero-bg .hero-content-medieval {
        text-align: center !important;
        max-width: 700px;
        flex: none;
        width: 100%;
    }

    .nuevas-hero-bg .hero-logo-wrapper {
        justify-content: center;
    }

    .nuevas-hero-bg .hero-cta-medieval {
        justify-content: center;
    }

    .nuevas-hero-bg .server-panel-medieval {
        position: relative !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        margin: 0 auto;
        max-width: 360px;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .nuevas-hero-bg {
        padding: 100px 20px 40px !important;
        gap: 30px;
    }

    .nuevas-hero-bg .server-panel-medieval {
        max-width: 100%;
    }
}



/* ==========================================================================
   NUEVO OVERHAUL: SISTEMA DE RANKING (ESTÃ‰TICA MEDIEVAL FANTASÃA - GOLD/KELTIR)
   ========================================================================== */
.rankings-section-medieval {
    padding: 100px 20px;
    background: radial-gradient(circle at center, rgba(13, 11, 8, 0.4) 0%, rgba(5, 4, 3, 0.95) 100%), 
                url('../img/ArkaGaming/Fondos/ArkaBackRoom.jpg') no-repeat center center / cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.rankings-section-medieval::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13, 11, 8, 0.9) 0%, transparent 15%, transparent 85%, rgba(13, 11, 8, 0.9) 100%);
    pointer-events: none;
}

/* Titulo del Ranking */
.rankings-main-title-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
    width: 100%;
    max-width: 1100px;
}

.rankings-title-side-bar {
    flex: 1;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(201, 169, 97, 0.7), transparent);
    color: #c9a961;
    display: flex;
    align-items: center;
}

.rankings-title-side-bar.left {
    justify-content: flex-end;
}

.rankings-title-side-bar.right {
    justify-content: flex-start;
}

.bar-chart-svg {
    width: 80px;
    height: 24px;
}

.rankings-title-center {
    text-align: center;
}

.rankings-title-sub {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #c9a961;
    letter-spacing: 5px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(201, 169, 97, 0.5);
}

.rankings-title-main {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: #e8d5a3;
    letter-spacing: 3px;
    background: linear-gradient(180deg, #ffffff 0%, #e8d5a3 50%, #c9a961 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    text-shadow: 0 0 20px rgba(201, 169, 97, 0.3);
}

/* Tablero Ventana de Rankings */
.rankings-board-window {
    width: 100%;
    max-width: 1100px;
    background: rgba(13, 11, 8, 0.92);
    border: 2px solid rgba(201, 169, 97, 0.6);
    outline: 1px solid rgba(201, 169, 97, 0.3);
    outline-offset: -3px;
    border-radius: 12px;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.85),
        0 0 30px rgba(201, 169, 97, 0.15),
        inset 0 0 25px rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    overflow: hidden;
    position: relative;
    z-index: 2;
}

/* Header de Ventana */
.rankings-board-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: linear-gradient(180deg, rgba(201, 169, 97, 0.15) 0%, rgba(13, 11, 8, 0.6) 100%);
    border-bottom: 1px solid rgba(201, 169, 97, 0.25);
}

.rankings-board-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.board-icon {
    display: flex;
    align-items: center;
    color: #c9a961;
}

.rankings-board-title h3 {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #e8d5a3;
    margin: 0;
    letter-spacing: 1.5px;
}

.rankings-board-close {
    background: transparent;
    border: 1px solid rgba(201, 169, 97, 0.25);
    color: rgba(232, 213, 163, 0.6);
    font-size: 1.2rem;
    line-height: 1;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rankings-board-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

/* Cuerpo del Tablero */
.rankings-board-body {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 520px;
}

/* Sidebar pestaÃ±as */
.rankings-sidebar-tabs {
    background: rgba(9, 7, 5, 0.6);
    border-right: 1px solid rgba(201, 169, 97, 0.18);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rank-tab-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 18px;
    background: rgba(201, 169, 97, 0.04);
    border: 1px solid rgba(201, 169, 97, 0.12);
    border-radius: 8px;
    color: rgba(245, 240, 230, 0.7);
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.98rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.rank-tab-btn:hover {
    background: rgba(201, 169, 97, 0.08);
    border-color: rgba(201, 169, 97, 0.3);
    color: #e8d5a3;
    transform: translateX(4px);
}

.rank-tab-btn.active {
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.25) 0%, rgba(201, 169, 97, 0.05) 100%);
    border-color: #c9a961;
    color: #ffffff;
    box-shadow: 
        0 4px 15px rgba(201, 169, 97, 0.15),
        inset 0 0 10px rgba(201, 169, 97, 0.1);
}

.rank-tab-btn.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    height: 70%;
    width: 3px;
    background: #c9a961;
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 8px #c9a961;
}

.tab-icon {
    font-size: 1.1rem;
    color: #c9a961;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.tab-svg-icon {
    width: 18px;
    height: 18px;
}

.rank-tab-btn:hover .tab-icon {
    transform: scale(1.15) rotate(-5deg);
    color: #e8d5a3;
}

.rank-tab-btn.active .tab-icon {
    color: #e8d5a3;
}

/* Area de contenido de tablas */
.rankings-content-container {
    padding: 24px;
    overflow-y: auto;
    max-height: 580px;
    background: rgba(13, 11, 8, 0.2);
}

/* Tablas Rankings */
.rankings-table-new {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.rankings-table-new th {
    padding: 14px 16px;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #c9a961;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom: 2px solid rgba(201, 169, 97, 0.3);
    background: rgba(13, 11, 8, 0.4);
}

.rankings-table-new td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(201, 169, 97, 0.1);
    color: rgba(245, 240, 230, 0.85);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    vertical-align: middle;
}

.rankings-table-new tbody tr {
    transition: background 0.2s ease;
}

.rankings-table-new tbody tr:hover {
    background: rgba(201, 169, 97, 0.04);
}

/* Rango Badges (1, 2, 3) */
.rank-wreath-badge {
    position: relative;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wreath-svg {
    position: absolute;
    width: 100%;
    height: 100%;
    inset: 0;
}

.rank-num {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.95rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.rank-wreath-badge.gold { color: #ffd700; filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.4)); }
.rank-wreath-badge.silver { color: #cbd5e1; filter: drop-shadow(0 0 5px rgba(203, 213, 225, 0.4)); }
.rank-wreath-badge.bronze { color: #cd7f32; filter: drop-shadow(0 0 5px rgba(205, 127, 50, 0.4)); }

.rank-normal-badge {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(245, 240, 230, 0.45);
}

/* Colores Celdas especiales */
.char-name-cell {
    font-weight: 600;
    color: rgba(245, 240, 230, 0.95) !important;
}

.top-1 .char-name-cell {
    color: #ffe6a3 !important;
    text-shadow: 0 0 8px rgba(255, 230, 163, 0.3);
}
.top-2 .char-name-cell {
    color: #f5f0e6 !important;
    text-shadow: 0 0 8px rgba(245, 240, 230, 0.2);
}
.top-3 .char-name-cell {
    color: #e5c392 !important;
    text-shadow: 0 0 8px rgba(229, 195, 146, 0.2);
}

.clan-name-cell {
    color: rgba(201, 169, 97, 0.8) !important;
}
.clan-name-main {
    font-weight: 600;
    color: #e8d5a3 !important;
}

.level-cell {
    font-weight: 600;
    color: #f5f0e6;
}

.points-cell {
    font-weight: 700;
    color: #c9a961 !important;
    font-family: 'Rajdhani', sans-serif;
}
.top-row .points-cell {
    color: #ffd700 !important;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}

.highlight-pvp {
    color: #f87171 !important;
}
.pk-small {
    font-size: 0.85rem;
    color: rgba(248, 113, 113, 0.5);
    font-weight: 500;
}

.highlight-fame {
    color: #e8d5a3 !important;
}

/* Crestas de clase vectoriales */
.class-crest {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
}

.class-crest.warrior { color: #e5c392; filter: drop-shadow(0 0 2px rgba(229, 195, 146, 0.3)); }
.class-crest.tank { color: #a5b4fc; filter: drop-shadow(0 0 2px rgba(165, 180, 252, 0.3)); }
.class-crest.archer { color: #fde047; filter: drop-shadow(0 0 2px rgba(253, 224, 71, 0.3)); }
.class-crest.dagger { color: #c084fc; filter: drop-shadow(0 0 2px rgba(192, 132, 252, 0.3)); }
.class-crest.mage { color: #93c5fd; filter: drop-shadow(0 0 2px rgba(147, 197, 253, 0.3)); }
.class-crest.summoner { color: #f472b6; filter: drop-shadow(0 0 2px rgba(244, 114, 182, 0.3)); }
.class-crest.healer { color: #34d399; filter: drop-shadow(0 0 2px rgba(52, 211, 153, 0.3)); }
.class-crest.gatherer { color: #f59e0b; filter: drop-shadow(0 0 2px rgba(245, 158, 11, 0.3)); }

/* Badges de Boss */
.boss-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.boss-badge.alive {
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.4);
    color: #34d399;
}
.boss-badge.dead {
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.4);
    color: #f87171;
}
.boss-type-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
}
.boss-type-badge.epic {
    background: rgba(201, 169, 97, 0.15);
    color: #e8d5a3;
}
.boss-type-badge.raid {
    background: rgba(148, 163, 184, 0.15);
    color: #cbd5e1;
}

.respawn-now {
    color: #34d399;
    font-weight: 600;
}
.respawn-time {
    color: rgba(245, 240, 230, 0.5);
}

.text-muted-npc {
    color: rgba(148, 163, 184, 0.5);
    font-style: italic;
    font-weight: 400;
}
.text-gold-fine {
    color: #e8d5a3;
    font-weight: 600;
}
.treasury-cell {
    color: #cbd5e1;
    font-weight: 600;
}

/* PestaÃ±a informacion */
.rankings-info-card {
    background: rgba(9, 7, 5, 0.4);
    border: 1px solid rgba(201, 169, 97, 0.2);
    border-radius: 8px;
    padding: 24px;
}

.rankings-info-card h4 {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 1.2rem;
    color: #e8d5a3;
    margin: 0 0 15px;
    text-align: center;
    letter-spacing: 1px;
}

.info-intro {
    font-size: 0.98rem;
    color: rgba(245, 240, 230, 0.7);
    line-height: 1.6;
    margin-bottom: 25px;
    text-align: center;
}

.info-grid-rates {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.rate-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(201, 169, 97, 0.05);
    border: 1px solid rgba(201, 169, 97, 0.15);
    border-radius: 6px;
    padding: 12px;
}

.rate-label {
    font-size: 0.8rem;
    color: rgba(245, 240, 230, 0.5);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.rate-val {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffd700;
}

.info-features-list h5 {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.95rem;
    color: #e8d5a3;
    margin: 0 0 12px;
}

.info-features-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-features-list li {
    padding: 8px 12px;
    background: rgba(201, 169, 97, 0.02);
    border-left: 3px solid #c9a961;
    border-radius: 0 6px 6px 0;
    font-size: 0.92rem;
    color: rgba(245, 240, 230, 0.8);
}

/* Panel inferior: "Tu posicion" */
.rankings-board-footer-pos {
    background: linear-gradient(90deg, rgba(201, 169, 97, 0.08) 0%, rgba(9, 7, 5, 0.8) 100%);
    border-top: 1px solid rgba(201, 169, 97, 0.2);
    border-bottom: 1px solid rgba(201, 169, 97, 0.2);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.user-pos-badge-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
}

.violet-shield-insignia {
    width: 44px;
    height: 48px;
    background: rgba(26, 22, 16, 0.95);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    border: 1px solid #c9a961;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(201, 169, 97, 0.2);
}

.shield-pos-val {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffd700;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.4);
}

.pos-label {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(245, 240, 230, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.user-pos-details-row {
    flex: 1;
    display: grid;
    grid-template-columns: 1.5fr 1.2fr 80px 80px 1.5fr;
    align-items: center;
    gap: 10px;
}

.detail-col {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #f5f0e6;
}

.detail-col.class-icon-col {
    display: flex;
    justify-content: flex-start;
}

.text-violet-glow {
    color: #e8d5a3 !important;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(232, 213, 163, 0.4);
}

.text-violet-glow-right {
    color: #ffd700 !important;
    text-align: right;
    font-weight: 700;
}

/* Bottom Bar del Tablero */
.rankings-board-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    background: rgba(9, 7, 5, 0.7);
}

.bottom-update-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: rgba(245, 240, 230, 0.4);
}

.clock-icon {
    display: flex;
    align-items: center;
    color: #c9a961;
}

.bottom-refresh-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(180deg, rgba(201, 169, 97, 0.15) 0%, rgba(13, 11, 8, 0.8) 100%);
    border: 1px solid rgba(201, 169, 97, 0.4);
    border-radius: 6px;
    color: #e8d5a3;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bottom-refresh-btn:hover {
    background: linear-gradient(180deg, rgba(201, 169, 97, 0.25) 0%, rgba(20, 17, 12, 0.9) 100%);
    border-color: #c9a961;
    box-shadow: 0 0 10px rgba(201, 169, 97, 0.2);
    transform: translateY(-1px);
}

.refresh-icon {
    display: flex;
    align-items: center;
    transition: transform 0.5s ease;
}

.bottom-refresh-btn:hover .refresh-icon {
    transform: rotate(180deg);
}

/* ==========================================================================
   RESPONSIVE OVERRIDES: RANKINGS
   ========================================================================== */
@media (max-width: 1024px) {
    .rankings-board-body {
        grid-template-columns: 200px 1fr;
    }
    .user-pos-details-row {
        grid-template-columns: 1fr 1fr 60px 60px 1.2fr;
    }
}

@media (max-width: 800px) {
    .rankings-board-body {
        grid-template-columns: 1fr;
    }
    
    .rankings-sidebar-tabs {
        flex-direction: row;
        overflow-x: auto;
        padding: 10px;
        gap: 6px;
        background: rgba(9, 7, 5, 0.8);
        border-right: none;
        border-bottom: 1px solid rgba(201, 169, 97, 0.15);
        scrollbar-width: none;
    }
    
    .rankings-sidebar-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .rank-tab-btn {
        flex: 0 0 auto;
        padding: 8px 14px;
        font-size: 0.8rem;
        gap: 6px;
        clip-path: none;
    }
    
    .rank-tab-btn.active::before {
        left: 15%;
        top: auto;
        bottom: 0;
        width: 70%;
        height: 3px;
        border-radius: 4px 4px 0 0;
    }
    
    .rank-tab-btn:hover {
        transform: none;
    }

    .user-pos-details-row {
        grid-template-columns: 1fr 1fr 50px 50px 1fr;
    }
}

@media (max-width: 640px) {
    .rankings-main-title-wrap {
        flex-direction: column;
        gap: 10px;
    }
    .rankings-title-side-bar {
        display: none;
    }
    .rankings-title-main {
        font-size: 2rem;
    }
    
    .rankings-table-new th, 
    .rankings-table-new td {
        padding: 8px 10px;
        font-size: 0.95rem;
    }
    
    .col-clan, 
    .clan-name-cell,
    .col-members,
    .members-cell,
    .col-type,
    .type-cell {
        display: none;
    }
    
    .rankings-board-footer-pos {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .user-pos-details-row {
        grid-template-columns: 1fr 40px 40px 1fr;
    }
    .detail-col.clan {
        display: none;
    }
    
    .info-grid-rates {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================================
   ESTILOS ADICIONALES PARA LA SECCION DE INFORMACION Y TARJETAS VISUALES
   ========================================================================== */
.info-rates-header-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
    text-align: center;
}

.info-header-title-box {
    background: rgba(201, 169, 97, 0.05);
    border: 1px solid rgba(201, 169, 97, 0.2);
    border-radius: 6px;
    padding: 14px;
}

.info-header-label {
    font-size: 0.8rem;
    color: rgba(245, 240, 230, 0.4);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 5px;
}

.info-header-title-box h4 {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 1rem !important;
    color: #e8d5a3 !important;
    margin: 0 !important;
}

/* Filosofia */
.info-philosophy-quote {
    background: linear-gradient(135deg, rgba(26, 22, 16, 0.4) 0%, rgba(13, 11, 8, 0.6) 100%);
    border-left: 3px solid #c9a961;
    border-radius: 0 8px 8px 0;
    padding: 20px 24px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.5);
}

.info-philosophy-quote h5 {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.95rem;
    color: #c9a961;
    letter-spacing: 2px;
    margin: 0 0 10px;
}

.quote-text {
    font-size: 1.02rem;
    line-height: 1.7;
    color: rgba(245, 240, 230, 0.85);
    font-style: italic;
    margin: 0;
}

/* Banner de Rates */
.info-banner-wrapper {
    width: 100%;
    margin-bottom: 25px;
    border-radius: 8px;
    border: 1px solid rgba(201, 169, 97, 0.25);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    height: 180px;
}

.info-rates-banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    transition: transform 0.5s ease;
}

.info-banner-wrapper:hover .info-rates-banner {
    transform: scale(1.02);
}

/* Split Grid */
.info-split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 30px;
}

.info-split-col {
    background: rgba(9, 7, 5, 0.4);
    border: 1px solid rgba(201, 169, 97, 0.15);
    border-radius: 8px;
    padding: 20px;
}

.info-split-col h5 {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.98rem;
    margin: 0 0 16px;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-split-col.restrictions h5 { color: #f87171; }
.info-split-col.benefits h5 { color: #34d399; }

.info-split-col.restrictions {
    border-left: 3px solid #ef4444;
}
.info-split-col.benefits {
    border-left: 3px solid #10b981;
}

.title-icon {
    display: flex;
    align-items: center;
}

.info-cross-svg { width: 18px; height: 18px; color: #ef4444; }
.info-check-svg { width: 18px; height: 18px; color: #10b981; }
.info-title-svg { width: 18px; height: 18px; color: #c9a961; }

.info-split-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-split-col li {
    font-size: 0.92rem;
    line-height: 1.5;
    color: rgba(245, 240, 230, 0.75);
    padding-left: 20px;
    position: relative;
}

.info-split-col li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.info-split-col.restrictions li::before { background: #ef4444; }
.info-split-col.benefits li::before { background: #10b981; }

/* Showcase Row */
.info-showcase-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.showcase-card {
    background: rgba(9, 7, 5, 0.5);
    border: 1px solid rgba(201, 169, 97, 0.15);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.showcase-card:hover {
    border-color: rgba(201, 169, 97, 0.35);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.showcase-img-wrap {
    width: 100%;
    height: 140px;
    border-bottom: 1px solid rgba(201, 169, 97, 0.15);
    overflow: hidden;
}

.showcase-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.showcase-card:hover .showcase-img {
    transform: scale(1.03);
}

.showcase-text {
    padding: 16px;
}

.showcase-text h5 {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.95rem;
    color: #e8d5a3;
    margin: 0 0 8px;
    letter-spacing: 1px;
}

.showcase-text p {
    font-size: 0.88rem;
    line-height: 1.5;
    color: rgba(245, 240, 230, 0.65);
    margin: 0;
}

/* Adaptacion responsive */
@media (max-width: 800px) {
    .info-rates-header-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .info-split-grid {
        grid-template-columns: 1fr;
    }
    .info-showcase-row {
        grid-template-columns: 1fr;
    }
    .info-banner-wrapper {
        height: 120px;
    }
}