/* --- TÉCNICA VALERO: CHASIS VIBRANTE TOTAL (VERSIÓN PANTALLA COMPLETA 100%) --- */

.tuseleccion-grid-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px; /* Espacio mínimo entre bloques de categorías */
    width: 100% !important; /* OCUPA TODO EL ANCHO */
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.tuseleccion-block {
    background: #fff;
    padding: 10px 5px; /* Reducido para que las tarjetas respiren hacia los bordes */
    border-radius: 0; /* Bordes rectos en el bloque para que pegue a la pantalla */
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 8px;
    width: 100% !important;
}

.tuseleccion-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 10px;
    margin-left: 5px; /* Un poco de margen solo al texto del título */
    color: #111;
}

.tuseleccion-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.tuseleccion-track {
    display: flex;
    width: 100%;
    transition: transform 0.4s ease;
}

.tuseleccion-slide {
    width: 100%;
    min-width: 100%;
    display: grid;
    /* 2 COLUMNAS GRANDES QUE OCUPAN TODO EL ANCHO DISPONIBLE */
    grid-template-columns: repeat(2, 1fr);
    gap: 6px; /* Espacio pequeño entre las dos tarjetas */
    align-items: start; /* Cierra el cuadro al ras del botón */
    padding: 0 5px; /* Espacio mínimo para que no toquen el borde físico del vidrio */
}

/* TARJETA - COMPACTA Y ESTIRADA AL ANCHO */
.tuseleccion-card {
    background: #f7f7f7;
    border-radius: 8px;
    padding: 6px; 
    border: 1px solid rgba(255, 0, 0, 0.35);
    box-shadow:
        inset 0 0 3px rgba(255, 0, 0, 0.15),
        0 3px 8px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.2s ease;
    width: 100%; /* Obliga a la tarjeta a llenar su mitad de pantalla */
}

.tuseleccion-card:hover {
    transform: translateY(-2px);
}

/* BADGE DE VISTAS */
.tsv-badge-vistas {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    z-index: 20;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* CONTENEDOR IMAGEN - FOTO GRANDE E INTACTA */
.tuseleccion-img {
    width: 100%;
    height: 150px; /* MANTENEMOS TAMAÑO PERFECTO */
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
}

.tuseleccion-img img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block;
}

.tuseleccion-info {
    display: flex;
    flex-direction: column;
}

.tuseleccion-name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2em;
    height: 2.4em;
    overflow: hidden;
    margin: 2px 0;
    color: #222;
}

.tuseleccion-price {
    color: #B12704;
    font-size: 16px; /* Un pelín más grande para destacar */
    font-weight: 800;
    margin-bottom: 4px;
}

/* BOTÓN - SIN ESPACIOS FANTASMA ABAJO */
.tuseleccion-btn {
    margin-top: 2px; 
    margin-bottom: 0px;
    background: #008a32 !important;
    color: #ffffff !important;
    padding: 8px 5px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s;
}

.tuseleccion-btn:hover {
    background: #007029 !important;
}

/* FLECHAS (Solo visibles en PC) */
.tuseleccion-prev,
.tuseleccion-next {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    background: #fff;
    border: none;
    font-size: 26px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 30;
}

@media (max-width: 768px) {
    .tuseleccion-prev, .tuseleccion-next { display: none; }
}

@media (min-width: 1024px) {
    .tuseleccion-slide { grid-template-columns: repeat(7, 1fr); gap: 12px; }
    .tuseleccion-prev, .tuseleccion-next { opacity: 0; pointer-events: none; }
    .tuseleccion-carousel:hover .tuseleccion-prev,
    .tuseleccion-carousel:hover .tuseleccion-next { opacity: 1; pointer-events: auto; }
    .tuseleccion-prev { left: 10px; }
    .tuseleccion-next { right: 10px; }
}

/* INDICADORES (DOTS) */
.tuseleccion-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
}

.tsv-dot {
    width: 8px;
    height: 8px;
    background: #ccc;
    border-radius: 50%;
}

.tsv-dot.active {
    background: #008a32;
    width: 16px;
    border-radius: 4px;
}

/* ELIMINACIÓN DE ESPACIOS EXTRA */
.tsv-ghost-spacer { display: none !important; }
.tsv-reveal-img { opacity: 1 !important; }