: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);
}
.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;
}
.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);
}
.navbar-nav .nav-link.active {
background: rgba(255, 193, 7, 0.2);
color: #ffc107;
border: 1px solid rgba(255, 193, 7, 0.3);
}
.navbar-text {
color: rgba(255, 255, 255, 0.9);
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 {
background: rgba(44, 62, 80, 0.95);
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 {
color: rgba(255, 255, 255, 0.9);
padding: 0.5rem 1rem;
transition: all 0.3s ease;
border-radius: 5px;
margin: 0 0.25rem;
}
.dropdown-item:hover {
background: rgba(255, 255, 255, 0.15);
color: #fff;
transform: translateX(5px);
}
.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;
}
.user-details {
min-width: 80px;
}
.user-name {
font-weight: 600;
line-height: 1.2;
}
.user-level {
font-weight: 500;
line-height: 1.2;
}
.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;
}
}