:root {
--primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
--secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
--success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
--warning-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
--dark-gradient: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}
body {
background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
color: #333333;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
padding-top: 80px;
padding-bottom: 0;
}
@media (max-width: 768px) {
body {
}
}
.navbar {
background: rgba(44, 62, 80, 0.95) !important;
backdrop-filter: blur(10px);
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 1000;
}
.navbar-container {
max-width: 1200px;
margin: 0 auto;
padding: 0 2rem;
display: flex;
align-items: center;
justify-content: space-between;
min-height: 70px;
}
.navbar-brand {
font-weight: 700;
font-size: 1.8rem;
margin-right: 2rem;
padding: 0.5rem 0;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
color: #ffffff !important;
}
.navbar-nav {
display: flex;
align-items: center;
gap: 0.5rem;
margin-left: auto;
}
.navbar-nav .nav-link {
padding: 0.5rem 1rem;
border-radius: 8px;
transition: all 0.3s ease;
font-weight: 500;
margin: 0 0.1rem;
font-size: 0.9rem;
color: #ffffff !important;
}
.navbar-nav .nav-link:hover {
background: rgba(255, 255, 255, 0.15);
transform: translateY(-1px);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
color: #ffffff !important;
}
/* Estilos mejorados para enlaces de login/register */
.navbar-nav .nav-link[href*="login"],
.navbar-nav .nav-link[href*="register"] {
color: #ffffff !important;
font-weight: 600;
text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
background: rgba(100, 181, 246, 0.25);
border: 1px solid rgba(100, 181, 246, 0.4);
}
.navbar-nav .nav-link[href*="login"]:hover,
.navbar-nav .nav-link[href*="register"]:hover {
color: #ffffff !important;
background: rgba(100, 181, 246, 0.4);
border-color: rgba(100, 181, 246, 0.6);
box-shadow: 0 2px 10px rgba(100, 181, 246, 0.4);
}
.navbar-nav .nav-link[href*="login"] i,
.navbar-nav .nav-link[href*="register"] i {
color: #64b5f6;
font-weight: 600;
}
.navbar-nav .nav-link.active {
background: rgba(255, 193, 7, 0.2);
color: #ffffff !important;
border: 1px solid rgba(255, 193, 7, 0.3);
}
.navbar-text {
color: #ffffff !important;
font-weight: 500;
padding: 0.5rem 1rem;
border-radius: 8px;
background: rgba(255, 255, 255, 0.1);
margin-right: 1rem;
font-size: 0.95rem;
}
/* Estilos para menús desplegables */
.dropdown-menu,
.dropdown-menu-dark {
background: rgba(44, 62, 80, 0.95) !important;
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 10px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
padding: 0.5rem 0;
margin-top: 0.5rem;
}
.dropdown-item,
.dropdown-menu-dark .dropdown-item {
color: #ffffff !important;
padding: 0.5rem 1rem;
transition: all 0.3s ease;
border-radius: 5px;
margin: 0 0.25rem;
font-weight: 500;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.dropdown-item:hover,
.dropdown-menu-dark .dropdown-item:hover {
background: rgba(255, 255, 255, 0.2);
color: #ffffff !important;
transform: translateX(5px);
}
.dropdown-item i,
.dropdown-menu-dark .dropdown-item i {
color: #64b5f6 !important;
}
.dropdown-item:hover i,
.dropdown-menu-dark .dropdown-item:hover i {
color: #42a5f5 !important;
}
/* Mantener color rojo para elementos con text-danger */
.dropdown-item.text-danger {
color: #ff6b6b !important;
}
.dropdown-item.text-danger:hover {
color: #ff5252 !important;
background: rgba(255, 107, 107, 0.2);
}
.dropdown-item.text-danger i {
color: #ff6b6b !important;
}
.dropdown-divider {
border-color: rgba(255, 255, 255, 0.1);
margin: 0.5rem 0;
}

/* Información del usuario optimizada */
.user-info-container {
background: rgba(255, 255, 255, 0.05);
border-radius: 10px;
padding: 0.5rem 0.75rem;
border: 1px solid rgba(255, 255, 255, 0.1);
}
.user-avatar {
display: flex;
align-items: center;
position: relative;
}

/* Bordes para avatar del navbar */
.user-avatar[data-border="gold"] i {
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    border: 2px solid #ffd700;
    border-radius: 50%;
    padding: 2px;
}

.user-avatar[data-border="silver"] i {
    box-shadow: 0 0 8px rgba(192, 192, 192, 0.4);
    border: 2px solid #c0c0c0;
    border-radius: 50%;
    padding: 2px;
}

.user-avatar[data-border="rainbow"] i {
    border: 2px solid;
    border-image: linear-gradient(45deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3) 1;
    border-radius: 50%;
    padding: 2px;
    animation: rainbowBorder 3s linear infinite;
}

.user-avatar[data-border="neon"] i {
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.6);
    border: 2px solid #00d4ff;
    border-radius: 50%;
    padding: 2px;
    animation: neonPulse 2s ease-in-out infinite;
}

.user-avatar[data-border="default"] i {
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    padding: 2px;
}

.user-avatar[data-border="silver"] i {
    box-shadow: 0 0 8px rgba(192, 192, 192, 0.4);
    border: 2px solid #c0c0c0;
    border-radius: 50%;
    padding: 2px;
}

.user-avatar[data-border="copper"] i {
    box-shadow: 0 0 8px rgba(184, 115, 51, 0.5);
    border: 2px solid #b87333;
    border-radius: 50%;
    padding: 2px;
}

.user-avatar[data-border="bronze"] i {
    box-shadow: 0 0 10px rgba(205, 127, 50, 0.5);
    border: 2px solid #cd7f32;
    border-radius: 50%;
    padding: 2px;
}

.user-avatar[data-border="platinum"] i {
    box-shadow: 0 0 12px rgba(229, 228, 226, 0.6);
    border: 2px solid #e5e4e2;
    border-radius: 50%;
    padding: 2px;
    animation: platinumGlowNavbar 2.5s ease-in-out infinite;
}

.user-avatar[data-border="crystal"] i {
    box-shadow: 0 0 15px rgba(177, 156, 217, 0.7);
    border: 2px solid #b19cd9;
    border-radius: 50%;
    padding: 2px;
    animation: crystalSparkleNavbar 2.5s ease-in-out infinite;
}

.user-avatar[data-border="cosmic"] i {
    border: 2px solid;
    border-image: linear-gradient(45deg, #1a1a2e, #16213e, #0f3460, #533483) 1;
    border-radius: 50%;
    padding: 2px;
    animation: cosmicFlowNavbar 3s ease-in-out infinite;
}

.user-avatar[data-border="diamond"] i {
    box-shadow: 0 0 18px rgba(185, 242, 255, 0.8);
    border: 2px solid #b9f2ff;
    border-radius: 50%;
    padding: 2px;
    animation: diamondBrillianceNavbar 2s ease-in-out infinite;
}

.user-avatar[data-border="phoenix"] i {
    border: 2px solid;
    border-image: linear-gradient(45deg, #ff4500, #ff6347, #ffd700, #ff4500) 1;
    border-radius: 50%;
    padding: 2px;
    animation: phoenixFlameNavbar 1.5s ease-in-out infinite;
}

.user-avatar[data-border="void"] i {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.9);
    border: 2px solid #000000;
    border-radius: 50%;
    padding: 2px;
    animation: voidAbsorbNavbar 3s ease-in-out infinite;
}

.user-avatar[data-border="celestial"] i {
    border: 2px solid;
    border-image: linear-gradient(45deg, #ffffff, #e0e0e0, #ffffff, #f0f0f0) 1;
    border-radius: 50%;
    padding: 2px;
    animation: celestialLightNavbar 2s ease-in-out infinite;
}

.user-avatar[data-border="eternal"] i {
    border: 2px solid;
    border-image: linear-gradient(45deg, #ffd700, #ffed4e, #ffd700, #ffed4e, #ffd700) 1;
    border-radius: 50%;
    padding: 2px;
    animation: eternalGlowNavbar 1.5s ease-in-out infinite;
}

@keyframes rainbowBorder {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

@keyframes neonPulse {
    0%, 100% { box-shadow: 0 0 15px rgba(0, 212, 255, 0.6); }
    50% { box-shadow: 0 0 25px rgba(0, 212, 255, 0.9); }
}

@keyframes platinumGlowNavbar {
    0%, 100% { box-shadow: 0 0 12px rgba(229, 228, 226, 0.6); }
    50% { box-shadow: 0 0 18px rgba(229, 228, 226, 0.9); }
}

@keyframes crystalSparkleNavbar {
    0%, 100% { box-shadow: 0 0 15px rgba(177, 156, 217, 0.7); }
    50% { box-shadow: 0 0 22px rgba(177, 156, 217, 1); }
}

@keyframes cosmicFlowNavbar {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(180deg); }
}

@keyframes diamondBrillianceNavbar {
    0%, 100% { box-shadow: 0 0 18px rgba(185, 242, 255, 0.8); }
    50% { box-shadow: 0 0 25px rgba(185, 242, 255, 1); }
}

@keyframes phoenixFlameNavbar {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(30deg); }
}

@keyframes voidAbsorbNavbar {
    0%, 100% { box-shadow: 0 0 15px rgba(0, 0, 0, 0.9); }
    50% { box-shadow: 0 0 22px rgba(0, 0, 0, 1); }
}

@keyframes celestialLightNavbar {
    0%, 100% { box-shadow: 0 0 15px rgba(255, 255, 255, 0.6); }
    50% { box-shadow: 0 0 22px rgba(255, 255, 255, 0.9); }
}

@keyframes eternalGlowNavbar {
    0%, 100% { box-shadow: 0 0 18px rgba(255, 215, 0, 0.8); }
    50% { box-shadow: 0 0 25px rgba(255, 215, 0, 1); }
}
.user-details {
min-width: 80px;
}
.user-name {
font-weight: 600;
line-height: 1.2;
color: #ffffff !important;
}
.user-level {
font-weight: 500;
line-height: 1.2;
color: #ffffff !important;
}
.xp-progress {
opacity: 0.8;
}

/* Contador de notificaciones */
.notification-badge {
animation: pulse 2s infinite;
transition: all 0.3s ease;
}
.notification-badge.notification-new {
animation: bounce 0.6s ease-in-out;
}
@keyframes pulse {
0% { transform: scale(1); }
50% { transform: scale(1.1); }
100% { transform: scale(1); }
}
@keyframes bounce {
0%, 20%, 50%, 80%, 100% { transform: translateY(0) scale(1); }
40% { transform: translateY(-10px) scale(1.2); }
60% { transform: translateY(-5px) scale(1.1); }
}

/* Responsive optimizations */
@media (max-width: 768px) {
.navbar-container {
padding: 0 1rem;
min-height: 60px;
}
.navbar-brand {
margin-right: 1rem;
font-size: 1.5rem;
}
.navbar-nav {
gap: 0.25rem;
}
.navbar-nav .nav-link {
padding: 0.4rem 0.8rem;
font-size: 0.85rem;
}
.user-info-container {
padding: 0.4rem 0.6rem;
}
.user-details {
min-width: 60px;
}
.user-name, .user-level {
font-size: 0.75rem;
}
.xp-progress {
display: none !important;
}
.dropdown-menu {
margin-top: 0.25rem;
}
}
.btn-primary {
background: var(--primary-gradient);
border: none;
border-radius: 10px;
padding: 0.75rem 1.5rem;
font-weight: 600;
transition: all 0.3s ease;
}
.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}
.card {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 15px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
color: white;
position: relative;
overflow: hidden;
}
.card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
pointer-events: none;
}
.card * {
position: relative;
z-index: 1;
}
.card h1, .card h2, .card h3, .card h4, .card h5, .card h6 {
color: white !important;
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.card p, .card span, .card div {
color: rgba(255, 255, 255, 0.95) !important;
}
.card .text-muted {
color: rgba(255, 255, 255, 0.7) !important;
}
.card .btn {
background: rgba(255, 255, 255, 0.2);
border: 1px solid rgba(255, 255, 255, 0.3);
color: white;
backdrop-filter: blur(10px);
}
.card .btn:hover {
background: rgba(255, 255, 255, 0.3);
border-color: rgba(255, 255, 255, 0.5);
color: white;
}
.hero-section {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
padding: 4rem 0;
text-align: center;
position: relative;
overflow: hidden;
}
.hero-section::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
opacity: 0.3;
}
.stats-card {
background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
backdrop-filter: blur(10px);
border-radius: 15px;
padding: 2rem;
text-align: center;
border: 2px solid rgba(255, 255, 255, 0.3);
transition: all 0.3s ease;
box-shadow: 0 8px 32px rgba(79, 172, 254, 0.3);
color: white;
position: relative;
overflow: hidden;
}
.stats-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
pointer-events: none;
}
.stats-card:hover {
transform: translateY(-5px);
box-shadow: 0 15px 35px rgba(79, 172, 254, 0.4);
background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}
.stats-card * {
position: relative;
z-index: 1;
}
.stats-number {
color: #ffffff;
font-size: 2.5rem;
margin-bottom: 0.5rem;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
.stats-label {
color: #ffffff;
font-weight: 600;
font-size: 0.9rem;
margin-bottom: 0;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
letter-spacing: 1px;
}
.feature-card {
background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
backdrop-filter: blur(10px);
border-radius: 15px;
padding: 2rem;
border: 2px solid rgba(255, 255, 255, 0.3);
transition: all 0.3s ease;
height: 100%;
box-shadow: 0 8px 32px rgba(250, 112, 154, 0.3);
color: white;
position: relative;
overflow: hidden;
}
.feature-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
pointer-events: none;
}
.feature-card:hover {
transform: translateY(-5px);
box-shadow: 0 15px 35px rgba(250, 112, 154, 0.4);
background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}
.feature-card * {
position: relative;
z-index: 1;
}
.feature-title {
color: #ffffff;
font-size: 1.5rem;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}
.feature-description {
color: #ffffff;
font-size: 1rem;
line-height: 1.6;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}
.feature-benefit {
color: #ffffff;
font-weight: 500;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}
.card {
will-change: transform;
}
.btn:focus,
.nav-link:focus,
.navbar-brand:focus {
outline: 2px solid #fff;
outline-offset: 2px;
}
[aria-hidden="true"] {
display: none !important;
}
footer {
position: relative;
width: 100%;
background: rgba(44, 62, 80, 0.95) !important;
backdrop-filter: blur(10px);
border-top: 1px solid rgba(255, 255, 255, 0.1);
z-index: 100;
transition: transform 0.3s ease;
margin-top: 2rem;
}
footer a:hover {
text-decoration: underline;
}
body.quiz-active footer {
transform: translateY(100%);
}
.navbar-toggler {
border: none;
padding: 0.5rem;
background: transparent;
transition: all 0.3s ease;
}
.navbar-toggler:focus {
box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
outline: none;
}
.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%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
@media (max-width: 991.98px) {
.navbar-collapse {
background: rgba(44, 62, 80, 0.98);
backdrop-filter: blur(15px);
border-radius: 0 0 15px 15px;
margin-top: 0.5rem;
padding: 1rem;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
animation: slideDown 0.3s ease-out;
}
@keyframes slideDown {
from {
opacity: 0;
transform: translateY(-10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.navbar-nav {
gap: 0.5rem;
}
.nav-link {
padding: 0.75rem 1rem;
border-radius: 8px;
transition: all 0.3s ease;
position: relative;
overflow: hidden;
}
.nav-link::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
transition: left 0.5s ease;
}
.nav-link:hover::before {
left: 100%;
}
.nav-link:hover {
background: rgba(255, 255, 255, 0.1);
transform: translateX(5px);
}
.navbar-text {
padding: 0.75rem 1rem;
border-radius: 8px;
background: rgba(255, 255, 255, 0.05);
margin-bottom: 0.5rem;
border: 1px solid rgba(255, 255, 255, 0.1);
}
.navbar-toggler {
border: 2px solid rgba(255, 255, 255, 0.3);
border-radius: 8px;
padding: 0.5rem;
transition: all 0.3s ease;
}
.navbar-toggler:hover {
border-color: rgba(255, 255, 255, 0.6);
background: rgba(255, 255, 255, 0.1);
}
.navbar-toggler:focus {
box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}
}
@media print {
.navbar,
footer,
aside {
display: none !important;
}
}