   * {
            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: 1200px;
            margin: 0 auto;
            padding: 2rem;
            width: 100%;
        }

        .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 2rem;
            flex-wrap: wrap;
            gap: 1rem;
        }

        .titulo-container {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        .titulo {
            font-size: 2rem;
            font-weight: 700;
            color: #222;
            position: relative;
        }

        .titulo::after {
            content: "";
            position: absolute;
            bottom: -10px;
            left: 0;
            width: 60px;
            height: 4px;
            background-color: #0066ff;
            border-radius: 2px;
        }

        .search-container {
            width: 100%;
            max-width: 600px;
            margin: 1.5rem 0;
            position: relative;
            transition: all 0.3s ease;
        }

        .search-input {
            width: 100%;
            padding: 1rem 1.5rem;
            padding-left: 3rem;
            border: none;
            border-radius: 1rem;
            background-color: white;
            font-size: 1rem;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
        }

        .search-input:focus {
            outline: none;
            box-shadow: 0 4px 20px rgba(0, 102, 255, 0.15);
            transform: translateY(-2px);
        }

        .search-icon {
            position: absolute;
            left: 1rem;
            top: 50%;
            transform: translateY(-50%);
            color: #0066ff;
            font-size: 1.25rem;
        }

        .clear-search {
            position: absolute;
            right: 1rem;
            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.25rem;
            border-radius: 50%;
        }

        .clear-search:hover {
            color: #6b7280;
            background-color: #f3f4f6;
        }

        .clear-search.visible {
            opacity: 1;
        }

        .results-count {
            font-size: 0.875rem;
            color: #6b7280;
            margin-top: 0.5rem;
            transition: all 0.3s ease;
        }

        .controls-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
        }

        .controles {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .vista-botones {
            display: flex;
            border: 1px solid #d1d5db;
            border-radius: 0.5rem;
            overflow: hidden;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
        }

        .vista-boton {
            padding: 0.75rem 1rem;
            background: white;
            border: none;
            cursor: pointer;
            color: #6b7280;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
        }

        .vista-boton.activo {
            background: #0066ff;
            color: white;
        }

        .vista-boton:first-child {
            border-right: 1px solid #d1d5db;
        }

        .ordenar {
            position: relative;
        }

        .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);
        }

        .ordenar::after {
            content: "▼";
            font-size: 0.75rem;
            position: absolute;
            right: 1rem;
            top: 50%;
            transform: translateY(-50%);
            pointer-events: none;
            color: #6b7280;
        }

        /* Grid View */
        .grid-view {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 2rem;
        }

        /* List View */
        .list-view {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }

        /* Tarjeta de empresa */
        .empresa-card {
            background: white;
            border-radius: 1rem;
            overflow: hidden;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
            transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
            position: relative;
            border: 1px solid rgba(0, 102, 255, 0.1);
            opacity: 0;
            transform: translateY(30px);
        }

        .empresa-card.visible {
            opacity: 1;
            transform: translateY(0);
        }

        .empresa-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
        }

        .empresa-card.selected {
            transform: scale(0.98);
            box-shadow: 0 0 0 3px #0066ff, 0 10px 20px rgba(0, 102, 255, 0.2);
            transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        }

        .empresa-card.hidden {
            display: none;
        }

        .grid-view .empresa-card {
            display: flex;
            flex-direction: column;
            height: 100%;
            padding: 1.5rem;
        }

        .list-view .empresa-card {
            display: flex;
            align-items: center;
            padding: 1.5rem;
            gap: 1.5rem;
        }

        .empresa-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 1.5rem;
            width: 100%;
        }

        .empresa-info {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .empresa-logo {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background-color: #f3f4f6;
            display: flex;
            justify-content: center;
            align-items: center;
            overflow: hidden;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            flex-shrink: 0;
            transition: transform 0.3s ease;
        }

        .empresa-card:hover .empresa-logo {
            transform: scale(1.1);
        }

        .empresa-logo img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .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 {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .empresa-nombre h3 {
            font-size: 1.25rem;
            font-weight: 600;
            color: #111827;
            margin: 0;
        }

        .verificado {
            color: #10b981;
            font-size: 1.125rem;
        }

        

        

        

        .favorito-btn {
            background: transparent;
            border: none;
            cursor: pointer;
            font-size: 1.5rem;
            color: #d1d5db;
            transition: color 0.2s, transform 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            position: relative;
            overflow: hidden;
        }

        .favorito-btn:hover {
            color: #f59e0b;
            transform: scale(1.1);
            background-color: #fff8e6;
        }

        .favorito-btn.activo {
            color: #f59e0b;
        }

        .favorito-btn::before {
            content: '';
            position: absolute;
            width: 0;
            height: 0;
            border-radius: 50%;
            background-color: rgba(245, 158, 11, 0.2);
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            transition: width 0.4s ease, height 0.4s ease;
        }

        .favorito-btn:active::before {
            width: 150%;
            height: 150%;
        }

        .empresa-detalles {
            display: flex;
            margin: 1rem 0;
            gap: 1.5rem;
            flex-wrap: wrap;
        }

        .ubicacion, .tamano {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: #6b7280;
            font-size: 0.875rem;
            padding: 0.5rem 0.75rem;
            background-color: #f9fafb;
            border-radius: 0.5rem;
            transition: background-color 0.3s ease;
        }

        .empresa-card:hover .ubicacion,
        .empresa-card:hover .tamano {
            background-color: #f0f7ff;
        }

        .ubicacion i, .tamano i {
            font-size: 1rem;
            color: #0066ff;
        }

        .empresa-descripcion {
            color: #4b5563;
            margin-bottom: 1.5rem;
            font-size: 0.875rem;
            line-height: 1.6;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            line-clamp: 3; 
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .list-view .empresa-descripcion {
            -webkit-line-clamp: 2;
            line-clamp: 2;
            margin-bottom: 1rem;
        }

        .empresa-categorias {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-bottom: 1.5rem;
        }

        .categoria {
            padding: 0.5rem 0.75rem;
            background: #e6f0ff;
            border-radius: 9999px;
            font-size: 0.75rem;
            color: #0066ff;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            transition: all 0.3s ease;
        }

        .categoria:hover {
            background-color: #cce0ff;
            transform: translateY(-2px);
        }

        .categoria i {
            font-size: 0.75rem;
            color: #0052cc;
        }

        .empresa-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: auto;
        }

        .vacantes {
            font-size: 0.875rem;
            font-weight: 500;
            color: #4b5563;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .vacantes i {
            color: #0066ff;
        }

        .ver-mas {
            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;
            position: relative;
            overflow: hidden;
            text-decoration: none;
            display: inline-block;
        }

        .ver-mas:hover {
            background-color: #0052cc;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0, 102, 255, 0.25);
        }

        .ver-mas::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 5px;
            height: 5px;
            background: rgba(255, 255, 255, 0.5);
            opacity: 0;
            border-radius: 100%;
            transform: scale(1, 1) translate(-50%);
            transform-origin: 50% 50%;
        }

        .ver-mas:active::after {
            animation: ripple 0.6s ease-out;
        }

        @keyframes ripple {
            0% {
                transform: scale(0, 0);
                opacity: 0.5;
            }
            100% {
                transform: scale(20, 20);
                opacity: 0;
            }
        }

        .sin-resultados {
            text-align: center;
            padding: 4rem 2rem;
            color: #6b7280;
            background-color: white;
            border-radius: 1rem;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.6s ease, transform 0.6s ease;
        }

        .sin-resultados.visible {
            opacity: 1;
            transform: translateY(0);
        }

        .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;
        }

        .sin-resultados p {
            font-size: 1rem;
            max-width: 500px;
            margin: 0 auto;
        }

        /* Animaciones */
        .fade-in {
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.6s ease, transform 0.6s ease;
        }

        .fade-in.visible {
            opacity: 1;
            transform: translateY(0);
        }

        /* Secuencia de aparición para las tarjetas */
        .grid-view .empresa-card:nth-child(1) { transition-delay: 0.1s; }
        .grid-view .empresa-card:nth-child(2) { transition-delay: 0.2s; }
        .grid-view .empresa-card:nth-child(3) { transition-delay: 0.3s; }
        .grid-view .empresa-card:nth-child(4) { transition-delay: 0.4s; }
        .grid-view .empresa-card:nth-child(5) { transition-delay: 0.5s; }
        .grid-view .empresa-card:nth-child(6) { transition-delay: 0.6s; }

        .list-view .empresa-card:nth-child(1) { transition-delay: 0.1s; }
        .list-view .empresa-card:nth-child(2) { transition-delay: 0.2s; }
        .list-view .empresa-card:nth-child(3) { transition-delay: 0.3s; }
        .list-view .empresa-card:nth-child(4) { transition-delay: 0.4s; }
        .list-view .empresa-card:nth-child(5) { transition-delay: 0.5s; }

        /* Estilo para resultados de búsqueda */
        .highlight {
            background-color: #ffff80;
            padding: 0 2px;
            border-radius: 2px;
        }

        @media (max-width: 768px) {
            .container {
                padding: 1.5rem;
            }
            
            .header {
                flex-direction: column;
                align-items: flex-start;
            }
            
            .grid-view {
                grid-template-columns: 1fr;
            }
            
            .empresa-detalles {
                flex-direction: column;
                gap: 0.75rem;
            }
            
            .list-view .empresa-card {
                flex-direction: column;
                align-items: flex-start;
                gap: 1rem;
            }
            
            .list-view .empresa-info {
                width: 100%;
            }
            
            .list-view .empresa-footer {
                width: 100%;
            }

            .controls-container {
                flex-direction: column;
                align-items: flex-start;
                gap: 1rem;
            }

            .search-container {
                max-width: 100%;
            }
        }

        /*estilos para corregir en formato lista, que se pongan en una sola fila */
        /* CSS para ajustar específicamente los elementos a la derecha */

/* Configuración principal para la vista de lista */
.list-view .empresa-card {
    display: flex;
    align-items: center;
    padding: 1rem;
}

/* Organizamos los elementos principales en el orden correcto */
.list-view .empresa-header {
    margin-right: auto; /* Empuja todos los demás elementos a la derecha */
    margin-bottom: 0;
    width: auto;
}

/* Ajustamos la ubicación (ciudad) */
.list-view .ubicacion {
    display: flex;
    align-items: center;
    margin: 0;
    margin-right: 15px; /* Espaciado exacto de 15px */
}

/* Ajustamos el año de fundación */
.list-view .tamano {
    display: flex;
    align-items: center;
    margin: 0;
    margin-right: 15px; /* Espaciado exacto de 15px */
}

/* Ajustamos las categorías */
.list-view .empresa-categorias {
    margin: 0;
    margin-right: 15px; /* Espaciado exacto de 15px */
}

/* Colocamos la categoría en línea */
.list-view .categoria {
    margin: 0;
}

/* Eliminamos el margen de la descripción y la ocultamos */
.list-view .empresa-descripcion {
    display: none;
    margin: 0;
}

/* Ajustamos los elementos del footer */
.list-view .empresa-footer {
    display: flex;
    align-items: center;
    margin: 0;
}

/* Ajustamos las vacantes */
.list-view .vacantes {
    margin-right: 15px; /* Espaciado exacto de 15px */
}

/* Aseguramos que el botón Ver más tenga el espaciado correcto */
.list-view .ver-mas {
    margin-right: 15px; /* Espaciado exacto de 15px */
}



/* Eliminamos todos los márgenes automáticos que podrían interferir */
.list-view .empresa-detalles {
    margin: 0;
    display: flex;
    flex-wrap: nowrap;
}



.list-view .empresa-card {
    position: relative;
    padding-right: 3rem; /* Añade espacio suficiente a la derecha para el botón de favorito */
}

.list-view .favorito-btn {
    position: absolute;
    right: 1rem; /* Posiciona el botón a 1rem del borde derecho */
    top: 50%; /* Centra verticalmente respecto al contenedor */
    transform: translateY(-50%); /* Ajusta la posición vertical para un centrado perfecto */
}

/*cuando sea vista mobile que solo se vea la vista grid y no en lista */
@media (max-width: 768px) {
    /* Hide the list view button (second child of vista-botones) on mobile */
    .vista-botones a:nth-child(2) {
        display: none;
    }
    
    /* When on mobile, ensure grid view is always used */
    .list-view {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* When on mobile and list button is hidden, make sure grid button fills the whole width */
    .vista-botones a:first-child {
        width: 100%;
        border-right: none;
    }
}

/*hacer que se oculten las demas cards cuando se escriba el nombre de una empresa que coincida */
.empresa-card.hidden {
    display: none !important;
}

/*Hacer que cualquier imagen quepa en el ontenedor del logo  */
/* Ensure images fit properly in logo containers */
.empresa-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #f3f4f6;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    transition: transform 0.3s ease;
    position: relative;
}

/* Make images fit properly within the logo container */
.empresa-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* This ensures the image maintains proportions */
    object-position: center;
    padding: 5px; /* Add some padding to prevent images touching the edge */
    background-color: white; /* Add white background to ensure visibility */
}

/* Make sure the placeholder is properly centered and sized */
.empresa-logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    background-color: #0066ff;
}