:root {
    --discord-bg: #2b2d31;
    --discord-sec: #313338;
    --discord-ter: #1e1f22;
    --blurple: #5865F2;
    --blurple-hover: #4752c4;
    --green: #23a559;
    --text-main: #f2f3f5;
    --text-muted: #b5bac1; 
    --gradient-1: #5865F2;
    --gradient-2: #9B59B6;
    --accent-glow: rgba(88, 101, 242, 0.5);
}

body {
    background-color: var(--discord-sec);
    color: var(--text-main);
    font-family: 'Inter', 'gg sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Espaciado para compensar la navbar fija */
.main-content {
    padding-top: 50px;
    flex: 1;
}

/* FIX: Clase para eliminar padding superior en páginas full-screen como Home */
.main-content.no-padding {
    padding-top: 0 !important;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600 !important;
    color: var(--text-main);
}

/* =========================================
   FIXES DE VISIBILIDAD DE TEXTO
   ========================================= */

.text-muted {
    color: var(--text-muted) !important;
}

.glass-card p, 
.card p, 
.feature-box p {
    color: var(--text-muted) !important;
    opacity: 0.95;
    font-weight: 400;
}

/* =========================================
   NAVBAR & HEADER STYLES (Glassmorphism)
   ========================================= */

.navbar-custom {
    background-color: rgba(20, 20, 22, 0.75); /* Fondo oscuro translúcido */
    backdrop-filter: blur(16px) saturate(180%); /* Efecto vidrio esmerilado potente */
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.8rem 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

/* Efecto de Marca e Icono */
.brand-logo-wrapper {
    position: relative;
    width: 48px; /* Aumentado ligeramente para que la cabeza se vea mejor */
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo {
    width: 100%;
    height: 100%;
    /* FIX: Eliminado border-radius para no recortar la cabeza */
    object-fit: contain; /* FIX: Asegura que se vea la imagen entera sin recorte */
    z-index: 2;
    /* FIX: Borde eliminado, usamos sombra para resaltar la forma */
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)); 
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Brillo detrás del logo */
.brand-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: var(--blurple);
    border-radius: 50%;
    filter: blur(15px);
    opacity: 0.5;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.navbar-brand:hover .brand-logo {
    transform: scale(1.1) rotate(-5deg);
    filter: drop-shadow(0 0 8px rgba(88, 101, 242, 0.6));
}

.navbar-brand:hover .brand-glow {
    opacity: 0.9;
    filter: blur(20px);
}

.brand-text {
    font-family: 'gg sans', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: 1px;
    background: linear-gradient(90deg, #fff, #b5bac1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Links de Navegación */
.navbar-custom .nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
}

/* User Dropdown Estilizado */
.user-avatar-nav {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--discord-ter);
    box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.5); /* Anillo Blurple */
    object-fit: cover;
}

.glass-dropdown {
    background: rgba(30, 31, 34, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    padding: 0.5rem;
    margin-top: 12px;
    animation: slideUpFade 0.2s ease-out;
}

.glass-dropdown .dropdown-item {
    color: var(--text-main);
    border-radius: 6px;
    padding: 0.5rem 1rem;
    transition: background 0.2s;
}

.glass-dropdown .dropdown-item:hover {
    background-color: var(--blurple);
    color: white;
}

.glass-dropdown .dropdown-header {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.glass-dropdown .dropdown-divider {
    border-color: rgba(255, 255, 255, 0.1);
}

/* Animación de entrada del menú */
@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Botón Hamburguesa */
.navbar-toggler {
    border-color: rgba(255,255,255,0.1);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.15rem rgba(88, 101, 242, 0.5);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(242, 243, 245, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Botón de Login (si no está logueado) */
.btn-login-nav {
    background-color: var(--blurple) !important;
    color: white !important;
    padding: 0.5rem 1.2rem !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
    font-weight: 600 !important;
}

.btn-login-nav:hover {
    background-color: var(--blurple-hover) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.5);
}

/* =========================================
   SELECTOR DE SERVIDOR (SERVER CARDS)
   ========================================= */

.server-card {
    background-color: rgba(30, 31, 34, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    backdrop-filter: blur(5px);
}

.server-card:hover {
    transform: translateY(-5px);
    background-color: rgba(30, 31, 34, 0.9);
    border-color: rgba(88, 101, 242, 0.5);
    /* Blurple border on hover */
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.server-icon-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
}

.server-icon, 
.server-icon-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.server-icon-placeholder {
    background-color: #313338;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    border: 2px dashed rgba(255,255,255,0.1);
}

/* Botones específicos del selector */
.btn-blurple {
    background-color: var(--blurple);
    color: white;
    border: none;
    transition: all 0.2s;
}
.btn-blurple:hover {
    background-color: var(--blurple-hover);
    color: white;
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.4);
}

.btn-secondary-glass {
    background-color: rgba(255,255,255,0.1);
    color: var(--text-main);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.2s;
}
.btn-secondary-glass:hover {
    background-color: rgba(255,255,255,0.2);
    color: white;
    border-color: rgba(255,255,255,0.3);
}

/* Animación de entrada suave para el título */
.hero-fade-in {
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   LANDING PAGE "ULTRA" STYLES
   ========================================= */

.landing-wrapper {
    position: relative;
    overflow: hidden;
    padding-bottom: 5rem;
    background: radial-gradient(circle at top left, #1e1f22, #000000);
}

.animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: floatOrb 20s infinite ease-in-out;
}

.orb-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: var(--gradient-1);
}

.orb-2 {
    bottom: 20%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: var(--gradient-2);
    animation-delay: -5s;
}

.orb-3 {
    top: 40%;
    left: 40%;
    width: 300px;
    height: 300px;
    background: #23a559;
    opacity: 0.2;
    animation-delay: -10s;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

/* Hero Content */
.hero-container {
    position: relative;
    z-index: 2;
    padding-top: 8rem;
    padding-bottom: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.brand-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--blurple);
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.2);
    backdrop-filter: blur(5px);
}

.hero-title-main {
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #b5bac1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-description {
    font-size: 1.3rem;
    color: var(--text-muted);
    max-width: 700px;
    margin-bottom: 3rem;
    line-height: 1.6;
}

/* Botón Login Premium */
.btn-login-ultra {
    position: relative;
    background: var(--blurple);
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 18px 45px;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: 0 0 0 4px rgba(88, 101, 242, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.btn-login-ultra:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(88, 101, 242, 0.5), 0 0 0 4px rgba(88, 101, 242, 0.4);
    color: white;
}

.btn-login-ultra::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.btn-login-ultra:hover::after {
    left: 100%;
}

/* Tarjetas de Información Flotantes */
.stats-row {
    margin-top: 5rem;
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-card {
    background: rgba(30, 31, 34, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 220px;
    transform: perspective(1000px) rotateX(5deg);
    transition: transform 0.3s ease;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.stat-card:hover {
    transform: perspective(1000px) rotateX(0deg) translateY(-5px);
    background: rgba(30, 31, 34, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
}

.stat-icon {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Grid de Características */
.features-section {
    position: relative;
    z-index: 2;
    padding: 5rem 0;
    background: rgba(0,0,0,0.2);
}

.feature-box {
    background: linear-gradient(180deg, rgba(43, 45, 49, 0.7) 0%, rgba(30, 31, 34, 0.9) 100%);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 2.5rem;
    border-radius: 20px;
    height: 100%;
    transition: all 0.3s ease;
}

.feature-box:hover {
    border-color: var(--blurple);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.feature-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.feature-icon-lg {
    font-size: 1.8rem;
    color: var(--blurple);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin: 0;
}

.feature-text {
    color: var(--text-muted) !important;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Estilos Dashboard y Generales Mantenidos */
.glass-card {
    background-color: rgba(30, 31, 34, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
    overflow: visible !important;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 1;
}
.glass-card.card-active {
    z-index: 50 !important;
}
.form-control-discord {
    background-color: #1e1f22 !important;
    border: 1px solid #2b2d31 !important;
    color: #dbdee1 !important;
    padding: 0.6rem 1rem;
    border-radius: 4px;
}
.form-control-discord:focus {
    border-color: var(--blurple) !important;
    color: #fff !important;
    background-color: #111214 !important;
    box-shadow: none;
}
.btn-discord {
    background-color: var(--blurple);
    color: white;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 4px;
    border: none;
    transition: background-color 0.2s;
}
.btn-discord:hover {
    background-color: var(--blurple-hover);
    color: white;
}
footer {
    margin-top: auto;
    padding: 40px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    background: rgba(0,0,0,0.4);
    position: relative;
    z-index: 2;
}