/* ============================================
   CSS REORGANIZADO Y OPTIMIZADO - Pixelmon Chronicles 2
   ============================================ */

/* ---------- 1. RESET Y CONFIGURACIÓN GLOBAL ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    overflow: hidden;
}

/* ---------- 2. ESTILOS GENERALES DEL BODY ---------- */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #2e0a23 30%, #3d0631 70%, #2e0224 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

body.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ---------- 3. ELEMENTOS REUTILIZABLES ---------- */

/* Gradientes comunes */
.gradient-primary {
    background: linear-gradient(135deg, #740391 0%, #ff00bf 50%, #9900ff 100%);
}

.gradient-secondary {
    background: linear-gradient(135deg, rgba(71, 22, 69, 0.8), rgba(40, 5, 63, 0.8));
}

.gradient-danger {
    background: linear-gradient(135deg, rgba(187, 18, 18, 0.8), rgba(116, 3, 3, 0.8));
}

/* Títulos con gradiente */
.title-gradient {
    color: transparent;
    background: linear-gradient(to right, #570777, #b9b7b7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scrollbar personalizado */
.custom-scrollbar::-webkit-scrollbar {
    width: 10px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #740391, #ff00bf);
    border-radius: 5px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #9900ff, #ff00bf);
}

/* Soporte Firefox */
@-moz-document url-prefix() {
    .custom-scrollbar {
        scrollbar-width: thin;
        scrollbar-color: #740391 rgba(0, 0, 0, 0.2);
    }
}

/* ---------- 4. BREADCRUMBS ---------- */
.logo-breadcrumbs-container {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    flex: 1;
    min-width: 0;
}

.menu-breadcrumbs {
    flex: 1;
    margin-bottom: 5px;
    min-width: 0;
}

.breadcrumbs-container {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    font-size: 14px;
    min-width: 0;
}

.breadcrumbs {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    min-width: 0;
    max-width: 100%;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    flex-shrink: 1;
    min-width: 0;
}

.breadcrumb-link {
    color: #ff9999;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 3px 6px;
    border-radius: 3px;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
    flex-shrink: 1;
}

.breadcrumb-link:hover {
    color: #ffffff;
    background: rgba(255, 0, 191, 0.2);
    text-decoration: none;
}

.breadcrumb-current {
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 3px 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
    background: rgba(116, 3, 145, 0.3);
    border-radius: 3px;
    border-left: 2px solid #ff00bf;
}

.breadcrumb-separator {
    color: rgba(255, 0, 191, 0.7);
    margin: 0 5px;
    font-size: 16px;
    font-weight: bold;
    flex-shrink: 0;
}

.breadcrumbs-hidden {
    display: none;
}

/* ---------- 5. LOGIN ---------- */
.login-container {
    width: 100%;
    max-width: 800px;
    padding: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0 auto;
}

.login-content {
    width: 100%;
    text-align: center;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.logo-title-wrapper {
    display: flex;
    align-items: center;
    gap: 30px;
    width: 100%;
    justify-content: center;
}

.logo-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    padding: 12px;
    background: linear-gradient(135deg, rgba(71, 22, 69, 0.281), rgba(40, 5, 63, 0.3));
    box-shadow: 0px 1px 20px rgb(187, 18, 18);
    border: 3px solid rgba(255, 0, 255, 0.5);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.logo-icon:hover {
    transform: scale(1.05);
    box-shadow: 0px 1px 25px rgb(187, 18, 18);
}

.main-title {
    font-size: 4.5rem;
    font-weight: 900;
    letter-spacing: 4px;
    color: transparent;
    background: linear-gradient(135deg, #740391 0%, #ff00bf 50%, #9900ff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    filter: drop-shadow(0 0 20px rgb(0, 0, 0));
    white-space: nowrap;
    margin: 0;
    padding: 0;
}

.separator {
    height: 3px;
    background: linear-gradient(90deg, #000000 0%, #000000 50%, #000000 100%);
    margin: 40px auto;
    width: 80%;
    border: 2px solid #000;
}

/* ---------- MENSAJE DE ERROR ---------- */
.error-container {
    width: 100%;
    margin-bottom: 50px;
    display: none; /* Oculto por defecto */
}

/* Solo mostrar cuando hay error */
.error-container.has-error {
    display: block;
}

.error-message {
    background: linear-gradient(135deg, #600707 0%, #8b0000 100%);
    width: 70%;
    color: #fff;
    padding: 20px;
    margin: 0 auto 20px auto;
    border-radius: 10px;
    border: 2px solid #ff0000;
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3), 0 0 25px rgba(255, 0, 0, 0.2);
    text-align: center;
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 1px;
    animation: shake 0.5s ease-in-out, glow 2s infinite alternate;
    position: relative;
}

/* Icono ANTES del texto */
.error-message::before {
    content: "⚠️ ";
    display: inline;
    margin-right: 8px;
    animation: pulse 1s infinite alternate;
}

/* Animaciones */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes pulse {
    from { opacity: 0.7; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1.1); }
}

@keyframes glow {
    0%, 100% { 
        box-shadow: 
            0 5px 15px rgba(255, 0, 0, 0.3),
            0 0 25px rgba(255, 0, 0, 0.2);
    }
    50% { 
        box-shadow: 
            0 5px 20px rgba(255, 0, 0, 0.4),
            0 0 35px rgba(255, 100, 100, 0.3);
    }
}



.login-box {
    background: rgba(34, 32, 32, 0.95);
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 5px 15px rgba(255, 0, 0, 0.2);
    width: 100%;
    margin: 0 auto;
    border: 4px solid rgba(255, 0, 255, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.login-title {
    text-align: center;
    color: #ffffff;
    margin-bottom: 40px;
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 3px;
    padding-bottom: 15px;
    border-bottom: 2px solid #000;
}

.login-box h1 {
    background: linear-gradient(to right, #570777, #b9b7b7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---------- 6. FORMULARIOS ---------- */
.form-group {
    margin-bottom: 30px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #ff9999;
    font-weight: 700;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 18px 20px;
    background: rgba(15, 15, 15, 0.9);
    border: 3px solid rgb(136, 16, 206);
    border-radius: 12px;
    font-size: 1.2rem;
    color: #ffffff;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #8309a8;
    outline: none;
    box-shadow: 0 0 25px rgb(255, 255, 255);
    background: rgba(25, 25, 25, 0.95);
}

.form-group input::placeholder {
    color: #777;
    font-style: italic;
}

/* Select personalizado */
.form-group select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ff9999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 24px;
    padding-right: 60px;
}

.form-group select:hover {
    border-color: #ff00bf;
}

.form-group select option {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 15px;
    font-size: 1.1rem;
}

.form-group select option[value=""][disabled] {
    color: #777;
    font-style: italic;
}

.form-group select option:checked {
    background: linear-gradient(135deg, #740391, #ff00bf);
    color: white;
}

/* ---------- 7. BOTONES ---------- */
.login-btn {
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, #7503916c, #ff00bf5e, #9900ff71);
    color: rgb(154, 152, 161);
    border: 4px solid #000;
    border-radius: 12px;
    font-size: 1.8rem;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 20px;
    text-shadow: 2px 2px 0 #000, -2px -2px 20px #000;
}

.login-btn:hover {
    color: rgb(237, 236, 241);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 5, 5, 0.911);
    background: linear-gradient(135deg, #750391d8, #ff00bfd5, #9900ffd3);
}

.login-btn:active {
    transform: translateY(0);
}

/* Botones del menú */
.menu-btn {
    color: #ff9999;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 10px 20px;
    border-radius: 20px;
    border: 3px solid rgba(255, 0, 255, 0.5);
    transition: all 0.3s;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    background: linear-gradient(135deg, rgba(71, 22, 69, 0.8), rgba(40, 5, 63, 0.8));
    cursor: pointer;
    font-size: 1.3rem;
    text-align: center;
    white-space: nowrap;
    min-width: min-content;
    max-width: 200px;
    flex-shrink: 1;
    box-shadow: 0px 5px 15px rgba(187, 18, 18, 0.2);
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-btn:hover {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(116, 3, 145, 0.9), rgba(255, 0, 191, 0.9));
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.4);
    border-color: #ff00bf;
}

.menu-btn:active {
    transform: translateY(-2px);
}

.logout-btn {
    background: linear-gradient(135deg, rgba(187, 18, 18, 0.8), rgba(116, 3, 3, 0.8));
    border-color: rgba(187, 18, 18, 0.7);
}

.logout-btn:hover {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.9), rgba(187, 18, 18, 0.9));
    box-shadow: 0 15px 30px rgba(255, 0, 0, 0.6);
}

/* Botones en tablas */
.btn {
    padding: 8px 16px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin: 0 3px;
    border: 2px solid transparent;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-warning {
    background: linear-gradient(135deg, #ff9900, #ff6600);
    color: #000;
    border-color: #ff9900;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #ffcc00, #ff9900);
    border-color: #ffcc00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 153, 0, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #ff3333, #cc0000);
    color: #fff;
    border-color: #ff3333;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #ff6666, #ff3333);
    border-color: #ff6666;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.4);
}

/* ---------- 8. MENÚ PRINCIPAL ---------- */
.menu-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 150px;
    background: linear-gradient(135deg, #0a0a0a 0%, #2e0a23 100%);
    padding: 15px 40px;
    box-shadow: 0px 10px 30px rgba(187, 18, 18, 0.3);
    border-bottom: 4px solid rgba(255, 0, 255, 0.5);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.menu-content {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.welcome-title {
    font-size: 2.0rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: transparent;
    background: linear-gradient(135deg, #740391 0%, #ff00bf 50%, #9900ff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    filter: drop-shadow(0 0 15px rgba(0, 0, 0, 0.9));
    text-align: center;
    white-space: nowrap;
    margin: 0;
}

.menu-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: nowrap;
}

.menu-buttons.compact-menu {
    gap: 8px;
}

.menu-buttons.compact-menu .menu-btn {
    font-size: 1rem;
    padding: 8px 12px;
}

.menu-btn .full-text {
    display: inline;
}

.menu-btn .short-text {
    display: none;
}

/* ---------- 8.1 MENÚ DESPLEGABLE (TIENDAS) ---------- */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown .dropbtn {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    border: 3px solid rgba(255, 0, 255, 0.5);
    width: 100%;
    font-family: inherit;
}

.dropdown-icon {
    font-size: 12px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

/* Contenido del desplegable - oculto por defecto */
.dropdown-content {
    display: none;
    position: absolute;
    background: linear-gradient(135deg, #2e0a23 0%, #3d0631 100%);
    min-width: 220px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5);
    z-index: 1100;
    border-radius: 8px;
    overflow: hidden;
    top: 100%;
    left: 0;
    margin-top: 8px;
    border: 2px solid rgba(255, 0, 255, 0.3);
    backdrop-filter: blur(10px);
}


.dropdown-content a {
    color: #ff9999;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 0, 255, 0.2);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background: linear-gradient(135deg, rgba(116, 3, 145, 0.9), rgba(255, 0, 191, 0.9));
    color: #ffffff;
    transform: translateX(5px);
    border-color: #ff00bf;
}

/* Mostrar dropdown cuando tiene clase active */
.dropdown.active .dropdown-content {
    display: block;
}

.dropdown.active .dropdown-icon {
    transform: rotate(180deg);
}

/* ---------- 9. CONTENIDO PRINCIPAL ---------- */
.scrollable-content {
    position: fixed;
    top: 200px;
    bottom: 80px;
    left: 0;
    right: 0;
    overflow-y: auto;
    padding: 20px;
    z-index: 1;
}

.scrollable-content {
    scrollbar-width: thin;
    scrollbar-color: #740391 rgba(0, 0, 0, 0.2);
}

.container-menu-info {
    width: 100%;
    max-width: 1500px;
    display: flex;
    justify-content: center;
    padding: 0 20px;
    margin: 0 auto 40px auto;
    animation: fadeInUp 0.5s ease-out;
}

.menu-info {
    width: 100%;
    text-align: center;
    padding: 50px 60px;
    background: rgba(34, 32, 32, 0.95);
    border-radius: 20px;
    border: 4px solid rgba(123, 72, 152, 0.5);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

/* Títulos dentro de las cajas de información */
.menu-info h1 {
    font-size: 3rem;
    color: transparent;
    background: linear-gradient(to right, #570777, #b9b7b7);
    -webkit-background-clip: text;
    background-clip: text;
    font-weight: 800;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0 0 20px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Elimina o comenta esta regla si existe */
.menu-info h1.title-gradient {
    background: linear-gradient(to right, #570777, #b9b7b7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.menu-info h2 {
    font-size: 2.5rem;
    color: #ff9999;
    font-weight: 800;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0 0 20px 0;
}

.parrafo_texto_main {
    color: #ff9999;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    margin-top: 20px;
    line-height: 1.6;
    text-align: justify;
}

.listado {
    text-align: center;
}

/* ---------- 9.1 CONTENIDO DE LA TIENDA ---------- */
/* ============================================
   ESTILOS PARA LA TIENDA DE OBJETOS (shops)
   ============================================ */

/* Layout principal de la tienda */
.shop-layout {
    display: flex;
    gap: 20px;
    position: fixed;
    top: 200px;            /* Debajo del menú */
    bottom: 80px;           /* Encima del footer */
    left: 0;
    right: 0;
    padding: 20px;
    overflow: hidden;
    background: transparent;
    z-index: 1;
}

/* Contenedor de filtros (lateral izquierdo) */
.filters-container {
    width: 300px;
    flex-shrink: 0;
    background: rgba(34, 32, 32, 0.95);
    border: 4px solid rgba(123, 72, 152, 0.5);
    border-radius: 20px;
    padding: 20px;
    color: #ff9999;
    overflow-y: auto;
    backdrop-filter: blur(10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    height: fit-content;
    max-height: 100%;
}

.filters-header h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
    color: transparent;
    background: linear-gradient(to right, #570777, #b9b7b7);
    -webkit-background-clip: text;
    background-clip: text;
}

.filter-group {
    margin-bottom: 25px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    color: #ff9999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-input,
.filter-select {
    width: 100%;
    padding: 12px 15px;
    background: rgba(15, 15, 15, 0.9);
    border: 2px solid rgb(136, 16, 206);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s;
}

.filter-input:focus,
.filter-select:focus {
    border-color: #ff00bf;
    outline: none;
    box-shadow: 0 0 15px rgba(255, 0, 191, 0.5);
}

.filter-input[type="range"] {
    padding: 0;
    background: transparent;
    border: none;
}

#price-value {
    display: inline-block;
    margin-left: 10px;
    font-weight: bold;
    color: #fff;
    background: rgba(116, 3, 145, 0.5);
    padding: 5px 10px;
    border-radius: 5px;
}

.filter-reset-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, rgba(116, 3, 145, 0.8), rgba(255, 0, 191, 0.8));
    border: 2px solid #ff00bf;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.filter-reset-btn:hover {
    background: linear-gradient(135deg, #740391, #ff00bf);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 0, 191, 0.4);
}

/* Contenedor de items (derecha) */
.items-container {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 5px;
}

/* Grid de tarjetas de items */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding-bottom: 20px;
}

/* Tarjeta individual de item */
.item-card {
    background: rgba(34, 32, 32, 0.95);
    border: 4px solid rgba(123, 72, 152, 0.5);
    border-radius: 15px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
    color: #fff;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    text-align: center; /* Centra todo el texto por defecto */
}

.item-card:hover {
    box-shadow: 0 15px 30px rgba(255, 0, 191, 0.3);
    border-color: #ff00bf;
}


/* Imagen del item */
.item-image {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    margin-bottom: 15px;
    padding: 10px;
}

.item-image img {
    max-width: 80px;
    max-height: 80px;
    object-fit: contain;
}

.item-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: transparent;
    background: linear-gradient(to right, #570777, #b9b7b7);
    -webkit-background-clip: text;
    background-clip: text;
    text-align: center;
}

.item-price {
    font-size: 1.2rem;
    color: #ffd700;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
}

.item-stock {
    font-size: 1rem;
    color: #ff9999;
    margin-bottom: 15px;
    text-align: center;
}

.item-buy-btn {
    background: linear-gradient(135deg, #740391, #ff00bf);
    border: none;
    color: white;
    padding: 10px;
    border-radius: 8px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: auto;
    border: 2px solid transparent;
}

.item-buy-btn:hover {
    background: linear-gradient(135deg, #9900ff, #ff00bf);
    transform: scale(1.02);
    box-shadow: 0 0 15px #ff00bf;
    border-color: #fff;
}

/* Scrollbar personalizada para el contenedor de items */
.items-container::-webkit-scrollbar {
    width: 8px;
}

.items-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.items-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #740391, #ff00bf);
    border-radius: 10px;
}

/* Responsive para móviles: apilar filtros encima de items */
@media (max-width: 768px) {
    .shop-layout {
        flex-direction: column;
        top: 180px; /* Ajusta según tu menú móvil */
        padding: 10px;
    }

    .filters-container {
        width: 100%;
        max-width: none;
        margin-bottom: 15px;
        position: relative;
        top: auto;
    }

    .items-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

/* Ajuste para móviles muy pequeños */
@media (max-width: 480px) {
    .shop-layout {
        top: 160px;
    }
    
    .items-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- 10. FOOTER ---------- */
.container-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(135deg, #2e0224 0%, #0a0a0a 100%);
    padding: 20px;
    border-top: 4px solid rgba(255, 0, 255, 0.3);
    box-shadow: 0px -5px 20px rgba(187, 18, 18, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer p {
    color: #999;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    margin: 0;
}

/* ---------- 11. TABLAS ---------- */

/* Tabla Wallet */
.wallet-table {
    margin-top: 20px;
    overflow-x: auto;
    border-radius: 8px;
}

.wallet-table table {
    width: 100%;
    border-collapse: collapse;
    background-color: #711986;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.wallet-table tr {
    height: 50px;
}

.wallet-table th {
    background-color: #2c2a2a;
    color: #ff9999;
    padding: 15px;
    font-weight: bold;
    font-size: 1.5em;
    text-decoration: underline;
    border: 4px solid rgba(171, 102, 211, 0.641);
}

.wallet-table td {
    text-align: center;
    background-color: #2c2a2a;
    color: #fff;
    border: 4px solid rgba(171, 102, 211, 0.641);
    font-size: 1.2em;
}

/* Tabla de usuarios */
.menu-table-info {
    border: 2px solid rgba(136, 16, 206, 0.7);
    padding: 30px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.menu-table-info h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.2rem;
    color: #ff9999;
    border-bottom: 2px solid rgba(136, 16, 206, 0.5);
    padding-bottom: 15px;
}

.table-container {
    width: 100%;
    overflow-x: auto;
    margin: 0 auto;
}

#users-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
}

#users-table thead {
    background: linear-gradient(135deg, rgba(116, 3, 145, 0.8), rgba(255, 0, 191, 0.8));
}

#users-table th,
#users-table th a {
    padding: 18px 15px;
    text-align: center;
    color: #fab2b2;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
}

#users-table td {
    padding: 15px;
    text-align: center;
    color: #ddd;
    font-size: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

#users-table tbody tr:nth-child(even) {
    background: rgba(103, 99, 105, 0.6);
}

#users-table tbody tr:nth-child(odd) {
    background: rgba(117, 115, 117, 0.6);
}

#users-table tbody tr:hover {
    background: rgba(116, 3, 145, 0.2);
}

/* Ordenamiento de tablas */
.sortable {
    cursor: pointer;
    position: relative;
    padding-right: 25px !important;
}

.sortable:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

.sortable::after {
    content: "↕";
    position: absolute;
    right: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.sort-info {
    background: rgba(116, 3, 145, 0.1);
    color: #ff9999;
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.1rem;
    border: 1px solid rgba(255, 0, 191, 0.3);
}

/* ---------- 12. MEDIA QUERIES ---------- */

/* Tablet Portrait */
@media (max-width: 1024px) and (orientation: portrait) {
    .menu-container {
        min-height: 140px;
        padding: 15px 20px;
        justify-content: center;
    }
    
    .menu-content {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .logo-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 5px;
    }
    
    .welcome-title {
        font-size: 2rem;
        text-align: center;
        line-height: 1.3;
        margin-bottom: 10px;
        white-space: normal;
        order: 1;
    }
    
    .menu-buttons {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
        order: 2;
    }
    
    .menu-btn {
        flex: 0 1 auto;
        font-size: 0.9rem;
        padding: 8px 12px;
        border-radius: 15px;
        min-width: 80px;
        max-width: 140px;
        min-height: 40px;
    }
    
    .menu-btn .full-text {
        display: none;
    }
    
    .menu-btn .short-text {
        display: inline;
    }
    
    .menu-btn:not(.logout-btn):not([href*="usuarios"]):not([href*="añadir"]) {
        flex: 0 0 90px;
        font-size: 0.85rem;
        padding: 8px 10px;
    }
    
    .menu-btn:nth-child(n+4):not(.logout-btn):not([href*="usuarios"]) {
        display: none;
    }
    
    .menu-btn[href*="usuarios"], 
    .menu-btn[href*="añadir"] {
        flex: 0 1 150px;
        font-size: 0.85rem;
        padding: 8px 10px;
        white-space: normal;
        line-height: 1.2;
        min-height: 45px;
        text-align: center;
    }
    
    .logout-btn {
        flex: 0 1 120px;
        font-size: 0.9rem;
        padding: 8px 12px;
        order: 3;
    }
    
    .scrollable-content {
        top: 140px;
        padding: 15px;
    }
    
    .container-menu-info {
        max-width: 95%;
        padding: 0 10px;
        margin-bottom: 20px;
    }
    
    .menu-info {
        padding: 25px 20px;
    }
    
    .menu-info h1 {
        font-size: 2rem;
        white-space: normal;
        line-height: 1.3;
    }
    
    .menu-info h2 {
        font-size: 1.8rem;
    }
    
    .parrafo_texto_main {
        font-size: 1.1rem;
        line-height: 1.5;
    }
    
    .container-footer {
        height: 70px;
        padding: 15px;
    }
    
    .scrollable-content {
        bottom: 70px;
    }
    
    .footer p {
        font-size: 1rem;
    }
    
    /* Breadcrumbs tablet portrait */
    .logo-breadcrumbs-container {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
    
    .menu-breadcrumbs {
        width: 100%;
        margin-bottom: 0;
        order: 2;
    }
    
    .breadcrumbs-container {
        justify-content: center;
    }
    
    .breadcrumb-link, .breadcrumb-current {
        font-size: 0.75rem;
        max-width: 100px;
        padding: 2px 4px;
    }
}

/* Login responsive */
@media (max-width: 768px) {
    body.login-page {
        padding: 20px;
    }
    
    .login-container {
        padding: 20px;
        min-height: auto;
    }
    
    .logo-title-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .main-title {
        font-size: 2.5rem;
        white-space: normal;
    }
    
    .logo-icon {
        width: 100px;
        height: 100px;
    }
    
    .login-box {
        padding: 30px 20px;
    }
    
    .login-title {
        font-size: 2.2rem;
    }
    
    .form-group label {
        font-size: 1.1rem;
    }
    
    .form-group input {
        font-size: 1.1rem;
        padding: 15px;
    }
    
    .login-btn {
        font-size: 1.5rem;
        padding: 16px;
    }
    
    /* Breadcrumbs móvil */
    .menu-breadcrumbs {
        display: none;
    }
    
    .logo-breadcrumbs-container {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 15px;
    }
}

/* Tablet Landscape */
@media (max-width: 1024px) and (orientation: landscape) {
    .menu-container {
        min-height: 140px;
        padding: 12px 20px;
    }
    
    .menu-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 20px;
    }
    
    .menu-buttons {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: flex-end;
        max-width: 100%;
    }
    
    .menu-btn {
        font-size: 1rem;
        padding: 8px 12px;
        border-radius: 15px;
        min-width: min-content;
        max-width: 180px;
        flex: 0 1 auto;
    }
    
    .menu-btn:nth-child(2) {
        max-width: 160px;
        font-size: 0.95rem;
        padding: 8px 10px;
    }
    
    .logo-icon {
        width: 100px;
        height: 100px;
        flex-shrink: 0;
    }
    
    .main-title {
        font-size: 3rem;
    }
    
    .menu-info h1 {
        font-size: 2.5rem;
        white-space: normal;
    }
    
    .menu-info h2 {
        font-size: 2rem;
    }
    
    .parrafo_texto_main {
        font-size: 1.2rem;
    }
    
    .container-footer {
        height: 70px;
        padding: 15px;
    }
    
    .scrollable-content {
        bottom: 70px;
    }
    
    .container-menu-info {
        max-width: 1200px;
    }
    
    .welcome-title {
        font-size: 1.8rem;
        text-align: center;
        margin-bottom: 10px;
        white-space: normal;
    }
    
    /* Breadcrumbs tablet landscape */
    .menu-breadcrumbs {
        margin-bottom: 3px;
    }
    
    .breadcrumb-link, .breadcrumb-current {
        font-size: 0.8rem;
        max-width: 120px;
    }
    
    .breadcrumb-separator {
        font-size: 14px;
        margin: 0 3px;
    }
}

/* Móvil (768px) */
@media (max-width: 768px) and (orientation: portrait) {
    .menu-container {
        padding: 10px 15px;
        min-height: 130px;
        align-items: flex-start;
    }
    
    .scrollable-content {
        padding: 12px;
        top: 130px;
    }
    
    .menu-content {
        flex-direction: column;
        gap: 8px;
        align-items: center;
        width: 100%;
    }
    
    .menu-buttons {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
        width: 100%;
    }
    
    .menu-btn {
        font-size: 0.85rem;
        padding: 6px 10px;
        border-radius: 10px;
        min-width: min-content;
        max-width: 140px;
        flex: 1 1 auto;
    }
    
    .menu-btn:nth-child(1):not(.logout-btn):not([href*="usuarios"]) {
        flex: 0 1 100px;
    }
    
    .menu-btn[href*="usuarios"], 
    .menu-btn[href*="añadir"] {
        flex: 0 1 140px;
        font-size: 0.8rem;
    }
    
    .logout-btn {
        flex: 0 1 120px;
    }
    
    .menu-btn:nth-child(n+3):not(.logout-btn):not([href*="usuarios"]) {
        display: none;
    }
    
    .logo-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 5px;
    }
    
    .main-title {
        font-size: 2.2rem;
    }
    
    .menu-info {
        padding: 20px 15px;
    }
    
    .menu-info h1 {
        font-size: 1.8rem;
        white-space: normal;
    }
    
    .menu-info h2 {
        font-size: 1.6rem;
    }
    
    .parrafo_texto_main {
        font-size: 1rem;
        text-align: left;
        line-height: 1.5;
    }
    
    .container-footer {
        height: 60px;
        padding: 10px;
    }
    
    .scrollable-content {
        bottom: 60px;
    }
    
    .container-menu-info {
        margin-bottom: 20px;
        max-width: 100%;
        padding: 0 10px;
    }
    
    .footer p {
        font-size: 0.9rem;
    }
    
    /* Tablas responsive */
    .menu-table-info {
        padding: 20px 15px;
        margin: 0 10px;
    }
    
    .menu-table-info h2 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    #users-table th,
    #users-table td {
        padding: 12px 8px;
        font-size: 1rem;
    }
    
    #users-table th {
        font-size: 1rem;
        padding: 14px 8px;
    }
    
    #users-table .btn {
        padding: 6px 12px;
        font-size: 0.8rem;
        margin: 2px;
    }
}

/* Móvil pequeño (480px) */
@media (max-width: 480px) {
    .menu-container {
        min-height: 160px;
    }
    
    .scrollable-content {
        padding: 10px;
        top: 160px;
    }
    
    .menu-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 5px;
        justify-content: center;
    }
    
    .menu-btn {
        font-size: 0.85rem;
        padding: 5px 8px;
        border-radius: 8px;
        min-width: 80px;
        max-width: 120px;
        flex: 0 1 auto;
    }
    
    .logout-btn {
        flex: 0 1 100px;
        order: 3;
    }
    
    .menu-btn:nth-child(n+2):not(.logout-btn):not([href*="usuarios"]) {
        display: none;
    }
    
    .logo-icon {
        width: 60px;
        height: 60px;
    }
    
    .main-title {
        font-size: 1.8rem;
        text-align: center;
    }
    
    .menu-info h1 {
        font-size: 1.6rem;
        white-space: normal;
    }
    
    .menu-info h2 {
        font-size: 1.4rem;
    }
    
    .parrafo_texto_main {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .container-footer {
        height: 50px;
        padding: 8px;
    }
    
    .scrollable-content {
        bottom: 50px;
    }
    
    .container-menu-info {
        padding: 0 8px;
        margin-bottom: 15px;
    }
    
    .footer p {
        font-size: 0.8rem;
    }
    
    .footer p:last-child {
        font-size: 0.7rem;
        margin-top: 2px;
    }
    
    .menu-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .menu-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .menu-table-info {
        padding: 15px 10px;
    }
    
    .menu-table-info h2 {
        font-size: 1.6rem;
    }
    
    #users-table {
        font-size: 0.9rem;
    }
    
    #users-table th, #users-table td {
        padding: 10px 6px;
    }
    
    #users-table .btn {
        padding: 5px 8px;
        font-size: 0.75rem;
        display: block;
        margin: 5px auto;
        width: 80px;
    }
}

/* ---------- 13. REGLAS ESPECIALES ---------- */

/* Título en una línea solo en desktop */
@media (min-width: 1025px) {
    .menu-info h1:first-child {
        white-space: nowrap !important;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .menu-btn {
        display: flex !important;
    }
}

/* Pantallas grandes */
@media (min-width: 1400px) {
    .container-menu-info {
        max-width: 1600px;
    }
    
    .menu-info h1:first-child {
        font-size: 3.0rem;
    }
}

/* IE Support */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    .menu-container {
        height: auto;
        max-height: 200px;
    }
    
    .scrollable-content {
        top: auto;
        margin-top: 150px;
    }
}

/* Login extra small */
@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }
    
    .logo-icon {
        width: 80px;
        height: 80px;
    }
    
    .login-title {
        font-size: 1.8rem;
    }
    
    .login-btn {
        font-size: 1.3rem;
    }
}

/* Móvil muy pequeño */
@media (max-width: 360px) {
    .menu-container {
        min-height: 180px;
    }
    
    .scrollable-content {
        top: 180px;
    }
    
    .menu-btn {
        font-size: 0.8rem;
        padding: 4px 6px;
        min-width: 70px;
    }
    
    .menu-btn[href*="usuarios"], 
    .menu-btn[href*="añadir"] {
        font-size: 0.75rem;
    }
    
    .logo-icon {
        width: 50px;
        height: 50px;
    }
    
    .main-title {
        font-size: 1.5rem;
    }
    
    .menu-info h1 {
        font-size: 1.4rem;
        white-space: normal;
    }
    
    .menu-info h2 {
        font-size: 1.2rem;
    }
    
    .parrafo_texto_main {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    .container-footer {
        height: 45px;
        padding: 6px;
    }
    
    .scrollable-content {
        bottom: 45px;
    }
}

/* Móvil extremadamente pequeño */
@media (max-width: 320px) {
    .menu-container {
        padding: 8px 10px;
    }
    
    .menu-btn {
        font-size: 0.75rem;
        padding: 3px 5px;
        min-width: 65px;
    }
    
    .container-menu-info {
        padding: 0 5px;
    }
    
    .menu-info {
        padding: 15px 10px;
    }
}

/* Modo retrato en móviles */
@media (max-height: 600px) and (max-width: 768px) {
    .menu-container {
        min-height: 120px;
    }
    
    .scrollable-content {
        top: 120px;
    }
    
    .container-footer {
        height: 50px;
    }
    
    .scrollable-content {
        bottom: 50px;
    }
}

.cart-container {
    position: fixed;
    top: 200px;
    bottom: 80px;
    left: 0;
    right: 0;
    overflow-y: auto;
    padding: 20px;
}
.cart-table {
    width: 100%;
    background: rgba(34,32,32,0.95);
    border: 4px solid rgba(123,72,152,0.5);
    border-radius: 20px;
    padding: 20px;
    color: white;
}
.cart-table table {
    width: 100%;
    border-collapse: collapse;
}
.cart-table th {
    color: #ff9999;
    font-size: 1.2rem;
    padding: 15px;
    border-bottom: 2px solid rgba(255,0,191,0.5);
}
.cart-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.cart-table input[type=number] {
    width: 70px;
    padding: 8px;
    background: rgba(15,15,15,0.9);
    border: 2px solid rgb(136,16,206);
    border-radius: 5px;
    color: white;
    text-align: center;
}
.cart-table .btn-remove {
    background: linear-gradient(135deg, #ff3333, #cc0000);
    border: none;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
}
.cart-table .btn-remove:hover {
    background: linear-gradient(135deg, #ff6666, #ff3333);
}
.cart-total {
    font-size: 1.5rem;
    color: #ffd700;
    text-align: right;
    margin-top: 20px;
    padding: 20px;
}
.btn-checkout {
    background: linear-gradient(135deg, #740391, #ff00bf);
    border: none;
    color: white;
    padding: 15px 30px;
    font-size: 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    float: right;
}
.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px #ff00bf;
}
.success-message {
    background: #4CAF50;
    color: white;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}
.error-message {
    background: #f44336;
    color: white;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

.pokemon-stats-extras {
    margin-top: 8px;
    font-size: 0.95em;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.gender-male {
    color: #3B7FBD; /* azul */
    font-weight: 600;
}

.gender-female {
    color: #E08EAC; /* rosa */
    font-weight: 600;
}

.genderless {
    color: #888;
    font-style: italic;
}

.catch-rate {
    color: #4CAF50; /* verde, pero puedes usar #666 o #FFA500 */
}

.catch-rate i {
    margin-right: 4px;
}


#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    background-color: #333;
    color: #fff;
    padding: 12px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease, fadeOut 0.5s ease 2.5s forwards;
    max-width: 300px;
    font-family: 'Minecraft', sans-serif;
}

.toast.success { background-color: #4caf50; }
.toast.error { background-color: #f44336; }

.toast i { font-size: 20px; }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    to { opacity: 0; transform: translateX(100%); }
}