body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #eef2f7;
    color: #333;
}

h1 {
    text-align: center;
    margin: 20px 0;
    font-size: 28px;
    color: #2c3e50;
}

.container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: auto;
}

/* Filtros */
.filters {
    flex: 1;
    max-width: 300px;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.filters h3 {
    margin-bottom: 15px;
    font-size: 20px;
    color: #007bff;
}
/* Estilo para checkbox personalizado */
.filters input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    transform: scale(1.2);
    accent-color: #007bff;
    cursor: pointer;
    vertical-align: middle;
}

.filters label input[type="checkbox"] + span {
    display: inline-block;
    vertical-align: middle;
    font-weight: 600;
    color: #444;
}


.filters label {
    display: block;
    margin-top: 12px;
    font-weight: 600;
    color: #444;
}

.filters input,
.filters select,
.filters button {
    width: 100%;
    padding: 12px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 14px;
}

.filters button {
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    margin-top: 15px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.filters button:hover {
    background-color: #0056b3;
}

.licitaciones-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    padding: 20px;
}

/* Tarjeta estilo cuadrada */
.licitacion-item {
    background-color: #fff;
    border: none;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    padding: 24px;
    text-align: left;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    height: 280px; /* Altura fija para hacerla cuadrada */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Hover elegante */
.licitacion-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 24px rgba(0, 0, 0, 0.15);
}

/* Título */
.licitacion-item h2 {
    font-size: 20px;
    color: #007bff;
    margin-bottom: 10px;
    font-weight: bold;
}

/* Texto y descripción */
.licitacion-item p {
    font-size: 14px;
    color: #444;
    margin: 5px 0;
    line-height: 1.5;
    flex-grow: 1;
}

/* Footer */
.licitacion-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 15px;
}

.licitacion-footer button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.licitacion-footer button:hover {
    background-color: #0056b3;
}
.licitacion-item a {
    text-decoration: none;
    color: inherit;
}



/* Adaptación responsiva */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .filters {
        max-width: 100%;
    }

    .licitaciones-list {
        grid-template-columns: 1fr;
    }
}
