.dashboard-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 1rem;
            padding-bottom: 80px; /* Espacio para menú flotante mobile */
        }
        .dashboard-header {
            background: linear-gradient(135deg, #f2732a 0%, #ec4f01 100%);
            color: white;
            padding: 2rem;
            border-radius: 8px;
            margin-bottom: 2rem;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        }
        .dashboard-header h1 {
            margin: 0 0 0.5rem 0;
            font-size: 2rem;
        }
        .dashboard-nav {
            background: white;
            padding: 1rem;
            border-radius: 8px;
            margin-bottom: 1.5rem;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
            align-items: center;
        }
        .nav-link {
            text-decoration: none;
            color: #333;
            padding: 0.5rem 1rem;
            border-radius: 4px;
            transition: all 0.3s;
            font-weight: 500;
        }
        .nav-link:hover {
            background: #E3F2FD;
            color: #2196F3;
        }
        .nav-link.logout {
            margin-left: auto;
            color: #f44336;
        }
        .nav-link.logout:hover {
            background: #FFEBEE;
        }
        
        /* Menú flotante mobile */
        .mobile-nav-toggle {
            display: none;
            position: fixed;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            width: 56px;
            height: 56px;
            background: #2196F3;
            color: white;
            border: none;
            border-radius: 50%;
            font-size: 1.5rem;
            cursor: pointer;
            box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
            z-index: 1000;
            transition: all 0.3s;
        }
        .mobile-nav-toggle:active {
            transform: translateX(-50%) scale(0.95);
        }
        .mobile-nav-menu {
            display: none;
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: white;
            box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
            z-index: 999;
            transform: translateY(100%);
            transition: transform 0.3s ease;
            max-height: 70vh;
            overflow-y: auto;
        }
        .mobile-nav-menu.active {
            transform: translateY(0);
        }
        .mobile-nav-menu .nav-link {
            display: block;
            padding: 1rem;
            border-bottom: 1px solid #f0f0f0;
            text-align: center;
        }
        .mobile-nav-menu .nav-link.logout {
            margin-left: 0;
            border-bottom: none;
        }
        .mobile-nav-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.5);
            z-index: 998;
            opacity: 0;
            transition: opacity 0.3s;
        }
        .mobile-nav-overlay.active {
            opacity: 1;
        }
        .dashboard-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 1.5rem;
            margin-bottom: 2rem;
        }
        .stat-card {
            background: white;
            padding: 1.5rem;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
            border-left: 4px solid #2196F3;
        }
        .stat-main {
            margin-bottom: 0.75rem;
        }
        .stat-card.xp { border-left-color: #4CAF50; }
        .stat-card.coins { border-left-color: #FF9800; }
        .stat-card.level { border-left-color: #9C27B0; }
        .stat-label {
            color: #666;
            font-size: 0.9rem;
            margin-bottom: 0.5rem;
        }
        .stat-value {
            font-size: 2rem;
            font-weight: bold;
            color: #333;
        }
        .stat-subtext {
            font-size: 0.85rem;
            color: #666;
            margin-top: 0.5rem;
            line-height: 1.4;
        }
        .stat-subtext:first-child {
            margin-top: 0;
        }
        .stat-progress {
            margin-top: 0.75rem;
            display: block;
            visibility: visible;
            opacity: 1;
        }
        .progress-bar {
            background: #E0E0E0;
            height: 12px;
            border-radius: 4px;
            margin-top: 0.5rem;
            overflow: hidden;
            display: block;
            width: 100%;
        }
        .progress-fill {
            background: linear-gradient(90deg, #4CAF50, #8BC34A);
            height: 100%;
            transition: width 0.5s ease;
            display: block;
            min-width: 1px;
        }
        .qr-section {
            background: white;
            padding: 2rem;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
            text-align: center;
            margin-bottom: 2rem;
        }
        .qr-code-display {
            max-width: 200px;
            margin: 1rem auto;
            padding: 1rem;
            background: white;
            border: 3px solid #2196F3;
            border-radius: 8px;
        }
        .qr-code-display img {
            width: 100%;
            height: auto;
            display: block;
        }
        .section-card {
            background: white;
            padding: 1.5rem;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
            margin-bottom: 1.5rem;
        }
        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
            padding-bottom: 0.75rem;
            border-bottom: 2px solid #E0E0E0;
        }
        .section-title {
            font-size: 1.3rem;
            font-weight: bold;
            color: #333;
            margin: 0;
        }
        .partida-item {
            padding: 1rem;
            border-left: 3px solid #2196F3;
            background: #F5F5F5;
            border-radius: 4px;
            margin-bottom: 0.75rem;
            transition: all 0.3s ease;
        }
        .partida-item:hover {
            background: #E3F2FD;
            box-shadow: 0 2px 8px rgba(33, 150, 243, 0.2);
            transform: translateX(4px);
        }
        .partida-item.past {
            border-left-color: #9E9E9E;
        }
        .partida-item.past:hover {
            background: #EEEEEE;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }
        .partida-title {
            font-weight: bold;
            color: #333;
            margin-bottom: 0.25rem;
        }
        .partida-info {
            font-size: 0.9rem;
            color: #666;
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
            margin-top: 0.5rem;
        }
        .partida-info span {
            display: inline-flex;
            align-items: center;
            gap: 0.25rem;
        }
        .estampas-badge {
            background: #4CAF50;
            color: white;
            padding: 0.25rem 0.75rem;
            border-radius: 12px;
            font-size: 0.85rem;
            font-weight: bold;
        }
        .empty-state {
            text-align: center;
            padding: 2rem;
            color: #999;
        }
        .quick-actions {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 1rem;
            margin-top: 1rem;
        }
        .action-btn {
            padding: 1rem;
            text-align: center;
            background: #F5F5F5;
            border-radius: 8px;
            text-decoration: none;
            color: #333;
            transition: all 0.3s;
            border: 2px solid transparent;
        }
        .action-btn:hover {
            background: #E3F2FD;
            border-color: #2196F3;
            transform: translateY(-2px);
        }
        .action-icon {
            font-size: 2rem;
            margin-bottom: 0.5rem;
        }
        @media (max-width: 768px) {
            .dashboard-container {
                padding: 0.5rem;
                padding-bottom: 80px;
            }
            .dashboard-header {
                padding: 1.5rem;
                margin-bottom: 1rem;
                border-radius: 0;
            }
            .dashboard-header h1 {
                font-size: 1.5rem;
                text-align: center;
            }
            .dashboard-header p {
                text-align: center;
            }
            /* Ocultar nav desktop, mostrar nav mobile */
            .dashboard-nav {
                display: none;
            }
            .mobile-nav-toggle {
                display: block;
            }
            .mobile-nav-menu {
                display: block;
            }
            .mobile-nav-overlay {
                display: block;
            }
            /* Stats compactos en mobile */
            .dashboard-grid {
                grid-template-columns: 1fr;
                gap: 0.75rem;
                margin-bottom: 1rem;
            }
            .stat-card {
                padding: 1rem;
                border-left: none;
                border-top: 3px solid #2196F3;
            }
            .stat-card.xp { border-top-color: #4CAF50; }
            .stat-card.coins { border-top-color: #FF9800; }
            .stat-card.level { border-top-color: #9C27B0; }
            .stat-label {
                font-size: 0.8rem;
                margin-bottom: 0.25rem;
            }
            .stat-value {
                font-size: 1.3rem;
            }
            .stat-main,
            .stat-progress {
                margin-bottom: 0;
            }
            .stat-progress {
                margin-top: 0.5rem;
            }
            .stat-subtext {
                margin-top: 0.35rem;
            }
            /* Headers de sección más compactos */
            .section-card {
                padding: 1rem;
                margin-bottom: 1rem;
                border-radius: 12px;
            }
            .section-header {
                margin-bottom: 0.75rem;
                padding-bottom: 0.5rem;
                border-bottom: 1px solid #E0E0E0;
            }
            .section-title {
                font-size: 1rem;
                font-weight: 600;
            }
            .qr-section {
                padding: 1rem;
            }
            .qr-code-display {
                max-width: 150px;
            }
            .partida-item {
                padding: 0.75rem;
                margin-bottom: 0.5rem;
            }
            .partida-title {
                font-size: 0.9rem;
            }
            .partida-info {
                font-size: 0.8rem;
            }
        }

/* ============================================================
   COMPONENTES COMPARTIDOS (Jugador)
   ============================================================ */

/* Cabecera de página */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}
@media (max-width: 768px) {
    .page-header h1,
    .page-header p {
        text-align: center;
    }
}

/* Pestañas */
.tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #E0E0E0;
}
.tab {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    transition: all 0.3s;
    text-decoration: none;
}
.tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}

/* Fila de formulario en dos columnas */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Estado vacío */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #999;
}

/* ============================================================
   BENEFICIOS
   ============================================================ */
.beneficios-container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
}
.hero-section {
    text-align: center;
    margin-bottom: 2rem;
}
.hero-section h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}
.hero-section p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.benefit-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}
.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}
.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
}
.benefit-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-align: center;
    font-size: 1.3rem;
}
.benefit-card p {
    color: var(--text-color);
    line-height: 1.6;
    text-align: center;
}
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
    margin: 2rem 0;
    box-shadow: var(--shadow-hover);
}
.cta-section h2 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 2rem;
}
.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}
.btn-registro {
    display: inline-block;
    background: var(--white);
    color: var(--primary-color);
    padding: 1rem 3rem;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.btn-registro:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    background: var(--bg-color);
}
.features-list {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}
.features-list h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.5rem;
}
.features-list ul {
    list-style: none;
    padding: 0;
    max-width: 700px;
    margin: 0 auto;
}
.features-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    padding-left: 2rem;
}
.features-list li:last-child {
    border-bottom: none;
}
.features-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.3rem;
}
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    .hero-section p {
        font-size: 1rem;
    }
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    .cta-section {
        padding: 2rem 1rem;
    }
    .cta-section h2 {
        font-size: 1.5rem;
    }
}

/* ============================================================
   ESCANEAR ESTAMPA
   ============================================================ */
.escanear-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
    padding-bottom: 80px;
}
.estampa-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    overflow: hidden;
    margin-top: 2rem;
}
.estampa-header {
    background: linear-gradient(135deg, #FF6400 0%, #CC5000 100%);
    color: white;
    padding: 1.5rem;
    text-align: center;
}
.estampa-header h1 {
    margin: 0 0 0.5rem 0;
    font-size: 1.8rem;
}
.estampa-categoria {
    background: rgba(255,255,255,0.2);
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}
.escanear-container .estampa-imagen-container {
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}
.escanear-container .estampa-imagen {
    max-width: 100%;
    max-height: 300px;
}
.estampa-imagen-placeholder {
    width: 200px;
    height: 200px;
    background: #f5f5f5;
    border: 2px dashed #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #999;
    font-weight: 500;
}
.estampa-info {
    padding: 1.5rem;
}
.info-section {
    margin-bottom: 1.5rem;
}
.info-section h3 {
    color: #333;
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    border-bottom: 2px solid #FF6400;
    padding-bottom: 0.5rem;
}
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.info-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #FF6400;
}
.info-item-label {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    font-weight: 600;
}
.info-item-value {
    font-size: 1.2rem;
    color: #333;
    font-weight: bold;
}
.info-item-value.xp {
    color: #4CAF50;
}
.info-item-value.monedas {
    color: #FFC107;
}
.rareza-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
}
.rareza-comun { background: #9E9E9E; color: white; }
.rareza-poco_comun { background: #4CAF50; color: white; }
.rareza-rara { background: #2196F3; color: white; }
.rareza-epica { background: #9C27B0; color: white; }
.rareza-legendaria { background: #FF9800; color: white; }
.rareza-mitica { background: #F44336; color: white; }
.escanear-container .descripcion {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    line-height: 1.6;
    color: #555;
}
.escanear-container .alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}
.escanear-container .alert-warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    color: #856404;
}
.escanear-container .alert-info {
    background: #d1ecf1;
    border-left: 4px solid #17a2b8;
    color: #0c5460;
}
.escanear-container .alert-success {
    background: #d4edda;
    border-left: 4px solid #28a745;
    color: #155724;
}
.escanear-container .alert-error {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
    color: #721c24;
}
.action-container {
    padding: 1.5rem;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
}
.escanear-container .btn {
    display: block;
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
}
.escanear-container .btn-primary {
    background: linear-gradient(135deg, #FF6400 0%, #CC5000 100%);
    color: white;
}
.escanear-container .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 100, 0, 0.4);
}
.escanear-container .btn-secondary {
    background: #6c757d;
    color: white;
    margin-top: 0.5rem;
}
.escanear-container .btn-secondary:hover {
    background: #5a6268;
}
.escanear-container .btn-disabled {
    background: #e0e0e0;
    color: #9e9e9e;
    cursor: not-allowed;
}
.escanear-container .btn-disabled:hover {
    transform: none;
    box-shadow: none;
}
.login-prompt {
    text-align: center;
    padding: 2rem;
    background: #fff3cd;
    border-radius: 8px;
}
.login-prompt h3 {
    margin: 0 0 1rem 0;
    color: #856404;
}
.login-prompt p {
    color: #856404;
    margin-bottom: 1.5rem;
}
@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
    .estampa-header h1 {
        font-size: 1.5rem;
    }
}

/* ============================================================
   ESCANEAR QR
   ============================================================ */
.scanner-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.scanner-header {
    text-align: center;
    margin-bottom: 20px;
}
.scanner-header h1 {
    color: #333;
    margin-bottom: 10px;
}
.scanner-header p {
    color: #666;
    font-size: 14px;
}
#qr-reader {
    border: 2px solid #007bff;
    border-radius: 8px;
    overflow: hidden;
    margin: 20px 0;
}
#qr-reader video {
    width: 100% !important;
    height: auto !important;
    border-radius: 6px;
}
.scanner-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}
.scanner-controls button {
    padding: 12px 24px;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}
.scanner-container .btn-primary {
    background: #007bff;
    color: white;
}
.scanner-container .btn-primary:hover {
    background: #0056b3;
}
.scanner-container .btn-danger {
    background: #dc3545;
    color: white;
}
.scanner-container .btn-danger:hover {
    background: #c82333;
}
.scanner-container .btn-secondary {
    background: #6c757d;
    color: white;
}
.scanner-container .btn-secondary:hover {
    background: #5a6268;
}
#scanner-result {
    margin-top: 20px;
    padding: 15px;
    border-radius: 6px;
    display: none;
}
#scanner-result.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    display: block;
}
#scanner-result.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    display: block;
}
#scanner-result.info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
    display: block;
}
.result-content {
    margin-top: 10px;
}
.result-data {
    background: white;
    padding: 15px;
    border-radius: 4px;
    margin-top: 10px;
}
.result-data h3 {
    margin-top: 0;
    color: #333;
}
.result-data p {
    margin: 8px 0;
    color: #555;
}
.result-data strong {
    color: #333;
}
#camera-status {
    text-align: center;
    padding: 10px;
    margin: 10px 0;
    background: #f8f9fa;
    border-radius: 6px;
    color: #666;
}
.scanner-container .loading {
    text-align: center;
    padding: 20px;
}
.scanner-container .loading::after {
    content: "...";
    animation: dots 1.5s steps(4, end) infinite;
}
@keyframes dots {
    0%, 20% { content: "."; }
    40% { content: ".."; }
    60%, 100% { content: "..."; }
}
@media (max-width: 768px) {
    .scanner-container {
        margin: 10px;
        padding: 15px;
    }
    .scanner-controls {
        flex-direction: column;
    }
    .scanner-controls button {
        width: 100%;
    }
}

/* ============================================================
   ESTAMPAS
   ============================================================ */
.estampas-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}
.filtros-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.carrusel-section {
    margin-bottom: 1.0rem;
}
.carrusel-section h3 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    color: #333;
    text-align: center;
}
.carrusel-container {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #2196F3 #f0f0f0;
}
.carrusel-container::-webkit-scrollbar {
    height: 8px;
}
.carrusel-container::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}
.carrusel-container::-webkit-scrollbar-thumb {
    background: #2196F3;
    border-radius: 4px;
}
.carrusel-items {
    display: flex;
    gap: 1rem;
    padding-bottom: 0.5rem;
    justify-content: center;
    min-width: min-content;
}
.carrusel-item {
    flex: 0 0 auto;
    width: 120px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 3px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
}
.carrusel-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.carrusel-item.selected {
    border-color: #2196F3;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}
.carrusel-item-image {
    width: 100%;
    height: 100px;
    object-fit: cover;
    display: block;
    background: #fff;
}
.carrusel-item-name {
    padding: 0.5rem;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
    color: #333;
    background: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.carrusel-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.carrusel-item.disabled:hover {
    transform: none;
    box-shadow: none;
}
.empty-carrusel {
    text-align: center;
    color: #999;
    font-style: italic;
}
.filtros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}
.estampas-container .form-group {
    margin-bottom: 0;
}
.estampas-container .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}
.estampas-container .form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}
.estampas-grid {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    width: 100%;
}
@media (max-width: 992px) {
    .estampas-grid {
        gap: 0.8rem;
    }
}
@media (max-width: 768px) {
    .estampas-grid {
        gap: 0.6rem;
    }
}
@media (max-width: 480px) {
    .estampas-grid {
        gap: 0.5rem;
    }
}
.estampa-item {
    position: relative;
    background: transparent;
    border: none;
    border-radius: 8px;
    padding: 0;
    text-align: center;
    overflow: hidden;
    flex: 0 0 auto;
    max-width: 100%;
}
.estampa-item.tamano-pequeno {
    width: 160px;
    height: auto;
}
.estampa-item.tamano-mediano {
    width: 240px;
    height: auto;
}
.estampa-item.tamano-grande {
    width: 320px;
    height: auto;
}
@media (max-width: 768px) {
    .estampa-item.tamano-pequeno {
        width: 133px;
        height: auto;
    }
    .estampa-item.tamano-mediano {
        width: 200px;
        height: auto;
    }
    .estampa-item.tamano-grande {
        width: 267px;
        height: auto;
    }
}
@media (max-width: 480px) {
    .estampa-item.tamano-pequeno {
        width: 124px;
        height: auto;
    }
    .estampa-item.tamano-mediano {
        width: 187px;
        height: auto;
    }
    .estampa-item.tamano-grande {
        width: 249px;
        height: auto;
    }
}
.estampas-container .estampa-imagen-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: transparent;
}
.estampas-container .estampa-imagen {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}
.estampas-container .estampa-imagen.no-obtenida {
    filter: grayscale(100%);
}
.estampa-fecha {
    position: absolute;
    bottom: 0.3rem;
    left: 0;
    right: 0;
    background: none;
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem;
    font-weight: 600;
    text-align: center;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}
.estampas-container .empty-state {
    background: white;
    border-radius: 8px;
}
.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}
.coleccion-info {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}
.modal-overlay.active {
    display: flex;
}
.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease-out;
}
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: background 0.2s;
}
.modal-close:hover {
    background: rgba(0,0,0,0.7);
}
.modal-image {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
}
.modal-image.no-obtenida {
    filter: grayscale(100%);
}
.modal-body {
    padding: 1.5rem;
}
.modal-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 0 1rem 0;
    color: #333;
}
.modal-detail {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}
.modal-detail:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.modal-detail-label {
    font-weight: 600;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}
.modal-detail-value {
    color: #333;
    font-size: 1rem;
}
.modal-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}
.badge-comun {
    background: #9e9e9e;
    color: white;
}
.badge-rara {
    background: #2196F3;
    color: white;
}
.badge-epica {
    background: #9c27b0;
    color: white;
}
.badge-legendaria {
    background: #ff9800;
    color: white;
}
.badge-no-obtenida {
    background: #e0e0e0;
    color: #999;
}
.estampa-item.clickeable {
    cursor: pointer;
    transition: all 0.3s ease;
}
.estampa-item.clickeable:hover {
    transform: translateY(-4px);
}
.estampas-container .btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #2196F3;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}
.estampas-container .btn:hover {
    background: #1976D2;
}
@media (max-width: 768px) {
    .carrusel-section h3 {
        text-align: center;
    }
    .coleccion-info h2 {
        text-align: center;
    }
}

/* ============================================================
   HISTORIAL
   ============================================================ */
.historial-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1rem;
}
.historial-list {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.movimiento-item {
    padding: 1.5rem;
    border-bottom: 1px solid #E0E0E0;
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 1rem;
    align-items: center;
}
.movimiento-item:last-child {
    border-bottom: none;
}
.movimiento-icono {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
.movimiento-icono.positivo {
    background: #E8F5E9;
    color: #4CAF50;
}
.movimiento-icono.negativo {
    background: #FFEBEE;
    color: #F44336;
}
.movimiento-info h3 {
    margin: 0 0 0.25rem 0;
    color: #333;
    font-size: 1rem;
}
.movimiento-meta {
    font-size: 0.85rem;
    color: #666;
}
.movimiento-cantidad {
    text-align: right;
    font-weight: bold;
    font-size: 1.3rem;
}
.movimiento-cantidad.positivo {
    color: #4CAF50;
}
.movimiento-cantidad.negativo {
    color: #F44336;
}
.movimiento-fecha {
    font-size: 0.75rem;
    color: #999;
    text-align: right;
    margin-top: 0.25rem;
}

/* ============================================================
   PERFIL
   ============================================================ */
.perfil-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}
.profile-header {
    text-align: center;
    margin-bottom: 2rem;
}
.avatar-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #2196F3;
    margin: 0 auto 1rem;
    display: block;
}

/* ============================================================
   PREMIOS
   ============================================================ */
.premios-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}
.saldo-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    text-align: center;
}
.saldo-cantidad {
    font-size: 3rem;
    font-weight: bold;
    color: #FF9800;
}
.premios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.premio-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s;
}
.premio-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}
.premio-imagen {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #FFE0B2 0%, #FFCC80 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}
.premio-body {
    padding: 1.5rem;
}
.premio-nombre {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #333;
}
.premio-descripcion {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    min-height: 3rem;
}
.premio-costo {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFF3E0;
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-weight: bold;
    color: #FF9800;
    font-size: 1.2rem;
}
.premio-footer {
    display: flex;
    gap: 0.5rem;
}
.premios-container .btn {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}
.premios-container .btn-primary {
    background: #FF9800;
    color: white;
}
.premios-container .btn-primary:hover:not(:disabled) {
    background: #F57C00;
}
.premios-container .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.redenciones-list {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.redencion-item {
    padding: 1.5rem;
    border-bottom: 1px solid #E0E0E0;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: center;
}
.redencion-item:last-child {
    border-bottom: none;
}
.redencion-info h3 {
    margin: 0 0 0.5rem 0;
    color: #333;
}
.redencion-meta {
    font-size: 0.9rem;
    color: #666;
}
.estado-badge {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.9rem;
}
.estado-pendiente {
    background: #FFF3E0;
    color: #F57C00;
}
.estado-procesando {
    background: #E3F2FD;
    color: #1976D2;
}
.estado-entregado {
    background: #E8F5E9;
    color: #4CAF50;
}
.estado-cancelado {
    background: #FFEBEE;
    color: #D32F2F;
}

/* ============================================================
   QR
   ============================================================ */
.qr-container {
    max-width: 500px;
    margin: 2rem auto;
    padding: 0 1rem;
}
.qr-display {
    text-align: center;
    padding: 2rem;
}
.qr-image {
    max-width: 300px;
    width: 100%;
    height: auto;
    margin: 1.5rem auto;
    border: 4px solid #2196F3;
    border-radius: 8px;
    padding: 1rem;
    background: white;
}
.qr-code-text {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    background: #f5f5f5;
    padding: 0.75rem;
    border-radius: 4px;
    margin: 1rem 0;
}
.qr-instructions {
    background: #E3F2FD;
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1.5rem;
    text-align: left;
}
.qr-instructions h4 {
    margin-top: 0;
    color: #1976D2;
}
.qr-instructions ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}
@media print {
    body * {
        visibility: hidden;
    }
    .qr-display, .qr-display * {
        visibility: visible;
    }
    .qr-display {
        position: absolute;
        left: 0;
        top: 0;
    }
    .btn, .qr-instructions {
        display: none !important;
    }
}

/* ============================================================
   RANKING
   ============================================================ */
.ranking-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1rem;
}
.ranking-table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.ranking-row {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 1rem;
    padding: 1.5rem;
    border-bottom: 1px solid #E0E0E0;
    align-items: center;
    transition: background 0.3s;
}
.ranking-row:hover {
    background: #F5F5F5;
}
.ranking-row:last-child {
    border-bottom: none;
}
.ranking-row.destacado {
    background: #F3E5F5;
    border-left: 4px solid #9C27B0;
}
.posicion {
    text-align: center;
    font-weight: bold;
    font-size: 1.5rem;
}
.posicion.top1 {
    color: #FFD700;
}
.posicion.top2 {
    color: #C0C0C0;
}
.posicion.top3 {
    color: #CD7F32;
}
.jugador-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.jugador-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.jugador-datos {
    flex: 1;
}
.jugador-nombre {
    font-weight: bold;
    color: #333;
    margin-bottom: 0.25rem;
}
.jugador-nivel {
    font-size: 0.85rem;
    color: #666;
}
.puntos {
    text-align: right;
    font-weight: bold;
    color: #9C27B0;
    font-size: 1.2rem;
}
.puntos-label {
    font-size: 0.75rem;
    color: #999;
    font-weight: normal;
    display: block;
    margin-top: 0.25rem;
}
.medalla {
    display: inline-block;
    margin-left: 0.5rem;
}

/* ============================================================
   REGISTRO
   ============================================================ */
.registro-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 0 1rem;
}
.password-requirements {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.25rem;
}