/* Paginacion -  esto controla como se ven los numeros de pagina */
/* usa flexbox para centrar los botones horizontalmente con espacio entre ellos */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 35px 0 20px 0;
}

/* Cada boton de pagina es cuadrado con bordes redondeados */
/* usamos min-width en vez de width fijo para que numeros de 2-3 digitos no se salgan */
.pagination-item {
    background: #1e1e1e;
    color: #ccc;
    border: 1px solid #2d2d2d;
    min-width: 38px;
    height: 38px;
    padding: 0 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    /* transicion suave al hacer hover - 0.2s es rapido pero visible */
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.pagination-item:hover {
    background: #2d2d2d;
    border-color: #444;
    color: white;
}

/* La pagina activa se resalta en blanco con !important para asegurar que siempre se vea */
.pagination-item.active {
    background: white !important;
    color: black !important;
    border-color: white !important;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
}

.pagination-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-ellipsis {
    color: #555;
    font-weight: bold;
    padding: 0 4px;
    font-size: 14px;
}

/* En pantallas menores a 600px los botones se achican un poco */
/*  esto es importante porque en celular los dedos son mas gruesos */
/* pero 34px sigue siendo tocable */
@media (max-width: 600px) {
    .pagination {
        gap: 5px;
    }

    .pagination-item {
        min-width: 34px;
        height: 34px;
        font-size: 13px;
        border-radius: 8px;
    }
}
