/* Tabla de subasta - estilos responsivos */
.table-wrapper {
    margin: 2rem 0 50px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.subasta-table {
    width: 100%;
    border-collapse: collapse;
    font-size: clamp(0.75rem, 1.5vw, 1rem);
    background-color: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border-radius: 0.5rem;
    overflow: hidden;
}

.subasta-table thead {
    background-color: #008888;
    color: #fff;
}

.subasta-table th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}

.subasta-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e8e8e8;
}

.subasta-table tbody tr:hover {
    background-color: #f8f9fa;
}

.subasta-table tbody tr:last-child td {
    border-bottom: none;
}

.subasta-table td:nth-child(1) {
    font-weight: 600;
    color: #008888;
}

.subasta-table td:nth-child(4) {
    font-weight: 600;
    color: #e7520f;
}

/* Responsive: layout tipo tarjeta en móviles */
@media (max-width: 768px) {
    .subasta-table thead {
        display: none;
    }

    .subasta-table,
    .subasta-table tbody,
    .subasta-table tr,
    .subasta-table td {
        display: block;
    }

    .subasta-table tr {
        margin-bottom: 1rem;
        padding: 1rem;
        background-color: #fff;
        border: 1px solid #e8e8e8;
        border-radius: 0.5rem;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }

    .subasta-table td {
        padding: 0.5rem 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .subasta-table td:last-child {
        border-bottom: none;
    }

    .subasta-table td::before {
        content: attr(data-label);
        display: inline-block;
        font-weight: 600;
        color: #008888;
        min-width: 120px;
        margin-right: 0.5rem;
    }

    .subasta-table td:nth-child(1)::before {
        color: #008888;
    }

    .subasta-table td:nth-child(4) {
        font-size: 1.1rem;
        padding-top: 0.75rem;
    }
}
