/* Barra Superior */
.top-bar {
    background-color: #2E3192; /* Azul oscuro similar a CORFO */
    padding: 8px 0;
    font-size: 14px;
}

.top-bar a {
    text-decoration: none;
    margin: 0 10px;
}

.top-bar a:hover {
    text-decoration: underline;
}

.social-links a {
    margin: 0 8px;
    font-size: 16px;
}

/* Header Principal */
.main-header {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
}

.navbar-nav .nav-link {
    color: #333;
    padding: 10px 20px;
    font-weight: 500;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #2E3192;
    background-color: #2E3192;
    color: white;
}

/* Página Principal */
.search-sidebar {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    position: sticky;
    top: 20px;
}

.search-icon {
    width: 60px;
    height: 60px;
    background-color: #FF6B9D;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: white;
    margin-bottom: 15px;
}

.filter-section {
    margin-bottom: 25px;
}

.filter-section h5 {
    color: #2E3192;
    font-size: 16px;
    margin-bottom: 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-section h5 i {
    transition: transform 0.3s;
}

.filter-section h5.collapsed i {
    transform: rotate(-90deg);
}

.filter-content {
    padding: 10px 0;
}

.form-check {
    margin-bottom: 10px;
}

.btn-apply-filters {
    background-color: #2E3192;
    color: white;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    margin-top: 20px;
}

.btn-apply-filters:hover {
    background-color: #1f2270;
    color: white;
}

/* Área de Resultados */
.results-header {
    border-bottom: 2px solid #2E3192;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.results-header h2 {
    color: #2E3192;
    font-size: 28px;
    font-weight: 600;
}

.results-info {
    color: #666;
    margin: 20px 0;
}

.results-count {
    font-weight: 600;
    color: #2E3192;
}

.sort-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.sort-container label {
    margin: 0;
    font-weight: 500;
}

/* Tarjetas de Licitación */
.licitacion-card {
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    transition: box-shadow 0.3s;
}

.licitacion-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.licitacion-title {
    background-color: #ededed;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.licitacion-title h3 {
    color: #002a79;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.licitacion-subtitle {
    font-style: italic;
    color: #333;
    margin: 10px 0;
    font-size: 16px;
}

.badge-estado {
    background-color: #5DC9A5;
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
    display: inline-block;
}

.licitacion-description {
    color: #555;
    line-height: 1.6;
    margin: 15px 0;
}

.licitacion-dates {
    display: flex;
    gap: 40px;
    margin-top: 15px;
}

.date-item {
    display: flex;
    flex-direction: column;
}

.date-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.date-value {
    color: #666;
}

/* Búsqueda */
.search-box {
    position: relative;
    margin-bottom: 20px;
}

.search-box input {
    width: 100%;
    padding: 12px 50px 12px 15px;
    border: 2px solid #5DC9A5;
    border-radius: 5px;
    font-size: 14px;
}

.search-box .btn-search {
    position: absolute;
    right: 5px;
    top: 5px;
    background-color: #5DC9A5;
    border: none;
    padding: 8px 15px;
    border-radius: 3px;
    color: white;
    cursor: pointer;
}

.search-box .btn-search:hover {
    background-color: #4db893;
}

/* Footer */
.main-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    margin-top: 50px;
}

.main-footer h5,
.main-footer h6 {
    color: #2E3192;
}

.main-footer a {
    color: #666;
    text-decoration: none;
}

.main-footer a:hover {
    color: #2E3192;
    text-decoration: underline;
}

/* Botón de Accesibilidad */
.accessibility-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #2E3192;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1000;
}

.accessibility-button:hover {
    background-color: #1f2270;
}

/* Responsive */
@media (max-width: 768px) {
    .search-sidebar {
        margin-bottom: 30px;
        position: relative;
    }

    .licitacion-dates {
        flex-direction: column;
        gap: 15px;
    }

    .sort-container {
        flex-direction: column;
        align-items: flex-start;
    }
}
