/* 
 * ESTILOS PREMIUM - JADECRAFT NETWORK / DEVPANDAX
 * Creado para optimizar el HTML y facilitar la migración a otros archivos.
 */

/* ==========================================================================
   CORRECCIÓN GLOBAL DE FLEXBOX Y TEXTO (Sobrescribe bug de style.css L12040)
   ========================================================================== */
.d-flex {
    white-space: normal !important;
}
.d-flex p, .d-flex span, .d-flex div, .d-flex strong, .d-flex li {
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}
.cmd-box code, .cmd-tag, .badge {
    white-space: nowrap !important;
}

/* ==========================================================================
   GLASSMORPHISM & CARDS
   ========================================================================== */
.glass-card {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 20px !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    position: relative;
    overflow: hidden;
    text-decoration: none !important;
    color: #fff;
    display: block;
}

.glass-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 107, 129, 0.05) !important;
    border: 1px solid rgba(255, 107, 129, 0.3) !important;
    box-shadow: 0 15px 40px rgba(255, 107, 129, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

/* Efecto de reflejo de luz (Glare) al pasar el ratón */
.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.03) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: all 0.75s ease;
    pointer-events: none;
}

.glass-card:hover::before {
    left: 125%;
}

.glass-card-footer {
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   BOTONES PREMIUM
   ========================================================================== */
.btn-magic {
    background: linear-gradient(135deg, #ff6b81, #da70d6);
    color: #fff !important;
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    box-shadow: 0 5px 20px rgba(255, 107, 129, 0.5);
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-magic:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 107, 129, 0.7);
    color: #fff !important;
}

/* ==========================================================================
   FOOTER GLOBAL
   ========================================================================== */
.footer-premium {
    border-top: 1px solid rgba(255, 107, 129, 0.15);
    background: rgba(13, 9, 20, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.footer-title {
    color: #ff9fb3;
    border-bottom: 1px solid rgba(255, 107, 129, 0.2);
    padding-bottom: 10px;
    margin-bottom: 15px;
    display: inline-block;
    font-size: 15px;
}

/* Enlaces del Footer */
.footer-link {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: 0.3s;
}

.footer-link:hover {
    color: #fff;
}

.footer-link-active {
    color: #ff6b81;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
}

.footer-link-active:hover {
    color: #ff9fb3;
}

.footer-icon {
    font-size: 12px;
}

.footer-icon-active {
    font-size: 12px;
    color: #ff6b81;
}

/* Redes Sociales */
.social-icon {
    transition: 0.3s;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 50%;
    margin: 0 5px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.social-icon.discord:hover {
    background: #5865F2;
    color: #fff;
}

.social-icon.tiktok:hover {
    background: #ff6b81;
    color: #fff;
}

.social-icon.youtube:hover {
    background: #FF0000;
    color: #fff;
}

/* ==========================================================================
   TIPOGRAFÍA Y UTILIDADES
   ========================================================================== */
.text-magic {
    color: #ff6b81;
}

.text-magic-light {
    color: #ff9fb3;
}

.text-justify-custom {
    font-size: 13.5px;
    line-height: 1.7;
    white-space: normal;
    word-wrap: break-word;
    text-align: justify;
}

/* ==========================================================================
   TOAST DE NOTIFICACIONES Y FONDOS
   ========================================================================== */
.glass-toast {
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    background: rgba(255, 107, 129, 0.15) !important;
    border: 1px solid rgba(255, 107, 129, 0.4) !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 30px rgba(255, 107, 129, 0.3) !important;
}

.glass-toast .swal2-title {
    color: #fff !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    text-shadow: 0 0 10px rgba(255, 107, 129, 0.5) !important;
}

.glass-toast .swal2-timer-progress-bar {
    background: #ff6b81 !important;
}

/* Fondo Mágico Ambient Lighting */
body.dark-scheme {
    background-color: #0d0914 !important;
    background-image:
        radial-gradient(circle at 0% 20%, rgba(255, 107, 129, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 100% 80%, rgba(218, 112, 214, 0.15) 0%, transparent 40%) !important;
    background-attachment: fixed !important;
}

/* ==========================================================================
   ESTILOS MIGRADOS DESDE INDEX.HTML
   ========================================================================== */
/* Corrección para que los social-icons dentro de las tarjetas estén perfectamente centrados */
.de-box-cat .social-icons i {
    font-size: 18px !important;
    margin: 0 4px !important;
    padding: 0 !important;
    color: #ffffff !important;
    width: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
    background: rgba(255, 255, 255, .1) !important;
    display: inline-block !important;
    text-align: center !important;
}

.de-box-cat .social-icons a:hover i {
    background: var(--primary-color) !important;
    color: #fff !important;
}

@keyframes blinker {
    50% {
        opacity: 0;
    }
}

/* Protegemos la visibilidad de los menús usando un degradado suave arriba, manteniendo el centro brillante */
#subheader {
    position: relative;
    overflow: hidden;
}

#subheader::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(13, 9, 20, 0.7) 0%, rgba(13, 9, 20, 0.25) 35%, transparent 100%) !important;
    z-index: 1;
    pointer-events: none;
}

#subheader .container {
    position: relative;
    z-index: 2;
}

/* Tipografía de Menú Estandarizada en Blanco con Sombra Limpia y Hover en Dorado */
#mainmenu li a {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8) !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

#mainmenu li a:hover {
    color: #ffb703 !important; /* Color Dorado a juego con el tema */
    text-shadow: 0 0 5px rgba(255, 183, 3, 0.4) !important;
}

/* Títulos y Subtítulos Normalizados */
#subheader .subtitle {
    color: #ffb703 !important; /* Color Dorado */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6) !important; /* Sombra sutil normal */
    font-weight: bold !important;
    letter-spacing: 2px !important;
}

/* ==========================================================================
   ESTILOS DE LA GUÍA DE RECLAMOS (SERVER.HTML)
   ========================================================================== */
.claim-list i {
    color: #ffb703 !important; /* Dorado */
    text-shadow: 0 0 8px rgba(255, 183, 3, 0.3);
    width: 24px;
    text-align: center;
    align-self: flex-start !important;
    margin-top: 4px !important;
}

.step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 107, 129, 0.15) !important;
    border: 1px solid rgba(255, 107, 129, 0.4) !important;
    color: #ff6b81 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 11px;
    flex-shrink: 0;
    margin-top: 2px;
}

.cmd-tag {
    background: rgba(13, 9, 20, 0.6) !important;
    border: 1px solid rgba(255, 107, 129, 0.2) !important;
    color: #ff9fb3 !important;
    padding: 3px 10px !important;
    border-radius: 6px !important;
    font-family: Consolas, Monaco, monospace !important;
    font-size: 12.5px !important;
    display: inline-block;
    margin-top: 5px;
    box-shadow: inset 0 1px 4px rgba(0,0,0,0.4);
}

/* Contenedor de iconos circulares con brillo */
.icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.icon-circle i {
    margin: 0 !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.bg-warning-glow { background: rgba(255, 183, 3, 0.12) !important; border: 1px solid rgba(255, 183, 3, 0.25) !important; }
.bg-danger-glow { background: rgba(255, 107, 129, 0.12) !important; border: 1px solid rgba(255, 107, 129, 0.25) !important; }
.bg-info-glow { background: rgba(23, 162, 184, 0.12) !important; border: 1px solid rgba(23, 162, 184, 0.25) !important; }

/* ==========================================================================
   MODAL Z-INDEX FIX (Garantiza visibilidad por encima del telón oscuro)
   ========================================================================== */
.modal, .glass-modal {
    z-index: 1055 !important;
}
.modal-backdrop {
    z-index: 1050 !important;
}
.cursor-pointer {
    cursor: pointer !important;
}

/* ==========================================================================
   ESTILOS PREMIUM DE MODALES Y TARJETAS INTERNAS (GLASS-BOX)
   ========================================================================== */
.glass-box {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-radius: 14px !important;
    padding: 16px !important;
    transition: all 0.25s ease !important;
}
.glass-box:hover {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 183, 3, 0.3) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}
.glass-box-success {
    background: rgba(40, 167, 69, 0.04) !important;
    border: 1px solid rgba(40, 167, 69, 0.2) !important;
}
.glass-box-danger {
    background: rgba(220, 53, 69, 0.04) !important;
    border: 1px solid rgba(220, 53, 69, 0.2) !important;
}
.glass-box-warning {
    background: rgba(255, 193, 7, 0.04) !important;
    border: 1px solid rgba(255, 193, 7, 0.2) !important;
}
.glass-box-info {
    background: rgba(23, 162, 184, 0.04) !important;
    border: 1px solid rgba(23, 162, 184, 0.2) !important;
}

/* Badges Neón Curados */
.badge-pill-cyan {
    background: rgba(0, 229, 255, 0.12) !important;
    color: #00e5ff !important;
    border: 1px solid rgba(0, 229, 255, 0.3) !important;
    border-radius: 20px !important;
    padding: 4px 12px !important;
    font-weight: 600 !important;
    font-size: 11px !important;
    letter-spacing: 0.3px;
}
.badge-pill-neon {
    background: rgba(255, 183, 3, 0.12) !important;
    color: #ffb703 !important;
    border: 1px solid rgba(255, 183, 3, 0.3) !important;
    border-radius: 20px !important;
    padding: 4px 12px !important;
    font-weight: 600 !important;
    font-size: 11px !important;
    letter-spacing: 0.3px;
}
.badge-pill-rose {
    background: rgba(255, 77, 109, 0.12) !important;
    color: #ff4d6d !important;
    border: 1px solid rgba(255, 77, 109, 0.3) !important;
    border-radius: 20px !important;
    padding: 4px 12px !important;
    font-weight: 600 !important;
    font-size: 11px !important;
    letter-spacing: 0.3px;
}
.badge-pill-dark {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #cbd5e1 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 20px !important;
    padding: 4px 12px !important;
    font-weight: 600 !important;
    font-size: 11px !important;
}

/* Banners de Encabezado de Sección para Modales */
.section-banner {
    padding: 12px 18px !important;
    border-radius: 10px !important;
    margin-bottom: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}
.section-banner-cyan {
    background: linear-gradient(90deg, rgba(0, 229, 255, 0.14), rgba(0, 229, 255, 0.02)) !important;
    border-left: 5px solid #00e5ff !important;
    border-top: 1px solid rgba(0, 229, 255, 0.2) !important;
    border-right: 1px solid rgba(0, 229, 255, 0.1) !important;
    border-bottom: 1px solid rgba(0, 229, 255, 0.1) !important;
}
.section-banner-rose {
    background: linear-gradient(90deg, rgba(255, 77, 109, 0.14), rgba(255, 77, 109, 0.02)) !important;
    border-left: 5px solid #ff4d6d !important;
    border-top: 1px solid rgba(255, 77, 109, 0.2) !important;
    border-right: 1px solid rgba(255, 77, 109, 0.1) !important;
    border-bottom: 1px solid rgba(255, 77, 109, 0.1) !important;
}
.section-banner-neon {
    background: linear-gradient(90deg, rgba(255, 183, 3, 0.14), rgba(255, 183, 3, 0.02)) !important;
    border-left: 5px solid #ffb703 !important;
    border-top: 1px solid rgba(255, 183, 3, 0.2) !important;
    border-right: 1px solid rgba(255, 183, 3, 0.1) !important;
    border-bottom: 1px solid rgba(255, 183, 3, 0.1) !important;
}

/* Módulo Unificado por Bloque (Marco Unico por Sección) */
.glass-section-card {
    border-radius: 16px !important;
    padding: 20px !important;
    transition: all 0.3s ease !important;
    position: relative;
    overflow: hidden;
}
.glass-section-cyan {
    background: rgba(0, 229, 255, 0.025) !important;
    border: 1px solid rgba(0, 229, 255, 0.18) !important;
    box-shadow: inset 0 0 20px rgba(0, 229, 255, 0.02);
}
.glass-section-rose {
    background: rgba(255, 77, 109, 0.025) !important;
    border: 1px solid rgba(255, 77, 109, 0.18) !important;
    box-shadow: inset 0 0 20px rgba(255, 77, 109, 0.02);
}
.glass-section-neon {
    background: rgba(255, 183, 3, 0.025) !important;
    border: 1px solid rgba(255, 183, 3, 0.18) !important;
    box-shadow: inset 0 0 20px rgba(255, 183, 3, 0.02);
}

.inner-cmd-group {
    background: rgba(0, 0, 0, 0.25) !important;
    border-radius: 12px !important;
    padding: 14px !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* Pestañas personalizadas de modales (Nav Tabs Custom) */
.nav-tabs-custom {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
}
.nav-tabs-custom .nav-link {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 8px !important;
    color: rgba(255, 255, 255, 0.65) !important;
    padding: 8px 14px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}
.nav-tabs-custom .nav-link:hover {
    color: #ffffff !important;
    border-color: rgba(255, 183, 3, 0.3) !important;
    background: rgba(255, 255, 255, 0.06) !important;
}
.nav-tabs-custom .nav-link.active {
    background: rgba(255, 183, 3, 0.15) !important;
    color: #ffb703 !important;
    border: 1px solid rgba(255, 183, 3, 0.4) !important;
    box-shadow: 0 4px 12px rgba(255, 183, 3, 0.1);
}

/* ==========================================================================
   ESTILOS HYBRID GLASS MODALS & CARD QUADRANTS (MIGRADOS DESDE SERVER.HTML)
   ========================================================================== */
.glass-modal .modal-content {
    background: rgba(18, 18, 28, 0.96) !important;
    border: 1px solid rgba(255, 183, 3, 0.3) !important;
    backdrop-filter: blur(25px);
    color: #fff !important;
    border-radius: 16px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.9);
}
.glass-modal .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.25rem 1.5rem;
}
.glass-modal .modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.glass-modal .nav-tabs {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.glass-modal .nav-tabs .nav-link {
    color: rgba(255,255,255,0.65);
    border: none;
    border-bottom: 2px solid transparent;
    padding: 10px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
}
.glass-modal .nav-tabs .nav-link:hover {
    color: #ffb703;
}
.glass-modal .nav-tabs .nav-link.active {
    color: #ffb703 !important;
    background: transparent !important;
    border-bottom: 2px solid #ffb703 !important;
}
.card-quadrant {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}
.card-quadrant:hover {
    transform: translateY(-7px);
    border-color: rgba(255, 183, 3, 0.6) !important;
    box-shadow: 0 12px 35px rgba(255, 183, 3, 0.18);
}
.card-quadrant .badge-click {
    transition: all 0.2s;
}
.card-quadrant:hover .badge-click {
    background-color: #ffb703 !important;
    color: #000 !important;
}
.cmd-box {
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s;
}
.cmd-box:hover {
    background: rgba(255, 183, 3, 0.1);
    border-color: rgba(255, 183, 3, 0.3);
}