/* --- INICIO: Estilos generales de la página --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.emprendedor-page {
    /* Fondo para que el efecto translúcido sea visible */
    padding-top: 2rem; /* Espacio para que no se pegue al header */
    width: 100%;
    max-width: 100%;
}

.emprendedores-layout-container {
    max-width: 100%;
    margin: 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
    clear: both;
}

/* --- INICIO: Barra de Búsqueda Translúcida --- */
.search-section {
    padding: 1.5rem 1rem;
    margin-bottom: 1.5rem;
    width: 100%;
    box-sizing: border-box;
    clear: both;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
    z-index: 20;
    /* Se quita el fondo para que el search-bar translúcido funcione */
}

.search-section .section-container {
    max-width: 100%;
    padding: 0;
}

.search-bar {
    display: flex !important;
    max-width: 720px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 28px;
    border: 1.5px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.5s ease-out;
    position: relative;
    z-index: 21;
    visibility: visible !important;
    opacity: 1 !important;
}

.search-bar:focus-within {
    box-shadow: 0 12px 40px rgba(0, 122, 255, 0.2), 0 4px 12px rgba(0, 122, 255, 0.15);
    border-color: rgba(0, 122, 255, 0.4);
    transform: translateY(-3px);
}

.search-bar input[type="text"] {
    flex-grow: 1;
    border: none;
    outline: none;
    padding: 16px 28px;
    font-size: 17px;
    background-color: transparent;
    color: #1C1C1E;
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
    font-weight: 400;
    border-radius: 28px 0 0 28px;
}

.search-bar input[type="text"]::placeholder {
    color: #8E8E93;
    font-weight: 400;
}

.search-bar button {
    border: none;
    background: linear-gradient(135deg, #007AFF 0%, #0051D5 100%);
    color: #FFFFFF;
    padding: 16px 32px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
    letter-spacing: -0.2px;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.4);
    white-space: nowrap;
    border-radius: 0 28px 28px 0;
}

.search-bar button:hover {
    background: linear-gradient(135deg, #0051D5 0%, #003D9E 100%);
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.4);
}

.search-bar button:active {
    transform: scale(0.98);
}
/* --- FIN: Barra de Búsqueda Translúcida --- */

/* --- INICIO: Widget de Emprendedores Locales Estilo iOS --- */
.local-entrepreneurs-bar-section {
    margin-bottom: 1.5rem;
    padding: 0 1rem;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    clear: both;
    position: relative;
    z-index: 5;
}

.page-index .local-entrepreneurs-bar-section {
    margin-top: -15px;
}



.local-entrepreneurs-widget-horizontal {
    max-width: 100%;
    margin: 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    gap: 12px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease-out 0.2s both;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

/* Badge contador de filtros activos */
.filters-active-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #007AFF;
    color: #FFFFFF;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 6px;
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
}

.local-entrepreneurs-widget-horizontal:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* Burbuja distintiva de tipo de usuario */
.tipo-burbuja {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    flex-shrink: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
}

.tipo-burbuja.emprendedor-burbuja {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.tipo-burbuja.proveedor-burbuja {
    background: linear-gradient(135deg, #8b6914, #6b4e0f);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.tipo-burbuja.institucion-burbuja {
    background: linear-gradient(135deg, #4a5568, #2d3748);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.tipo-burbuja:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.tipo-burbuja.emprendedor-burbuja:hover {
    box-shadow: 0 6px 20px rgba(44, 62, 80, 0.5);
}

.tipo-burbuja.proveedor-burbuja:hover {
    box-shadow: 0 6px 20px rgba(139, 105, 20, 0.5);
}

.tipo-burbuja.institucion-burbuja:hover {
    box-shadow: 0 6px 20px rgba(74, 85, 104, 0.5);
}

.widget-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.widget-text h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1C1C1E;
    letter-spacing: -0.3px;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
}

.widget-text p {
    font-size: 14px;
    color: #8E8E93;
    margin: 0;
    font-weight: 400;
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
}

.emprendedor-filter-dropdown {
    position: relative;
    z-index: 10;
}

.emprendedor-filter-dropdown .widget-button {
    background-color: #F8F8F8;
    color: #1C1C1E;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #E8E8E8;
    cursor: pointer;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
}

.emprendedor-filter-dropdown .widget-button:hover {
    background-color: #F0F0F0;
    border-color: #D1D1D6;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.emprendedor-filter-dropdown .widget-button:active {
    transform: translateY(0);
}

.emprendedor-filter-dropdown .widget-button svg {
    color: #636366;
    transition: transform 0.2s ease;
}

.emprendedor-filter-dropdown.active .widget-button .dropdown-arrow {
    transform: rotate(180deg);
}

.emprendedor-filter-dropdown .city-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 240px;
    background-color: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 8px;
    display: flex;
    flex-direction: column;
    z-index: 1002; /* Aumentado para estar sobre otros elementos */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e5e5ea;
}

.emprendedor-filter-dropdown.active .city-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.emprendedor-filter-dropdown .city-dropdown-menu a {
    color: #1c1c1e;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 400;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.emprendedor-filter-dropdown .city-dropdown-menu a:hover {
    background-color: #f0f2f5;
    color: #007aff;
}

.emprendedor-filter-dropdown .city-dropdown-menu a.selected {
    background-color: #e0f0ff;
    color: #007aff;
    font-weight: 600;
}

.emprendedor-filter-dropdown .city-dropdown-menu a:first-child {
    font-weight: 500;
    color: #636366;
    border-bottom: 1px solid #f0f2f5;
    margin-bottom: 5px;
    padding-bottom: 10px;
}

.premium-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.premium-toggle span {
    font-size: 0.95rem;
    font-weight: 500;
    color: #1c1c1e;
}

/* Estilos para el switch (ya definidos en directorio.css, pero se pueden ajustar aquí si es necesario) */
.switch { position: relative; display: inline-block; width: 44px; height: 26px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #e9e9eb; transition: .4s; border-radius: 26px; }
.slider:before { position: absolute; content: ""; height: 22px; width: 22px; left: 2px; bottom: 2px; background-color: white; transition: .4s; border-radius: 50%; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
input:checked + .slider { background-color: #007aff; }
input:checked + .slider:before { transform: translateX(18px); }

.clear-filters-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: rgba(0, 122, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 122, 255, 0.2);
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #007AFF;
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
    letter-spacing: -0.1px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 122, 255, 0.1);
    text-decoration: none;
    margin-left: 0;
}

.clear-filters-button:hover {
    background: rgba(0, 122, 255, 0.12);
    border-color: rgba(0, 122, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.15);
    transform: translateY(-1px);
    text-decoration: none;
}

.clear-filters-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 122, 255, 0.1);
}

.clear-filters-button svg {
    width: 16px;
    height: 16px;
    color: #007AFF;
    flex-shrink: 0;
}

.clear-filters-button span {
    color: #007AFF;
}

/* --- FIN: Widget de Emprendedores Locales --- */

/* --- INICIO: Título de Sección "Emprendedores como tú" --- */
.featured-section .section-title {
    font-size: 28px;
    font-weight: 700;
    text-align: left;
    margin-bottom: 24px;
    color: #1C1C1E;
    letter-spacing: -0.5px;
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
}
/* --- FIN: Título de Sección --- */

/* --- INICIO: Rejilla y Tarjetas de Emprendedores --- */
.main-content-full-width {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.featured-section {
    background-color: #F2F2F7;
    padding: 32px 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: 1.5px solid #E5E5EA;
    border-bottom: 1.5px solid #E5E5EA;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
    animation: fadeInUp 0.5s ease-out 0.3s both;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    clear: both;
    overflow: hidden;
}

.resultados-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    width: 100%;
    padding: 0 0.5rem;
    box-sizing: border-box;
    column-gap: 0.8rem;
    row-gap: 1rem;
}

.empresa-card-grid {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1.5px solid rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.5s ease-out both;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    min-width: 0;
    width: 100%;
    max-width: none;
}

.empresa-card-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007AFF, #5856d6);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}


.empresa-card-grid:nth-child(1) { animation-delay: 0.1s; }
.empresa-card-grid:nth-child(2) { animation-delay: 0.2s; }
.empresa-card-grid:nth-child(3) { animation-delay: 0.3s; }
.empresa-card-grid:nth-child(4) { animation-delay: 0.4s; }
.empresa-card-grid:nth-child(5) { animation-delay: 0.5s; }

.empresa-card-grid:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18), 0 4px 12px rgba(0, 122, 255, 0.15);
    border-color: rgba(0, 122, 255, 0.3);
}

.empresa-card-grid:hover::before {
    transform: scaleX(1);
}

/* Badge de plan para cards grid */
.plan-badge-grid {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    visibility: visible !important;
    opacity: 1 !important;
    background: rgba(255, 255, 255, 0.9);
}

.plan-badge-grid.empresa {
    background: rgba(255, 255, 255, 0.95);
}

.plan-badge-grid.certificada {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3), 0 2px 6px rgba(0, 0, 0, 0.2);
}

.plan-badge-grid .badge-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}


.card-logo-grid {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, #007AFF, #5856d6);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    margin-bottom: 16px;
}

.card-logo-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.card-body-grid {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.company-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

.company-info {
    flex: 1;
    margin-left: 16px;
}

.company-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #1d1d1f;
    letter-spacing: -0.3px;
    line-height: 1.3;
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
}

.card-body-grid h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #1d1d1f;
    letter-spacing: -0.3px;
    line-height: 1.3;
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
}

/* --- INICIO: Estilos de burbujas para servicios --- */
.servicios-lista {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.servicio-item {
    display: inline-flex;
    padding: 6px 14px;
    background: #f5f5f7;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    color: #86868b;
    line-height: 1.4;
    transition: all 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
    white-space: nowrap;
    margin: 0;
    border: none;
}

.servicio-item:hover {
    background: #e5e5ea;
    color: #1d1d1f;
    transform: translateY(-1px);
}
/* --- FIN: Estilos de burbujas para servicios --- */

.company-category {
    display: inline-block;
    padding: 4px 12px;
    background: #f5f5f7;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    color: #86868b;
    margin-top: 8px;
}

.company-description {
    color: #86868b;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
}

.company-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    color: #86868b;
    margin-top: auto;
}

.company-detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
}

.company-detail-item svg {
    width: 16px;
    height: 16px;
    color: #007AFF;
    flex-shrink: 0;
}

/* Footer removido - el estilo del ejemplo no tiene footer separado */
/* --- FIN: Rejilla y Tarjetas --- */

/* --- INICIO: Estilos para el Dropdown de Ciudades --- */
.city-filter-dropdown {
    position: relative;
    z-index: 10;
}

.city-dropdown-toggle,
.city-filter-dropdown .widget-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1.5px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #1C1C1E;
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
    letter-spacing: -0.2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
    min-width: 180px;
    text-decoration: none;
}

.city-dropdown-toggle:hover,
.city-filter-dropdown .widget-button:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.city-dropdown-toggle:active,
.city-filter-dropdown .widget-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.city-dropdown-toggle span,
.city-filter-dropdown .widget-button span {
    flex: 1;
    text-align: left;
    color: #1C1C1E;
}

.city-dropdown-toggle svg,
.city-filter-dropdown .widget-button svg {
    width: 16px;
    height: 16px;
    color: #636366;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.city-filter-dropdown.active .city-dropdown-toggle {
    background: rgba(0, 122, 255, 0.1);
    border-color: rgba(0, 122, 255, 0.3);
}

.city-filter-dropdown.active .city-dropdown-toggle svg {
    transform: rotate(180deg);
    color: #007AFF;
}

.city-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 220px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1.5px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 8px;
    display: flex;
    flex-direction: column;
    z-index: 11;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 320px;
    overflow-y: auto;
    overflow-x: hidden;
}

    /* MÓVIL: Corregir filtros y sección */
@media (max-width: 768px) {
    /* Corregir sección de filtros */
    .local-entrepreneurs-bar-section {
        padding: 0 12px !important;
        margin-top: 0 !important;
        margin-bottom: 16px !important;
        position: relative;
        z-index: 10;
    }
    
    .local-entrepreneurs-widget-horizontal {
        padding: 14px 12px !important;
        gap: 10px;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
        border-radius: 12px;
    }
    
    .emprendedor-filter-dropdown .widget-button {
        padding: 8px 12px;
        font-size: 13px;
        border-radius: 8px;
    }
    
    .clear-filters-button {
        padding: 8px 14px;
        font-size: 13px;
        border-radius: 8px;
    }
    
    /* Asegurar que los dropdowns se vean sobre otros elementos */
    .city-filter-dropdown,
    .emprendedor-filter-dropdown {
        position: relative;
        z-index: 1003; /* Por encima de otros elementos */
    }
    
    .city-filter-dropdown.active,
    .emprendedor-filter-dropdown.active {
        z-index: 1004; /* Cuando está activo, aún más arriba */
    }
    
    /* Asegurar que los menús dropdown se vean sobre otros filtros */
    .city-dropdown-menu {
        z-index: 1005 !important; /* Máximo z-index para los menús */
        position: absolute !important;
        left: 0 !important;
        right: 0 !important;
        min-width: 100% !important;
    }
    
    .emprendedor-filter-dropdown .city-dropdown-menu {
        z-index: 1005 !important;
    }
}

.city-dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.city-dropdown-menu::-webkit-scrollbar-track {
    background: transparent;
}

.city-dropdown-menu::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.city-dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

.city-filter-dropdown.active .city-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.city-dropdown-menu a {
    color: #1C1C1E;
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
    letter-spacing: -0.2px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.city-dropdown-menu a:hover {
    background: rgba(0, 122, 255, 0.08);
    color: #007AFF;
    transform: translateX(2px);
}

.city-dropdown-menu a:active {
    background: rgba(0, 122, 255, 0.12);
    transform: translateX(0);
}

.city-dropdown-menu a:first-child {
    font-weight: 600;
    color: #007AFF;
    background: rgba(0, 122, 255, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 4px;
    padding-bottom: 12px;
}

.city-dropdown-menu a:first-child:hover {
    background: rgba(0, 122, 255, 0.12);
}
/* --- FIN: Estilos para el Dropdown de Ciudades --- */

/* --- INICIO: Estilos para la sección Final CTA --- */
.final-cta-section {
    padding: 60px 40px;
    margin: 80px auto;
    max-width: 1200px;
    background: #FFFFFF;
    color: #1C1C1E;
    border-radius: 24px;
    border: 1.5px solid #E5E5EA;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.final-cta-section p,
.final-cta-section span {
    color: #1C1C1E;
}

.final-cta-section h2 {
    font-size: 32px;
    margin-bottom: 16px;
    font-weight: 700;
    color: #1C1C1E;
    letter-spacing: -0.8px;
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
    line-height: 1.2;
}

.cta-subtitle {
    font-size: 17px;
    margin-bottom: 32px;
    color: #8E8E93 !important;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-weight: 400;
}

.cta-benefits {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.cta-benefit-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1C1C1E;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 16px;
    background: #F2F2F7;
    border-radius: 12px;
}

.cta-button-large {
    display: inline-block;
    padding: 16px 40px;
    background: linear-gradient(135deg, #007AFF, #0051D5);
    color: #FFFFFF !important;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.3);
    margin-bottom: 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
}

.cta-button-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.4);
    background: linear-gradient(135deg, #0051D5, #003D9E);
}

.cta-note {
    font-size: 14px;
    color: #8E8E93 !important;
    margin-top: 20px;
    font-style: italic;
}

.final-cta-section .hero-cta {
    background-color: #007aff;
    color: #fff;
}

.final-cta-section .hero-cta:hover {
    background-color: #005ecb;
    color: #fff;
}
/* --- FIN: Estilos para la sección Final CTA --- */

/* Responsive */
@media (max-width: 1400px) {
    .resultados-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 1200px) {
    .resultados-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .resultados-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        padding: 0 12px !important;
    }
    
    .empresa-card-grid {
        padding: 16px !important;
        min-height: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .company-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
        margin-bottom: 12px !important;
    }
    
    .card-logo-grid {
        width: 48px !important;
        height: 48px !important;
        margin-bottom: 12px !important;
    }
    
    .company-info {
        margin-left: 0 !important;
        width: 100% !important;
    }
    
    .company-name,
    .empresa-card-grid h3 {
        font-size: 18px !important;
        line-height: 1.3 !important;
        margin-bottom: 8px !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    .empresa-card-grid .company-description {
        font-size: 14px !important;
        line-height: 1.5 !important;
        margin-bottom: 12px !important;
        -webkit-line-clamp: 3 !important;
        line-clamp: 3 !important;
        display: -webkit-box !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    .company-category {
        font-size: 12px !important;
        padding: 4px 8px !important;
    }
    
    /* Prevenir overflow y superposición */
    .empresa-card-grid * {
        max-width: 100% !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    .emprendedores-layout-container {
        padding: 0 1rem;
    }
}
