/* public/css/styles.css - VERSIÓN PROFESIONAL */

/* 1. FUENTES Y VARIABLES */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    /* Paleta Dark & Glass */
    --bg-dark: #090b10;
    --sidebar-bg: rgba(22, 27, 34, 0.6);
    --glass-bg: rgba(30, 35, 45, 0.5);
    --glass-border: rgba(255, 255, 255, 0.08);
    
    /* Colores de Acento */
    --primary: #ff4b7d;
    --primary-glow: rgba(255, 75, 125, 0.4);
    --text-main: #ffffff;
    --text-muted: #8b949e;
    --green: #00e676;
    --red: #ff5252;
    --blue: #2979ff;
    --gold: #ffd700;
}

* { box-sizing: border-box; }

body { 
    margin: 0; 
    font-family: 'Poppins', sans-serif; 
    background-color: var(--bg-dark); 
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 75, 125, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(41, 121, 255, 0.08) 0%, transparent 40%);
    color: var(--text-main); 
    display: flex; 
    height: 100vh; 
    overflow: hidden; 
}

/* --- UTILIDADES GLASSMORPHISM --- */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

/* --- PANTALLA DE LOGIN --- */
#login-screen {
    position: fixed; 
    width: 100%; 
    height: 100%;
    
    /* TU IMAGEN DE FONDO */
    background-image: url('../img/Portada_pagina.webp'); 
    background-size: cover;      /* Para que cubra toda la pantalla */
    background-position: center; /* Para que quede centrada */
    
    display: flex; 
    justify-content: center; 
    align-items: center; 
    z-index: 1000;
}
.login-card {
    padding: 50px; text-align: center; max-width: 420px; width: 90%;
    background: linear-gradient(145deg, rgba(31,36,48,0.9), rgba(15,17,22,0.95));
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 0 50px rgba(255, 75, 125, 0.1);
}
.btn-discord {
    background: #5865F2; color: white; padding: 14px 30px; border-radius: 12px;
    text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 10px; margin-top: 30px;
    transition: all 0.3s ease; box-shadow: 0 5px 15px rgba(88, 101, 242, 0.2);
}
.btn-discord:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(88, 101, 242, 0.4); background: #4752c4; }

/* --- LAYOUT PRINCIPAL --- */
#dashboard { display: flex; width: 100%; opacity: 0; pointer-events: none; transition: opacity 0.6s ease-out; }
#dashboard.active { opacity: 1; pointer-events: all; }

/* SIDEBAR */
.sidebar {
    width: 260px; background: var(--sidebar-bg); padding: 30px 20px;
    display: flex; flex-direction: column; border-right: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
}
.sidebar h2 { 
    font-size: 1.4em; letter-spacing: 1px; color: var(--text-main); 
    margin-bottom: 40px; display: flex; align-items: center; gap: 12px; font-weight: 700;
}
.sidebar h2 i { color: var(--primary); filter: drop-shadow(0 0 8px var(--primary)); }

.nav-item {
    padding: 14px 20px; cursor: pointer; border-radius: 12px; color: var(--text-muted);
    margin-bottom: 8px; display: flex; gap: 15px; align-items: center; transition: 0.3s; font-weight: 500;
}
.nav-item i { width: 20px; text-align: center; }
.nav-item:hover, .nav-item.active { 
    background: rgba(255, 75, 125, 0.1); 
    color: var(--primary); 
    transform: translateX(5px);
}
.nav-item.active { border-left: 3px solid var(--primary); border-radius: 0 12px 12px 0; }

/* CONTENIDO PRINCIPAL */
.main { flex: 1; padding: 40px; overflow-y: auto; scroll-behavior: smooth; }

/* Scrollbar personalizada */
.main::-webkit-scrollbar { width: 8px; }
.main::-webkit-scrollbar-track { background: transparent; }
.main::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
.main::-webkit-scrollbar-thumb:hover { background: #555; }

/* BARRA SUPERIOR */
.top-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
#section-title { 
    font-size: 2em; font-weight: 700; margin: 0; 
    background: linear-gradient(90deg, #fff, #bbb); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; 
}

.user-pill {
    display: flex; align-items: center; gap: 15px; background: rgba(20, 20, 25, 0.6); 
    padding: 8px 20px; border-radius: 50px; border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}
.balance-tag { color: var(--gold); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.frag-tag { color: var(--blue); font-weight: 600; display: flex; align-items: center; gap: 6px; margin-left: 10px; padding-left: 10px; border-left: 1px solid rgba(255,255,255,0.1); }

/* --- SECCIONES Y HOME GRID --- */
.section { display: none; animation: slideUp 0.5s cubic-bezier(0.165, 0.84, 0.44, 1); }
.section.active { display: block; }

/* HOME GRID LAYOUT (2 Columnas) */
.home-layout {
    display: grid; 
    grid-template-columns: 2fr 1.2fr;
    gap: 25px;
}
@media (max-width: 1000px) { .home-layout { grid-template-columns: 1fr; } }

.welcome-banner {
    background: linear-gradient(135deg, rgba(255, 75, 125, 0.15), rgba(31, 36, 48, 0.6));
    padding: 40px; position: relative; overflow: hidden;
}
.welcome-banner::after {
    content: ''; position: absolute; right: -50px; bottom: -50px;
    width: 250px; height: 250px; background: var(--primary);
    filter: blur(120px); opacity: 0.25; pointer-events: none;
}

/* --- FEED DE NOTICIAS --- */
.news-feed-container {
    padding: 25px; height: fit-content; display: flex; flex-direction: column;
}
.news-header { font-weight: 700; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; color: #1da1f2; font-size: 1.1em; }

/* --- FILTROS Y BOTONES --- */
.market-filters { display: flex; gap: 12px; margin-bottom: 25px; flex-wrap: wrap; }
.filter-input { 
    background: rgba(0,0,0,0.3); border: 1px solid var(--glass-border); color: white; 
    padding: 12px 18px; border-radius: 10px; outline: none; transition: 0.3s; font-family: inherit;
}
.filter-input:focus { border-color: var(--primary); background: rgba(0,0,0,0.5); }
.filter-input option { background: #161b22; color: white; }

.btn-filter { 
    background: var(--primary); color: white; border: none; padding: 0 25px; 
    border-radius: 10px; font-weight: 600; cursor: pointer; transition: 0.3s; 
}
.btn-filter:hover { box-shadow: 0 0 20px var(--primary-glow); transform: translateY(-2px); }

/* --- GRID Y CARDS --- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 20px; }

/* REGLA CRÍTICA: Relative para que el candado absoluto funcione */
.card-item { 
    background: rgba(30, 35, 45, 0.4); overflow: hidden; position: relative;
    border: 1px solid var(--glass-border); transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 14px;
}
.card-item:hover { transform: translateY(-7px); border-color: var(--primary); box-shadow: 0 10px 30px rgba(0,0,0,0.4); }
.card-item img { width: 100%; display: block; border-bottom: 1px solid var(--glass-border); transition: 0.3s; }
.card-item:hover img { transform: scale(1.05); } 
.card-info { padding: 15px; font-size: 0.9em; }

/* Botones dentro de cards */
.btn-buy-card { 
    background: rgba(46, 204, 113, 0.2); color: var(--green); border: 1px solid var(--green);
    padding: 8px; width: 100%; font-weight: 600; cursor: pointer; border-radius: 8px; margin-top: 10px; transition: 0.3s;
}
.btn-buy-card:hover { background: var(--green); color: black; }
.btn-remove-card { background: rgba(255, 82, 82, 0.2); color: var(--red); border-color: var(--red); }
.btn-remove-card:hover { background: var(--red); color: white; }

/* Paginación */
.pagination { margin-top: 30px; display: flex; justify-content: center; gap: 15px; align-items: center; }
.page-btn {
    background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border); color: white;
    padding: 8px 16px; cursor: pointer; border-radius: 8px; transition: 0.3s;
}
.page-btn:hover:not(:disabled) { background: var(--primary); border-color: var(--primary); }
.page-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* --- CHECKLIST SPECIFIC --- */
.checklist-group { margin-bottom: 40px; border-bottom: 1px solid var(--glass-border); padding-bottom: 20px; }
.group-title { color: var(--primary); font-size: 1.8em; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 2px; font-weight: 800; }
.era-title { color: #fff; font-size: 1.1em; margin-top: 25px; margin-bottom: 15px; padding-left: 12px; border-left: 4px solid var(--green); }
.checklist-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)) !important; gap: 12px !important; }
.chk-item.unowned { opacity: 0.5; filter: grayscale(1); border-style: dashed !important; border-color: #444 !important; }
.chk-item.owned { border: 2px solid transparent; }

/* --- LEADERBOARD --- */
.lb-item {
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(30, 35, 45, 0.4); padding: 15px 20px; margin-bottom: 10px;
    border-radius: 12px; border: 1px solid var(--glass-border); transition: 0.3s;
}
.lb-item:hover { transform: translateX(5px); background: rgba(255, 75, 125, 0.05); border-color: var(--primary-glow); }
.lb-rank { font-size: 1.4em; width: 50px; text-align: center; font-weight: 800; color: var(--text-muted); }
.lb-user { display: flex; align-items: center; gap: 15px; flex: 1; }
.lb-user img { width: 45px; height: 45px; border-radius: 50%; object-fit: cover; border: 2px solid var(--glass-border); }
.lb-user span { font-weight: 600; font-size: 1.1em; }
.lb-score { color: var(--blue); font-weight: 700; font-size: 1.2em; }

.rank-1 { border: 1px solid var(--gold); background: linear-gradient(90deg, rgba(255, 215, 0, 0.1), transparent); }
.rank-1 .lb-rank { color: var(--gold); }
.rank-2 { border: 1px solid #c0c0c0; background: linear-gradient(90deg, rgba(192, 192, 192, 0.1), transparent); }
.rank-3 { border: 1px solid #cd7f32; background: linear-gradient(90deg, rgba(205, 127, 50, 0.1), transparent); }

/* --- ANIMACIONES & LIGHTBOX --- */
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Skeleton Loading */
.img-loading {
    background: #1f2430; min-height: 200px;
    animation: skeleton-pulse 1.5s infinite ease-in-out;
    cursor: zoom-in; object-fit: cover; width: 100%; display: block;
}
@keyframes skeleton-pulse { 0% { background-color: #1f2430; } 50% { background-color: #2a2f3d; } 100% { background-color: #1f2430; } }

/* Lightbox */
.lightbox {
    display: none; /* Se cambia a 'flex' vía JS */
    position: fixed;
    z-index: 9999;
    left: 0; top: 0; 
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
}
.lightbox-content {
    margin: auto; display: block; max-width: 90%; max-height: 90vh;
    border-radius: 12px; box-shadow: 0 0 50px rgba(0,0,0,0.5); border: 1px solid #333;
}
.lightbox-close {
    position: absolute; top: 30px; right: 40px; color: white;
    font-size: 50px; font-weight: 300; transition: 0.3s; cursor: pointer;
}
.lightbox-close:hover { color: var(--primary); transform: rotate(90deg); }
@keyframes zoomIn { from {transform:scale(0.9); opacity: 0;} to {transform:scale(1); opacity: 1;} }
.lightbox-content { animation: zoomIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }

/* --- PUBLICIDAD / ADS --- */
.ad-container {
    display: flex; justify-content: center; align-items: center; margin: 20px 0; overflow: hidden; border-radius: 12px;
}
.ad-placeholder {
    background: rgba(0,0,0,0.2); border: 1px dashed var(--glass-border); color: var(--text-muted);
    font-size: 0.8em; display: flex; justify-content: center; align-items: center;
    text-transform: uppercase; letter-spacing: 1px;
}
.ad-horizontal { width: 100%; height: 90px; max-width: 728px; margin-left: auto; margin-right: auto; }
.ad-sidebar { width: 100%; height: 250px; margin-top: auto; margin-bottom: 20px; }

/* --- CANDADO DE INVENTARIO --- */
.lock-overlay {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 20; /* Z-INDEX AUMENTADO */
    transition: transform 0.2s;
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255,255,255,0.1);
    pointer-events: auto; /* Asegurar clic */
}

.lock-overlay:hover {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.9);
}

.lock-overlay i {
    font-size: 0.9em;
}

/* TRADE CENTER STYLES */
.tc-card {
    background: linear-gradient(145deg, rgba(30,35,45,0.9), rgba(20,20,25,0.95));
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 15px;
    position: relative;
    overflow: hidden;
}

.tc-card::before {
    content: ''; position: absolute; top:0; left:0; width:4px; height:100%;
    background: var(--gold);
}

.tc-wanted-img {
    width: 100%; height: 150px; object-fit: cover; object-position: top;
    border-radius: 8px; margin-bottom: 10px; opacity: 0.8;
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

.tc-info { position: relative; z-index: 2; }

/* SELECCIÓN EN TRADE ROOM */
.selectable-card {
    cursor: pointer; border: 2px solid transparent; transition: 0.2s; opacity: 0.7;
}
.selectable-card:hover { opacity: 1; transform: scale(1.05); }
.selectable-card.selected {
    border-color: var(--green); opacity: 1; transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 230, 118, 0.4);
}

/* --- ARREGLO VISUAL SALA DE TRADE --- */

/* Contenedor de las cartas en el modal (Grid Responsive) */
.trade-pool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); /* Min 90px de ancho */
    gap: 10px;
    padding: 10px;
    align-content: start;
}

/* La carta individual dentro del modal */
.trade-mini-card {
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s;
    background: rgba(0,0,0,0.3);
    border: 2px solid transparent;
}

.trade-mini-card img {
    width: 100%;
    height: 120px; /* Altura fija para uniformidad */
    object-fit: cover; /* Recorta la imagen para llenar sin deformar */
    display: block;
}

.trade-mini-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255,255,255,0.3);
}

/* Estado Seleccionado */
.trade-mini-card.selected {
    border-color: var(--green);
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.4);
    transform: scale(0.95);
}

.trade-mini-card.selected::after {
    content: '✔';
    position: absolute;
    top: 5px; right: 5px;
    background: var(--green);
    color: black;
    font-size: 0.8em;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
}

/* --- CORRECCIÓN AVATAR NOTICIAS --- */
.tweet-avatar {
    width: 45px !important;  /* Forzamos tamaño pequeño */
    height: 45px !important;
    min-width: 45px;         /* Que no se aplaste */
    border-radius: 50%;
    object-fit: cover;       /* Que la imagen no se estire raro */
    border: 2px solid var(--glass-border);
}

/* --- WIDGET TOP COLLECTOR (Columna Derecha) --- */
.collector-widget {
    background: linear-gradient(145deg, rgba(30,35,45,0.9), rgba(20,20,25,0.95));
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    transition: 0.3s;
}

.collector-group-badge {
    background: var(--gold);
    color: black;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.9em;
    display: inline-block;
    margin-bottom: 15px;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.collector-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
    margin-bottom: 10px;
    object-fit: cover;
}

/* Animación de entrada suave cuando cambia el usuario */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

/* --- CARTA LIMPIA DE INVENTARIO --- */
.inv-card-clean {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    background: #000;
    aspect-ratio: 2 / 3; /* Mantiene proporción de carta vertical */
}

.inv-card-clean:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    border: 1px solid var(--primary);
}

.inv-card-clean img {
    width: 100%;
    height: 100%;
    
    /* CAMBIO AQUÍ: 'contain' muestra la imagen entera sin recortar nada */
    object-fit: contain; 
    
    display: block;
    
    /* Opcional: Esto ayuda si la imagen tiene fondo transparente */
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.5)); 
}

/* Indicador N° Copia (Arriba Izquierda) */
.card-badge-copy {
    position: absolute;
    top: 5px;
    left: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--gold);
    font-size: 0.75em;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

/* Indicador Candado (Arriba Derecha) */
.card-badge-lock {
    position: absolute;
    top: 5px;
    right: 5px;
    color: var(--red); /* O var(--primary) si prefieres azul */
    font-size: 0.9em;
    background: rgba(0,0,0,0.5);
    padding: 2px;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- MODAL DE DETALLES (Ficha Técnica) --- */
.detail-modal-content {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

/* Corrección: Imagen limpia sin bordes */
.detail-img-col img {
    width: 250px;
    border-radius: 12px;
    border: none; /* Quitamos el borde dorado */
    box-shadow: 0 5px 25px rgba(0,0,0,0.6); /* Sombra suave para que resalte */
}

/* Opcional: Estilo para el botón de bloquear dentro del modal */
.btn-lock-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}
.btn-lock-toggle:hover { background: rgba(255, 255, 255, 0.2); }

.detail-info-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-row {
    background: rgba(255,255,255,0.05);
    padding: 10px 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.detail-label { color: #aaa; font-size: 0.9em; }
.detail-value { font-weight: bold; color: white; text-align: right; }

/* Responsive para celular */
@media (max-width: 600px) {
    .detail-modal-content { flex-direction: column; align-items: center; }
    .detail-img-col img { width: 180px; }
    .detail-info-col { width: 100%; }
}

/* --- GRID DE INVENTARIO 7x3 --- */
#inv-grid {
    display: grid;
    gap: 15px; /* Espacio entre cartas */
    
    /* POR DEFECTO (PC / Pantallas grandes): 7 Columnas exactas */
    grid-template-columns: repeat(7, 1fr);
}

/* AJUSTE PARA PANTALLAS PEQUEÑAS (Tablets/Móviles) */
/* Si la pantalla es menor a 1200px, bajamos a automático para que no se vean diminutas */
@media (max-width: 1200px) {
    #inv-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    }
}

/* --- CARRUSEL DE NOTICIAS (Estilo Instagram) --- */
.news-carousel-container {
    position: relative;
    width: 100%;
    height: 100%; /* Ocupa todo el contenedor padre */
    background: #000;
    overflow: hidden;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
}

/* La Imagen de Fondo */
.carousel-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    opacity: 0.9;
}

/* Gradiente para que el texto se lea bien */
.carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%; /* Solo oscurece la parte de abajo */
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    pointer-events: none; /* Permitir clicks en la imagen */
}

/* Texto sobre la imagen */
.carousel-content {
    position: absolute;
    bottom: 40px; /* Espacio para los puntos */
    left: 20px;
    right: 20px;
    pointer-events: none;
}

.carousel-tag {
    display: inline-block;
    padding: 4px 10px;
    background: var(--primary);
    color: white;
    font-size: 0.75em;
    border-radius: 4px;
    font-weight: bold;
    margin-bottom: 8px;
    box-shadow: 0 2px 10px rgba(255, 75, 125, 0.4);
}

.carousel-title {
    color: white;
    font-size: 1.8em;
    font-weight: 700;
    margin: 0 0 5px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    line-height: 1.2;
}

.carousel-subtitle {
    color: #ddd;
    font-size: 0.95em;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Solo 2 líneas */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

/* Flechas de Navegación */
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.3);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex; align-items: center; justify-content: center;
    transition: 0.3s;
    backdrop-filter: blur(4px);
}
.carousel-nav-btn:hover { background: white; color: black; }
.nav-prev { left: 15px; }
.nav-next { right: 15px; }

/* Puntos Indicadores (Dots) */
.carousel-dots {
    position: absolute;
    bottom: 15px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 10;
}
.dot {
    width: 8px; height: 8px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}
.dot.active { background: var(--primary); transform: scale(1.2); }

/* Modal de Lectura */
.news-read-content {
    line-height: 1.6;
    color: #ddd;
    font-size: 1em;
    white-space: pre-wrap; /* Mantiene saltos de línea */
}

/* Clase para CADA imagen individual dentro del riel */
.carousel-slide-item {
    min-width: 100%; /* Ocupa el 100% del ancho del visor */
    height: 100%;
    object-fit: cover;
    flex-shrink: 0; /* Evita que se aplasten entre ellas */
    cursor: pointer;
}

/* Aseguramos que el contenedor principal recorte lo que sobra */
.news-carousel-container {
    /* ... (lo que ya tenías) ... */
    overflow: hidden; /* Esto es CRÍTICO para que funcione */
}

/* Hacemos que el texto tenga una transición suave también */
.carousel-content {
    /* ... (lo que ya tenías) ... */
    transition: opacity 0.3s ease-in-out;
}

/* Iconos personalizados en la barra lateral */
.nav-custom-icon {
    width: 20px;       /* Mismo ancho que los iconos de FontAwesome */
    height: 20px;      /* Altura fija */
    object-fit: contain; /* Para que no se recorte si es rectangular */
    margin-right: 5px; /* Un pelín de espacio extra si hace falta */
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.3)); /* Brillo suave opcional */
}

/* Efecto al pasar el mouse (opcional) */
.nav-item:hover .nav-custom-icon {
    transform: scale(1.2);
    transition: transform 0.2s ease;
}

/* --- PESTAÑAS DE INVENTARIO MODERNAS --- */
.inv-tabs-container {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    padding: 5px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid var(--glass-border);
}

.inv-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px;
    color: var(--text-muted);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.inv-tab-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.inv-tab-btn.active {
    background: var(--primary); /* O un gradiente si prefieres */
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
    transform: scale(1.02);
}

/* --- TARJETAS DE OBJETOS (ITEMS) --- */
#inv-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Más ancho para que quepa texto */
    gap: 20px;
}

.item-card {
    background: linear-gradient(145deg, rgba(35, 40, 50, 0.8), rgba(20, 25, 30, 0.9));
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
    position: relative;
    overflow: hidden;
}

.item-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* El Icono con brillo */
.item-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3)); /* Brillo dorado suave */
    transition: transform 0.3s;
}

.item-card:hover .item-icon {
    transform: scale(1.1) rotate(5deg);
}

.item-qty-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--gold);
    color: black;
    font-weight: 800;
    font-size: 0.85em;
    padding: 4px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* public/css/styles.css -> Agrega esto al final */

.item-emoji-icon {
    font-size: 4.5em; /* Tamaño gigante */
    line-height: 1;
    margin-bottom: 15px;
    margin-top: 10px;
    cursor: default;
    
    /* Efecto de brillo y sombra para que parezca 3D */
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.4));
    
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Animación al pasar el mouse por la tarjeta */
.item-card:hover .item-emoji-icon {
    transform: scale(1.2) rotate(10deg); /* Crece y se inclina */
    filter: drop-shadow(0 0 25px rgba(255, 215, 0, 0.7));
}

@keyframes popIn {
    0% { transform: scale(0); opacity: 0; }
    80% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); }
}

/* Estilos del Modal de Detalle */
.detail-modal-content { display: flex; gap: 20px; padding: 20px; align-items: start; }
.detail-img-col { width: 220px; text-align: center; }
.detail-img-col img { width: 100%; border-radius: 12px; object-fit: contain; }
.detail-copy-tag { margin-top: 10px; font-weight: bold; color: var(--gold); font-size: 1.2em; }

.detail-data-grid { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.detail-row { display: flex; justify-content: space-between; background: rgba(0,0,0,0.2); padding: 8px 12px; border-radius: 6px; }
.detail-row .label { color: var(--text-muted); }
.val-code { font-family: monospace; background: #444; padding: 2px 5px; border-radius: 4px; }

.btn-lock-toggle { 
    width: 100%; padding: 12px; border: none; border-radius: 8px; 
    cursor: pointer; font-weight: bold; transition: 0.3s; font-size: 1em;
}
.btn-lock-toggle.locked { background: rgba(255, 82, 82, 0.2); color: var(--red); border: 1px solid var(--red); }
.btn-lock-toggle.unlocked { background: rgba(0, 230, 118, 0.2); color: var(--green); border: 1px solid var(--green); }
.btn-lock-toggle:hover { filter: brightness(1.2); }

/* Estilos para el bloqueo en la barra de navegación */
.nav-item {
    position: relative;
    overflow: hidden;
}

.nav-item-lock {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 20, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    cursor: not-allowed;
    backdrop-filter: blur(2px);
}

.nav-lock-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.5));
    opacity: 0.8;
    transition: transform 0.3s ease;
}

.nav-item-lock:hover .nav-lock-img {
    transform: scale(1.1);
    opacity: 1;
}