/* Importar fuentes Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@400;500;600;700;800&display=swap');

/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* CABECERA FIJA */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    box-shadow: 0 2px 16px rgba(26, 26, 26, 0.08);
    z-index: 1000;
    border-bottom: 1px solid #f0f0f0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    max-width: 100%;
    position: relative;
}

/* Menú hamburguesa */
.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 32px;
    transition: all 0.2s ease;
    border-radius: 6px;
}

.menu-toggle:hover {
    background-color: #fafafa;
}

.menu-toggle:focus {
    outline: 2px solid #1a1a1a;
    outline-offset: 2px;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background-color: #1a1a1a;
    transition: all 0.2s ease;
    transform-origin: center;
    border-radius: 1px;
}

.menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Nombre del sitio - Centrado absoluto */
.site-name {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.site-name h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.5px;
    margin: 0;
}

/* BOTÓN DE JUGADOR EN HEADER */
.player-button {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
}

.player-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    border: none;
    border-radius: 6px;
    text-decoration: none;
    color: white;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 2px 12px rgba(26, 26, 26, 0.15);
}

.player-link:hover {
    background: linear-gradient(135deg, #2d2d2d, #404040);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(26, 26, 26, 0.25);
    text-decoration: none;
    color: white;
}

.player-link:focus {
    outline: 2px solid #1a1a1a;
    outline-offset: 2px;
}

.player-icon {
    font-size: 1.1rem;
    color: white;
}

.player-text,
.player-nick {
    font-weight: 500;
    color: white;
}

/* Estado especial para usuario logueado - más prominente */
.player-button.logged-in .player-link {
    background: linear-gradient(135deg, #d4af37, #b8941f);
    color: #1a1a1a;
    font-weight: 600;
    box-shadow: 0 2px 12px rgba(212, 175, 55, 0.3);
}

.player-button.logged-in .player-link:hover {
    background: linear-gradient(135deg, #b8941f, #9d7a1a);
    color: #1a1a1a;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.4);
}

.player-button.logged-in .player-icon,
.player-button.logged-in .player-text,
.player-button.logged-in .player-nick {
    color: #1a1a1a;
}

/* MENÚ DESPLEGABLE DEL JUGADOR */
.player-button {
    position: relative;
}

.player-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(26, 26, 26, 0.15);
    border: 1px solid #f0f0f0;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 1002;
}

.player-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.player-dropdown-menu a {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: #1a1a1a;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.player-dropdown-menu a:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.player-dropdown-menu a:last-child {
    border-bottom: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.player-dropdown-menu a:hover {
    background: linear-gradient(135deg, #fafafa, #f0f0f0);
    color: #1a1a1a;
    padding-left: 20px;
}

.player-dropdown-menu a:focus {
    outline: 2px solid #1a1a1a;
    outline-offset: -2px;
    background: linear-gradient(135deg, #fafafa, #f0f0f0);
}

/* Flecha del menú desplegable */
.player-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-bottom: none;
    border-right: none;
    transform: rotate(45deg);
}

/* Estilo especial para el enlace de desconectar */
.player-dropdown-menu a.logout-link {
    color: #721c24;
    font-weight: 600;
}

.player-dropdown-menu a.logout-link:hover {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
}

/* Separador en el menú desplegable */
.menu-separator {
    height: 1px;
    background: #e5e5e5;
    margin: 8px 0;
    border: none;
}

/* Menú móvil desplegable */
.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ffffff;
    box-shadow: 0 8px 24px rgba(26, 26, 26, 0.12);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    border-top: 1px solid #f0f0f0;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.menu-list {
    list-style: none;
    padding: 0;
}

.menu-list li {
    border-bottom: 1px solid #fafafa;
}

.menu-list li:last-child {
    border-bottom: none;
}

.menu-list a {
    display: block;
    padding: 16px 20px;
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.menu-list a:hover {
    background: linear-gradient(135deg, #fafafa, #f0f0f0);
    color: #1a1a1a;
    padding-left: 24px;
}

.menu-list a:focus {
    outline: 2px solid #1a1a1a;
    outline-offset: -2px;
    background: linear-gradient(135deg, #fafafa, #f0f0f0);
}

/* CONTENIDO PRINCIPAL */
.main-content {
    margin-top: 80px; /* Espacio para la cabecera fija */
    margin-bottom: 72px; /* Espacio para el pie fijo */
    padding: 24px 20px;
    min-height: calc(100vh - 152px);
    overflow-y: auto;
}

/* Estilos para el contenido de ejemplo */
.content-section {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 32px 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(26, 26, 26, 0.04);
    border: 1px solid #f0f0f0;
}

.content-section h2 {
    font-family: 'Poppins', sans-serif;
    color: #1a1a1a;
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.content-section h3 {
    font-family: 'Poppins', sans-serif;
    color: #333;
    font-size: 1.3rem;
    margin: 24px 0 16px 0;
    font-weight: 600;
    line-height: 1.4;
}

.content-section p {
    margin-bottom: 16px;
    font-size: 1rem;
    line-height: 1.7;
    color: #4a4a4a;
    font-weight: 400;
}

.content-section ul, .content-section ol {
    margin: 16px 0;
    padding-left: 24px;
}

.content-section li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: #4a4a4a;
}

.content-section strong {
    color: #1a1a1a;
    font-weight: 600;
}

/* PIE FIJO */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-top: 1px solid #f0f0f0;
    z-index: 999;
    box-shadow: 0 -2px 16px rgba(26, 26, 26, 0.06);
}

.footer-container {
    max-width: 100%;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #fafafa, #f0f0f0);
}

.copyright {
    font-size: 0.9rem;
    color: #8b8680;
    font-weight: 500;
}

.footer-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #8b8680;
    font-size: 1rem;
    transition: all 0.2s ease;
    border-radius: 6px;
}

.footer-toggle:hover {
    color: #1a1a1a;
    background-color: rgba(26, 26, 26, 0.05);
}

.footer-toggle:focus {
    outline: 2px solid #1a1a1a;
    outline-offset: 2px;
}

/* Footer expandido */
.footer-expanded {
    background-color: #ffffff;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease;
}

.footer-expanded.active {
    max-height: 320px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px 20px;
}

.footer-section h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    text-decoration: none;
    color: #8b8680;
    font-size: 0.85rem;
    font-weight: 400;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: #1a1a1a;
}

.footer-section a:focus {
    outline: 2px solid #1a1a1a;
    outline-offset: 2px;
    color: #1a1a1a;
}

/* RESPONSIVE DESIGN */
@media (min-width: 768px) {
    .header-container {
        padding: 20px 40px;
    }
    
    .player-button {
        right: 40px;
    }
    
    .player-link {
        padding: 10px 16px;
        font-size: 1rem;
        gap: 10px;
    }
    
    .main-content {
        padding: 32px 40px;
        margin-top: 88px;
    }
    
    .site-name h1 {
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1200px;
        margin: 0 auto;
        padding: 32px 40px;
    }
    
    .content-section {
        padding: 40px 32px;
    }
    
    .content-section h2 {
        font-size: 2rem;
    }
    
    .content-section h3 {
        font-size: 1.4rem;
    }
}

@media (min-width: 1024px) {
    .main-content {
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .site-name h1 {
        font-size: 2.2rem;
    }
}

/* Botones siguiendo la guía de estilo */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    display: inline-block;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2d2d2d, #404040);
    transform: translateY(-1px);
}

.btn-secondary {
    background: linear-gradient(135deg, #f5f5dc, #e6ddd4);
    color: #1a1a1a;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #e6ddd4, #d4c4b0);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: #1a1a1a;
    border: 2px solid #1a1a1a;
}

.btn-outline:hover {
    background: #1a1a1a;
    color: white;
}

.btn-ghost {
    background: transparent;
    color: #4a4a4a;
    border: 1px solid #d1d5db;
}

.btn-ghost:hover {
    background: #fafafa;
    border-color: #8b8680;
}

/* Colores de premio (para uso futuro en rankings) */
.gold-gradient { background: linear-gradient(135deg, #d4af37, #b8941f); }
.silver-gradient { background: linear-gradient(135deg, #c0c0c0, #a8a8a8); }
.bronze-gradient { background: linear-gradient(135deg, #cd7f32, #b8722c); }

/* Animaciones suaves */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Utilidades de espaciado basadas en múltiplos de 8px */
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }

.p-8 { padding: 8px; }
.p-16 { padding: 16px; }
.p-24 { padding: 24px; }
.p-32 { padding: 32px; }

/* Estados de focus mejorados para accesibilidad */
*:focus {
    outline: 2px solid #1a1a1a;
    outline-offset: 2px;
}

/* Mejoras de contraste para accesibilidad WCAG */
.text-primary { color: #1a1a1a; }
.text-secondary { color: #4a4a4a; }
.text-muted { color: #8b8680; }

.bg-primary { background: linear-gradient(135deg, #1a1a1a, #2d2d2d); }
.bg-secondary { background: linear-gradient(135deg, #f5f5dc, #e6ddd4); }
.bg-light { background: linear-gradient(135deg, #fafafa, #f0f0f0); }

/* FORMULARIOS RANKORIUM */
.form-rankorium {
    max-width: 400px;
    margin: 0 auto;
    padding: 32px 24px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(26, 26, 26, 0.08);
    border: 1px solid #f0f0f0;
}

.form-header {
    text-align: center;
    margin-bottom: 24px;
}

.form-header h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.form-header p {
    color: #8b8680;
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: #ffffff;
}

.form-group input:focus {
    outline: none;
    border-color: #1a1a1a;
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.1);
}

.form-help {
    display: block;
    color: #8b8680;
    font-size: 0.8rem;
    margin-top: 4px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 400;
}

.checkbox-container input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #e5e5e5;
    border-radius: 4px;
    margin-right: 12px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox-container input:checked + .checkmark {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    border-color: #1a1a1a;
    color: white;
}

.checkbox-container input:checked + .checkmark::after {
    content: '✓';
    font-size: 12px;
    font-weight: bold;
}

.btn-full {
    width: 100%;
    margin-top: 8px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-xs {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.form-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.form-footer a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* ALERTS Y NOTIFICACIONES */
.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 6px;
    font-weight: 500;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.alert-icon {
    font-size: 1.1rem;
}

.alert-message {
    flex: 1;
}

/* CONTENEDOR PRINCIPAL */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* CARDS DE PERFIL Y JUGADOR */
.card-jugador,
.card-perfil {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(26, 26, 26, 0.06);
    border: 1px solid #f0f0f0;
    transition: all 0.2s ease;
    margin-bottom: 24px;
}

.card-jugador:hover,
.card-perfil:hover {
    box-shadow: 0 4px 20px rgba(26, 26, 26, 0.12);
    transform: translateY(-2px);
}

.card-header-custom {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.card-header-custom h3,
.card-header-custom h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.card-header-custom h5,
.card-header-custom h6 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.card-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* AVATAR Y PERFIL */
.profile-section {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.avatar-section {
    text-align: center;
    flex-shrink: 0;
}

.avatar-placeholder {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #fafafa, #f0f0f0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #8b8680;
    margin-bottom: 12px;
    border: 3px solid #e5e5e5;
}

.profile-info {
    flex: 1;
}

.info-table {
    width: 100%;
}

.info-table tr {
    border-bottom: 1px solid #f0f0f0;
}

.info-table tr:last-child {
    border-bottom: none;
}

.info-table td {
    padding: 12px 0;
    vertical-align: top;
}

.info-table td:first-child {
    font-weight: 600;
    color: #1a1a1a;
    width: 140px;
}

.info-table td:last-child {
    color: #4a4a4a;
}

/* BADGES Y ESTADOS */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-danger {
    background: #f8d7da;
    color: #721c24;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.badge-info {
    background: #d1ecf1;
    color: #0c5460;
}

/* GRID DE ACCIONES */
.actions-grid {
    display: grid;
    gap: 12px;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    text-decoration: none;
    color: #1a1a1a;
    transition: all 0.2s ease;
    font-weight: 500;
}

.action-item:hover {
    background: #fafafa;
    border-color: #1a1a1a;
    color: #1a1a1a;
    text-decoration: none;
}

.action-icon {
    font-size: 1.1rem;
    color: #8b8680;
}

.action-item:hover .action-icon {
    color: #1a1a1a;
}

/* SEPARADORES */
.separator {
    height: 1px;
    background: #f0f0f0;
    margin: 16px 0;
    border: none;
}

/* INFORMACIÓN DEL SISTEMA */
.system-info {
    background: #fafafa;
    padding: 16px;
    border-radius: 8px;
    margin-top: 16px;
}

.system-info p {
    margin: 8px 0;
    font-size: 0.85rem;
    color: #8b8680;
}

.system-info strong {
    color: #1a1a1a;
}

/* LAYOUT RESPONSIVE */
.profile-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

/* RESPONSIVE PARA FORMULARIOS Y PERFIL */
@media (max-width: 768px) {
    .form-rankorium {
        max-width: 100%;
        margin: 0 16px;
        padding: 24px 20px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .player-button {
        right: 16px;
    }
    
    .player-link {
        padding: 6px 10px;
        font-size: 0.85rem;
        gap: 6px;
    }
    
    .player-nick {
        max-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .profile-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .profile-section {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .card-header-custom {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .card-actions {
        justify-content: stretch;
    }
    
    .card-actions .btn {
        flex: 1;
    }
    
    .info-table td:first-child {
        width: 120px;
    }
}

/* MEDIDOR DE FORTALEZA DE CONTRASEÑA */
.password-strength {
    margin-top: 8px;
}

.strength-bar {
    width: 100%;
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.strength-fill {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.strength-weak {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    width: 33%;
}

.strength-medium {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    width: 66%;
}

.strength-strong {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    width: 100%;
}

.strength-text {
    font-size: 0.8rem;
    color: #8b8680;
}

.strength-text.weak {
    color: #721c24;
}

.strength-text.medium {
    color: #856404;
}

.strength-text.strong {
    color: #155724;
}

/* CONSEJOS Y TIPS */
.tips-card {
    background: #fafafa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 24px;
    border: 1px solid #f0f0f0;
}

.tips-card h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tips-list li {
    padding: 6px 0;
    color: #8b8680;
    font-size: 0.85rem;
    position: relative;
    padding-left: 16px;
}

.tips-list li::before {
    content: '•';
    color: #1a1a1a;
    position: absolute;
    left: 0;
}

/* MENSAJES DE VALIDACIÓN */
.validation-message {
    font-size: 0.8rem;
    margin-top: 4px;
}

.validation-success {
    color: #155724;
}

.validation-error {
    color: #721c24;
}

/* BOTONES DE ACCIÓN ESPECIALES */
.action-buttons {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    flex-wrap: wrap;
}

.btn-link {
    background: none;
    border: none;
    color: #8b8680;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 8px 0;
    transition: color 0.2s ease;
}

.btn-link:hover {
    color: #1a1a1a;
    text-decoration: underline;
}

/* ESTADÍSTICAS Y MÉTRICAS */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(26, 26, 26, 0.06);
    border: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

.stat-card:hover {
    box-shadow: 0 4px 20px rgba(26, 26, 26, 0.12);
    transform: translateY(-2px);
}

.stat-card.primary {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    color: white;
}

.stat-card.success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
}

.stat-card.info {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    color: #0c5460;
}

.stat-card.warning {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    color: #856404;
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    opacity: 0.8;
}

.stat-number {
    font-family: 'Poppins', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.9;
}

/* TABLAS DE ESTADÍSTICAS */
.stats-table {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(26, 26, 26, 0.06);
    border: 1px solid #f0f0f0;
    margin-bottom: 24px;
}

.stats-table-header {
    background: linear-gradient(135deg, #fafafa, #f0f0f0);
    padding: 20px 24px;
    border-bottom: 1px solid #e5e5e5;
}

.stats-table-header h5 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.stats-table-body {
    padding: 0;
}

.stats-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.stats-table th {
    background: #fafafa;
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 0.9rem;
    border-bottom: 1px solid #e5e5e5;
}

.stats-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.stats-table tr:last-child td {
    border-bottom: none;
}

.stats-table tr:hover {
    background: #fafafa;
}

/* BARRAS DE PROGRESO */
.progress-bar-custom {
    height: 20px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    border-radius: 10px;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
}

.progress-fill.success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
}

.progress-fill.info {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    color: #0c5460;
}

.progress-fill.warning {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    color: #856404;
}

/* LISTA DE USUARIOS */
.user-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.user-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.user-item:last-child {
    border-bottom: none;
}

.user-info {
    flex: 1;
}

.user-name {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.user-email {
    font-size: 0.85rem;
    color: #8b8680;
}

.user-date {
    font-size: 0.8rem;
    color: #8b8680;
}

/* LAYOUT DE ESTADÍSTICAS */
.stats-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

/* RESPONSIVE PARA ESTADÍSTICAS */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .stats-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    /* DEPORTES EN PERFIL DE USUARIO */
    .deportes-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
        margin: 20px 0;
    }
    
    /* Tarjetas de deportes usando el estilo de Card de Torneo */
    .deportes-grid .card-torneo {
        background: #ffffff;
        border-radius: 12px;
        padding: 20px;
        box-shadow: 0 2px 12px rgba(26, 26, 26, 0.06);
        border: 1px solid #f0f0f0;
        transition: all 0.2s ease;
        margin-bottom: 0;
    }
    
    .deportes-grid .card-torneo:hover {
        box-shadow: 0 4px 20px rgba(26, 26, 26, 0.12);
        transform: translateY(-2px);
    }
    
    .deportes-grid .card-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 16px;
    }
    
    .deportes-grid .torneo-info h4 {
        font-family: 'Poppins', sans-serif;
        font-size: 1.1rem;
        font-weight: 600;
        color: #1a1a1a;
        margin-bottom: 8px;
    }
    
    .deportes-grid .torneo-meta {
        display: flex;
        gap: 12px;
        align-items: center;
    }
    
    .deportes-grid .torneo-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
        margin: 16px 0;
        text-align: center;
    }
    
    .deportes-grid .stat {
        text-align: center;
    }
    
    .deportes-grid .stat-number {
        display: block;
        font-size: 1.2rem;
        font-weight: 700;
        color: #1a1a1a;
        font-family: 'Poppins', sans-serif;
    }
    
    .deportes-grid .stat-label {
        display: block;
        font-size: 0.7rem;
        color: #8b8680;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .deportes-grid .card-actions {
        display: flex;
        justify-content: center;
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid #f0f0f0;
    }
    
    .add-deporte-section {
        margin-top: 30px;
        padding-top: 24px;
        border-top: 1px solid #f0f0f0;
    }
    
    .add-deporte-section h5 {
        font-family: 'Poppins', sans-serif;
        font-weight: 600;
        margin-bottom: 16px;
        font-size: 1.1rem;
        color: #1a1a1a;
    }
    
    .add-deporte-form {
        display: flex;
        gap: 16px;
        align-items: flex-end;
        background: #fafafa;
        padding: 20px;
        border-radius: 12px;
        border: 1px solid #f0f0f0;
    }
    
    .add-deporte-form .form-group {
        flex: 1;
        margin-bottom: 0;
    }
    
    .add-deporte-form select {
        width: 100%;
        padding: 12px 16px;
        border: 2px solid #e5e5e5;
        border-radius: 8px;
        font-family: 'Inter', sans-serif;
        font-size: 1rem;
        transition: all 0.2s ease;
        background: #ffffff;
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%231a1a1a' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 12px center;
        background-size: 12px;
        padding-right: 32px;
    }
    
    .add-deporte-form select:focus {
        outline: none;
        border-color: #1a1a1a;
        box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.1);
    }
    
    /* Badges de deportes con estilos según la guía */
    .deporte-badge {
        padding: 4px 12px;
        border-radius: 20px;
        font-size: 0.7rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: white;
        display: inline-block;
    }
    
    .deporte-badge.padel {
        background: linear-gradient(135deg, #4CAF50, #45a049);
    }
    
    .deporte-badge.tenis {
        background: linear-gradient(135deg, #2196F3, #1976D2);
    }
    
    .deporte-badge.futbol {
        background: linear-gradient(135deg, #FF9800, #F57C00);
    }
    
    .deporte-badge.basket, .deporte-badge.baloncesto {
        background: linear-gradient(135deg, #9C27B0, #7B1FA2);
    }
    
    .deporte-badge.pingpong, .deporte-badge.pingpong {
        background: linear-gradient(135deg, #E91E63, #C2185B);
    }
    
    @media (max-width: 768px) {
        .deportes-grid {
            grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
            gap: 16px;
        }
        
        .add-deporte-form {
            flex-direction: column;
            gap: 16px;
        }
        
        .add-deporte-form .form-group {
            margin-bottom: 0;
        }
        
        .add-deporte-form button {
            width: 100%;
        }
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-icon {
        font-size: 2rem;
    }
    
    .stats-table th,
    .stats-table td {
        padding: 12px 16px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}