* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    background-color: #f5f7ff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 1rem;
    width: 100%;
}

.busqueda-header {
    margin-bottom: 1rem;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.titulo-pagina {
    font-size: 2rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 1rem;
    position: relative;
}

.titulo-pagina::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: #0066ff;
    border-radius: 2px;
}

.search-bar-container {
    margin-bottom: 0.5rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-input-wrap {
    flex: 2;
    position: relative;
    min-width: 250px;
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #0066ff;
    font-size: 1.5rem;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 100px;
    background-color: white;
    font-size: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #0066ff;
    box-shadow: 0 4px 10px rgba(0, 102, 255, 0.1);
}

.clear-search {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s ease;
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: 50%;
}

.clear-search:hover {
    color: #6b7280;
    background-color: #f3f4f6;
}

.clear-search.visible {
    opacity: 1;
}

/* Dropdown personalizado */
.location-dropdown {
    flex: 1;
    position: relative;
    min-width: 150px;
}

.custom-dropdown {
    position: relative;
    width: 100%;
}

.dropdown-selected {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 100px;
    background-color: white;
    font-size: 1rem;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-selected:hover,
.dropdown-selected.active {
    box-shadow: 0 4px 10px rgba(0, 102, 255, 0.1);
    border-color: #0066ff;
}

.dropdown-icon {
    transition: transform 0.3s ease;
    color: #6b7280;
    flex-shrink: 0;
}

.dropdown-selected.active .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    max-height: 300px;
    overflow-y: auto;
    z-index: 99999;
    display: none;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-search {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    background: white;
    z-index: 1;
}

.dropdown-search input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

.dropdown-search input:focus {
    border-color: #0066ff;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.dropdown-search i {
    position: absolute;
    left: 1.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.dropdown-list {
    padding: 0.5rem;
}

.dropdown-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
}

.dropdown-item:hover {
    background-color: #f5f7ff;
}

.dropdown-item.selected {
    background-color: #e6f0ff;
    color: #0066ff;
    font-weight: 500;
}

.no-results {
    padding: 2rem 1rem;
    text-align: center;
    color: #9ca3af;
}

.buscar-btn {
    background-color: #0066ff;
    color: white;
    border: none;
    border-radius: 100px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.buscar-btn:hover {
    background-color: #0052cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 102, 255, 0.25);
}

.results-count {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

.content-container {
    display: flex;
    gap: 1rem;
}

.filtros-container {
    width: 300px;
    flex-shrink: 0;
}

.filtro-card {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
    overflow: hidden;
    border: 1px solid rgba(0, 102, 255, 0.1);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.filtro-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.filtro-header {
    padding: 1rem;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
    justify-content: flex-start;
}

.filtro-body {
    padding: 1rem;
}

.filtro-titulo {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    text-align: left;
}

.filtro-grupo {
    margin-bottom: 1rem;
}

.filtro-grupo:last-child {
    margin-bottom: 0;
}

.filtro-check {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.filtro-check:last-child {
    margin-bottom: 0;
}

.filtro-check input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    margin-right: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filtro-check input[type="checkbox"]:checked {
    background-color: #0066ff;
    border-color: #0066ff;
}

.filtro-check input[type="checkbox"]:checked::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: white;
    font-size: 12px;
}

.filtro-check input[type="checkbox"]:hover {
    border-color: #0066ff;
}

.filtro-check label {
    font-size: 0.9rem;
    color: #4b5563;
    cursor: pointer;
    transition: color 0.2s ease;
}

.filtro-check:hover label {
    color: #1f2937;
}

.filtro-separador {
    height: 1px;
    background-color: #e5e7eb;
    margin: 1rem 0;
}

.filtro-btn {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 100px;
    background-color: white;
    font-size: 1rem;
    color: #4b5563;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236b7280'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-position: right 1rem center;
    background-repeat: no-repeat;
    background-size: 1.5em;
}

.filtro-btn:hover {
    border-color: #0066ff;
    box-shadow: 0 4px 10px rgba(0, 102, 255, 0.1);
}

.filtro-btn i {
    font-size: 1rem;
    color: #0066ff;
    margin-right: 0.5rem;
}

/* Mobile filters - OCULTOS EN DESKTOP */
.mobile-filters {
    display: none;
}

.mobile-filtro-dropdown {
    display: none;
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(0, 102, 255, 0.1);
}

.mobile-filtro-dropdown.open {
    display: block;
}

.contenido-principal {
    flex-grow: 1;
}

.ordenar-container {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.ordenar-select {
    appearance: none;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.ordenar-select:focus {
    outline: none;
    border-color: #0066ff;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.vacante-card {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
    overflow: hidden;
    border: 1px solid rgba(0, 102, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vacante-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
}

.vacante-body {
    padding: 1.25rem;
    display: flex;
    gap: 1.25rem;
}

.empresa-logo-container {
    width: 80px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.empresa-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease;
}

.vacante-card:hover .empresa-logo {
    transform: scale(1.1);
}

.empresa-logo img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.empresa-logo-placeholder {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    background-color: #0066ff;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empresa-nombre {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    text-align: center;
}

.vacante-contenido {
    flex-grow: 1;
}

.vacante-titulo {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.vacante-descripcion {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vacante-etiquetas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.vacante-etiqueta {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: transform 0.2s ease;
}

.etiqueta-tipo-vacante {
    background-color: #ffe6e6;
    color: #e6007e;
}

.etiqueta-ubicacion {
    background-color: #e0e7ff;
    color: #4f46e5;
}

.etiqueta-contrato {
    background-color: #d1fae5;
    color: #059669;
}

.etiqueta-categoria {
    background-color: #e0f2fe;
    color: #0284c7;
}

.etiqueta-salario {
    background-color: #fef3c7;
    color: #d97706;
}

.etiqueta-cierre {
    background-color: #fee2e2;
    color: #dc2626;
}

.vacante-meta {
    font-size: 0.75rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vacante-acciones {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    width: 120px;
    flex-shrink: 0;
}

.favorito-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    color: #d1d5db;
    transition: color 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.favorito-btn:hover {
    color: #f59e0b;
    transform: scale(1.1);
    background-color: #fff8e6;
}

.favorito-btn.activo {
    color: #f59e0b;
}

.ver-mas-btn {
    padding: 0.5rem 1.25rem;
    background-color: #0066ff;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.ver-mas-btn:hover {
    background-color: #0052cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 102, 255, 0.25);
}

.paginacion {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.paginacion-lista {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 0.75rem;
    padding: 0;
    margin: 0;
    width: 100%;
}

.paginacion-item {
    margin: 0;
}

.paginacion-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border-radius: 0.5rem;
    background-color: white;
    color: #4b5563;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.paginacion-item a:hover {
    background-color: #f3f4f6;
    color: #111827;
}

.paginacion-item.activo a {
    background-color: #0066ff;
    color: white;
    font-weight: 600;
}

.paginacion-item.disabled a {
    opacity: 0.5;
    pointer-events: none;
}

.sin-resultados {
    text-align: center;
    padding: 3rem 2rem;
    color: #6b7280;
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.sin-resultados i {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: #d1d5db;
}

.sin-resultados h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #374151;
}

@media (max-width: 1100px) {
    .content-container {
        flex-direction: column;
    }

    .filtros-container {
        width: 100%;
        order: 2;
    }

    .contenido-principal {
        order: 1;
    }

    .search-bar-container {
        flex-direction: column;
    }
}

/* Estilo para el botón de basura en Desktop */
.btn-limpiar-filtros {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 0.9rem;
    margin-left: auto; /* Empuja el botón a la derecha */
}

.btn-limpiar-filtros:hover {
    color: #dc3545;
    background-color: #fff5f5;
}

/* Estilo para el botón de texto en Móvil */
.btn-limpiar-texto {
    background: none;
    border: none;
    color: #0066cc;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
}

.botones-accion {
    display: flex;
    align-items: center;
    gap: 10px; /* Espacio entre botones */
    margin-left: 10px; /* Separación de los inputs en Desktop */
}

/* Estilo del botón Limpiar (Gris sólido) */
.limpiar-btn {
    background-color: #e0e0e0; /* Fondo gris sólido */
    color: #555555; /* Texto e icono gris oscuro */
    border: none; /* Sin borde */
    border-radius: 100px; /* Bordes redondeados */
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    height: 46px; /* Altura forzada para igualar al botón buscar */
}

.limpiar-btn:hover {
    background-color: #d0d0d0; /* Gris más oscuro al pasar mouse */
    color: #333333;
    transform: translateY(-2px);
}

.limpiar-btn i {
    color: inherit;
    margin-right: 0;
}

@media (max-width: 768px) {
    .container {
        padding: 0.75rem;
    }

    /* Mostrar filtros mobile SOLO en mobile */
    .mobile-filters {
        display: block;
        margin-bottom: 1rem;
    }

    /* Ocultar filtros desktop en mobile */
    .filtros-container {
        display: none;
    }

    /* Ajustar tamaños de contenedores en mobile */
    .search-bar-container {
        flex-direction: column;
    }

    .botones-accion {
        width: 100%;           /* Ocupar todo el ancho disponible */
        margin-left: 0;        /* Quitar margen de desktop */
        margin-top: 10px;      /* Separar de los inputs de arriba */
        flex-direction: row;   /* Forzar que estén en fila */
        justify-content: space-between;
        gap: 10px;
    }

    .botones-accion .buscar-btn,
    .botones-accion .limpiar-btn {
        flex: 1;               /* 50% de ancho cada uno */
        justify-content: center;
        width: auto;
    }

    .search-input-wrap,
    .location-dropdown {
        width: 100%;
        min-width: 100%;
        flex: none;
    }

    .vacante-body {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .vacante-acciones {
        width: 100%;
        flex-direction: row;
        margin-top: 0.75rem;
    }
}