/* === Estilos Generales === */

/* Contenedor centrado */
.centered-column {
    position: relative;
    padding: 20px;
}

/* Columna personalizada con borde blanco */
.custom-column {
    margin: 0 auto;
    
    border-radius: 5px; /* Bordes redondeados */
    background: #1C1C1C; /* Fondo oscuro para que contraste */
}

/* === Filtros === */
.filters {
    padding: 10px;
}

.filter-label {
    color: #ffffff !important; /* Forzamos blanco para asegurar legibilidad */
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.filter-input,
.filter-select {
    background: #2a2a2a;
    color: #ffffff !important; /* Forzamos blanco para el texto del input y select */
    border: 1px solid #666;
    transition: border-color 0.3s ease;
}

.filter-input:focus,
.filter-select:focus {
    border-color: #fff;
    background: #333;
}

.filter-input::placeholder {
    color: #ccc; /* Color gris claro para el placeholder */
}

.filter-select {
    cursor: pointer;
}

/* === Tabla de Tags === */

/* Contenedor del canvas de tags */
.tags-canvas {
    padding: 10px;
    color: white;
}

/* Título de los tags */
.tags-title {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    font-size: 22px;
    font-weight: bold;
    color: white;
    text-align: left;
    background: linear-gradient(to right, #333333, #1C1C1C);
    border-radius: 5px;
}

/* Contenedor de tags */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px; /* Más espacio entre tags */
    padding: 10px;
}

/* Elemento de tag */
.tag-item {
    position: relative;
    display: inline-block;
    transition: transform 0.3s ease;
}

.tag-item:hover {
    transform: scale(1.1);
}

/* Imagen de tag */
.tag-image {
    display: block;
    width: 200px; /* Tamaño original del primer diseño */
    height: auto;
}

/* Texto de tag */
.tag-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    color: black;
    font-size: 16px; /* Tamaño original del primer diseño */
    font-weight: bold;
    text-shadow: 1px 1px 2px #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* === Media Queries === */

/* Pantallas grandes (hasta 1400px) */
@media (max-width: 1400px) {
    .custom-column {
        width: 900px;
    }

    .tags-title {
        font-size: 20px;
    }

    .tag-image {
        width: 180px;
    }

    .tag-text {
        font-size: 15px;
    }
}

/* Pantallas medianas (hasta 1100px) */
@media (max-width: 1100px) {
    .custom-column {
        width: 600px;
    }

    .tags-title {
        font-size: 18px;
    }

    .tag-image {
        width: 160px;
    }

    .tag-text {
        font-size: 14px;
    }
}

/* Pantallas pequeñas (hasta 768px) */
@media (max-width: 768px) {
    .custom-column {
        width: 100%;
        padding: 10px;
    }

    .tags-title {
        font-size: 16px;
    }

    .tag-image {
        width: 140px;
    }

    .tag-text {
        font-size: 13px;
    }

    .filter-label {
        font-size: 14px;
    }
}