/* -----------------------------------------------------------
   FRONT: estilo tipo Apple, limpio y mobile-first
----------------------------------------------------------- */

body {
    font-family: 'DM Sans', sans-serif;
}

/* -----------------------------------------------------------
   GALERÍA DE PÚAS (LAYOUT FLUIDO)
----------------------------------------------------------- */

.trades-header {
    text-align: center;
    padding: 0 !important;
}

.trades-header h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    text-align: center;
}

.trades-header p {
    color: #6e6e73;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* -----------------------------------------------------------
   LIGHTBOX — LEYENDA PERSONALIZADA (BASICLIGHTBOX)
----------------------------------------------------------- */

.lb-wrapper {
    display: inline-block;
    text-align: center;
}

.lb-img {
    width: 100%;
    height: auto;
    max-width: 600px;
    display: block;
    border-radius: 10px 10px 0 0;
}

.lb-caption {
    background: #fff;
    color: #000;
    padding: 15px;
    border-radius: 0 0 10px 10px;
    margin-top: 0;
    display: inline-block;
    text-align: center;
    width: 100%;
}

.lb-title {
    color: #000;
}

.lb-band {
    color: #000;
    font-weight: bold;
}

.lb-comment {
    color: #000;
}

/* -----------------------------------------------------------
   BOTONES NUEVAS / TODAS
----------------------------------------------------------- */

#extraFilters {
    margin-top: 10px;
}

.extra-btn {
    background-color: #fff !important;
    color: #000 !important;
    border: 1px solid #000 !important;
    padding: 6px 18px;
    font-size: 0.9rem;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.extra-btn:hover {
    background-color: #000 !important;
    color: #fff !important;
}

.extra-btn.active {
    background-color: #000 !important;
    color: #fff !important;
    border-color: #000 !important;
}

/* -----------------------------------------------------------
   RESULTADOS DE BÚSQUEDA
----------------------------------------------------------- */

#searchResults {
    width: 100%;
    margin: 0 auto;
    padding: 10px 0;
}

#searchResults.pua-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

/* -----------------------------------------------------------
   RESUMEN
----------------------------------------------------------- */

.resumen-pick-image {
    width: 100%;
    height: 180px;
    object-fit: contain;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    padding: 4px;
}

.resumen-card {
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.resumen-card.removing {
    opacity: 0;
    transform: scale(0.85);
}

/* -----------------------------------------------------------
   GRID DE PÚAS (UNIFICADO CON ADMIN)
----------------------------------------------------------- */

.pua-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

/* Tarjeta alineada verticalmente */
.pua-item {
    background: #f2f2f2 !important;
    border: 1px solid #ccc !important;
    border-radius: 14px !important;
    padding: 12px 6px;
    text-align: center;
    transition: 0.2s;
    cursor: default !important;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 210px; /* Ajustable */
}

.pua-item:hover {
    background: #e8e8e8 !important;
}

/* Banda arriba */
.pua-band {
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}

/* Imagen centrada y contenida */
.pua-img {
    flex-grow: 1;
    width: 100%;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 6px;
}

/* Comentario abajo */
.pua-comment {
    font-size: 0.8rem;
    color: #555;
    margin-top: 4px;
}

.pua-item a {
    display: block;
    text-decoration: none;
    cursor: pointer !important;
}

/* -----------------------------------------------------------
   ADMIN MAIN
----------------------------------------------------------- */

.admin-main {
    padding: 20px 16px 0 !important;
}

